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

12
votes
3answers
8k views

Padding at the top of a table cell in LaTeX [duplicate]

I have a simple LaTeX tabular table: \begin{tabular}{|l|l|l|} \hline A & B & C \\ \hline A1 & B1 & C1 \\ \hline A2 & B2 & C2 \\ \hline \end{tabular} Now ...
13
votes
2answers
3k views

Rounding of decimal numbers: Looking for an elegant way in latex table

Is there a package to do the rounding numbers for latex tables? For example this table. \begin{table}[htdp] \caption{default} \begin{center} \begin{tabular}{c|c} +1.98185942 & +0.14495331 \\ ...
6
votes
1answer
345 views

Create Table for a Family of Curves

Following the issue Color Management with a Family of Curves I couldn't find a proper way of creating the associated table for a family of curves. I tried to create new columns with respect to the ...
3
votes
1answer
142 views

Group two tables so that they appear on successive pages

I have a table that is too big to fit on a page without shrinking the text to unreadable sizes. As a result, I have split it in to two. I can't use longtable to do this automatically as I am also ...
2
votes
1answer
146 views

Highlight smallest number in table

I would like to highlight the smallest number in each row. How would I go about doing this. In the following for example, would like to highlight 3 and 3. \documentclass{article} ...
6
votes
1answer
172 views

Moving an enumerate up

I am trying to emulate a table with nested enumerate lists. From my reading, using a table is impossible - lets assume that is true. I am generating the latex from javascript. What I am trying to do ...
2
votes
1answer
885 views

Trouble aligning rows in two columns using makecell

Been trying to align columns two and three (vertically) but can't figure it out. Columns are coming up central to "Workability" instead, and as column two has some rows taking up 2 lines, they don't ...
6
votes
2answers
869 views

Alignment of table header in column with decimal numbers using siunitx

I have a table with decimal numbers aligned at decimal point. In the column header, I have a % sign. In the code snippet given below, the percent sign is aligned at the left in the column, but I would ...
4
votes
1answer
246 views

Merged cells - borders not matching up

I've got a little problem concerning merged cells in latex. This is the code I used for my table: \documentclass[a4paper]{article} \usepackage[margin=2cm]{geometry} \usepackage{ngerman} ...
3
votes
1answer
648 views

Tabular: Using tabular to separate figures in a minipage

\documentclass[demo]{article} \usepackage{tabu} \usepackage{tikz} \usepackage{capt-of} \usepackage{subfig} \captionsetup[subfigure]{labelformat = parens} %\usepackage[demo]{graphicx} ...
3
votes
1answer
460 views

TikZ Matrix 'draw' alignment

Apologies if this has already been asked - I could not find it. The following is an example of what goes wrong: In this example I would like it to look just like a regular 2x3 table, but I think ...
2
votes
1answer
5k views

Creating table using TikZ matrix

I'm trying to create a table in TikZ with the first column right-aligned, and the texts in each cell on the same line the rest of the columns center-aligned, and each has width of 1cm My attempt ...
1
vote
1answer
275 views

LyX: Changing layout inside table cell

I'm using LyX to write a simple report. I had some paragraph written as a "description list", when I thought that it may look better as a table instead. I created a table, and when I copied the text ...
5
votes
2answers
213 views

Color Management with a Family of Curves

I am struggling with following fairly simple looking problem of plotting a family of curves. \documentclass[border=1mm]{standalone} \usepackage{pgfplotstable} \pgfplotsset{compat=1.8} ...
4
votes
2answers
369 views

Repeat entire table

Is there a method to repeat an entire table? I've defined a custom table format using xparse and I have potentially ~50 of these custom tables. I would like to create an appendix of the tables, ...
2
votes
1answer
640 views

Table with tabular, column type p grabbing available space [duplicate]

I have a table with one column which contains a longer description spanning multiple lines. Therefore I use the column type p, which requires me to specify a fixed column width. Is it possible to ...
4
votes
1answer
450 views

How to line up a chemical structure in the table (chemfig)?

