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

5
votes
1answer
1k views

How to avoid \cellcolor overflowing when changing the space in the column?

I reduced the space in the columns through the use of @{} in the column type: \newcolumntype{M}{@{}c@{}} The problem is that, when I combined this with the \cellcolor command, it overflows into the ...
27
votes
3answers
2k views

Parametrize shading in table through TikZ

I wanted to do some shading in a table according to its values. For example, if you see the table below: a b c d a 90 10 0 0 b 0 80 10 10 c 0 0 95 5 d 0 10 5 85 I want to ...
0
votes
0answers
43 views

I cannot get an image and `lstlisting` aligned in a table [duplicate]

Possible Duplicate: How to align picture top left in a table? I want to display an image and some lines of monospaced text with line breaks (as far as I know, lstlisting is the only ...
3
votes
1answer
609 views

Vertical alignment of tabulars nested in longtable

I tried to nest tabulars in a longtable enviroment. The content of the tabulars is still at the bottom of each row. \begin{longtable}[c]{p{153mm-2\tabcolsep}p{37mm-2\tabcolsep}}\hline ...
2
votes
1answer
524 views

Is it possible to set a linebreak in l columns

Im using tabu to span tables over the full width, but I would like to span only the first column (i.e. the space between first and second column) and let TeX use the natural width of the other ...
7
votes
2answers
771 views

problem with \ifthenelse + multicolumn

I encounter various problems when i want to control the display of a table with a ifthenelse test. For example, consider the following M(non)WE : \documentclass{article} \usepackage{multirow} ...
3
votes
2answers
3k views

Remove automatic table headline

I use LaTeX for creating PDF output from R - not to create long documents. Hence the automatic Table 1: <caption> above the table is rather annoying. How can I remove the automatically generated ...
1
vote
1answer
793 views

Table vertical line [duplicate]

Possible Duplicate: Too long vertical lines in table In the following table, the first vertical line is higher than the second. How do I correct this? ...
5
votes
2answers
907 views

Centering tables in document class apa6

I'm using the apa6 class in doc mode for my thesis. Now, when I create a table and try to center it on a page, the table is centered alright. The caption, however, still floats on the left of the ...
4
votes
1answer
431 views

Adding both captions and notes to a table with the captions package

In the following table I created the caption exactly they way I wanted. I'd like to add a "Note" below the tabular, but within the table environment, following the same style as the caption. I sort of ...
6
votes
2answers
2k views

How to create attendance sheets?

Is there a package for creating sheets you fill out by handwriting? Like for example attendance sheets, a list of key borrowers, a sign-off sheet for dangerous stuff etc. Basically some sort of ...
4
votes
3answers
4k views

Too long vertical lines in table

Ok, I've looked at this code too long and need some fresh eyes and ideas. Question: Why do I get too long vertical lines on my LaTeX table? Please note that I've not experiencing any problems with ...
3
votes
2answers
965 views

Vertical alignment of image in multirow column in tabularx at the top of the cell?

I want to place an image with includegraphics in a multirow table cell in a tabularx, and it shall be vertically aligned with the top of the cell. Example with a rule instead of the image: ...
6
votes
1answer
3k views

Table notes next to a table

Does anyone have a simple solution for using tables with notes (as in threeparttable's \tnote) in a way that lists the table notes on the right of the table, instead of underneath it? I have a table ...
3
votes
2answers
476 views

Options for decreasing this table's width?

I like the style of the following table (booktabs effects, nice caption, equal width of data columns, right alignment of data, width set equal to the \linewidth, able to look at two estimator ...
8
votes
1answer
3k views

Vertical line left out in tabular

The code \documentclass[a4paper]{article} \usepackage{multirow} \begin{document} \begin{tabular}{|l|l|l|l|l|l|l|} \hline \multirow{2}{*}{Color Type} & \multirow{2}{*}{Channels} & ...
4
votes
2answers
790 views

Break url in tabular

How can I break hyperref URLs in a tabular environment. Consider the following example: \documentclass{article} ...
4
votes
1answer
728 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
1k 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
674 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
554 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
24k 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
725 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
325 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
400 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
709 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
844 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
337 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
46k 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
507 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** ...