I have a big table with a problem, when I want to rotate the text in a \multirow
cell, the text is placed outside and is bigger than the dimensions of the cell, I took some advice from here, using\parbox
, and then \rotatebox
. But I don't get good results.
\documentclass{article}
\usepackage{array,multirow,graphicx}
\begin{document}
\begin{table}[H]
\centering
\begin{tabular}{|c|l|r|r|r|r|}
\hline
& \multicolumn{1}{|c|}{Text} & \multicolumn{1}{|c|}{Text} & \multicolumn{1}{|c|}{Text} & \multicolumn{1}{|c|}{Text} & \multicolumn{1}{|c|}{text}\\
\hline
\rotatebox{90}{\parbox{2mm}{\multirow{3}{*}{rota}}} & text &&&&\\
& text &&&&\\
& text &&&&\\
\hline
\end{tabular}
\end{table}
\end{document}
Which results in: