2

结果

目前我正在研究一个使用多个堆叠多行命令和旋转文本的 Latex 表。我无法自动更改与堆叠multirow命令的旋转文本相对应的行的高度。我使用了以下代码:

\documentclass{book}
\usepackage{rotating}

\usepackage{array,multirow,graphicx}
\usepackage{tabularx}


\newcommand{\STAB}[1]{\begin{tabular}{@{}c@{}}#1\end{tabular}}

\begin{document}
\begin{table}
    \centering
    \caption{lala}
\begin{tabular}{|c|c|c|c|c|c|c|c|c|c|}
        \hline  
    \multicolumn{3}{|c|}{Test}& \multicolumn{1}{c|}{Test}& \multicolumn{6}{c|}{Test}\\  
    \hline
       \STAB{\rotatebox[origin=c]{90}{ Long word }}&\STAB{\rotatebox[origin=c]{90}{Long word }}&\STAB{\rotatebox[origin=c]{90}{Long word }}&
    Long word &\STAB{\rotatebox[origin=c]{90}{Long word }}&\STAB{\rotatebox[origin=c]{90}{Long word l}}&
    \STAB{\rotatebox[origin=c]{90}{Long word }}&\STAB{\rotatebox[origin=c]{90}{Long word }}& \STAB{\rotatebox[origin=c]{90}{Long word }}&
    \STAB{\rotatebox[origin=c]{90}{Long word }}\\
    \hline

    \multirow{8}{*}{\STAB{\rotatebox[origin=c]{90}{Word}}}&\multirow{5}{*}{\STAB{\rotatebox[origin=c]{90}{Word}}}&\multirow{4}{*}{\STAB{\rotatebox[origin=c]{90}{Word}}}    &Long Text Tex&X&X&X&$<10$& &Long Text Tex\\\cline{4-10}
                                                                                    &&&Long Text Tex    &  &X& &$10-100$&X&Long Text Tex\\\cline{4-10}
                                                                                    &&&Long Text Tex&  &X& &$10-100$&X&Long Text Tex\\\cline{4-10}
                                                                                    &&&Long Text Tex&&X&X&$>200$&&Long Text Tex\\\cline{3-10}
                                                                                    &&\multirow{1}{*}{\STAB{\rotatebox[origin=c]{90}{Word}}}&Word&X&&X&$>100$&&Long Text Tex\\\cline{2-10}

        &\multirow{2}{*}{\STAB{\rotatebox[origin=c]{90}{Word}}}&\multirow{2}{*}{\STAB{\rotatebox[origin=c]{90}{Long Word}}}&Long Text Tex&X& & &$10-100$&X&Long Text Tex\\\cline{4-10}
                                                                                    &&&Long Text Tex&&X&&$>200$&&Long Text Tex\\\cline{2-10}
        &\multirow{1}{*}{\STAB{\rotatebox[origin=c]{90}{Word}}}&\multirow{1}{*}{\STAB{\rotatebox[origin=c]{90}{Long Word}}}&Long Text Tex&X&X&X&10-100&X&Nein\\
        \hline
        \multirow{4}{*}{\STAB{\rotatebox[origin=c]{90}{Word}}}&\multirow{4}{*}{\STAB{\rotatebox[origin=c]{90}{Word}}}&\multirow{4}{*}{\STAB{\rotatebox[origin=c]{90}{Wo}}}  &Long Text Tex      &X& &X&$<10$&X&Long Text Tex\\\cline{4-10}
                                                                                &&&Long Text Tex&X& &X&$10-100$&X&Long Text Tex\\\cline{4-10}       
                                                                                &&&Long Text Texn&X& &(X)&$<1$&&Long Text Tex\\\cline{4-10}
                                                                                &&&Long Text Text&X& &X&$10-100$&X&Long Text Tex\\
        \hline  
\end{tabular}
\end{table}

\end{document}

这导致了附加的图像

4

0 回答 0