我正在创建一个带有 mulitrow 的表,但我遇到了问题。据我了解,这是多行的形式:
\multirow{count}{alignment}{content}
其中 count 是要合并的行数,对齐方式是 l、c、r 或 *,content 是行的内容。我尝试了以下方法:
\multirow{3}{*}{Framing}
但我遇到了问题。我没有在单元格中看到“Framing”一词,而是看到“3*Framing”,这表明 \multirow 元素不起作用。任何的想法?
另外,如何垂直对齐单元格中的文本?
更新:我认为 \usepackage{multirow} 会解决它,但我仍然看到问题:首先,我无法进行垂直对齐。其次,我对“框架”单元格感到有些奇怪。我没有让“框架”向左对齐,而是得到一个包含字母“l”的虚拟行,然后在两个虚拟行之后,我得到了“框架”这个词!它是这样的:
______________
| l |
| |
| Framing |
| |
| |
| |
| |
______________
这是我为那些询问它的人准备的表:
\begin{table*}\tiny
\centering
\begin{tabular}{|c|c|c|c|c|p{2in}|}
\hline
Rule & Factor & Best Value & \Delta_t & \Delta_{do} & Comments \\
\hline
% Diagonal Dominance Rule
\multirow{3}{*}{Diagonal Dominance} & Line Angle & 45 & 15 & 30 & The angle between the prominent line of the object and
the diagonal lines \\ % TODO: What object? Make sure it is clear.
& Line Distance & 0 & 0.25 & 1 & The distance, in screen coordinates, from the
prominent line of the object to the diagonal lines. \\ % TODO: Need to define screen coordinates
& Corner Distances & 0 & 0.1 & 0.7 & The distance, in screen coordinates, from the
end of the prominent line of the object to the corners of the screen. \\
\hline
% Framing Rule
\multirow{4}{l}{Framing} & Left Distance & 0 & ${Frame Width}*5\%$ & ${Frame Width}*25\%$ & The distance between the
left side of the frame covering the object and the left or the right side of the intended frame, whichever closer. \\
& Right Distance & 0 & ${Frame Width}*5\%$ & ${Frame Width}*25\%$ & The distance between the
right side of the frame covering the object and the left or the right side of the intended frame, whichever closer. \\
& Top Distance & 0 & ${Frame Height}*5\%$ & ${Frame Height}*25\%$ & The distance between the
top side of the frame covering the object and the upper or the lower side of the intended frame, whichever closer. \\
& Bottom Distance & 0 & ${Frame Height}*5\%$ & ${Frame Height}*25\%$ & The distance between the
bottom side of the frame covering the object and the upper or the lower side of the intended frame, whichever closer. \\
\hline
\end{tabular}
\caption{The factors of each rule and their parameters.}
\label{table:factors}
\end{table*}
问候,
拉菲德