I have a picture that I'd like to include in the center of the page. I don't want the picture to scale. So I tried this (among a lot of other variations):
\begin{figure}[htb]
\centering
\includegraphics{overview_pyramid.png}
\caption{Overview pyramid}\label{fg:overview_pyramid}
\end{figure}
Why isn't this working? I center the image and I don't set a specific size. Nevertheless the picture is scaled (but don't know the factor) and is on the left end of the page.
\labelalways come AFTER\caption(or other to-be-labeled elements like\section, etc.). The caption increments the figure or table number to which the label refers. Using\labelbefore\captionlabels the previous figure or table (correct: the last\captionin the same float type). – Martin Scharrer Feb 06 '11 at 15:05centerenvironment -- it adds unwanted margins. Simply use the\centeringmacro after\begin{figure}. – Martin Scharrer Feb 06 '11 at 15:07