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?
\selectfontis indeed required to "activate" the\fontsizemacro. – Steven B. Segletes Apr 15 '16 at 17:44\footnotesize. It is equivalent, if the document size is 12pt. – Bernard Apr 15 '16 at 18:14size12.cloyou find\newcommand\footnotesize{\@setfontsize\footnotesize\@xpt\@xiipt...}– egreg Apr 15 '16 at 18:17