LaTex tables with rotated column labels


Trying to get a huge correlation table into a readable pdf document using LaTeX i have to rotate the column lables since the variable names differ a lot in lenght. Dr. Andrew J. Page posted this solution on his blog:

The LaTeX package rotating is needed so include
\usepackage{rotating}
in the preample of the document.

Every single column label has to be included into
\begin{sideways}MyColumnLabel\end{sideways}
Thats a bit awkward, but thats the way it is….

An example from the blogpost mentioned above:
\begin{tabular}{rr}
\hline
\begin{sideways}Paper\end{sideways} &\begin{sideways}Static\end{sideways} \\
\hline
HAR1994j & Journal \\
SWRT1996c & Conference \\
\hline
\end{tabular}

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s