I am trying to make the font size for all tables the same. I have different tables with different headers and number of columns and rows, which causes the font size to vary from case to case. I tried different approaches, I found on the internet, but no success yet.
Here is an example:
\documentclass[12pt,twoside]{ociamthesis}
\usepackage{float}
\usepackage{geometry}
\usepackage{lipsum}
\usepackage{fancyhdr}
\pagestyle{fancy}
\renewcommand{\sectionmark}[1]{\markright{\thesection~- ~#1}}
\renewcommand{\chaptermark}[1]{\markboth{\chaptername~\thechapter~-~ #1}{}}
\fancypagestyle{main}{
\fancyhead[LE,RO]{\thepage}
\fancyhead[RE]{\nouppercase{\leftmark}}
\fancyhead[LO]{\nouppercase{\rightmark}}
}
\pagestyle{main}
\begin{document}
\begin{table}[htbp]
\centering
\begin{tabular}{|l|l|l|l|}
\hline
Layer & T(°C) & $\mathrm{B(S^{-1}MPa^{-1})}$ & n \\ \hline
TBC & 1000 & 1.8e-7 & 1 \\ \hline
TGO & 1000 & 7.3e-4 & 1 \\ \hline
BC & 600 & 6.54e-19 & 4.57 \\ \hline
& 700 & 2.2e-12 & 2.99 \\ \hline
& 800 & 1.84e-7 & 1.55 \\ \hline
& 850 & 2.15e-8 & 2.45 \\ \hline
Substrate & 10 & 4.85e-36 & 1 \\ \hline
& 1200 & 2.25e-9 & 3 \\ \hline
\end{tabular}
\caption{Creep properties of TBC system}
\label{tab:matcreep}
\end{table}
\begin{table}[htbp]
\centering
\renewcommand{\arraystretch}{1.25}
\resizebox{0.75\linewidth}{!}{
\begin{tabular}{|*{5}{c|}} % repeats {c|} 18 times
\hline
\multirow{3}*{Specimen type} & \multicolumn{4}{c|}{Bond coat type} \\ \cline{2-5}
& \multicolumn{2}{c|}{LCO22} & \multicolumn{2}{c|}{PWA 286} \\ \cline{2-5}
& hole diameter (mm) & Angle & hole diameter (mm) & Angle\\ \hline
\multirow{2}*{Flash lamp, percussion} & 0.5 & 90 & 0.5 & 90 \\ \cline{2-5}
& 0.5 & 30 & 0.5 & 30 \\
\hline
Fiber, trepanation & 0.5 & 30 & 0.5 & 30 \\
\hline
Fiber, percussion & 0.5 & 30 & 0.5 & 30 \\ \hline
\end{tabular}}
\caption{Test matrix for cyclic oxidation tests.}
\label{tab:cycoxidplan}
\end{table}
\begin{table}[ht]
\centering
\renewcommand{\arraystretch}{3}
\resizebox{1\linewidth}{!}{
\begin{tabular}{|*{8}{c|}}
\hline
Crack length & Test coloumn1 & Test coloumn2 & Test coloumn3 & Test coloumn4 & Test coloumn5 & Test coloumn6 & Test coloumn7 \\ \hline
TBC & 37 $\pm$ 31 & 103 $\pm$ 94 & 142 $\pm$ 70 & 337 $\pm$ 436 &94 $\pm$ 74 & 100 $\pm$ 107& 41 $\pm$ 33 \\ \hline
BC-Sub int. & 71 $\pm$ 15 & 138 $\pm$ 42 & 156 $\pm$ 7 & 400 $\pm$ 50 &47 $\pm$ 22 &136 $\pm$ 35 & 20 $\pm$ 10 \\ \hline
Substrate & 42 $\pm$ 9 & 52 $\pm$ 5 & 58 $\pm$ 22 & 91 & 78 $\pm$ 12 &50 $\pm$ 26& 0 \\ \hline
\end{tabular}}
\caption{Measurement of averaged crack length in TBC layer, at BC/substrate interface (shown as BC-Sub int.), and in substrate.}
\label{tab:fibertrepperccracklength}
\end{table}
\begin{table}[ht]
\centering
\renewcommand{\arraystretch}{3}
\resizebox{1\linewidth}{!}{
\begin{tabular}{|*{8}{c|}}
\hline
Recast thickness & Test coloumn1 & Test coloumn2 & Test coloumn3 & Test coloumn4 & Test coloumn5 & Test coloumn6 & Test coloumn7 \\ \hline
TBC recast & 19 $\pm$ 8 & 83 $\pm$ 46 & 56 $\pm$ 17 & 77 $\pm$ 24 & 35 $\pm$ 12 & 33 $\pm$ 12 & 33 $\pm$ 19 \\ \hline
BC-Sub recast & 23 $\pm$ 8 & 27 $\pm$ 10 & 46 $\pm$ 20 & 60 $\pm$ 21 &29 $\pm$ 20 & 20 $\pm$ 13 & 0 \\ \hline
\end{tabular}}
\caption{Measured averaged thickness of TBC and BC/substrate recast layers}
\label{tab:fibertreppercrecastt}
\end{table}
\end{document}
and the output for the first two tables is:
\resizebox{0.75\linewidth}{!}{
for exactly the reason that you show. The inconsistent fonts are unrelated to tables. It is simply that you are scaling text by inconsistent amounts,\resizebox
to make broader tables fit on the page? Are you asking for a solution to make tables fit on the page without using\resizebox
?