during my work with Latex I encountered a problem with my tables. As you can see in the following MWE, theses tables sometimes have rows witch contain cells with multiple lines. Those rows have less distance to the following row than a row with only one-line cells. I have to use the tabu package because of its flexible columnwidth handling.R  \documentclass[10pt]{scrbook}  \usepackage{tabu} \usepackage{booktabs}  \begin{document}  \begin{table}[H] \begin{tabu} to \linewidth{lX[10000]} \toprule  \textbf{Name} &amp; \textbf{Description} \\ \toprule Row one &amp; Lorem ipsum dolor sit amet, consectetuer adipiscing elit.\\ Row two &amp; Ut purus elit, vestibulum ut, placerat ac, adipiscing vitae, felis.\\ Row three &amp; Donec vehicula augue eu neque. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.\\ Last row &amp; One last row.\\ \bottomrule \end{tabu} \caption{MWE} \end{table}  \end{document}   Compiled it looks like this:    I tried several solutions, I found during my search in this community and the whole www containing one or a combination of these commands:    \linespread{0.5} with \rmfamily or \selectfont renewcommand{\arraystretch}{1.2} \setlength{\extrarowheight}{2.5mm} &gt;{\setlength{\baselineskip}{0.75\baselineskip}} between l and X in the \linewidth{lX[10000]} command   Now I hope anybody can help me to solve this.  Best regards, Gwedhwen
115509
Consider the following table example, the text in the second row is wrapped.  \documentclass[a4paper]{article}  \usepackage[english]{babel} \usepackage[utf8x]{inputenc} \usepackage{tabu} \usepackage{booktabs}  \usepackage{array} \setlength{\extrarowheight}{5pt}  \begin{document}    \begin{tabu} to \linewidth {X[.5,c] X[1,l] X[1,l] X[2,l]}     \toprule     \rowfont{\bfseries}     Row &amp; Head 1                   &amp; Head 2 &amp; Head 3 \\\hline     1.  &amp; short text               &amp; ? &amp; ? \\\hline     2.  &amp; long long long long text &amp; ? &amp; ? \\\hline     3.  &amp; short text               &amp; ? &amp; ? \\\hline     4.  &amp; short text               &amp; ? &amp; ? \\     \bottomrule   \end{tabu}  \end{document}   It renders like:    Why is there so little space between the text in the second row and the rule below it?  How can I fix it?  What comes to my mind is to use \\[1ex] instead of \\, is there a better solution?
83635
I'm writing a short tabular CV that I have to add to my thesis. I thought a quick way would be to use a table for that purpose:  \begin{tabular}{ll} 2009-present           &amp; very long text 1, very long text 2, very long text 3 , very long text 4, very long text 5, very long text 6, very long text 7, very long text 8, very long text 9, very long text 10\\ 2009  &amp; Masters\\ 2006  &amp; Bachelors\\ \end{tabular}   Unfortunately, LaTeX does not break the lines at the spaces. The only solutions I found so far, are   "adding additional rows to the table" "use fixed table size + \newline".   Manually adjusting texts is not very efficient.  Is there also a way to automate this (e.g. by define a cell/column as "text-cell/column")?  \begin{tabular}{lp{12cm}} 2009-present           &amp; very long text 1, very long text 2, very long text 3 , very long text 4, very long text 5, very long text 6, very long text 7, very long text 8, very long text 9, very long text 10\\ 2009  &amp; Masters\\ 2006  &amp; Bachelors\\ \end{tabular}   Could be a solution, but the right column does not automatically reach the right "border" of the page.
108696
I notice that the space between each column of a table in LaTeX is not quite wide (at least for me). Is there any way to set this? I found the \hspace, but I don't get how to use this in the table.
77160
I want to have my tables fill the entire width of the page (i.e., \textwidth). So far, the only thing I've managed to come up with is:  \renewcommand{\tabcolsep}{4.4pt}   By manually trying different values, I can eventually get the table to spread out and fill the space. However, this is tedious as I have a lot of tables.  I tried the tabularx package:  \begin{tabularx}{\columnwidth}{ r r r r r r r } \toprule &amp; $z_{6}$ &amp; $z_{8}$ &amp; $z_{9}$ &amp; $z_{11}$ &amp; $z_{13}$ &amp; $z_{14}$ \\ \midrule fileA &amp; 0.00 &amp; 0.00 &amp; 0.00 &amp; 0.08 &amp; 0.79 &amp; 0.08  \\ fileB &amp; 0.01 &amp; 0.00 &amp; 0.13 &amp; 0.00 &amp; 0.84 &amp; 0.00  \\ fileC &amp; 0.00 &amp; 0.39 &amp; 0.02 &amp; 0.49 &amp; 0.00 &amp; 0.00  \\ fileD &amp; 0.75 &amp; 0.08 &amp; 0.00 &amp; 0.00 &amp; 0.00 &amp; 0.00  \\ \bottomrule                              \end{tabularx}   However, this still relies on the \tabcolsep value. (If the value is small, all the columns will still be close; if it's large, the columns will be more spread out.) What I'm looking for is an automatic solution for two things:   the table to take the entire width of the page; and each column to be evenly spaced along the horizontal.   tabularx only does (1). How can I get (2)?
10846
I have a table that is just a little too wide for a 3.33" column. Is there a way to simply shrink the table a little to make it fit? I'm OK if the 10pt font becomes 9pt-something. Here is an example.  \begin{table} \centering \begin{tabular}{r|lll} \multicolumn{1}{r}{} &amp; \multicolumn{1}{l}{Heading 1} &amp; \multicolumn{1}{l}{Heading 2} &amp; \multicolumn{1}{l}{Heading 3} \\ \cline{2-4} Row 1 &amp; Cell 1,1 &amp; Cell 1,2 &amp; Cell 1,3 \\ Row 2 &amp; Cell 2,1 &amp; Cell 2,2 &amp; Cell 2,3 \end{tabular} \end{table}
70420
I'm trying to make a longtable that is wider than the textwidth at a certain moment. I've tried different things always ending up with a different problem:  First possibility: If I use the adjustwidth environment the longtabu does not align correctly. The left margin stays fixed and the right margin gets out of the page. This in contrast, if I do the exact same thing to make a tabu (instead of longtabu), it works perfectly. I think using the adjustwidth is the best way to go, but I can't manage to get it working.  Second possibility: I've found a solution using the fullwidth package. That package does the trick on small longtables, but freezes when I'm trying to do it on my big longtable. The command \setlength\LTleft{-2cm} didn't work as well.  The final option I tried was to use geometry. But that changes the margin of the whole page thus making a page break which I'm not interested in. The code I used for this was  \newgeometry{left=1.2cm} \begin{longtable} long table stuff \end{longtable} \restoregeometry   Here's an example of what I want contra what I get  \documentclass[a4paper]{article} \usepackage{longtable} \usepackage{chngpage} \usepackage{lipsum} \usepackage{tabu}  \begin{document} \section{This is the original textwidth.} \lipsum[1]  \section{This is the width I need for my longtabu} \begin{adjustwidth}{-1in}{-1in} \begin{tabu} to \linewidth {*{13}{|X[l]} |} 01 &amp; 02 &amp; 03 &amp; 04 &amp; 05 &amp; 06 &amp; 07 &amp; 08 &amp; 09 &amp; 10 &amp; 11 &amp; 12 &amp; 13 \\ 01 &amp; 02 &amp; 03 &amp; 04 &amp; 05 &amp; 06 &amp; 07 &amp; 08 &amp; 09 &amp; 10 &amp; 11 &amp; 12 &amp; 13 \\ 01 &amp; 02 &amp; 03 &amp; 04 &amp; 05 &amp; 06 &amp; 07 &amp; 08 &amp; 09 &amp; 10 &amp; 11 &amp; 12 &amp; 13 \\ 01 &amp; 02 &amp; 03 &amp; 04 &amp; 05 &amp; 06 &amp; 07 &amp; 08 &amp; 09 &amp; 10 &amp; 11 &amp; 12 &amp; 13 \\ \end{tabu} \end{adjustwidth}  \section{This is what happens} \begin{adjustwidth}{-1in}{-1in} \begin{longtabu} to \linewidth {*{13}{|X[l]} |} 01 &amp; 02 &amp; 03 &amp; 04 &amp; 05 &amp; 06 &amp; 07 &amp; 08 &amp; 09 &amp; 10 &amp; 11 &amp; 12 &amp; 13 \\ 01 &amp; 02 &amp; 03 &amp; 04 &amp; 05 &amp; 06 &amp; 07 &amp; 08 &amp; 09 &amp; 10 &amp; 11 &amp; 12 &amp; 13 \\ 01 &amp; 02 &amp; 03 &amp; 04 &amp; 05 &amp; 06 &amp; 07 &amp; 08 &amp; 09 &amp; 10 &amp; 11 &amp; 12 &amp; 13 \\ 01 &amp; 02 &amp; 03 &amp; 04 &amp; 05 &amp; 06 &amp; 07 &amp; 08 &amp; 09 &amp; 10 &amp; 11 &amp; 12 &amp; 13 \\ \end{longtabu} \end{adjustwidth}  \end{document}
49533
I am trying to produce a basic color table as shown below  \documentclass{article}  \usepackage{booktabs}  \usepackage[dvipsnames*,svgnames]{xcolor}  \usepackage{colortbl}  \usepackage{array}  \begin{document}  \begin{table} \centering \setlength{\aboverulesep}{0pt} \setlength{\belowrulesep}{0pt} \setlength{\extrarowheight}{.75ex} \begin{tabular}{|&gt;{\columncolor{LightSteelBlue}}c| c | c | c|} \toprule  \rowcolor{LightSteelBlue}  &amp; {Mann} &amp; {Kvinne} &amp; {Totalt} \\   \rowcolor{LightSteelBlue}  &amp;        &amp;          &amp;        \\ \midrule  \O nsker        &amp;      &amp;        &amp;        \\   Ballbinge       &amp;      &amp;        &amp;        \\ \midrule  \O nsker ikke   &amp;      &amp;        &amp;        \\   Ballbinge       &amp;      &amp;        &amp;        \\ \midrule  Totalt          &amp;      &amp;        &amp;        \\                   &amp;      &amp;        &amp;        \\   \bottomrule \end{tabular} \end{table} \end{document}   Now I wanted to center the text in the first row, and column, inside their boxes. My first thought was to use \multirows, alas this produces some very ugly results. The text is hidden behind the colors.  What is the proper way to create the table above, with centered text?  (Any other comments about how to improve the looks of the table are also welcome)
6523
I am trying to achieve a table where a few things have to work simultaneously. Several of these things have been discussed before, but I have been unable to make everything work at once (and some things at all).  I want to be able to use different font sizes in cells on the same row, and have them precisely aligned at the top. That has almost been achieved in the MWE below, but the letters of the smaller font are slightly below the letters of the larger font. (Previous discussion: , but the alignment is only close, not perfect.)  Edit: The top alignment should be for the maximum height of the font used, so that an 'a' ends up at the same height whether it is written by itself or followed by a tall letter, such as an 'l' (or, if the small 'b' next to the big 'B' in the example below is changed for a small 'a', the 'a' should not jump up to the ceiling.  I also want to be able to insert several rows of text with forced line breaks within a cell of the table, and those rows need to have the same spacing between them as normal text has. That has been achieved by nesting another table in a cell in the MWE below.  In addition, I want to be able to use \hfill to put something out in the right margin from within the nested table, which works in the MWE.  Further, the margins on the top, bottom and sides of the table should be zero, so that only the page margins determine the amount of white space around the table (as it is now, there is even a difference between the right and left margins -- although the margins were for some reason adjusted when I uploaded the pdf below, it is visible if you compile the code and look at the pdf directly).  Lastly, I would like to get rid of all automatic spacing between cells, and then define my own spacing. Preferably, I would like to be able to define the vertical spacing between cells in terms of line heights (for lines of the size that I specify for normal text, so 11pt in the example below), while the units of horizontal spacing would preferably be defined in terms of "the width of an 'm'", or something like that.  \documentclass[paper=a4,fontsize=11pt]{scrartcl} % KOMA-article class \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[english]{babel} % English language/hyphenation \usepackage{geometry} \usepackage{tabu} \usepackage{lipsum}  \pagestyle{empty} % No pagenumbers/headers/footers  \newcolumntype{V}{&gt;{\vspace{0pt}}p}  \begin{document} \begin{tabular} [t]{@{}V{0.2\columnwidth}V{0.8\columnwidth}} % @{} is used to remove the margins from cells \Huge\textbf A &amp; \begin{tabular}[t]{@{}p{0.8\columnwidth}} Lorem ipsum \hfill right-aligned\\ sem.\\ Lorem\\ ipsum \end{tabular} \\  \Huge\textbf B &amp; b \\  \Huge\textbf C &amp; \lipsum*[1] \\  \end{tabular} \end{document}     Edit 2013-03-25: I tried a different approach (with minipages) and asked a question: . As of writing this, I have one answer that is similar to the accepted answer below. It achieves correct spacing, but is limited to different sizes in the left column (if one wants to use \hfill in the right column), and the top alignment for the \Huge text is not perfect.  Edit 2013-03-25: I got an answer in the thread  where \strut was used to add space, and \vphantom{Qp} (adds the vertical space of what is written in the braces(Qp in this example)). That could most likely be used here to, to get the correct spacing between cells even if only short letters or letters that do not protrude downwards are used.
107924
I'm trying to get an equation go to a new line in a table, in latex.  Basically I want it look something like this:    column 1         column 2               column 3 (equation)          (text)               (equation)    A+B+C           quite long text         A+B+C,  A=B+C,                   that gets split up              B=D-G                   as you write    B+G+H+J         more long text that    A+Y+J+K, A=F+G+L                   that wraps around               F=B-R+H+L  [other equation]   [more long text]      A+F+H [&lt;- only this equation]   The specific format I'm looking to make is that of the one in column 3, where the 3rd equation is directly under the 2nd equation.   However only in certain rows like row 1 and 2. Row 3 just has a single equation, that doesn't need to take that format.   I'm doing this because certain lines are too long and go off the end of the page. And I to want to split it up, column 1 is just 1 long equation which I can't split up. Column 2 is just text, and I've found a way to wrap it around quiet nicely. Column 3 however consists of either 1, 2, or 3 different equations, and I want to bring an equation down to the next line, but in the format I need, equation 3 below 2.   I've tried using the format of column 2, in column 3, messes up all my equations in the other rows of the table.  Any help would be appreciated, my code and a picture of how my current pdf looks, is below:   \documentclass[10pt,a4paper]{article} \setlength{\abovecaptionskip}{5mm} \usepackage{array} \newcolumntype{L}{&gt;{\centering}m{5cm}} \newcolumntype{j}m{5cm}} \setlength{\extrarowheight}{2.5mm} \usepackage{amsmath} \usepackage{multicol} \usepackage{float} \usepackage{longtable}  ~ all preamble ~  \begin{Document}  ...  ...  \renewcommand{\arraystretch}{1.7}  \begin{longtable}{ l L l }  $\overline{X} \cdotp Y \cdotp Z + \overline{X \cdotp \overline{Y} \cdotp  \overline{Z} + X \cdotp Y \cdotp Z} $ &amp;   Use De Morgan's law [OR to AND] &amp;   $ \overline{A+B} = \overline{A} \cdotp \overline{B}, $  $ \quad A = X \cdotp \overline{Y} \cdotp \overline{Z}, $ $\quad B = X \cdotp Y \cdotp Z $ \\\  ...  more similiar rows  ...  \end{longtable}  \end{document}
101585
I'm trying to include a tabu inside a new definition of an environment but it fails if the postamble (enddef) of the new environment includes tabu's contents, so cells. With tabular or tabular* works. The error is:   ! Missing number, treated as zero. \tabu@0.H5   The MWE:  \documentclass{article} \usepackage{tabu} \newenvironment{testt} {\begin{tabu} to \textwidth{cccc}  11 &amp; 12 &amp; 13 &amp; 14 \\  21 &amp; 22 &amp; 23 &amp; 24 \\} {  41 &amp; 42 &amp; 43 &amp; 44 \end{tabu} }  \begin{document}  \begin{testt}  31 &amp; 32 &amp; 33 &amp; 34 \\ \end{testt} \end{document}   How to solve this?
54409
I had tried to increase the number from 2 to 4 where I need 4 lines  \multirow{4}{*}{\thead{Pair number \\ (Class 11 sample sample \&amp; \\ Class 22 sample sample \\ Reference X sample sample)}} &amp;      \documentclass[12pt,oneside]{book}  \usepackage[showframe]{geometry} \usepackage{amsmath} \usepackage{ragged2e} \usepackage{makecell, multirow, tabularx} \renewcommand\theadfont{\small\bfseries} % for bold in table using \small \renewcommand\theadgape{} \usepackage[svgnames, table]{xcolor} \usepackage{hhline, boldline} \usepackage{seqsplit, caption} %for table spacing to second row \usepackage{booktabs, ragged2e} % Use booktabs rules and get rid of vertical rules, ragged2e to ragged text \usepackage{siunitx} %for table spacing to second row \usepackage{threeparttable} %to add footnote below table \usepackage{tabulary} \usepackage{graphicx}  \usepackage[font=small,labelfont={bf,sf}, textfont={sf}, justification=centering]{caption}  \begin{document}   \begin{table}[h!] \centering \sisetup{table-format=3.0, table-number-alignment=center, table-column-width=2.0cm}  \begin{tabular}{lrr}     \toprule      \multirow{4}{*}{\thead{Pair number \\ (Class 11 sample sample \&amp; \\ Class 22 sample sample \\ Reference X sample sample)}} &amp;  \multicolumn{2}{c}{\thead{\makebox[0pt]{Accuracy Accu Accuracy (\%)}}}\\ \cmidrule{2-3}     &amp;{\textbf{Accuracy}}      &amp; {\textbf{Inaccuracy}} \\      \midrule     Pair 11 (A8 \&amp; B35) &amp; 0  &amp;   0 \\     Pair 12 (A10 \&amp; B42) &amp; 0   &amp;  0 \\     Pair 13 (A8 \&amp; B32) &amp; 0   &amp;  0 \\         \bottomrule     \end{tabular} \end{table}   \end{document}
91178
How to define a formatting to use for (individual) rows of a table?  Example: (For each row) the first column is always bold, and the second column has an italic "title" and some text and possibly something more (e.g. a list). After each row I want to add some additional vertical space. Like so:  \documentclass[a4paper, 10pt]{scrartcl}  \begin{document}   \begin{tabular*}{\textwidth}{p{0.4\textwidth}@{}p{0.6\textwidth}@{}}       \textbf{1st column entry, row 1} &amp;  \textit{2nd column title} -- 2nd column entry, row 1                                          \begin{itemize}                                             \item{some list}                                             \item{items here}                                         \end{itemize} \\     \multicolumn{2}{c}{\vspace{2.0em}} \\     \textbf{1st column entry, row 2} &amp;  \textit{2nd column title} -- 2nd column entry, row 2                                         \newline (maybe only a note here) \\     \multicolumn{2}{c}{\vspace{2.0em}} \\   \end{tabular*} \end{document}   For a large document with a lot of these tables, it is quite tedious to write all of these formatting commands. What I would like to do is to define a \newenvironment such that each row of the table can be entered like this  \begin{TableRow}{1st column entry}{2nd column title}{2nd column entry}   %more stuff here, like, e.g., a list:   \begin{itemize}     \item{some}     \item{items}   \end{itemize} \end{TableRow}   Note that I want to define the layout just for the text of the rows. Such that I can use the environment in each 2-column table, regardless of the column-widths.  This is my non-working attempt so far:  \documentclass[a4paper, 10pt]{scrartcl}  \newenvironment{TableRow}[3] {   \textbf{#1} &amp; \textit{#2} -- #3 } {   \\   \multicolumn{2}{c}{\vspace{2.0em}} \\ }  \begin{document}   \begin{tabular*}{\textwidth}{p{0.4\textwidth}@{}p{0.6\textwidth}@{}}       \begin{TableRow}{1st column entry, row 1}{2nd column title}{2nd column entry, row 1}       \begin{itemize}         \item{some}         \item{items}       \end{itemize} \\     \end{TableRow}      \begin{TableRow}{1st column entry, row 2}{2nd column title}{2nd column entry, row 2}         \newline (maybe only a note here) \\     \end{TableRow}    \end{tabular*} \end{document}   In my minimal example, there are 24 errors, the first of which is "! Extra } or forgotten \endgroup".  (I suspect, that the 2nd block of my \newenvironment definition is also faulty ("\\"?) but I also get this error, when I leave the 2nd block empty.)
102848
I'm trying to make a longtabu that is wider than the textwidth at a certain moment. I've tried different things always ending up with a different problem:  First possibility: If I use the adjustwidth environment the longtabu does not align correctly. The left margin stays fixed and the right margin gets out of the page. This in contrast, if I do the exact same thing to make a tabu(instead of longtabu), it works perfectly. I think using the adjustwidth is the best way to go, but I can't manage to get it working.  Second possibility: I've found a solution using the fullwidth package. That package does the trick, but using endhead and endfirsthead is completely ignored. So it does not help me either, because I need that.  Final possibility: Using the geometry package does the trick, but that package adds a pagebreak when I start using it, I can't have that. It has to be directly under some text, which has a narrower textwidth.  Cheers.  I add a little example:  \documentclass[a4paper]{article} \usepackage{longtable} \usepackage{chngpage} \usepackage{lipsum} \usepackage{tabu}  \begin{document} \section{This is the original textwidth.} \lipsum[1]  \section{This is the width I need for my longtabu} \begin{adjustwidth}{-1in}{-1in}     \begin{tabu} to \linewidth {*{13}{|X[l]} |}     01 &amp; 02 &amp; 03 &amp; 04 &amp; 05 &amp; 06 &amp; 07 &amp; 08 &amp; 09 &amp; 10 &amp; 11 &amp; 12 &amp; 13 \\     01 &amp; 02 &amp; 03 &amp; 04 &amp; 05 &amp; 06 &amp; 07 &amp; 08 &amp; 09 &amp; 10 &amp; 11 &amp; 12 &amp; 13 \\     01 &amp; 02 &amp; 03 &amp; 04 &amp; 05 &amp; 06 &amp; 07 &amp; 08 &amp; 09 &amp; 10 &amp; 11 &amp; 12 &amp; 13 \\     01 &amp; 02 &amp; 03 &amp; 04 &amp; 05 &amp; 06 &amp; 07 &amp; 08 &amp; 09 &amp; 10 &amp; 11 &amp; 12 &amp; 13 \\    \end{tabu} \end{adjustwidth}  \section{This is what happens} \begin{adjustwidth}{-1in}{-1in}     \begin{longtabu} to \linewidth {*{13}{|X[l]} |}     01 &amp; 02 &amp; 03 &amp; 04 &amp; 05 &amp; 06 &amp; 07 &amp; 08 &amp; 09 &amp; 10 &amp; 11 &amp; 12 &amp; 13 \\     01 &amp; 02 &amp; 03 &amp; 04 &amp; 05 &amp; 06 &amp; 07 &amp; 08 &amp; 09 &amp; 10 &amp; 11 &amp; 12 &amp; 13 \\     01 &amp; 02 &amp; 03 &amp; 04 &amp; 05 &amp; 06 &amp; 07 &amp; 08 &amp; 09 &amp; 10 &amp; 11 &amp; 12 &amp; 13 \\     01 &amp; 02 &amp; 03 &amp; 04 &amp; 05 &amp; 06 &amp; 07 &amp; 08 &amp; 09 &amp; 10 &amp; 11 &amp; 12 &amp; 13 \\     \end{longtabu} \end{adjustwidth}  \end{document}
7462
The table that I'd like to make does not display fractions with enough space between lines. What's the reasoning for this? (Not enough rep to be able to post a picture yet unfortunately.)  \documentclass{article} \usepackage{amsmath,amsfonts} \usepackage{booktabs}  \begin{document} \begin{table} \centering \begin{tabular}{lcccc} \toprule \textbf{Care type} &amp; $\mathbb{P}(Pat \cap H)$ &amp; $\mathbb{P}(Pat \cap H')$ &amp; $\mathbb{P}(Pat' \cap H)$ &amp; $\mathbb{P}(Pat' \cap H')$\\ \midrule Direct care  &amp;$\displaystyle \dfrac{58}{197}$  &amp;  $\displaystyle \dfrac{48}{197}$  &amp; $\displaystyle \dfrac{21}{197}$* &amp;$1-\displaystyle \dfrac{58}{197}$ \\ Housekeeping &amp;$\displaystyle \dfrac{12}{17}$  &amp;  $\displaystyle \dfrac{2}{17}$  &amp; $\displaystyle \dfrac{5}{17}$* &amp;$1-\displaystyle \dfrac{12}{17}$\\ \bottomrule \end{tabular} \caption{Probabilities of hand hygiene given direct patient contact} \label{tab:handwash_given_pat} \end{table} \end{document}   Edit: Image added and MWE completed.
9251
Unfortunatly, I have a problem with m-columns (array package) in tables with adjusted row height. Somehow in the last column (only there) the text is not centered vertically.  Check it out:    \documentclass{article} \usepackage{array}  \begin{document}  \begin{tabular}{|m{0.18cm}|m{0.18cm}|m{0.18cm}|} \hline a &amp; b &amp; c  \\[2ex] \hline 0 &amp; 0 &amp; 0  \\ \hline \end{tabular}  \end{document}
19710
I am new to Latex and I have tried to create a table but it seems not to work correctly - the vertical line is missed. Here is the code:  \begin{table*}[t]   \centering   \begin{center}    \begin{tabular}{|r|l|c|c|c|}     \hline &amp;&amp;\multicolumn{3}{c}{\bf Results}\\     \hline\bf Nr.&amp; \bf Features&amp;\bf Strict &amp;\bf Outer &amp;\bf Inner\\ \hline     1&amp;Morphological F.&amp;100.00&amp;100.00&amp;100.00\\     2&amp;1 + Bla &amp;100.00&amp;100.00&amp;100.00\\     3&amp;2 + Blabla&amp;100.00&amp;100.00&amp;100.00\\     4&amp;3 + blablabla&amp;100.00&amp;100.00&amp;100.00\\     5&amp;4 + blablablabla&amp;100.00&amp;100.00&amp;100.00\\     \hline    \end{tabular}   \end{center}   \caption{\label{font-table} Results. }   \label{tab:1} \end{table*}   Here is the output that I become :(    I think that something is wrong with the 5 line, but it seems I have tried everything :(
121259
I have the following table:  \begin{tabular}{|p{3cm}|p{1.5cm}|p{1.5cm}|p{1.5cm}|p{1.5cm}|} \hline \centerline {image}  &amp;    \multicolumn{2}{c|}{ABC} &amp; \multicolumn{2}{c|}{DEF} \\ \hline  &amp; \centering A&amp;\centering B&amp;\centering C&amp;\centering D  \\ \hline \centerline 1&amp;&amp;&amp;&amp; \\ \hline \centerline 1&amp;&amp;&amp;&amp; \\ \hline \centerline 1&amp;&amp;&amp;&amp; \\ \hline \centerline 1&amp;&amp;&amp;&amp; \\ \hline \end{tabular}   When I try centering D, I have a problem in the shape of the table. Why is that? How can I center it appropriately?  Thanks.