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.
\label
always 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\label
before\caption
labels the previous figure or table (correct: the last\caption
in the same float type). – Martin Scharrer♦ Feb 6 '11 at 15:05center
environment -- it adds unwanted margins. Simply use the\centering
macro after\begin{figure}
. – Martin Scharrer♦ Feb 6 '11 at 15:07