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

4
votes
2answers
793 views

Break url in tabular

How can I break hyperref URLs in a tabular environment. Consider the following example: \documentclass{article} ...
4
votes
1answer
730 views

How would I create verb conjugation charts?

As a student learning a second language, I often create a study guide of the vocabulary that goes along with the particular upcoming exam. For conjugations of verbs, it is extremely helpful to present ...
2
votes
1answer
2k views

Vertical spacing of captions in booktabs

Both \abovetopsep and \belowbottomsep are 0.0pt. But for some reason there's extra space between the bottom rule and "my second caption" in the table below. Q: What is that space? Where does it come ...
9
votes
3answers
2k views

Two column table, enumerate first column but not second

I need to have a two column table, where the first column contains enumerations and the second take plain text. For example, Column 1 Column 2 1. Step 1 Reason 1 2. Step 2 ...
3
votes
1answer
81 views

Graphics with wrong sizes in table

I want to make a table from images of specific size (2cm) in PDF format. But in case of using article document class I got larger images. I tried to use minimal class and got right sizes, but ...
11
votes
1answer
12k views

Table caption without the word “table”

Whenever I put \begin{table} \begin{tabular} ... \end{tabular} \caption{My great table} \end{table} It would end up with the name "Table 1: My great table". I don't want the prefix "Table 1:". Is ...
11
votes
6answers
4k views

Generate LaTeX Truth Table with Python Cheetah

While looking for code which can automatically generate truth table in LaTeX I stumbled on this Python generator. It appears that the code can be used from Cheetah's framework. Can anybody point me to ...
8
votes
1answer
2k views

Tables with math, equal column width, and right alignment

Q: Is there an approach, less hacky than my \MyLen approach, that would generate roughly the second table below? I'd like to maintain professional features (but I welcome criticisms wholeheartedly!) ...
17
votes
2answers
2k views

Generate random numbers with a specific font

My objective is to create a table or some form of environment as shown in the figure below. The numbers should be randomly generated every time you compile and have the font shown below. Is ...
6
votes
3answers
677 views

Vertically align the cell of a table with the baseline of surrounding text

I have a table like this: \begin{tabular}[b]{c} A \\ B \\ C \\ D \\ \end{tabular}E The code above places "D" and "E" on the same baseline, no matter what size any of the letters are. Without ...
3
votes
1answer
2k views

Image in table covers horizontal line above it

I have a table with images in one of the columns. My problem is that the image overlaps the horizontal line above it, making it look bad. I first tried putting a \\ after each \hline, but this causes ...
2
votes
2answers
555 views

Table notes that are compatible with LaTeX2RTF

I want to create a simple table whit a few table footnotes as common in scientific journals. I've tried the package tablefootnote and the threeparttable but I can't convert them into a RTF document ...
3
votes
1answer
1k views

Get combine a `sidewaystable` with a `subfloat` from `subfig`

I use the subtables environment from the subfloat package to combine table numbering (i.e., any tables I wrap in the subtables environment get labeled 1a, 1b, and so on). But I just learned on the ...
38
votes
2answers
25k views

How can I reproduce this table with thick lines?

I'm trying to reproduce this table: (apologies for the terrible cameraphone pic) I don't know how to get the slightly thicker leftmost and topmost line. Here's a minimal example of what I have so ...
8
votes
1answer
728 views

siunitx number too big when trying to round

Using the siunitx package \usepackage{siunitx} I am trying to put numbers with plenty of decimal digits in a table while rounding them to 3 digits after the decimal point. There is a compilation ...
8
votes
1answer
328 views

siunitx rounding works only if centering

Using the siunitx package \usepackage{siunitx} Consider the following two tables: 1. \begin{tabular}{ S[table-number-alignment=center, table-figures-decimal=3, table-auto-round] } 3.23958398 ...
2
votes
1answer
402 views

Why the horizontal line behaves differently in supertabular and tabular?

I have a problem using the supertabular package. Basically the horizontal lines, instead of stopping at the end of the table, continue until the end of the page. This is a self-explaining ...
11
votes
1answer
2k views

