我正试图将“test”垂直地放在第一列中,这是表的多行。守则如下:
\begin{table}[]
\tiny
\caption{a}
\begin{tabular}{|M{0.1in}|p{0.7in}|p{1.4in}|p{2in}|}
\hline
% after \\: \hline or \cline{col1-col2} \cline{col3-col4} ...
& \textbf{Factor Name} & \textbf{Explanation} & \textbf{Rationale} \\
\hline
\multirow{4}{*}{\rotatebox[origin=c]{90}{test}}& body1 &body2 &\multirow{2}{*}{\parbox{2in}{body3}} \\
\hhline{~--~}
& 1 & 2 \newline & \\
\hhline{~---}
& 3& 3 & \multirow{2}{*}{5} \\
\hhline{~--~}
& 6 & 7 & \\
\hhline{----}
\hline
\end{tabular}
\end{table}想不想这么做。
发布于 2016-11-12 07:14:44
test应该跨越5行,而不是4;包含1和2的行跨越在\multirow语句中应该容纳的两行:

\documentclass{article}
\usepackage{multirow,hhline,graphicx,array}
\newcolumntype{M}[1]{>{\centering\arraybackslash}m{#1}}
\begin{document}
\begin{tabular}{|M{0.1in}|p{0.7in}|p{1.4in}|p{2in}|}
\hline
% after \\: \hline or \cline{col1-col2} \cline{col3-col4} ...
& \textbf{Factor Name} & \textbf{Explanation} & \textbf{Rationale} \\
\hline
\multirow{5}{*}{\rotatebox[origin=c]{90}{test}}& body1 &body2 &\multirow{2}{*}{\parbox{2in}{body3}} \\
\hhline{~--~}
& 1 & 2 \newline & \\
\hhline{~---}
& 3 & 3 & \multirow{2}{*}{5} \\
\hhline{~--~}
& 6 & 7 & \\
\hhline{----}
\end{tabular}
\end{document}https://stackoverflow.com/questions/40519174
复制相似问题