Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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)?

share|improve this question

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

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

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

1 Answer 1

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.

share|improve this answer
5  
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
    
I had mentioned about the vertical space. Added about the undocumented aspect of centerline. (Thanks!) –  badroit Nov 21 '12 at 16:05
    
@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
    
thank you all. I shall try it :) –  Stephanie Jones Nov 21 '12 at 17:18

Not the answer you're looking for? Browse other questions tagged or ask your own question.