Table typesetting with pgfplotstable

I have two questions concerning pgfplotstable and number formatting with pgf. Consider the following piece of code: \documentclass{article} \usepackage{pgfplotstable} \usepackage{amsmath} ...
8
votes
3answers
11k views

How to write vertically in a cell

I know that with \begin{sideways} ... \end{sideways} I can write a text vertically, but it rotates the text by +90 degrees. What should I do to rotate it by -90 degrees?
3
votes
2answers
4k views

How to put two tables in one landscape page

I have two consecutive tables and since they are wide I want to have them in a landscape page. But it doesn't show both of them in one page. here is the code I'm using: \begin{landscape} ...
22
votes
1answer
313 views

Does \\ in the last line of an array have any effect?

Consider the following example: \begin{array}{l} line 1 \\ line 2 \\ \end{array} Is the \\ in the last line completely optional or are there circumstances under which it has any effect?
3
votes
1answer
2k views

Vertical alignment problem with \arraystretch and m column definition

For some reason, in m{} columns, once \arraystretch pushes row height above the text height, the text ceases to be absolutely aligned. Instead, the first line is centered vertically and the rest fall ...
6
votes
1answer
8k views

Centering vertically in table cell

I'm new with LaTeX and I'm trying to make a table with the elements centered vertically and horizontally. I've searched for this question, it seems like most people were trying to do things a little ...
5
votes
1answer
717 views

Does longtable not support the m column type?

I have the following problem: I would like to use the m column type in a longtable. But if I typeset \documentclass{minimal} \usepackage{longtable} \begin{document} ...
3
votes
1answer
848 views

“Center” table offset, to account for floating figure?

I'm composing a document in which I use the wrapfig environment to let me wrap text around a floating figure. I've placed this figure (of width 0.3\textwidth) on the right of a page, and I'd like to ...
7
votes
1answer
4k views

Multicolumn overrules rowcolors

I am trying to create a table with alternating rowcolors. This works fine in itself with a command like: \rowcolors{1}{gray!20}{white} However, from here it gets a bit more complex. Since the last ...
3
votes
1answer
5k views

How do I float/wrap text around a table

I've been trying to use the wrapfigure and wraptable from the wrapfig package, but to no avail. This works for text. \begin{wrapfigure}{l}{40mm} \begin{center} Some random ...
13
votes
2answers
1k views

vspace before itemize in a Table cell, tabular vs longtable

In the following MWE, one sees the difference between tabular and longtable, with respect to the vertical space before an itemize, inside a cell : \documentclass[12pt]{article} ...
24
votes
2answers
20k views

How to change line color in tabular?

How can I change the color of the lines (the frame) in a tabular environment? In the following MWE: \begin{tabular}{c|c|c} a&b&c \\ \hline d&e&f \\ \hline g&h&i \end{tabular} ...
4
votes
3answers
3k views

Centering cells of a tabular column using m{}

I want to use a tabular to list some headlines, that might be quite long or contain linebreaks. The first column is kind of an Index or Key for the second columns content, so i would like to ...
7
votes
1answer
340 views

Tables header row's: how to ignore the column type?

I have several column types defined using the array and collcell package. An example \newcolumntype{N}{>{\collectcell\num}c<{\endcollectcell}} This alleviates making tables a lot, and makes ...
30
votes
6answers
47k views

Table with multiple lines in some cells

What is the easiest way to have 2 lines in some of the cells in a table? The only way I can think right now is to actually have 2 separate rows (without the line in the middle) and use \multirow on ...
33
votes
3answers
15k views

Why not use vertical lines ('|') in a tabular?

My question is a follow-up to the answer to a follow-up question, to be found here. ;) I'd like to know why one would advise against using vertical lines (via |) in a tabular (i.e. in ...
5
votes
1answer
508 views

Caption issue with tufte-latex and ctable

When using ctable with the tufte-latex class (in xelatex), I get an error when defining a caption (and hence a label). ! Undefined control sequence. \@tufte@stored@caption ->\@ctblcaptionarg** ...
3
votes
3answers
5k views

