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

3
votes
1answer
458 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
271 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
209 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
355 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
627 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
437 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
784 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
337 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
360 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
362 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
505 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
428 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
259 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
181 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
599 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
475 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
244 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
399 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
248 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
484 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
441 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
221 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
224 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
473 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
710 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 ...
7
votes
2answers
199 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
220 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
65 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
119 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 ...
3
votes
1answer
162 views

How to add two force line breaks in cell

I would like to add two force line breaks in a cell. Using an answer from this question I can add one force line break. Can you help to add two line breaks using similar function like ...
4
votes
1answer
2k views

pgfplotstable manage strings and values

I like the pgfplotstable package for reading and plotting tables but handling of strings and values (especially when strings contain spaces) drives me crazy... I often use a table as shown here: ...
5
votes
1answer
173 views

How to implement the macros style with mixed chars and floats in a csv file?

I would like to implement macros to generate multiple tables in a document. Some inspiration comes from here: usage-of-longtable-or-equivalent-and-pgfplotstabletypeset The input csv file and ...
1
vote
1answer
68 views

Retain longtabu settings throughout document

This question is a continuation of this previous one Identical instance of longtabu I would like to create an environment this is a longtabu where the column widths determined for the second instance ...
4
votes
1answer
106 views

Identical instance of longtabu

Defining a class file, I would like to define a new environment, which is essentially a longtabu. The longtabu is defined to have a variable width left column, which I would like to be identical in ...
2
votes
1answer
113 views

Centering content in tables with borders

I have encountered a problem using \centering within the tabular environment. The following code \documentclass{article} \begin{document} \begin{tabular}{|r|r|} \hline \centering{Lolcats} & ...
2
votes
1answer
247 views

Vertical alignment of text around a symbol in table

Is there a way to organize the vertical alignment in table around a particular symbol. For example in the below code \begin{table} \begin{center} \begin{tabular}{ *{1}{c}} a = b + c \\ a + ...
5
votes
2answers
322 views

Transforming string into tabular row

Trying to have a command converting a string into a (tabular) row, where each cell of the row is (a function of) each character of the string. (\tilerow is my attempt, \tiletext is just for ...
1
vote
1answer
5k views

Increase row height of tabularx [duplicate]

I'm using the tabularx package from within memoir for creating a table. I'm trying to set the row height and found for tabular the command \setlength{\extrarowheight}{40pt} However, with my ...
4
votes
3answers
845 views

How to top align text and image in table?

I am facing some problem in aligning (top-aligned) image and text in a table. \documentclass[11pt,table,a4paper]{article} \usepackage{array,ragged2e} \usepackage{graphicx} \usepackage[top=2cm, ...