如何在Latex表格中旋转表格标题

如何在Latex表格中旋转表格标题,latex,pdflatex,Latex,Pdflatex,是否有办法将下表中的“演示1”、“演示2”和“演示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 & &

是否有办法将下表中的“演示1”、“演示2”和“演示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}
谢谢

是的。作为

将此项放在代码的顶部:

\使用包{旋转}

要创建具有旋转列文本的表格,请使用以下代码:

\begin{tabular}{|r|r|}\hline 
\begin{sideways}Paper\end{sideways} &\begin{sideways}Static\end{sideways} \\
\hline
HAR1994j & Journal \\
SWRT1996c & Conference \\
\hline
\end{tabular}

链接似乎断开了,没有链接,答案就没用了。@Trilarion,你说得对。但是,这是公认的答案,因此我无法删除:-(