让表格中文字垂直排版怎么弄呢

2019-11-29 17:52发布

```tex \begin{table} \centering % table caption is above the table \caption{An example} \label{tab:1...

```tex \begin{table} \centering % table caption is above the table \caption{An example} \label{tab:1} % Give a unique label % For LaTeX tables use \begin{tabular}{llllllll} %\hline\noalign{\smallskip} %first & second & third& second & third& second & third \\ \noalign{\smallskip}\hline\noalign{\smallskip} %\cline{1-2}{4-7} \multicolumn{3}{c}{\multirow{3}*{\makecell*[l]{1 Capable \\0 Incapable} } }& &\multicolumn{4}{c}{Tasks} \\ \multicolumn{3}{c}{}& & 1 & 2 & 3 & 4 \\ \multicolumn{3}{c}{}& & $a$ & $b$ & $c$ & $d$ \\ %\cline{1-2}\cline{4-7} \\ %\specialrule{2pt}{2pt} % \multicolumn{7}{c}{} \\ \cline{1-3}\cline{5-8} \\ \multirow{4}*{Resources} &1 & $a$ & & 1 & 0 & 1 & 1 \\ &2 & $b$ & & 0 & 1 & 0 & 0 \\ &3 & $c$ & & 0 & 0 & 0 & 1 \\ &4 & $d$ & & 1 & 1 & 1 & 1 \\ %\cline{1-2}{4-7} \noalign{\smallskip}\hline \end{tabular} \end{table} ``` 我想要Resources 排版是竖着而不是横着,该怎么修改呢 即: R e s o u r e s 而不是 Resources
1条回答
是不是下面的例子的意思: ```tex \documentclass{article} \usepackage{array,multirow,graphicx} \begin{document} \begin{table}[h] \begin{tabular}{|c|c|c|c|} \hline \multicolumn{1}{|c|}{label01} & \multicolumn{3}{c|}{label02} \\ \hline \parbox[t]{2mm}{\multirow{4}{*}{\rotatebox[origin=c]{90}{some text}}} & \multicolumn{1}{c|}{\multirow{2}{*}{item 1}} & description & description \\ \cline{3-4} & & description & description \\ \cline{2-4} & \multirow{2}{*}{item 2} & description & description \\ \cline{3-4} & & description & description \\ \hline \parbox[t]{2mm}{\multirow{4}{*}{\rotatebox[origin=c]{90}{some text}}} & \multirow{2}{*}{item 1} & description & description \\ \cline{3-4} & & description & description \\ \cline{2-4} & \multirow{2}{*}{item 2} & description & description \\ \cline{3-4} & & description & description \\ \hline \end{tabular} \end{table} \end{document} ```

一周热门 更多>