Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I make multi-page landscape tables in LaTeX

Tags:

latex

tabular

The title is pretty much the extent of my question. I am trying to insert a large table into a document using the xtabular environment. If I wrap the xtabular environment in a landscape environment, then the bottom of my table gets chopped off. Does anyone have any better suggestions? Thanks


\begin{landscape}
\singlespace
\begin{xtabular}{|c|c|c|c|c|}
    \hline
      some & stuff & ... & \\
\end{xtabular}
\end{landscape}

Tim

like image 865
Tim Avatar asked Apr 26 '10 22:04

Tim


People also ask

How do you make a table landscape in LaTeX?

-3: To create a table in landscape mode, rotating package is included with \usepackage{rotating} command. Then, the table is produced using \begin{sidewaystable}, and \end{sidewaystable}. The table given in Table 1.3 can be created in landscape mode as given below, and the screen capture of it is shown in Table 1.4.

How do you make a table compact in LaTeX?

One can compactify tables by reducing \setlength\tabcolsep{1pt} and setting \arraystretch to a small value, and so on.

How do you align a table in overleaf?

You can also use r to align the text to the right and l for left alignment. This will insert a horizontal line on top of the table and at the bottom too. There is no restriction on the number of times you can use \hline . Each & is a cell separator and the double-backslash \\ sets the end of this row.


1 Answers

See the longtable environment:

\begin{landscape}
  \begin{longtable}{|c|c|c|c|c|}
    ...
  \end{longtable}
\end{landscape}
like image 152
Etaoin Avatar answered Oct 12 '22 07:10

Etaoin