Skip to content

Instantly share code, notes, and snippets.

@dpgettings
Created March 19, 2014 05:19
Show Gist options
  • Save dpgettings/9635856 to your computer and use it in GitHub Desktop.
Save dpgettings/9635856 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*}
@beldaz
Copy link

beldaz commented May 25, 2018

Very simple and effective - cited in https://tex.stackexchange.com/a/433431/60034

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment