Skip to content

Instantly share code, notes, and snippets.

@robotarmy
Created July 25, 2012 18:52
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 robotarmy/3177861 to your computer and use it in GitHub Desktop.
Save robotarmy/3177861 to your computer and use it in GitHub Desktop.
How to layout an image (aka graphic) in the middle of the page without it floating to the next page ( or to the middle of some page far below)
\usepackage{float}
\begin{figure}[H] % the H is what makes it do a strong 'here' - float is is used for 'H'
\begin{center}
\includegraphics[height=0.5\textwidth]{path/to/file.png}
\end{center}
\caption{This is the caption for the image}
\end{figure}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment