[Tex/LaTex] LaTeX prevent oversized table from getting cut off

tableswidth

I have a LaTeX file with a very wide table with many many columns. When I compile this and convert to pdf, the right part of the table is cut off because it is too big to fit on a page.

Is there a way to either

  1. extend the size of the page to avoid cutoff
  2. reduce the size of the table text such that the entire table can fit on a page

Best Answer

In response to part 2 of the user's question:

\documentclass{article}
\usepackage{graphicx}
\parindent 0in\parskip 1ex
\begin{document}
Textwidth:\\
\rule{\textwidth}{0.3ex}\par
First, let's create an oversized table:\par
\def\x{%
\begin{tabular}{|p{2in}|p{2in}|p{1.5in}|}
\hline
First column & Second column & Third Column \\
\hline
\end{tabular}
}
\x\par
Now I will scale the table to 79 percent of original\par
\scalebox{.79}{\x}
\end{document}

enter image description here

Related Question