I have a table which has three rows of chemical structures. The structures in the second row are not lined up with the first and third rows. I tried to use \vspace to bring the structure down but it ...
6
votes
2answers
809 views

Using footnotesize in ctable package

I have a long table requiring the use of a \footnotesize. The table is made using a \ctable package as follows. \documentclass{article} \usepackage{ctable} \usepackage{booktabs} \begin{document} ...
3
votes
4answers
154 views

Algorithm for 'Plugging in' Values to Tables

Simply, if I have a table of the form: \begin{tabular}{l r r r r r l r r r r r} \hline {}&{}&{}&$n$&{}&{}&{}&{}&{}&$n$&{}&{}\\ ...
4
votes
1answer
356 views

Figure + table wider than textwidth

I have a figure and a table placed next to one another, but they are wider than the textwidth. Now I want to center them so they exceed the textwidth margins. Can this be done? Edit: currently I have ...
1
vote
2answers
373 views

Can't add fixed column types to tabularx columns with different widths

Trying to introduce a ratio between the X-column types of tabularx not 1:1. I now encountered the problem that my third column type p{11ex} is no longer accepted. I don't know why. ...
3
votes
1answer
2k views

Table inside a caption

Sorry if this is a triviality ... Anyhow, how would you go about to insert a table inside a figure caption? how do I go about to insert a block inside a block? \begin{figure}[h] ...
5
votes
2answers
363 views

Creating Thin Tables in LaTeX

Suppose I have the following table: \begin{table}[!p] \fontsize{6}{6}\selectfont \caption{First 200 terms of Hofstadter's $Q(n)$}\label{tab11} \center{ \begin{tabular}{l r r r r r l r r r r r} ...
13
votes
1answer
512 views

How does one construct an abstract (n × n) empty grid of squares?

I would like to just create a grid like this, but without numbers or color, but I'd like to represent an n × n grid abstractly with ellipses like this: Also, I need just a simple—singular—grid ...
13
votes
2answers
2k views

Tables with colored cells and dashed lines

I would like to draw a table with some colored cells and dashed horizontal lines. Here is my first attempt using the colortbl package and the arydshln package: \documentclass[12pt]{article} ...
3
votes
2answers
439 views

can't close table

I can't figure out why the following code produces the table as you can see in my attachment: \centering \begin{tabular}{|m{3.5cm}|m{10.0cm}|m{2.5cm}|} \hline ...
3
votes
1answer
263 views

siunitx tables and commands between columns

I'd like to add parenthesis around some columns in a table, using the siunitx package. I'm using the > and < column specifiers, and they seem to work... except in the last column, where some ...
6
votes
1answer
182 views

How to typeset a table explaining Euclide's algorithm?

I would like to typeset a table explaining Euclide's algorithm for calculating the greatest common divisor of two numbers, like this one: How can I do that in LaTeX?
9
votes
2answers
611 views

Line down the side of the page

At the moment I'm using the {tabular} environment to distinguish examples in a document I'm writing: \begin{tabular}{r|p{11cm}} \emph{Example} & [Lots of text and equations] \end{tabular} It ...
3
votes
2answers
477 views

Fixing itemization alignment and line wrap inside tabular

I'm trying to construct a table using the following code: \documentclass{article} \usepackage[inline]{enumitem} \begin{document} \begin{table}[h] \begin{tabular}{p{.3\linewidth}p{.7\linewidth}} ...
3
votes
1answer
251 views

Table numbering in unnumbered chapters (e.g. \chapter*)

I've tried to google this in about a dozen different ways, but didn't find anything. I have an introduction chapter that uses \chapter*. The numbering of the subsections is fine - they're still ...
3
votes
2answers
405 views

One verbatim column in pgfplotstable and a non-verbatim header

I wanted to create a pgfplotstable in which one column would be treated as verbatim. I first tried to straightforwardly use \verb but I almost expected this to fail spectacularly and it did. I found ...
9
votes
1answer
5k views

How to change the font size only in one column of a table/tabular?

Is there any way to reduce the font size in a table/tabular but only in one of its columns without repeating the size command in each cell of that column? Thanks.
4
votes
1answer
257 views

Why do I have to choose between global and local settings for siunitx tabular behaviour?

This is a follow up to Numbers in tables: align by decimal point *and* flush right?. In a tabular set with siunitx, I can give formatting options or in the \sisetup{} command or in the ...
2
votes
1answer
487 views

longtabu with multicols?

I want to place a very long table into my document, i.e. a table which spans multiple pages. The table has a rather narrow width, so it should be set in multicolumn mode (2 or 3 columns). The text ...
8
votes
3answers
458 views

\newline in p-column with extra vertical space?

I need to add some vertical space between two lines in a p-column of a tabular. Outside of a table I'd use \\[1ex], but inside of a table I have to use \newline which doesn't have an optional argument ...
6
votes
2answers
223 views

Pgfplotstable for journals

a) Most journal have old LaTeX distribution or do not want to bother with “complicated” packages such as those derived from pgf (see Using TikZ in journal articles). I have build a table using ...
1
vote
1answer
1k views

