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?

1

1 Answer 1

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

2
  • Do you supply the height or width? What does ! stand for?
    – Viesturs
    Commented Feb 12, 2018 at 11:17
  • @Viesturs You can look here en.wikibooks.org/wiki/LaTeX/Tables \resizebox{width}{height}{object} The ! mean that scale height anong with the width. Commented Feb 12, 2018 at 11:24

You must log in to answer this question.

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