{tables} is about the tabular environment and related packages such as {array}, {booktabs}, {tabularx}, {tabu} and {longtable}. For questions about the table environment (i.e., about floating or positioning), use {floats} instead.

learn more… | top users | synonyms (2)

2
votes
1answer
101 views

How to make a rotated, multiple-row label of a table vertically centered?

How to exactly make a rotated, multiple-row label (i.e., from) of a table vertically centered? \documentclass[preview,border=12pt,12pt]{standalone} \usepackage{array,multirow,graphicx} ...
7
votes
2answers
234 views

Number alignment in tables with some values in partial boldface (all but the decimal point)

I want to align decimal values in a table with some values printed in bold. Just by itself, this is no problem. We can use the siunitx package and \robustify\bfseries to do the trick as described, ...
4
votes
1answer
107 views

How to remove vertical space between the last line and the body of table?

How to remove the vertical space between item2 and the last line? \documentclass[]{article} \usepackage{enumerate} \begin{document} \title{Title} \author{Author} \date{\today} \maketitle ...
0
votes
1answer
115 views

How to wrap long text with \multicol in tables?

This is my code: \documentclass[12pt,a4paper]{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[english,french]{babel} \usepackage{geometry} \geometry{a4paper, mag=1000, ...
3
votes
1answer
55 views

Problem with hhline with tables having more than 9 columns

I found out that the hhline does not print lines when the argument is greater than 9 as in \hhline{|*14{-}|}. It works well when doing instead \hhline{|*9{-}*5{-}|} as the following file shows: ...
0
votes
0answers
131 views

How to put table in portrait mode?

I put the table as below but it is coming out in landscape mode....else it ll go last page.... I need to have the table in the middle of my document and it should be in portrait. The code I have used ...
2
votes
1answer
105 views

Table heading multicolumn problem

I have the following code, which needs 2 sub-columns in the last main column. I have written code as follows: \begin{table} \centering \begin{tabular}{|c|l|c|c|} \hline ...
12
votes
1answer
82 views

Spanish Babel causes accents in start of sentence to stretch cell height

When the first letter of a sentence in a table cell has an accent, the cell height is stretched and it looks strange. This only happens when I use the Babel package (with Spanish) so I think it may be ...
1
vote
1answer
96 views

Error while scaling a table

I'm trying to scale this too wide table, but I'm getting an error and unable to solve this problem at all. Here is the error: "! You can't use `\hrule' here except with leaders" on the caption line". ...
4
votes
1answer
55 views

\useplot with Text in CSV

Is there a way to import & auto-plot a graph containing text in one column? Eg. Here's my table Period,Unit Sales (in thousands) Q1 '07,24943 Q2 '07,27855 Q3 '07,32752 Q4 '07,36766 Edit: ...
2
votes
2answers
113 views

Aligning a Table and a diagram in the same line

I wish to align a table and a diagram vertically on a line. Here is my code: \begin{flushleft} \begin{tabular}{l||c|r} & a & b \\ \hline $q_0 & q_1 & q_0$ \\ ...
4
votes
2answers
85 views

How to alignment picture in cell in a table

I have a problem with alignment one picture in a table. I can not understand, How to alignment picture in cell in a table. Please help me. Thank you in advance. LATEX \begin{figure} \centering ...
2
votes
1answer
194 views

Split lines, keep a table/aligned text within textwidth and span several pages

I have a very long table that I use to align some text, therefore I don't need it to be (specifically) a table (please consider that in the answers). I am using supertabular for the table to span ...
3
votes
1answer
882 views

Proper centering with cmidrule and multi- row and column

The code below produces the following figure: The issue I am having is that Sample is not vertically aligned, I get proper alignment if \cmidrule(l){2-3} \cmidrule(l){4-5} is removed. How do I ...
1
vote
0answers
27 views

How to create column - aligned entrys in a itemize enviromenment (in 2nd. level) [duplicate]

i'd like to itemize a list of properties for my experiment protocol. What I want is: there is some nice way to align itemized entrys in How to create columns within an itemize environment? and in ...
2
votes
1answer
71 views

row colour in tabular environment extending to width of page

Hi I have the following tabular environment: \documentclass[12pt]{article} \usepackage{booktabs} \usepackage{setspace} \onehalfspacing \usepackage[english]{babel} \usepackage{grffile} ...
1
vote
0answers
67 views

uncover cells in siunitx table beamer

I wish to show a calculation and update a table to help keep track of things. I use siunitx and booktabs in my beamer presentation. I want to have the numbers in the table aligned on the decimal ...
2
votes
2answers
1k views

Include data from LibreOffice Calc or MS Excel [duplicate]

I'd like to use LibreOffice Calc or MS Excel to create and edit spreadsheets and include these in LaTeX (LuaLaTeX would be fine, too). It is necessary for me to get calculated values like SUM(C2:C5) ...
3
votes
0answers
237 views

Conditional formatting, rounding and postprocessing of a column in pgfplotstable

I want to round p-values in a table to two decimals (for example 0.05), have values less than 0.05 in bold font and have values less than 0.01 to come out as '<0.01' in bold font. Like this (the ...
24
votes
2answers
1k views

Strike out a table cell

I'm trying to strike out cells in a table, without specifying the cell width. To do so, I looked at the code of colortbl as this seems to a very decent job with filling cells. Now I played around ...
1
vote
1answer
123 views

longtable caption (make it look like table caption as defined by a LaTeX class)

I have the following MWE with a table and a longtable, and I just want that the longtable caption looks exactly as the table caption without modifying anything from the table above (just the ...
3
votes
0answers
43 views

Preserving the value of a macro outside the local scope [duplicate]

I'm writing a (supposedly) simple financial tracking program using tikz and the fp package. Within a tabular environment I compute a value using \pgfmathparse{adding some numbers}\pgfmathresult. ...
40
votes
1answer
5k views

booktabs: What is the difference between \toprule and \hline

The horizontal lines in tabular environment can be constructed. What is the difference between \toprule, \midrule, \bottomrule and specifying horizontal line using \hline?
7
votes
2answers
171 views

More aesthetically wrap text in a table?

I have a table that I must fit in one page but have difficulty doing so in any aesthetically pleasing manner. A MWE is pasted below. Are there any suggestions to improve this? Regretfully I haven't ...
4
votes
1answer
126 views

Double line spacing, except in tables

Extending the question Double line spacing (as I'm new round here I don't seem to be able to comment), I'd like to use double spacing too. Except in tables, where I'd like to be able to leave that at ...
2
votes
3answers
110 views

tables: spaces between rows for a single row (top and bottom) [duplicate]

I have this silly question that might look like a duplicate, but I still cannot get it to work... I have the following table, and I just need more vertical spacing at the top and bottom of the 3rd ...
4
votes
2answers
100 views

accomodating table in beamer

I have following table on beamer slide. It overflows into right margin. How can I accomodate it \documentclass{beamer} \begin{document} \section {Rockall score} \begin{frame} {Prognosticate ...
0
votes
0answers
33 views

Software latex for designing complex tables [duplicate]

I look for a software for designing complex table by generating code latex. I know drawlatex but it not suitable for me.
4
votes
2answers
126 views

Table and Longtable environments reproduce different spacing in LOT

I have been using the table and longtable commands quite a lot for my thesis, and I've observed they reproduce different spaces in the list of tables. Here is the MWE: ...
5
votes
1answer
92 views

Using multiple \multicolumn in a table

I'm trying to create a table with 2 sets of data, each with the same type of measurements: \begin{tabular}{cccc} \hline \multicolumn{2}{c}{Set A} \\ \cline{1-2} \multicolumn{2}{c}{Set B} \\ ...
3
votes
1answer
139 views

longtable within table environment?

I have several tabulars and a threeparttable that are all included within a table environment (\begin{table} precedes them), so they all have common numbering and appear in the tables section at the ...
2
votes
0answers
45 views

how to rotate wide table in page thatnot outside of page

My table is very wide and gets the outside of the page how to rotate table that placed landscape. \begin{table}[!h]‎ ‎\centering‎ ‎\footnotesize‎ \caption{}\\‎ ‎\label{tab11}‎ ...
5
votes
3answers
201 views

Table and caption formatting

I'm having some problems getting my table and caption formatting to look right. Below is a sample of the code from my thesis. I've included all the packages that I'm using in my thesis, so that you ...
4
votes
1answer
254 views

Table caption problem. Text goes new line every word

I've a strange problem with caption of table. The text is shrinked to the center (see picture). This is the code of the table in the example (the result is the same for all the table I made). ...
13
votes
5answers
696 views

Alignment in inline math

I want to enclose a tabular environment with a bracket, inside an enumerate environment, and be aligned to top. In the following example: \documentclass[a4paper]{article} \begin{document} ...
2
votes
1answer
219 views

Eliminate reference to chapter in table caption (memoir class)

I'm editing a book using the memoir class. Each chapter has a different author, and I restart numbering of all elements at the start of each chapter. So far, so good. However, I want to eliminate the ...
3
votes
2answers
222 views

Specifying vertical alignment in a table, column-by-column

I am creating a very simple table with three columns and one row. The alignment and content of each column is as follows: Col. 1 - (H) center, (V) middle, single character Col. 2 - (H) left, (V) ...
2
votes
1answer
218 views

Combining \rowcolor and \cmidrule [duplicate]

I want to shade the heading of my table. It all worked fine until I started using \cmidrule. This is my output: Is there a way to shade the white space between the first and second row? The code ...
0
votes
0answers
44 views

How do I adjust the width of a grid column?

I've tried looking up the code and couldn't find something that allows me to adjust the width of a column. I want to make the width larger (in the vertical direction). This is what I have so far: ...
7
votes
3answers
183 views

Three tables side by side

I have three tables and I need that the three tables stays side by side. I tried with this approach but the tables are overlapping each other. \begin{table}[!htb]\tiny ...
4
votes
1answer
208 views

Multipage tables - vertical centering in cells

I know there were many topics like this but I read a lot of them and it is impossible to understand them for me or they just dont work. I want ALL cells to be centered vertically. I would also like to ...
2
votes
0answers
70 views

Is there a documentation for \setupTABLE?

I need to know which parameters can be passed to \setupTABLE command. Is there any documentation or can it be extracted from source ?
3
votes
1answer
95 views

Highlighting in tabular environment

I am trying highlight a row of matrices in a tabular environment. However, the left brackets of the matrices are gone. And I don't know how to fix this. In addition, how can I highlight 2 elements ...
3
votes
1answer
38 views

Document does not render with table

\begin{table}[htbp] \centering \caption{Zusammensetzung der Proben} \begin{tabular}{cccc} \toprule \multirow{2}{*}{Probe} & [TRA-Puffer 2.5$\frac{\text{mg}}{\text{ml}}$ Lipase] ...
7
votes
1answer
467 views

How to solve the issue between side-by-side floats (tables) and floatrow package?

I came from here where this issue was raised but could not find a straightforward solution. I have now side-by-side tables and I want to avoid the errors thrown once floatrow package is added to the ...
4
votes
1answer
67 views

Unwanted space between negative number and footnote marker

I have managed to produce a table that looks like I imagined it to, so all is well there. The only problem I am having is with my footnote markers. I am using threeparttable and siunitx, and I want to ...
3
votes
2answers
98 views

cals table nobreak

How to keep together the same numbers? The \nobreak does not work. Sorry, for my poor english :) \documentclass[12pt,a5paper,landscape]{article} \usepackage[utf8]{inputenc} ...
1
vote
1answer
81 views

Work out maximum possible characters per line

I'm dynamically generating LaTeX source and compiling it. The documents contain only tables and each table cell in each column has the same width. I need to work out how many columns are required and ...
3
votes
1answer
87 views

Howto center images in a size defined table?

I have the problem that I have a table which includes two images next to each other and below in the next line there is the caption of the image. The problem is that the images are not shown next to ...
2
votes
0answers
66 views

Arrange Bibliography in table

I am using the code as suggested by Audrey in this post in order to produce a tabular bibliography and adapted it as follows. Naturally, the authors' names should be printed in the first column and ...