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

18
votes
3answers
3k views

How to Create Comparison Tables in LaTeX?

I am a new user (both to LaTeX & this forum). I want to create a Comparison Table for an Article (like the one shown here): Can someone please help me with this.
0
votes
1answer
1k views

Vertical text alignment in tabular is wrong

According to http://en.wikibooks.org/wiki/LaTeX/Tables ('The tabular environment' paragraph), I would have expected to be able to use 'p', 'b', 'm' to define vertical text alignment for a column. This ...
6
votes
2answers
321 views

How can I define a macro that adds a row to a table that has not yet been printed?

I want to generate a list of technical abbreviations and acronyms that I use. Currently, I'm defining all acronyms with a macro I have designed. Now, I want the macro to call another macro, called ...
6
votes
2answers
468 views

How to do a table with top corner removed

I want to do a table with some columns (9) but I want the first 2 columns on the first row to be empty. I can't seem to be able to close the top of my table the way I do it. ...
9
votes
1answer
361 views

What is best practice for aligning distinct arrays or tables side-by-side?

I have two related tables that could naturally be displayed side-by-side but don't have to be. However, it saves space to display them side-by-side rather than one atop the other. If I do so without ...
11
votes
2answers
4k views

Highlight table cells using thick, colored border

I'd like to highlight certain cells of my table. In particular, I'd like to set the border of these sells colored and thick. These cells should also have a background color. Here's a minimal example ...
3
votes
3answers
614 views

Dropped column in multicolumn table

In a table with 4 rows and 4 columns I try to merge different cells in every row while preserving the table layout. As there are never more than 3 cells in a row, a table column seems to be dropped. ...
4
votes
1answer
2k views

LaTeX - tables, multirow with non integer number of rows

Editted to provide a clearer example Basically I want to make a table that in one column has a series of dates and the second and third columns have a series of objectives for that date. However the ...
16
votes
3answers
4k views

How to wrap text in table cell?

this code: %%%%%%%%%%%%%%%%%%Table: Valence x valence crosstab \begin{table*}[t] \centering \begin{tabular}{c c c c c c c} \toprule \midrule ...
13
votes
4answers
1k views

Drawing Young tabloids

I would like LaTeX to produce output like the following (without the 2 a so called Young tabloid), ideally by writing \ytabloidshort{123,56} (using one character per cell, ideally allowing ...
5
votes
1answer
328 views

Color table element with siunitx S column

I have a table with numbers that I have aligned using the S column type provided by the siunitx package. I need to make one of the table elements red, but when I do that, the number that is red is no ...
14
votes
2answers
3k views

Set table background hatched and shaded using tikz

I am looking for a convenient way to set the background of tabular cells. I'd like to do two things: (1) Set the background shaded in a color (2) Set the background hatched I learned that the TikZ ...
2
votes
1answer
2k views

Using \include with in Tabular / Array

I'm doing graphics using PStricks, writing each figure in it's own sub-file. I would like to order two of these figure vertically with a symbol in between. To that end, I've tried using a tabular and ...
4
votes
1answer
267 views

Vertical centered image in cell

Consider following code: \documentclass[a4paper]{article} \usepackage[table]{xcolor} \usepackage{graphicx} \paperheight297mm \paperwidth210mm \textheight297mm \textwidth180mm \topmargin-25.4mm ...
6
votes
2answers
2k views

Not enough space in table for fractions

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.) ...
3
votes
3answers
362 views

Table in golden ratio

I'd like to create a table with two columns which follow the rules of the golden ratio. The width of the table should be equal to \textwidth of the corresponding class. Here is an example image: ...
6
votes
1answer
1k views

Many vertical alignment problems with tabu table

I use tabu to easily specify colors for different parts of my table. Also the X column makes life easier. I have some problems regarding vertical placement: In the linked figure you can see many ...
12
votes
3answers
991 views

Reusing LaTeX code to achieve a consistent layout

