在使用Latex写论文时,当表格宽度太宽,为了缩小表格空间,可以考虑旋转表头。

基本命令

Latex旋转的命令如下:

\rotatebox{旋转角度}{内容}

简单例子

原始表格

\begin{table}[!t]
\centering
\renewcommand{\arraystretch}{1.3}
\caption{Example.}
\label{example}
\resizebox{\linewidth}{!}{%
\begin{tabular}{cccccc}
\toprule
Aaaaaaaa & Bbbbbbbbbb & Ccccccccc & Dddddddd & Eeeeeeee
& Ffffffffff
\\ 
\midrule
    A1 & A2 & A3 & A4 & A5 & A6\\ 
    B1 & B2 & B3 & B4 & B5 & B6\\ 
\bottomrule
\end{tabular}%
}
\end{table}

未旋转表头的效果图如下:
未旋转表头的效果图

旋转后的表格

\begin{table}[!t]
\centering
\renewcommand{\arraystretch}{1.3}
\caption{Example.}
\label{example}
\resizebox{\linewidth}{!}{%
\begin{tabular}{cccccc}
\toprule
\rotatebox{60}{Aaaaaaaa} & \rotatebox{60}{Bbbbbbbbbb} & \rotatebox{60}{Ccccccccc} & \rotatebox{60}{Dddddddd} & \rotatebox{60}{Eeeeeeee}
& \rotatebox{60}{Ffffffffff}
\\ 
\midrule
    A1 & A2 & A3 & A4 & A5 & A6\\ 
    B1 & B2 & B3 & B4 & B5 & B6\\ 
\bottomrule
\end{tabular}%
}
\end{table}

旋转表头后的效果图如下:
旋转后的效果图

可以看出效果还是不错的!