Skip to content

Instantly share code, notes, and snippets.

@amoudgl
Forked from dpgettings/dummyfig.tex
Created May 12, 2021 03:40
Show Gist options
  • Save amoudgl/4756a3fbec48262578273c4d0f79292f to your computer and use it in GitHub Desktop.
Save amoudgl/4756a3fbec48262578273c4d0f79292f 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