What is the best approach to reusing the same layout for numerous tables, paragraphs etc. which share the same structure but different content? Is the best method to use custom commands/macros?
3
votes
1answer
142 views

Tabular column not matching up

I'm trying to create a document showing how two numbers are added, focusing on moving from the ones column on up, but for some reason, my tabular environment's columns are not matching up with my ...
2
votes
1answer
294 views

content-independent total height

I am generating a table from a program with two pairs of name/value columns. Each pair forms a two column tabu table and the two tables are then nested in an overall tabu table to get the effect. I ...
16
votes
1answer
2k views

Table looking like a block

The goal is to create a table that has the same style than a block of the used theme in order to have a consequent style trough the document. this can be done by the following two methodes shown in ...
5
votes
1answer
181 views

building a box a bit special

I'm trying to build in latex this box: I have been trying with this code: \noindent\begin{tabular}{|c|c|c|c|}\hline \enc{cyan}{ NOMBRE }&\enc{cyan}{ $\text{1}^{\text{er}}$ APELLIDO } & ...
0
votes
1answer
104 views

Centering a table while ignoring the 1st column in centering procedure

I want a table to be centered except I don't want the first column to be considered in the centering procedure. That is, I want columns 2 to N to be centered perfectly, and column 1 to be hanging off ...
4
votes
1answer
852 views

Using sidewaystable enviroment with footnotetext

my new problem si this code: \documentclass[a4paper,12pt]{article} \usepackage{rotating} \begin{document} \begin{sidewaystable}[h!] \centering \setlength{\tabcolsep}{5pt} ...
5
votes
1answer
454 views

Table with shaded transitition, rounded corners and shadow (like a block of the theme)

