Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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*}
@NightlordTW

This comment has been minimized.

Copy link

commented Mar 13, 2018

Thanks, very helpful!

@beldaz

This comment has been minimized.

Copy link

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
You can’t perform that action at this time.