# How do you center graphics? [duplicate]

Possible Duplicate:
Should I use center or centering for figures and tables?

I am doing an assessment and as part of it have linked some graphics into my Latex report, however they are not centred in the report but the left hand side of the graphics starts on the centre line of the report.

Is there anyway i can centre the graphics so that the middle of the graphics is in the middle of the report(on the centre line)?

-

## marked as duplicate by Jake, Kurt, Thorsten, Stefan Kottwitz♦Nov 21 '12 at 16:59

Or indeed, see here: tex.stackexchange.com/questions/2651/… –  badroit Nov 21 '12 at 16:01

Use

\begin{figure}
\begin{center}
...
\includegraphics[...]{...}
...
\end{center}
\end{figure}


or

\begin{figure}
...
\centerline{\includegraphics[...]{...}}}
...
\end{figure}


or

\begin{figure}
\centering
...
\includegraphics[...]{...}
...
\end{figure}


The first approach tends to add vertical space padding, the second is undocumented, and so the third approach is often preferred.

-
Don't use center inside figure; just \centering that doesn't add vertical space. The last one uses an undocumented command, show it shouldn't be recommended. –  egreg Nov 21 '12 at 16:00
@egreg centerline is documented in the TeXbook:) –  Yiannis Lazarides Nov 21 '12 at 16:59
@YiannisLazarides I know. ;-) But it isn't in the LaTeX manual. –  egreg Nov 21 '12 at 17:00