this is my first question here. I want to make my table look like the block to have a consequent style. Questions: How to create that shaded transition from the table headline to the body (like the ...
9
votes
1answer
12k views

Vertical Alignment in multirow using cells with >1 lines

I want to vertically align (best would be to center) the text ("TEST") in the left (yellow) column of the following table. It works fine with multirow when every row has exactly the hight of one line: ...
2
votes
2answers
159 views

Justification in table

How to justify a table column like: \begin{table}{j j} ab cd & ef gh\\ ij kl & mn op \end{table} where j stands for justified column, i.e. both right and left are aligned. Thanks...
5
votes
2answers
5k views

Vertical alignment using multirow and booktabs

I'm trying to format correctly the following table: \documentclass[a4paper,twoside]{report} \usepackage{array,colortbl,multirow,multicol,booktabs,ctable} ...
1
vote
1answer
254 views

Pagebreak problem (stop my document from not pagebreaking) [duplicate]

Possible Duplicate: What is the command to just slightly increase the text height of a particular page? Squeeze some more lines on the current page How would I shift up my text from the ...
5
votes
2answers
1k views

pgfplotstable; longtable with caption and repeating header

I would like to use the pgfplotstable package in order to import data from a .csv file into a multi-page table. I would like for the table to have: a caption above it and its header to repeat at ...
6
votes
2answers
270 views

tabular height savebox problem

I'd like to build a tabular and next to it a graphics in the same height. I use the following code (for minimal working purposes, I used \rule) and do not understand, what is going wrong: ...
11
votes
1answer
484 views

When using longtable, my table counter starts from 2 rather than 1. Why?

When using longtable, my table counter starts from 2 rather than 1. Why? \documentclass[12pt]{article} \usepackage{xcolor} \usepackage{array,booktabs,longtable} %\extrarowheight5pt ...
6
votes
2answers
7k views

Vertical centering in multirow table cells

The documentation for the multirow package implies that the content of a \multirow will be vertically centered by default. In this example (machine-generated from a Word document, hence all the ...
9
votes
1answer
2k views

siunitx: Bold single numeric cells

I'm struggling to make a single numeric cell in an siunitx table bold. (A similar question for making a whole column bold is available here.) I want to define a simple macro which I can set for the ...
5
votes
3answers
200 views

Onecolum at the end in twocolum

So I have two problems: first. how to add onecolumn at the end of article withtout breaking page? second. same but after table in the middle of text?
4
votes
3answers
200 views

How to make use of the previous plain value of a cell as an argument for \verb and a macro name in the next columns?

I have explored the source codes of siunitx manual. It is too complicated for a newbie. My objective is to avoid repeating, ampere for example, in each column of the following table. I just want to ...
3
votes
3answers
1k views

Tables with footnotes for various purposes [closed]

I am searching for a method to keep consistency in the text regarding footnotes. Therefore I tested some options: tabu, longtabu, and longtable tablefootnotes ctable The first method (tabu, ...
1
vote
1answer
147 views

Can images and tables be always placed immediately after the paragraph they are first mentioned, even if white-space needed to move to another page?

I would like to ensure that when I mention a table/figure in the text, the figure/table will appear after that paragraph ends. Even if this means leaving the rest of the page blank and putting the ...
1
vote
0answers
207 views

numbers before decimal separator do not align in table column [closed]

I want a table column that is aligned at the decimal separator. For that I use the S column type defined by the siunitx package. However, when I do this, the numbers left of the decimal separator are ...
2
votes
2answers
1k views

Duplicated tablefootnotes with longtabu

I Have a very wide table that where I want to have footnotes. I found that one way to make the table fit in my page was to use tabu and longtable. And the package tablefootnote for the in table ...
1
vote
1answer
387 views

Using \cdots in Table - error: Missing $ inserted

Am getting countless error messages for 'Missing $' and Extra }, or 'forgotten $'. I am building a table and trying to fill some cells with dots (\cdots, \vdots etc). The first line in the table with ...
9
votes
1answer
4k views

Aligning a figure and table side by side

I would like to place a figure side-by-side with a table, and have both of them aligned to the top. This is what I came up with: \begin{figure} \begin{minipage}[b]{0.65\linewidth} ...
2
votes
2answers
255 views

How to doublespace a sidewaystable using setspace?

As a follow-up to a previous question, How to doublespace a table using setspace?, I found that the solution is not compatible with the sidewaystable environment defined in the rotating package. I ...
8
votes
1answer
10k views

Errors in tables then runaway argument at \begin{document}

I am new to LaTeX and keep having this re-occurring problem. I create a table and notice a mistake (incorrectly specifying the number of columns or something) because the pdf won't compile (I am using ...
9
votes
2answers
11k views

Space between rows in a table

I created a table in LaTeX, however, I can not put a space after the first row. As you can see the bar of X mean overlaps the \hline. I tried \\[1pt] after \hline, but it produced much more space than ...
4
votes
1answer
88 views

altering the orientation of column headers

I would like to generate a table that has each column header displayed sideways. For example: \documentclass{article} \usepackage{rotating} \begin{document} \begin{sidewaystable} ...
5
votes
1answer
415 views

Counters for use in array/tabular cells

The following practical example \documentclass{article} \usepackage{array}% http://ctan.org/pkg/array \newcounter{tabcol}\newcounter{tabrow} \newcolumntype{C}{>{\stepcounter{tabcol}}c} ...
6
votes
1answer
4k views

How to doublespace a table using setspace?

I have used setspace with \spacing{1.9} to meet publisher specifications of "3 lines per inch or 12 lines per 10 cm", but it does not affect tables, although the publisher has requested that the ...
5
votes
1answer
259 views

Auto Generate Table with Tons of + and -

i want to create a table containing lots of "+","-" and "0", which depend on the column and row number by (quite simple) mathematical formulas which are known to me. I could enter the signs by hand ...
8
votes
3answers
6k views

Join figure and table on the same page

I have a figure and and a table and I want to make sure they both appear on the same page. I want both objects to keep their natural numbering and captioning: The Figure should be captioned Figure ...