I have a table and I want to rotate it. The table has 3 rows and 4 columns, and I want to rotate the text inside this table as well. How can I do this?
[Tex/LaTex] How to rotate a table
rotatingtables
rotatingtables
I have a table and I want to rotate it. The table has 3 rows and 4 columns, and I want to rotate the text inside this table as well. How can I do this?
Best Answer
As Jake said you can use
\rotatebox
from thegraphicx
package to rotate a table. This is perfectly fine for uncomplicated tables. However, this will read the whole table as macro argument which doesn't allow for verbatim or other special content and isn't that efficient.As alternative you can use the
\adjustbox
macro oradjustbox
environment from theadjustbox
package (written by me). Both process the content as real box and not as macro argument as therefore avoids the mentioned drawbacks:Alternatively, you can use the very new package
realboxes
. When loaded with thegraphicx
option (or without any but aftergraphicx
) it provides\Rotatebox
which works like\rotatebox
but reads the content also as real box: