Thursday, March 23, 2006

When the table is too wide in LaTeX

Reminder: you may not get what you want if you preview dvi, try ps

\newsavebox{\tablebox}
\begin{lrbox}{\tablebox}
\begin{tabular}{||l||l||l||l||}
\hline\hline{\textbf{Geographic Location}} />{\textbf{Site}} />{\textbf{IP Address}} />{\textbf{Top Level Directory}} \\
\hline\hline
United States \tt ftp.shsu.edu 192.92.115.10 \it /tex-archive\\
\hline\hline
England \tt ftp.tex.ac.uk 131.151.79.32 \it /tex-archive\\
\hline\hline
Germany \tt ftp.uni-stuttgart.de 129.69.8.13 \it /tex-archive\\
\hline\hline
\end{tabular}
\end{lrbox}


\begin{table}
\scalebox{0.6}{\usebox{\tablebox}}
\caption{check table}\label{Test}
\end{table}

No comments:

Post a Comment