I have some tables in the middle of a document which is in written in 12pt
and I'm trying to make them in 10pt
. Only the tables. If I write
\begin{table}
\centering
\fontsize{10}{12}
\begin{tabular}{clcc}\hline
Variable & flag & flag & Height \\\hline
$q$ & Specific & a & 46.46\\
$c$ & \CO2 & b & 46.46
\end{tabular}
\end{table}
then only the first column gets passed into 10pt
. I have tried everything and the only thing that made it work is
\begin{table}
\centering
\fontsize{10}{12}\selectfont
\begin{tabular}{clcc}\hline
Variable & flag & flag & Height \\\hline
$q$ & Specific & a & 46.46\\
$c$ & \CO2 & b & 46.46
\end{tabular}
\end{table}
This doesn't look like the correct way to do it for me. What the proper way to achieve what I want and why doesn't a simple \fontsize
work?
\selectfont
is indeed required to "activate" the\fontsize
macro.\footnotesize
. It is equivalent, if the document size is 12pt.size12.clo
you find\newcommand\footnotesize{\@setfontsize\footnotesize\@xpt\@xiipt...}