Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>1) Did you put <code>\usepackage{multirow}</code> at the beginning of your document?</p> <p>2) There are probably good examples out there to follow. I've never used this package but in a short time (seconds) was able to find this <a href="http://andrewjpage.com/index.php?/archives/43-Multirow-and-multicolumn-spanning-with-latex-tables.html" rel="nofollow">PAGE</a> via google. Does following along with that example help you?</p> <hr> <p><b>Update:</b> after seeing your actual table, I hate to say it but think your spacing glitch is due to the spill over in the "comments" column into multiple lines. I truncated your comments and got this (column 1 is now vertically centered as desired):</p> <pre><code>\begin{table*}\tiny \centering \begin{tabular}{|c|c|c|c|c|p{3cm}|} \hline Rule &amp; Factor &amp; Best Value &amp; \Delta_t &amp; \Delta_{do} &amp; Comments \\ \hline % Diagonal Dominance Rule \multirow{3}{*}{Diagonal Dominance} &amp; Line Angle &amp; 45 &amp; 15 &amp; 30 &amp; The angle between... \\ &amp; Line Distance &amp; 0 &amp; 0.25 &amp; 1 &amp; The distance, in... \\ &amp; Corner Distances &amp; 0 &amp; 0.1 &amp; 0.7 &amp; The distance, in... \\ \hline % Framing Rule \multirow{4}{*}{Framing} &amp; Left Distance &amp; 0 &amp; ${Frame Width}*5\%$ &amp; ${Frame Width}*25\%$ &amp; The distance... \\ &amp; Right Distance &amp; 0 &amp; ${Frame Width}*5\%$ &amp; ${Frame Width}*25\%$ &amp; The distance... \\ &amp; Top Distance &amp; 0 &amp; ${Frame Height}*5\%$ &amp; ${Frame Height}*25\%$ &amp; The distance... \\ &amp; Bottom Distance &amp; 0 &amp; ${Frame Height}*5\%$ &amp; ${Frame Height}*25\%$ &amp; The distance... \\ \hline \end{tabular} \caption{The factors of each rule and their parameters.} \label{table:factors} \end{table*} </code></pre> <p>Regarding the {l} argument, I think the link I posted originally is perhaps wrong. LaTeX spits out some errors for me when I try replacing * with l for the <code>\multirow</code> argument. I get this on a test table:</p> <pre><code>! Missing number, treated as zero. &lt;to be read again&gt; l l.12 \multirow{4}{l}{Batch} &amp; MM &amp; Min-Min \\ ! Illegal unit of measure (pt inserted). &lt;to be read again&gt; l l.12 \multirow{4}{l}{Batch} &amp; MM &amp; Min-Min \\ </code></pre> <p>After finding <a href="http://wiki.lyx.org/LyX/Tables#toc3" rel="nofollow">THIS</a>, I think the second argument in <code>\multirow</code> is not for an alignment but for a width. The LyX wiki linked says the format is like so:</p> <pre><code>\multirow{number of rows}{cell width}{cell entry} </code></pre> <p>We've been assuming that {cell width} was actuall {alignment} and I think the link from earlier makes that confusing. See the note at the LyX wiki about spacing; you can use the following where needed to make it do your bidding:</p> <pre><code>\renewcommand{\multirowsetup}{\centering} </code></pre> <p>And replace <code>\centering</code> with <code>\raggedleft</code> or <code>\raggedright</code> where needed. I still think you're going to run into trouble with the multiple lines. I've at least shown that ditching them makes the spacing work as desired... how to force them to be centered with your default example is beyond me, I'm afraid. But perhaps now you know where the problem lies?</p> <p>I guess if you really, really, really wanted to you could split your sentence up, figure out how many rows it takes, and adjust your <code>\multirow</code> argument accordingly for the increase in rows. Though you'd also probably need a nested multirow structure:</p> <pre><code>| | 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) | </code></pre> <p>Does that make sense? Column 1 would span all rows for its section, subsequent rows would span the number of rows required by the split up comments, and each line needed by the comments (some take up 3 or 4) would be on their own separate lines and just appear to be continuous. Not sure if the sentence spacing would look weird, though.</p> <p>Nuff rambling. There's your food for thought.</p> <hr> <p><b>One Last Update:</b> One last hope way to go about this might be with TikZ tables. Essentially, your nodes are like "cells." Then just put them together and make it look like a table. Perhaps a horrible proposal, but I assure you that you'll have all the flexibility you need with cell spacing and such. Some ideas:</p> <ul> <li><a href="http://texblog.net/latex-archive/graphics/tikz-table/" rel="nofollow">Fancy Tables 1</a></li> <li><a href="http://texblog.net/latex-archive/graphics/more-tikz-tables/" rel="nofollow">Fancy Tables 2</a></li> <li><a href="http://www.texample.net/tikz/examples/periodic-table-of-chemical-elements/" rel="nofollow">Periodic table in TikZ</a> which might give you some insight about how to do this a bit better than the first two?</li> </ul>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload