How to resize subtable inside of resizebox? I want to have three-tables side-by-side. However, each table is too wide, so I am using \resizebox. I realized that I need to set the width of subtable, where the effect of the \resizebox is not there. How can we set some sort of relative width?
\begin{table*}
\resizebox{\linewidth}{!}{
\begin{subtable}[h]{XXX} % how to set XXX?
\caption{$M=14$}
\begin{tabular}{r|r|r|r|r|r|r|r|r|r|r|r|r|r|r|r}
% stuff
\end{tabular}
\end{subtable}
\begin{subtable}[h]{XXX} % how to set XXX?
\caption{$M=14$}
\begin{tabular}{r|r|r|r|r|r|r|r|r|r|r|r|r|r|r|r}
% stuff
\end{tabular}
\end{subtable}
\begin{subtable}[h]{XXX} % how to set XXX?
\caption{$M=14$}
\begin{tabular}{r|r|r|r|r|r|r|r|r|r|r|r|r|r|r|r}
% stuff
\end{tabular}
\end{subtable}
}
\end{table*}
resizeboxto make sure a table fits into the available space as this will only lead to inconsistent font sizes throughout your document. There are better ways, some of which are listed here: My table doesn't fit; what are my options? If you provide a complete minimal working example (MWE) including some representative example contents in the tables, we could make some alternative suggestions on how to make the tables fit. – leandriis Oct 26 '20 at 11:58