1

I am using the table environment in report class. Here is the MWE:

\documentclass{report}
\begin{document}
\begin{table}
\begin{tabular}{cc}
\hline
a&b\\
c&d\\ \hline
\end{tabular}
\caption{Table name}
\end{table}
\end{document}

The output I am getting is a table with that is left aligned and a caption that is centred. If I use \centering I can get the table centred. However, I need to set each table separately in the table environment.

Which command I need to modify it so that all tables are centred?

Werner
  • 603,163
manjusha
  • 445

0 Answers0