Line break in rotatebox in table?

I use \rotatebox to create a table with vertical headers, like so: \documentclass{article} \usepackage{rotating} \begin{document} \begin{table} \begin{tabular}{|l|l|l|} \hline ...
3
votes
1answer
1k views

Wrapping table column headings in -turn- environment?

I'm trying to wrap the text in table column headings in the turn environment (from the package -rotating-). Is there a way to perform this using turn or do have to embed a minipage (e.g., ...& ...
3
votes
1answer
548 views

How to centralize the tables

I have made a table like this \documentclass[notuble,10pt,a4paper]{leaflet} \usepackage{color} \usepackage{flowfram} \usepackage{graphicx} \usepackage{wrapfig} \usepackage{hyperref} ...
6
votes
1answer
611 views

Pgffor and the alignment character (&)

I need to construct a table that looks like: \begin{tabular}{ccc} a(1,1) & a(1,2) & a(1,3)\\ % <--- a(2,1) & a(2,2) & a(2,3)\\ % <--- I need this a(3,1) & a(3,2) & ...
2
votes
1answer
319 views

table and page break inside list

For a cooperative latex document with a lot of authors, it was decided to use tables for certain structures. Therefore, I have to cope with the problem of automatic page breaks of tables that only ...
9
votes
1answer
1k views

Is it possible to have multiple paragraphs inside a multicolumn using xcolor or a replacement?

I am getting information written by users in many lines, paragraphs, and I have to put those inside a table, I would like to know if it is possible to instruct LaTeX to accept paragraphs inside a ...
6
votes
2answers
854 views

How to use hfill and underbrace together

I'm basically trying to achieve what was answered in How to make nested table span all underlying cells but this time with an horizontal brace under 1 2 3. But as soon as I use \underbrace, 1 2 3 ...
8
votes
1answer
1k views

Custom tabular environments

I'm trying to create the following structure using the best possible "user-interface" in LaTeX: --------------------------------------------- | Week 1 | 1. Topic 1 | | ...
5
votes
3answers
489 views

Table of subfloats

I'm trying to sort figures (using subfloat) in a table, with labels for each subfigure. My point is, using only subfloat, that the subfigures are referred in the text as figure a, b, ... and so on. ...
5
votes
2answers
4k views

\cline doesn't work

I'd like to draw a partial horizontal line just below of 'first second third' row, but \cline doesn't work. Any suggestion? \documentclass[table]{beamer} \usepackage[T1]{fontenc} ...
9
votes
2answers
422 views

Table/Figure Layout

I'm interested in good practice for table (tabular) and figure layout, especially in good references. What do typographers have to say about this. Please provide references if you can. To focus the ...
23
votes
2answers
11k views

How can I center a too wide table?

I have a document containing a table which is slightly too wide for the page. But instead of growing to the right side only, I would like to have it centered on the page. I have tried to use the ...
8
votes
4answers
1k views

How can I insert a framed box inside a table?

I'm trying to accomplish the result in shown in following picture. So far I have tried : \begin{tabular}[h]{cm{5cm}m{5cm}c} fingerprint & Signature1 & \rule{5cm}{.5pt} & fingerprint ...
3
votes
2answers
519 views

How to just show a part of lines inside a tabular

I am drawing a matrix as follows: \[\begin{tabular}{l|lllll|ll} & 0 & i & j & k & $\ldots$ & x & y \\ \hline 0 & 0 & $\ldots$ & $\ldots$ & $\ldots$ ...
3
votes
1answer
591 views

Siunitx: alignment, parentheses and font size

I'm trying to align numbers (that are bolded, between parentheses, etc.) by decimal points in table columns while using the auto-round option of the siunitx package. The following code doesn't work: ...
5
votes
1answer
546 views

Subtable inside a table / Adjusting table column width on the fly

I've been fiddling with the following table for a while, and have some minor issues. \documentclass{article} \usepackage{threeparttable} \usepackage{multirow} \begin{document} \begin{table}[!ht] ...