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.

i want to center the table captions.

enter image description here

enter image description here

share|improve this question

2 Answers 2

up vote 10 down vote accepted

I recommend to use the caption package. It provides features for justification, also for centering, such as

\usepackage[justification=centering]{caption}

It offers many features, just have a look at its comprehensive documentation.

share|improve this answer
    
thanks it works. pretty cool. –  berkay Apr 19 '11 at 7:23
    
Kottwit, for my long table captions, i'm using \newline to make some comments about the tables. But i want these start from left is that possible? this is caption \newline this is more explanation (should be left aligned.) is there a way to do it? –  berkay Apr 19 '11 at 7:31
1  
@berkay: Using \newline inside a paragraph which will be typeset centered is usually a bad idea. Better use \\ instead which should work under such conditions, too. –  Axel Sommerfeldt Apr 21 '11 at 5:26

Note: If you do not want to change the justification for the whole document you can use \captionsetup{} within a particular figure and it will only change the captions within that environment. Other than centering you may also want to try centerlast.

\usepackage{caption}
...
\begin{figure}
   ...
   \captionsetup{justification=centering}
   \caption{. . . }
\end{figure}
  • El Bee.
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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