[Tex/LaTex] Placeholder for figure/includegraphics

graphics

Is there a command that I can use as a placeholder for \includegraphics?
I want to use such a placeholder to add the original graphics later.

Best Answer

It's 2018 now, and this has become very easy.

Simply:

\includegraphics[width=\textwidth]{example-image-a}

The mwe package needs to be installed for this (but it doesn't need to be included in the preamble). If using MiKTex e.g., it will offer to install this package when the document is built.


There are other placeholder images available as well.

Example document from another StackExchange answer:

\documentclass[12pt,a4paper]{article}
\usepackage{graphicx}

\begin{document}

\noindent\includegraphics[width=3cm]{example-image-a}\qquad
\includegraphics[width=3cm]{example-image-golden}\qquad
\includegraphics[width=3cm]{example-grid-100x100pt}

\noindent\includegraphics[height=5cm]{example-image-b} 

\noindent\includegraphics[scale=0.5]{example-image-c} 

\noindent\includegraphics[width=3cm]{example-image} 

\end{document}

enter image description here