{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)

7
votes
4answers
3k views

Change font size in tables document-wide

Using scrartcl as my document class, tables are set in a slightly larger font size than my normal text (12pt vs. 11pt I suppose). How can I change the font size for tables document wide? At the moment ...
3
votes
1answer
3k views

Vertical centering of text within a table

I have a table defined as: \begin{table} \begin{center} \setlength{\extrarowheight}{3.0pt} \begin{tabular}{ | c | p{12.5cm} |} \hline \textbf{Item 1} & ...
28
votes
1answer
21k views

Can a table include a horizontal dashed line?

In a normal table, you can use the \hline command to draw a horizontal line. I am trying to make this line a dashed horizontal line. I have found the package dashrule via this answer, but this only ...
4
votes
2answers
895 views

Tabstop-like alignment of text possible?

I'd like to format some text around a tabstop such that what is left from the tabstop is \flushright and the text that is right from the line is \flushright. The Tabstop is at a specific position, ...
12
votes
5answers
8k views

Align Note below table

My question concerns the "Note" below the table. This is my code: \begin{table} \begin{center} \caption{ Descriptive statistics of total sample based on modified data set}\label{table:descrtotal} ...
4
votes
2answers
1k views

How to put table into multicols

I'm trying to get table formated like this: A desription of A D description of D B long description Eee description of Eee of B F description of F Cccc ...
2
votes
1answer
1k views

siunitx, threeparttables and table footnotes

I am trying to use the S option of siunitx for table alignment alongside with threeparttables for table footnotes, but it looks like that the footnote mark is flushed left everytime \tnote{} is used. ...
32
votes
2answers
65k views

How to specify the row height in LaTeX table?

I want to create a LaTeX table with three rows which have different row heights. How can I do this? The following code \renewcommand\arraystretch{2.4} \setlength\minrowclearance{2.4pt} seems make ...
3
votes
1answer
177 views

Pushing indices into inter-column spacing in tables automatically.

I have a table that is very slightly to wide for the page. It contains table notes \tnote{} and these are what made my table too wide. Now I recall from the documentation of one of several packages ...
1
vote
1answer
209 views

Tabulating all labelled equation numbers with their labels in latex

Is there any way in Latex to collect the labels for references from a document in a table? I'm writing a long document but would like to collect together my references of various kinds (i.e. ...
6
votes
2answers
399 views

siunitx S column to produce aligned numbers in italics and parentheses

My apologies first as it may be that if i spent a sufficient amount of time playing and reading the siunitx manual, that I might be able to figure this out. About an hour has failed to yield the ...
1
vote
1answer
2k views

Specify starting row number for \rowcolors from colortbl package

In the following application of \rowcolors from the colortbl package, how can I specify the option to start the alternating color pattern from the 3rd row onwards? The first two rows in this case are ...
8
votes
2answers
7k views

Table inside table

Inside of a Beamer presentation, I want to put a graph side-by-side with a data table. Outline of the code: \begin{tabular*}{l r} \begin{center}\includegraphics{graph}\end{center} & ...
9
votes
1answer
1k views

Pgfplots: plot graph inside table

I would like to plot a table with a graph inside it. I am trying to use this example as a guide. This is the current hand-constructed version. UPDATE: I don't have enough reputation to answer my ...
5
votes
1answer
601 views

Multi-line column labels in a table

In a table a long label for a column often needs to be split into two parts. I usually do this manually by putting each part in a row of its own but it feels wrong because it splits a semantic entity. ...
4
votes
2answers
171 views

Align unrelated arrays

How can I align arrays like the ones below so that they start at the same distance from the left edge of the paper? \documentclass[a4paper,11pt]{article} \usepackage[utf8]{inputenc} \begin{document} ...
6
votes
2answers
11k views

Set table position to top [duplicate]

some content \begin{table}[t] \begin{tabular}{c c c} tabular content \end{tabular} \end{table} \chapter{new chapter} The output is: First page: some content Second page: table centered ...
7
votes
3answers
5k views

How to vertically center text with an image in the same row of a table

