LaTeX Notes

Tex-Guides JCW Docs Home

Apologies that I never really rewrote this page after losing the original. From time to time, though, I'll put new stuff on here that I have found useful. Please feel free to email me questions/suggestions on how to improve this page.

LaTeX sites I like


Some useful LaTeX tips I have learned recently

Tables in landscape mode

Include the package lscape:
\usepackage{lscape}
Then put the table in landscape mode
\begin{landscape}
\begin{table}
.
.
.
\end{table}
\end{landscape}

Putting footnotes in tables

If you just use a \footnote command within a table gives the footnote superscript, but the text just doesn't appear. To overcome this, put the tabular bit of the table inside a minipage environment, as
\begin{table}[htp]
\centering
\begin{minipage}{\textwidth}
\centering
\begin{tabular}{|l|l|l|}
....
\end{tabular}
\end{minipage}
\caption{...}
\end{table}
The footnote text will then appear under a short line just above the caption.

If the table is in a 2-column-per-page document, use {0.5\textwidth}.

Handling overlong column cells

For columns with overly long sentences in a given cell, you can force them to wrap with the "p" specifier in the tabular environment. For example,
\begin{tabular}{|l|l|p{8cm}|}
The first two columns here are the usual left-justified entries, there are vertical lines about all columns, but the 3rd column is forced to be 8cm wide, so it can't overfill the page. Additionally, any text that would be longer than 8cm is wrapped nicely in the cell.
Top

Last modified:  
Copyright © 2000-2004 Jenny Williams
All Rights Reserved
Email: jenny@hep.man.ac.uk