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

8
votes
1answer
779 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
357 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
425 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
13k 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
5k 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
315 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
788 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
890 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
5k 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
6k 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} ...
25
votes
2answers
22k 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
4k 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
367 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 ...
32
votes
6answers
54k 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 ...
35
votes
3answers
17k 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
513 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** ...
5
votes
3answers
6k 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
560 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
624 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
327 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
919 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
492 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
430 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 ...
26
votes
2answers
13k 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
545 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
620 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
566 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] ...
4
votes
2answers
210 views

Layout problems with tables and graphics (eps files) - they're all over the place!

I know I'm doing something dumb here but I can't figure it out. I am creating a .tex file with a header: %% XXXXXXXXXXXXXX created this file. \documentclass[english]{article} \usepackage{avant} ...
7
votes
3answers
870 views

Parallel texts with header on each page?

I have two English language texts that are translations of the same work and that I want to put in parallel: I do not plan to include the original, non-English text. This is for a document (of ca. 100 ...
5
votes
2answers
223 views

Customize the “cell environment” in a tabular

Is there a way to modify the layout of cells in a tabular? I would like to have a environment mytable which I would use like a tabular: \begin{mytable}{l|l} entry & entry \\ entry & entry ...
5
votes
3answers
393 views

Make different font sizes in a table align at top, not bottom

I have a situation similar as to this MWE: \documentclass{article} \usepackage{tabularx} \begin{document} \begin{table} \begin{tiny} \begin{tabularx}{\textwidth}{|>{\normalsize}X|X|X|} \hline Foo ...
3
votes
1answer
758 views

Column spacing problem

I'd like to know how to position two columns in the following table closer together. The table looks like this: I have found I had a problem with spacing of tabular columns combined with ...
15
votes
1answer
106 views

A command to move forward to a specific (numbered) column?

Suppose I want a \gotocolumn command, with the following behavior: in a tabular with n or more columns, \gotocolumn{n} would expand to the shortest combination of \\ and & necessary to bring us ...
5
votes
3answers
3k views

fbox in tabular throws missing endgroup

I have to draw a border around my tables, so I'm using \fbox{} (is there a better way?). It works when using a threeparttable but with the normal tabular latex throws an error stating Missing ...
15
votes
5answers
19k views

Newline in a table cell which is centered

This question may look like a duplicate but, none of the answers given to the possible duplicates contain the answer to this specific case. I have a tabular, say \begin{tabular}{ccc}. While adding a ...
6
votes
4answers
760 views

Problem with itemize and ifthenelse in a tabular environment

I want to fill a cells of a table with only a \item command, and the \begin{itemize} should be automatically inserted. The following code works : \newenvironment{matable}[0]{% ...
6
votes
2answers
7k views

Can't generate vertical space between tables

I realize this is probably a really simple issue but I'm a complete beginner. I am auto-generating code very similar to the LaTeX code below. However no matter what I do I can't get space between the ...
2
votes
2answers
682 views

siunitx multicolumn problem

In addition to Right-centered columns in LyX, I have another problem, now with multicolumns. I want to center the number "98" (which spans two columns) above the two other columns. These shall be ...
7
votes
3answers
1k views

Function sign table, complete with first and second derivative, plus concavity/convexity and asymptotic behaviour - a better way?

There has got to be a better/easier way to do this!! And by the way, how does one format the code [when posting a question] to look nice, compact, and full of colours? \documentclass{article} ...
1
vote
1answer
373 views

Right-centered columns in LyX

This is very near to my topic: How to align integers on the right, but still center them. However, I do not get it to work under LyX. This is the code I have: \begin{table}[H] \centering ...
6
votes
2answers
735 views

Using txfonts with Polish characters breaks tables

Restated Problem and a Solution The use of a times font using the package txfonts will cause tables to be improperly displayed (see below for an image) if a character such as ę,ą or a different ...