1

Imagine that I have a wide table that does not fit into page:

\begin{tabular}
Some very wide table
\end{tabular}

Can I scale this object without recurring to adjusting the font size?

Viesturs
  • 7,895
  • 1
    Changing the font size is better than scaling, as this will use appropriate letter shapes and thus be better readable, see also this comment: https://tex.stackexchange.com/questions/97505/shrink-table-to-fit-on-a-page-or-keep-it-as-it-is#comment209757_97505 – samcarter_is_at_topanswers.xyz Feb 12 '18 at 11:51

1 Answers1

1
\documentclass[]{article}    

\begin{document}

\resizebox{\textwidth}{!}{%
\begin{tabular}{|c|c|}
\hline 
a & b \\ 
\hline 
c & d \\ 
\hline 
\end{tabular} 
}

\resizebox{2cm}{!}{%
\begin{tabular}{|c|c|}
\hline 
a & b \\ 
\hline 
c & d \\ 
\hline 
\end{tabular} 
}

\end{document}

enter image description here

sergiokapone
  • 5,578
  • 1
  • 16
  • 39