I want to create a table with multiple rows of the following form: a cell that contains text and then multiple cells that contain images. The text should be vertically centered and the contents of ...
3
votes
1answer
219 views

I get an error when I put an imaginary number in a column of a table with column specifier S (from siunitx package)

Using the siunitx package. I have a table with column specifier S if I then put an imaginary number in it comes up with a compile time error: ! siunitx error: "table-partial-number" ! ! No space ...
4
votes
1answer
558 views

I had a problem with spacing of tabular columns combined with \multicolumn. I found an inelegant solution. Perhaps someone knows of a better one?

Consider a table with several columns. Three consecutive columns are thin. These three thin columns have a long \multicolumn{c}{3}{??} heading over them. If nothing is done to specify how these should ...
4
votes
3answers
1k views

How to include an array in cell of a tabular environment

For an equation that has an array we use \\ for new row as well, and \newline didn't work, and this is understood by the tabular environment as a new row! Would appreciate all the help!
3
votes
1answer
193 views

Please help me to run this code in LateX!

\documentclass{article} \usepackage{array} \begin{document} \begin{tabular}{| >{\centering}p{2.5cm} | >{\centering}p{0.5cm} | >{\centering}p{2.5cm} |>{\centering}p{2.5cm} ...
1
vote
1answer
259 views

The last section goes beyond the bottom border

I have my last section which consists only of {tabular}, it is longer than 1 page, so I need to split it to 2 pages. So I have done something like that, hoping it displays the first {tabular} on the ...
3
votes
2answers
2k views

table overflows the page

I use \documentclass[a4paper,14pt]{report} and the longtable package. Also I have \usepackage[left=3cm,right=1cm,top=2cm,bottom=2cm,bindingoffset=0cm]{geometry} in the preamble. I have some ...
2
votes
1answer
833 views

Hyphenation within multicolumn

I've got the following table, which I'd prefer not to split, and it's slightly too wide for the page. How can I make some of the column headings hyphenate? I don't want to have to define a fixed width ...
7
votes
1answer
1k views

tabular and array

Consider the following example: \documentclass{article} \usepackage{array} \usepackage{calc} \begin{document} \begin{tabular}{p{\textwidth - 3cm}|p{1cm}<{foo}} Caption1 & Caption2\\ ...
7
votes
1answer
2k views

Color of square cell in array

I would like to have array with square cells and fill cells with colors. There is done implementation of table with square cells by W. Robertson ...
1
vote
1answer
587 views

Setting table placement as “here” in a multicol environment, spanning 2 columns

I have a problem with table placement. I want the table to be anchored to the position where it occurs in the text (i.e. "here", "h") and the columns should simply wrap around it. The table should ...
3
votes
1answer
1k views

Start new paragraph inside a table cell

Look out for the \par below (on the row starting with "MSA" and notice it does not achieve the desired new paragraph. How to achieve the desired effect? Thanks. \documentclass{article} ...
1
vote
2answers
176 views

How to align some lines under tabular?

I am using tabular, and I would like to realize something like that: word1 word2 word3 word4 longerword5 word6 word7 word8 So word1,2,3,4,6,7,8 are well aligned, and I do not ...
12
votes
1answer
11k views

How to make a \cline or \cmidrule narrower?

I'm trying to copy this table into TeX: I have problems with the horizontal lines under "Gaussian" etc. When I specify three \cmidrule's, they are not separated but are combined into one big ...
13
votes
4answers
3k views

Why can't I wrap \rowcolor in \only? (Beamer)

See the following minimal example: \documentclass[table]{beamer} \begin{document} \begin{frame}{Boo} \begin{table} \centering \small \begin{tabular}{rcc} \only<1>{\rowcolor{green}}Hey & ...
2
votes
1answer
858 views

Vertically center text in a specific cell

I want to vertically center the "Characteristic" heading in its respective cell? \documentclass[a4paper,12pt]{article} \usepackage{booktabs} %for top, middle and bottomline \usepackage{multirow} ...
8
votes
1answer
5k views

Vertical lines are being broken up (disrupted) by the horizontal booktabs lines

My vertical lines are being broken up (disrupted) by horizontal booktabs lines. How can I fix this? It's well and good to say use \hline but I also need a cmidrule that spans only the second two ...
2
votes
2answers
802 views

Tabular content spilling over right column margin

Tabular content spilling over right column margin. What's going on here? How can I fix it? \documentclass[a4paper,12pt]{article} \author{Peter Cao} \date{} ...
1
vote
3answers
2k views

Center-align text in columns in tabular environment in multicol environment

I need the text in the second two columns to be center-aligned. I also need someone to please help me clean up this table. It looks ugly. Notice it is inside a multicolumn (2-column) environment, ...
2
votes
1answer
2k views

How to change the height of a (multi)row in tabular with math

I have the following code: \documentclass{article} \usepackage{multirow} \begin{document} \begin{table}[htbp] \centering \begin{tabular}{lcccl} \textbf{Irland} & - & ...
4
votes
1answer
685 views

Generate table with dynamic number of columns

Is it possible to create a table with with a dynamic number of columns that depend on some given width, e.g., \textwidth? For example, given a fixed-width table t with size(t) <= 0.5\textwidth that ...
7
votes
2answers
2k views

Line break in the table item

I am creating table in LaTeX and I need to get the text to perform line break automaticaly when it's too long. And if possible, I'd like to get the text alignment to the left. Is it possible to handle ...
8
votes
1answer
953 views

Align siunitx numbers in a tabu table

The minimal example below gives me a strange offset in numbers with exponential numbers. I think tabu and siunitx are getting in each others way. Is anyone aware of a workaround? ...
7
votes
1answer
2k views

Subtable Reference Numbers Start at Zero

I have a latex document with a table that contains two subtables. When I reference the entire table it the numbering starts at 1, but when I reference one of the individual subtables the numbering ...
3
votes
1answer
2k views

Vertical alignment of subfigures

So I have a document which in a lot of places uses one pstree (part of the pstricks package) and a simple tabular side by side...I do this with subfigures. The problem is that because the pstree image ...
29
votes
3answers
12k views

Diagonal lines in table cell

I need this table: (each row and column should have the same height and length, last cell should be divided by diagonal line). I tried the following code: \documentclass[11pt]{article} ...
5
votes
2answers
3k views

Formatting complex table from CSV using datatool

I have this csv file, formatted like this one: Store,Product 1,Product 2,Product 3,Product 4,Product 5,Sub Total Store 1,15,99,299,75,292,780 Store 2,33,353,429,283,561,1659 Store ...
0
votes
0answers
171 views

How to make a table column disappear? [duplicate]

Possible Duplicate: Easiest way to delete a column? I have many table in my document, and I have decided I don't want one of their columns to appear in the output. I don't want to just ...
2
votes
1answer
1k views

Table Cell Alignment - Last Column 'Misbehaving' - Simultaneous Vertical and Horizontal Alignment Problems

I am going a little crazy with alignment in the tabular environment. In the following code I would like both the top-left cell 'Green Die', and the last cell in the 2nd row '6' to be aligned ...
2
votes
2answers
275 views

Macro behaviour different inside tabular environment

I have a lot of problems lately with macros expanding (or not expanding) at unexpected times, so thought I was having a related problem here. But, in this case, things are working as I want outside of ...
5
votes
2answers
10k views

How to set table size to \linewidth without using a package such as tabularx?

PLOS journals provide the following instructions for preparing a LaTeX manuscript: Do NOT use any other packages than those specified in the template. If you use any other packages, your ...
1
vote
1answer
488 views

Align a parbox at the bottom of a table

Below, how can I align the \tiny text in the \parbox at the end of the right column table so that its last line is on level with the last row of the left column table? In general, it would not be a ...
8
votes
1answer
437 views

Custom macro for multicolumn with & without xparse

The following example has two normal LaTeX \newcommand macros and two xparse \NewDocumentCommand for specifying multicolumn text. The only difference between each pair of commands is one has the ...