我正在用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