I create a table that I would like centered on the page horizontally. I scale the table size using \resizebox
. However, doing so, left aligns the table. How do I center it?
Here's a MWE:
\documentclass[11pt,english,titlepage]{article}
\usepackage{graphicx}
\begin{document}
\begin{table}
\caption{mytable}
\resizebox{.5\textwidth}{!}{
\begin{centering}
\begin{tabular}{rrr}
A & B & C \\
\hline
A1 & B1 &C1\\
A2 & B2 & C2 \\
A3 & B3 & C3 \\
\end{tabular}
\end{centering}
}
\end{table}
\end{document}
Best Answer
There is no
centering
environment. And issuing\centering
inside\resizebox
doesn't make sense anyway: it should be outside, because you want to center the resized box.