I am trying to make multiple tables for my glossary, hence the tables need to be the width of the margins while maintaining the same font size (11 pt). I tried to do this with \resizebox{\textwidth}{!} which gives me the right width for my tables, but also rescales the size of the font used in my tables depending on the length of the text used in the column. This change in font size causes a difference between the size in my tables, as they do not both hold the exact same amount of text for each column. See code below.
\begin{document}
The following tables defines the various abbreviations and symbols used throughout the thesis. The page where the acronym is first used or defined is given in the last column.
%Start of table 1
\begin{table}[H]
\centering
\begin{center}
\textbf{\large Table of Abbreviations}
\end{center}
\label{tab:list-of-acronyms}
\resizebox{\textwidth}{!}{%
\begin{tabular}{lll}
\hline
\textbf{Abbreviaton} & \textbf{Meaning} & \textbf{Page} \\ \hline
PIC & Ethylene Glycol-functionalized Polyisocyanopeptide & 69 \\
PNIPAM & Poly(\textit{N}-isopropylacrylamide) & 33 \\
& &
\end{tabular}%
}
\end{table}
%Start of table 2
\begin{table}[]
\centering
\begin{center}
\textbf{\large Table of Symbols}
\end{center}
\label{tab:list-of-symbols}
\resizebox{\textwidth}{!}{%
\begin{tabular}{lll}
\hline
\textbf{Symbol} & \textbf{Meaning} & \textbf{Page} \\ \hline
4_1 & Four-over-one helix & ?? \\
\gamma & & \\
DP & Degrees of Polymerization & ?? \\
\Delta G & & \\
\Delta H & & \\
\Delta S & & \\
E & & \\
G & & \\
G' & & \\
G'' & & \\
G* & & \\
G_0 & & \\
K' & & \\
K_a & & \\
K_n & & \\
K_p & & \\
\textit{m} & & \\
\sigma & & \\
\sigma_0 & & \\
\sigma_c & & \\
T* & & \\
\tau & & \\ & & \\
\end{tabular}%
}
\end{table}
\end{document}
And the compiled result as shown below:
As you can see, the font size in both tables are not the same. Does someone have an alternative for me that might work? It should be noted that I am working in a multi-file project and I just copied the file with code for my tables. I do refer to the graphicx package in the preamble of my main document & use documentclass 'report'. Furthermore, I am using a format I found online for my text with a fair amount of code I do not understand, so maybe something there might cause this.
Thanks in advance!
\resizebox
to fit a table.\Delta
or4_1
. ...$\Delta$
and$4_1$
instead or make sure, the whole column is automatically typeset in math mode, for example by using the following code, that at the same time also makes sure, the table fits into the textwidth while keeping a consistent font size:\begin{tabularx}{\textwidth}{>{\(}l<{\)}Xl}
(Needs thetabularx
package.)\resizebox
on tables is an explicit request to destroy any attempt at consistent font sizes. There are essentially no cases when it can make a reasonable output.