2

次の 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}

ありがとう

4

1 に答える 1

2

はい。Andrew J. Page博士がブログに書いたように

これをコードの先頭に置きます。

\usepackage{回転}

列テキストを回転させたテーブルを作成するには、次のコードを使用します。

\begin{tabular}{|r|r|}\hline 
\begin{sideways}Paper\end{sideways} &\begin{sideways}Static\end{sideways} \\
\hline
HAR1994j & Journal \\
SWRT1996c & Conference \\
\hline
\end{tabular}
于 2010-03-25T22:03:59.333 に答える