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

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} ...
23
votes
2answers
19k 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
333 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 ...
29
votes
6answers
43k 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
14k 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
505 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
540 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
606 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
313 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
825 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
989 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
483 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
417 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
10k 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
505 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
574 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
533 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] ...
3
votes
2answers
206 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
807 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
217 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
365 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
688 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
101 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 ...
13
votes
4answers
16k 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
700 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
6k 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
633 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 ...
6
votes
3answers
992 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
357 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
703 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 ...
4
votes
2answers
2k views

Complex LaTeX Table

I am trying to make a LaTeX table. I have prepared the following code. \begin{table}[htbp] \caption{Combination Nomenclature, (Average Fill Factor)} \resizebox{1.0\textwidth}{!}{ ...
4
votes
1answer
4k views

Empty line after a tabular environment

I would like to have a little table without caption within my text. There should be, however, some space between the preceeding and following lines of text. The following snippet ...
11
votes
4answers
1k views

Create a table with three columns above two columns

I'm making a document header (full width of page) for which I would like three columns on the first row and two in the second. The tricky part (I think) is that I would like the bottom two cells to ...
1
vote
1answer
188 views

label for table [duplicate]

Possible Duplicate: Where to put the \label on a figure environment? I've got the table numberin with sections: \numberwithin{table}{section} The following table is 2.1. for example: ...
0
votes
1answer
242 views

Table doesn't fit with title in just one page

I want a chapter tittle and a table to fit in just one page. It looks possible as it is enough space, but this is the output: The code used is: \afterpage{ \chapter{Esquemáticos y PCB} \clearpage ...
7
votes
2answers
4k views

tabular columns too wide

I want to fit the following table on a beamer slide. \begin{tabular}{|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|} A & B & C & D & E & F & G & H & I & J ...
15
votes
2answers
19k views

Including Large Tables in a beamer Frame

What is the best way of including large tables in a beamer presentation?
7
votes
3answers
2k views

Drawing Multiple Diagonal Arrows in a Table

My question is basically the same as this one, but with many arrows instead. (I'd like to see the TikZ solution--I feel like once I get it here, I'll be able to extrapolate and do it in other cases ...
3
votes
2answers
194 views

How do I put “complex” multiline things as 1 cell in a table?

Trying to group up different multi line formulas and text that I have to make space on the page, my first thought was to place them as a cell in a table, but trying to do that naively does not work ...
0
votes
1answer
290 views

Strange error in my table

I need help with an error: \begin{table} \centering \begin{tabular}{@{}ccp{8cm}@{}} \toprule Valor DOP & Calificación & Descripción \\ \cmidrule(c){1-1}\cmidrule(c){2-2}\cmidrule(p){3-3} ...
8
votes
3answers
3k views

Format spacing for correlation table (any statistical table)

I'm attempting to format a correlation table for publication but can't get the spacing right when I include significance stars. I'd like to have minimal space between columns. The space between ...
3
votes
2answers
1k views

Drawing Arrows in Tables

What is the best way to draw a diagonal line through the following table? \begin{center} \begin{tabular}{*{9}{c}} $e_{1}$ & = & $0$ & $.$ & $d_{1}^{1}$ & $d_{1}^{2}$ & ...
5
votes
1answer
232 views

Show or hide rows of a tabular controlled by a global variable

Is it possible to show or hide rows of a table by setting a global boolean variable? \documentclass{minimal} % some boolean variable X \begin{document} \begin{tabular}{ccc} A & B & C \\ A ...