Indented before caption in a Latex table or figure

I have a problem with the space before my caption. When I run this sintaxis Latex throw a table and a figure. My problem is the position of the caption. The first one (table) is ok; it is at the ...
4
votes
1answer
227 views

Datatool cannot use math macros in tabular headers from csv file

I am making a LaTeX table using a CSV file and the datatools package. Here is a minimal working example: \documentclass{minimal} \usepackage{datatool} \usepackage{filecontents} ...
5
votes
1answer
153 views

Table of Values

How can something like this be done in MacTex:
1
vote
0answers
151 views

Abbreviated syntax for CALS package [duplicate]

The cals package allows to create the tables with design capabilities which are available in Microsoft Word. This package is not based on tabular and has more bulky syntax than tabular. I'm try to ...
3
votes
1answer
489 views

How to create a table where one cell spans all the columns and the text wraps properly?

I need to create a table like this: table with two columns and width equal to width of the page; border around whole table; first row spanning two columns; with background color, bold font and ...
1
vote
1answer
727 views

tabularx and tablefootnote multiple footnotes from one \tablefootnote

In my tablularx environment I have a footnote that I'd like to have placed at the bottom of the page. Using both the tabularx and tablefootnote packages all is well. However I get served a bit too ...
1
vote
1answer
2k views

\hfill underlining in a tabular environment

I would like to make a name and address fill-in-the-blank in a neat rectangle with a lined space where the information should be filled in. At first I came up with this: \begin{tabular}{ll} ...
7
votes
2answers
2k views

longtable in beamer environment (lacks headers/footers)

In Beamer, I wish to use the longtable package to break up tables across multiple frames automatically. I am aware of the xtab package, which works fine in Beamer, but I prefer longtable as it is the ...
8
votes
2answers
202 views

Allow [ characters in tables without entering math-mode (from R)

I have R code that produces latex code like: \begin{tabular}{D{.}{.}{7}D{.}{.}{7}} \toprule \multicolumn{1}{c}{x} & \multicolumn{1}{c}{y} \\ \midrule [1, 5) & 1 \\ [1, 5) & 2 \\ [5, 8) ...
3
votes
2answers
225 views

sideways column type based on column type c

I'm trying to create a sideways column type based on column type c. At the moment it looks like this: I want to put the expression "long word" in the vertical middle of the column and remove the ...
2
votes
1answer
67 views

Making a table centered in latex?

I'm trying the following code to make a table in latex, however the table is out of layout. Here's the code I'm trying: \begin{table} \caption{Table Title} \begin{tabular}{|c|c|c|} \hline & ...
2
votes
1answer
122 views

Alignment of image within tabular

I got a problem with the alignment of an image within the tabular environment. I want to align the image within the table in such a way, that it is located to the very right of the layout and the text ...
4
votes
1answer
43 views

Tabular into different rows within the table environment

I have three tabular environments that I would like to put within the same table... The problem is that they are too large to stay in a single row and I don't know how to break a row of tables so that ...