I have an image I'd like horizontally centered on the page. Currently, I'm using the following code (which does work) under pdflatex:
\usepackage{float}
...
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=0.8\textwidth]{PicName}
\end{center}
\caption{Some kind of sane Caption}
\label{fig:picref}
\end{figure}
The references I've found on the ineternet are pretty much split 50-50 on whether the \leavevmode is required there or not. But, I can't find anything that says point blank what it's for.
So, my two-part question: what exactly does \leavevmode do, and do I need it?
\leavevmodeitems will cause all sorts of trouble there!) – Joseph Wright Dec 13 '10 at 20:58