2

I have a very long table which i decided to make smaller using scalebox (successfully) and also split into two pages using longtable. However, no matter how hard I try, I cannot run those two things together. I am a LaTeX beginner so, please, be patient with me.

Could you please implement longtable to my original table, while still using scalebox? Thanks a lot.

\begin{table}[H]
\centering
\def\sym#1{\ifmmode^{#1}\else\(^{#1}\)\fi}
\caption{Caption}
\scalebox{0.8}{
\begin{tabular}{l*{2}{c}}

%tablefill

\end{tabular}
}
\end{table}
10
  • 1
    you can not split scalebox. and table environment too
    – touhami
    Apr 25, 2015 at 19:41
  • 1
    try to change font size \small or ...
    – touhami
    Apr 25, 2015 at 19:44
  • try this \begin{small} \begin{tabular}{l*{2}{c}} 1&2\\ 3&4 \end{tabular} \end{small}
    – touhami
    Apr 25, 2015 at 19:48
  • 1
    scaling tables is always wrong, it's a good thing it doesn't work with longtable, just use \small or \footnotesize or whatever size you need. Apr 25, 2015 at 20:22
  • @touhami make that an answer? Apr 25, 2015 at 21:25

1 Answer 1

4

There is no need to use \resizebox for any table, just select a suitable font size such as \small or \footnotesize so

{\small
\begin{longtable}
....
\end{longtable}
}

or equivalently

\begin{small}
    \begin{longtable}
    ....
    \end{longtable}
\end{small}

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .