I am trying to set the caption of my table to center but I fail to do so. Here is my code:


% \captionsetup{format=myformat}% global activation

\begin{tabular}{ |l||c|c| }
 %\multicolumn{}{|c|}{Country List} \\
 Evaporator Pressure (bar)& Literature &Present Study\\
 Afghanistan   & AF    &AFG\\
 Aland Islands&   AX  & ALA   \\
 Albania &AL & ALB\\
 Algeria    &DZ & DZA\\
 American Samoa&   AS  & ASM\\
 Andorra& AD  & AND   \\
 Angola& AO  & AGO\\

\caption{Thermal efficiency comparison of Present study with O. Kaska []}

%\caption{Comparison of thermal efficiency of Present study with O. Kaska []}


I tried \usepackage[justification=centering]{caption} but it did not help. What can I do?


The problem is not your \caption, but the fact that your tabular is too wide to fit within the text block width. Stick with using caption's justification=center option and consider reducing your adjustment for \tabcolsep.

Personally, I'd prefer the following layout (using booktabs):

enter image description here



  justification = centering


  \begin{tabular}{ l c c }
    Evaporator Pressure (bar) & Literature & Present Study \\
    Afghanistan               &    AF      &     AFG       \\
    Aland Islands             &    AX      &     ALA       \\
    Albania                   &    AL      &     ALB       \\
    Algeria                   &    DZ      &     DZA       \\
    American Samoa            &    AS      &     ASM       \\
    Andorra                   &    AD      &     AND       \\
    Angola                    &    AO      &     AGO       \\
  \caption{Thermal efficiency comparison of Present study with O.~Kaska~[]}


For more on how to make your table fit, see My table doesn't fit; what are my options?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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