我正在用mulitrow创建一个表格,但我遇到了问题。据我明白了,这是多行的形式:乳胶:Multirow问题
\multirow{count}{alignment}{content}
其中计数的行合并的数量,取向要么L,C,R,或*和含量的含量行。我试过以下内容:
\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*}
问候,
Rafid
如何写出好问题:请写下“我收到错误”,请告诉我们*您收到哪个*错误。 – Heinzi 2010-11-16 20:37:23
在您引用的陈述后面解释:“我没有看到单元格中的”成帧“这个词,而是看到”3 * Framing“,这表明\ multirow元素不起作用。”对不起,可能这里的“错误”这个词是不准确的。没有编译错误,只是输出错误。如果你喜欢,可以称之为“问题”。 – Rafid 2010-11-16 20:40:08
啊,好的,谢谢澄清。 – Heinzi 2010-11-16 20:43:16