I mess up with things when I try to use the figure-thing: the picture is not appearing with the correct alignment (apparently because I forget the float package). Now I want to use only the graphicx package with \includegraphics. How can I center the \includegraphics without figure?
Not working or doing centering to the document afterwards.
\includegraphics[width=0.5 \textwidth]{./Pictures/r.png}{\centering}
\includegraphics[width=0.5 \textwidth]{./Pictures/r.png}\centering
centerputs some extra vertical space around its contents, which is frowned upon, at least for me. Therefore I prefer the command\centering, i.e.{\centering\includegraphics[width=0.5\textwidth]{mypicture.png}}, the outer pair of braces is to make the effect of\centeringbe local. – yo' Mar 05 '12 at 21:51centershould be frowned upon inside floats (which add own space before/after them), but is perfectly fine for pictures inserted directly in the text. – lockstep Mar 05 '12 at 21:57