Skip to content

Instantly share code, notes, and snippets.

@yjxiong
Forked from dpgettings/dummyfig.tex
Created November 13, 2016 13:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yjxiong/f45a41871bb4d7c9496e1fc1390b426f to your computer and use it in GitHub Desktop.
Save yjxiong/f45a41871bb4d7c9496e1fc1390b426f to your computer and use it in GitHub Desktop.
Fancy placeholder figures in LaTeX
%% This part goes in preamble
\newcommand{\dummyfig}[1]{
\centering
\fbox{
\begin{minipage}[c][0.33\textheight][c]{0.5\textwidth}
\centering{#1}
\end{minipage}
}
}
%% This part makes a figure
\begin{figure*}[h]
\dummyfig{Dummy Figure Label}
\caption{Dummy figure caption}
\label{fig:dummy}
\end{figure*}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment