有没有办法在下面的LaText表格中将“Demo 1”,“Demo2”和“Demo 3”标题旋转90°?
\documentclass[a4paper,twoside,10pt]{report}
\begin{document}
\begin{tabular}{|l|l|l|l|}
\hline
& Demo1 & Demo2 & Demo3 \\
\hline
Person 1 & x & & \\
\hline
Person 2 & x & & x \\
\hline
Person 3 & x & x & \\
\hline
Person 4 & & x & x \\
\hline
\end{tabular}
\end{document}
由于
答案 0 :(得分:0)
是。作为Dr. Andrew J. Page wrote on his blog,
将它放在代码的顶部:
\ usepackage {旋转}
只需创建一个包含旋转列文本的表,请使用以下代码:
\begin{tabular}{|r|r|}\hline \begin{sideways}Paper\end{sideways} &\begin{sideways}Static\end{sideways} \\ \hline HAR1994j & Journal \\ SWRT1996c & Conference \\ \hline \end{tabular}