English 中文(简体)
晚:多功能问题
原标题:Latex: Problem with Multirow


I am creating a table with mulitrow but I am getting a problem. As far as I understand, this is the form of the multirow:

multirow{count}{alignment}{content}

在计算合并的行数时,校正为1、c、r或*,内容为行文内容。 我尝试如下:

multirow{3}{*}{Framing}

但是,我正在成为一个问题。 我看不到牢房里的“Framing”一词,而是看着“3*Framing”,这说明多功能元素是徒劳的。 任何想法?

此外,如何能纵向地调整一个单元的案文?

UPDATE: I thought the usepackage{multirow} would solve it, but I still see problems: First, I can t make vertical alignments. Second, I get some strange thing with the "Framing" cell. Instead of getting "Framing" aligned to the left, I get one virtual row containing the letter "l" and then after two virtual rows I get the word "Framing"!! It is something like this:

______________
|     l       |
|             |
|     Framing |
|             |
|             |
|             |
|             |
______________

这是我向那些询问情况的人提出的:

egin{table*}	iny
    centering
    egin{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*}

Regards,
Rafid

最佳回答
  1. 您在文件一开始,是否将<代码>------->------------------------------------------------------------

  2. 下面的例子可能很好。 我从未使用过这一包裹,但在很短的时间里(秒)通过权宜之计找到了这个标题。 遵循这一榜样是否有助于你?


<Update: 在看到你的实际桌子后,我怀着仇恨说话,但认为你的pac光是由于“意见”一栏中溢出的多线。 I你的评论和评论(第1栏现在按预期纵向集中):

egin{table*}	iny
  centering
  egin{tabular}{|c|c|c|c|c|p{3cm}|}
    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... \
                                        & Line Distance & 0 & 0.25 & 1 & The distance, in... \
                                        & Corner Distances & 0 & 0.1 & 0.7 & The distance, in... \
    hline

    % Framing Rule
    multirow{4}{*}{Framing} & Left Distance & 0 & ${Frame Width}*5\%$ & ${Frame Width}*25\%$ & The distance... \
                             & Right Distance & 0 & ${Frame Width}*5\%$ & ${Frame Width}*25\%$ & The distance... \
                             & Top Distance & 0 & ${Frame Height}*5\%$ & ${Frame Height}*25\%$ & The distance... \
                             & Bottom Distance & 0 & ${Frame Height}*5\%$ & ${Frame Height}*25\%$ & The distance... \
    hline
  end{tabular}

  caption{The factors of each rule and their parameters.}
  label{table:factors}

end{table*}

关于{l}的论点,我认为,我所显示的联系或许是错误的。 LaTeX在我试图用<代码>多字<>/代码>的1句代替时,给我留下一些错误。 我在试验桌上看到这一点:

! Missing number, treated as zero.
<to be read again> 
                   l
l.12 multirow{4}{l}{Batch}
                            & MM & Min-Min \
! Illegal unit of measure (pt inserted).
<to be read again> 
                   l
l.12 multirow{4}{l}{Batch}
                            & MM & Min-Min \

在找到THIS 之后,我想到multirow的第二个论点不是对调和,而是对宽恕。 连接LyX维基的意思是:

multirow{number of rows}{cell width}{cell entry}

我们先假定,{细胞湿度}是实际的1},我认为先前的联系使这种混淆。 See the note at the LyX wiki about spacing; You can use the following where need to make it do Hon.


enewcommand{multirowsetup}{centering}

必要时,将<条码>、<>、<>条码>或<条码>改为<条码>。 我仍然认为,你会再次陷入多方面的麻烦。 我至少要指出,对他们进行itch笑,使工作速度达到理想水平......如何迫使他们以你的缺省榜样为中心,我恐怕会超越我。 但也许现在你们知道问题在哪里?

我猜测,如果你真的真心希望你能够把你的刑期分开,看看它需要多少行,并相应地调整你的<条码>多字的论点,以便增加行文。 虽然你也可能需要一个加固的多功能结构:

|                   | item 1, 2 rows | comment 1 line 1              |
|  multirow, 4 rows |                | comment 1 line 2 (spill over) |
|                   | item 2, 2 rows | comment 2 line 1              |
|                   |                | comment 2 line 2 (spill over) |

这是否有意义? 第1栏将涵盖该款的所有各行,随后各行各行将跨越分立意见所需各行数,评论所需各行各行各行各行各行各行各行各行各行各行各行各行各行各行各行各行各行各行各行各行各行各。 但是,这句话的间隔不会看上去。

Nuff rambling。 你们的食物可以想象。


上一次更新: 实现这一目标的最后一种希望途径可能是用TikZ表格。 基本上,你的节点与“阁下”一样。 然后,就把他们聚集在一起,把它看上去。 也许可以提出令人憎恶的建议,但我向你保证,你有所需的一切灵活性,有点人满为患。 一些想法:

问题回答

Wild: 请重读<条码>未定义的控制序列:多功能,因为您在序言部分没有<条码>使用包装{多字<>/代码>?

是的,你需要<代码>多功能包。

usepackage{multirow}
egin{document}
egin{table}
centering
egin{tabular}{l||c|r}
Header 1 & Header 2 & Header 3 \
multirow{2}{*}{Hello} & stuff & stuff \
& Body 2 & Body 3
end{tabular}
end{table}
end{document}

EDIT经过its问: 我有两个错误:

  1. http://www.ohchr.org。 页: 1

  2. 改为$Delta_t$

否则,一切似乎都会被罚款。 您不妨请tex.stack Exchange.com





相关问题
Effective Version Control for Slides

I have to maintain a huge set of training material in forms of slides. At a first glance, I ve noticed there s no support for version control in OpenOffice OOImpress (but I might be wrong on this). ...

Maths in LaTex table of contents

I am trying to add a table of contents for my LaTex document. The issue I am having is that this line: subsubsection{The expectation of (X^2)} Causes an error in the file that contains the ...

Using vim s `gqap sometimes indents unusually

For the life of me, I cannot figure out the cause of this: when writing in LaTeX documents, I like to keep my line width to maximum of 80 characters. As such, I will execute the vim command gqap and ...

aligning math equations in Latex

I am trying to align the following equations around the equal sign. What can I do? Thanks! I am using the AMSMath package $$mddot{x}_{1}-K(x_{2}+x_{12})+C(dot{x}_{12}+dot{x}_{2})+2Cdot{x}_{1} ...

LaTeX output does not update

I have just begun using LaTeX. I am working in Windows and am using TeXnicCenter as my editor. When I build and output, having the following code: documentclass{article} egin{document} This is a ...

How to put line break in a math

I d like to express the following sentence (source_location is also italic, it s not correctly rendered): Each entry has a list of tuple: < source_location, R/W, trip_counter, occurrence, killed ...

热门标签