I have a table that is too wide to fit in a page. How to change the font size in a table?
This is the source code.
\documentclass[12pt]{article}
\usepackage{booktabs}
\usepackage{multirow}
\begin{document}
\begin{table*}[ht]
\caption{Dissemination Time and Success in ONE Simulation}
%\vspace{-.25cm}
\centering
\begin{tabular}{l ccc c ccc c ccc c ccc}
\toprule
& \multicolumn{7}{c}{1K/2K byte budget} && \multicolumn{7}{c}{5K byte budget}\\
\cmidrule{2-8} \cmidrule{10-16}
& \multicolumn{3}{c}{success (\%)} && \multicolumn{3}{c}{time (s)} &&\multicolumn{3}{c}{success (\%)} && \multicolumn{3}{c}{time (s)} \\
\addlinespace
& FBF & Labeled & JSON && FBF & Labeled & JSON && FBF & Labeled & JSON && FBF & Labeled & JSON\\
\midrule
{\em Manhattan} & 100\% & 67\% & 67\% && 1248 & 1820 & 2446 && 100\% & 100\% & 100\% && 675 & 583 & 1485\\
{\em mini-Manhattan} & 27\% & 11\% & 16\% && 329 & 315 & 208 && 78\% & 53\% & 33\% && 263 & 364 & 308\\
\bottomrule
\end{tabular}
\label{table:dissemination}
\vspace{-.25cm}
\end{table*}
\end{document}
\centering
, you could revise as\scriptsize\makebox[\textwidth]{\begin{tabular}...\end{tabular}}
or even\tiny
if needed.\multirow{2}{*}{\parbox[c]{.1\linewidth}{\centering }}
supposed to do? Looks like it can just be omitted. Please state the dimensions of the text block -- especially its width.\scriptsize
be better placed just before\begin{tabular}
, inside the box?