我有一张大表格,前两个单元格是多行单元格,横跨整个表格的高度。它们没有正确居中,而是居中在表格的顶部,这种行为让我完全困惑。
\documentclass{book}
\usepackage{multirow} % Layout options - tables
\usepackage{tabularx,ragged2e,booktabs,caption} % Layout options - tables
\usepackage{rotating} % Rotate objects
\usepackage{array} % formatting tables fix
\newcolumntype{C}[1]{>{\raggedright\arraybackslash}p{#1}} % formatting tables fix
\begin{document}
\setlength{\extrarowheight}{5pt}
\begin{tabular}{m{5mm} m{5mm}| p{25mm} p{5mm} p{55mm}}\toprule[1.5pt]
\multirow{8}{5mm}{\rotatebox[origin=c]{90}{Uncentered text and arrow}} & \multirow{8}{5mm}{$\downarrow$} & A B C & \multicolumn{2}{C{60mm}}{It may be that the primal source of all}\\
&&\hspace*{10mm}\underbar{D} \newline \newline $ \hspace*{20mm}\nwarrow$ & \multicolumn{2}{C{60mm}}{those pictorial delusions will be found }\\
&&& \multicolumn{2}{C{60mm}}{among the oldest Hindoo, Egyptian, and }\\
&& E& \multicolumn{2}{C{60mm}}{Grecian sculptures. For ever since those }\\
&& F,G,\newline H \newline I,J & $\downarrow$ & inventive but unscrupulous times when on the\\
&& K & $\leftarrow$ & marble panellings of temples, the pedestals\\
&&L& &\\
&& \multicolumn{3}{C{90mm}}{ of statues, and on shields, medallions, cups, and coins, the dolphin was drawn in scales of chain-armor like Saladin's, and a helmeted head like St. George's; ever since then has something of the same sort of license prevailed, not only in most popular pictures of the whale, but in many scientific presentations of him. }\\
\bottomrule[1.5pt]
\end {tabular}
\end{document}
它看起来是这样的:
所以,我的问题是,为什么它居中较高,我该如何解决这个问题?
谢谢
答案1
这不是一个正确的修复,但是手动调整你得到的第一个可选参数\multirow
:
代码:
\documentclass{book}
\usepackage{multirow} % Layout options - tables
\usepackage{tabularx,ragged2e,booktabs,caption} % Layout options - tables
\usepackage{rotating} % Rotate objects
\usepackage{array} % formatting tables fix
\newcolumntype{C}[1]{>{\raggedright\arraybackslash}p{#1}} % formatting tables fix
\begin{document}
\setlength{\extrarowheight}{5pt}
\begin{tabular}{m{5mm} m{5mm}| p{25mm} p{5mm} p{55mm}}\toprule[1.5pt]
\multirow{8}[50]{5mm}{\rotatebox[origin=c]{90}{Uncentered text and arrow}} & \multirow{8}[50]{5mm}{$\downarrow$} & A B C & \multicolumn{2}{C{60mm}}{It may be that the primal source of all}\\
&&\hspace*{10mm}\underbar{D} \newline \newline $ \hspace*{20mm}\nwarrow$ & \multicolumn{2}{C{60mm}}{those pictorial delusions will be found }\\
&&& \multicolumn{2}{C{60mm}}{among the oldest Hindoo, Egyptian, and }\\
&& E& \multicolumn{2}{C{60mm}}{Grecian sculptures. For ever since those }\\
&& F,G,\newline H \newline I,J & $\downarrow$ & inventive but unscrupulous times when on the\\
&& K & $\leftarrow$ & marble panellings of temples, the pedestals\\
&&L& &\\
&& \multicolumn{3}{C{90mm}}{ of statues, and on shields, medallions, cups, and coins, the dolphin was drawn in scales of chain-armor like Saladin's, and a helmeted head like St. George's; ever since then has something of the same sort of license prevailed, not only in most popular pictures of the whale, but in many scientific presentations of him. }\\
\bottomrule[1.5pt]
\end {tabular}
\end{document}