amynbe amynbe - 1 year ago 204
LaTeX Question

How to draw diagonal table borders in latex, like in Excel?

Is it possible to draw diagonal (parallelogram) cells in LaTeX: the cell content is diagonal, and the cell's originally vertical borders are also diagonal.

Here is what I managed to do using the rotating package:

\\ \\ \\ \\ \\ \\ \\ \\ \\ \\
& \begin{rotate}{45}Trying to save some horizontal space\end{rotate} & \begin{rotate}{45}While keeping headers readable\end{rotate} \\
this & is & a \\
sample & latex & table \\

Here is a screenshot of the output vs what is possible using Excel:

LaTeX vs. Excel screenshots

Answer Source

Short answer: LaTeX regular tables don't have that capability.

Long answer: It can surely be done but with more effort, as shown by similar (but not quite the same) questions in Tex.Stackexchange:

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download