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

2
votes
3answers
2k views

Center text in a table column?

I have the following table \begin{tabular}{ll} \includegraphics{tag.png} & bla bla bla.\\ \includegraphics{tag.png} & \\ \includegraphics{tag.png} & Store project\\ ...
2
votes
1answer
2k views

How to use images in a table?

I want to use a table where the first column contains images and the second column contains text. Ideally the first column should have the width of the image and the rest of the pagewidth should be ...
5
votes
1answer
517 views

Missing lines in tabular with minimal.cls

If I replace the class by minimal in the code below for a very simple table, the vertical line disappears. Why? \documentclass{article} \begin{document} \begin{tabular}{c|c} a&b\\ c&d ...
10
votes
3answers
4k views

Spacing issues with itemize in a table

I've been trying to use lists of items in a table. This was easy to do but I could not find a way to align them in the same way as plain text in a table. Let me give an example: ...
7
votes
2answers
1k views

How to format table with long column head entries?

I would like to create some kind of feature matrix with available classes in columns and implemented features as rows. Problem is, that the class names are quite long. Rotating them by 90° simply ...
0
votes
1answer
1k views

Cannot make latex multicolumn work

I am trying to make a matrix in LaTeX. Now I am trying to make a table with multicolumn like a b c d у So I coded \usepackage{arydshln} \usepackage{array} \usepackage{amsmath} ...
18
votes
8answers
15k views

LaTeX table capabilities

This might be a proper question for community wiki. How can various text processor (like Word or Writer) table capabilities be achieved using LaTeX? For example, can I achieve: multicolumns and ...
6
votes
2answers
942 views

Repeating preamble in LaTeX tabular

The TeX primitive \halign, on which every tabular etc. is built, allows repeated preambles. The easiest explanation of what it is comes by looking at the output of the code below. ...
5
votes
2answers
656 views

Adding numerical values in a LaTeX tabular column [duplicate]

Possible Duplicate: How can I automatically calculate sums in a LaTeX table? Does anyone know if the is a TeX/LaTeX package which will make an ordinary tabular environment work as a simple ...
3
votes
1answer
5k views

How to use REVTeX's ruledtabular in a normal document?

I would like to use the ruledtabular environment in a book I am currently writing. \begin{table} \caption{\label{tab:table1} ...} \begin{ruledtabular} \begin{tabular}{ccccc} ... \end{tabular} ...
21
votes
3answers
6k views

How to specify a fixed height for all rows in a table?

I have something like this: \newcolumntype{C}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}m{#1}} \begin{tabular}{| c | C{3cm} | C{4cm} |} Short Text & Short Text & Short Text ...
70
votes
2answers
102k views

How to create fixed width table columns with text raggedright/centered/raggedleft?

I would like to create a table with some columns' width specified, while the text in those columns should be centered both horizontally and vertically. I found out that \usepackage{array} ...
20
votes
2answers
43k views

Add notes under the table

I'm using the latex package apa6e because the apa package isn't using APA style version 6 yet. Now I'm trying to add a table with notes right underneath it, like in this table for instance: Since ...
77
votes
2answers
9k views

Which tabular packages do which tasks and which packages conflict?

I've read a couple of questions recently about tabular environments, and it seems there's a whole bunch of packages that do stuff in this field. I'd really like a summary of what each package does, ...
12
votes
3answers
2k views

How to use siunitx and tabularx together?

I'm using the tabular features of siunitx (for what it is worth: v1.3 since I'm on TexLive 2009) to align numbers in tables, eg. \begin{tabular}{ p{1.5cm} S S S } bla & 1.23 & 4.5 & 67.89 ...
17
votes
5answers
911 views

How to apply a macro to each column of a table

I want to apply a macro to all the cells of a column with the cell content as the input to the macro. Is this possible? For example if the cell contents have the word TEST, the macro should take TEST ...
4
votes
2answers
1k views

\parbox “textwidth” for the combined width of a subset of table cells

I would like the parbox width of the text in a multicolumn to be calculated automatically from the combined width of the cells that the multicolumn spans. (Their width will vary in different copies of ...
4
votes
1answer
3k views

Tabular, make a column or a row emphasized

I want to create a table and to make all cells of a column emphasized. Is there a simple way to do it, or do I have to emphasize every single cell?
3
votes
1answer
432 views

Diagonal separator in table corner in ConTeXt

How can one create a diagonal separator in a table corner in ConTeXt (like the package slashbox for LaTeX)?
2
votes
1answer
397 views

Table Reference Format and Hyperlinks

I'm using hyperref package and refer to hundreds of tables from the appendix. My labels for tables look like: \label{table:some-numbers}. I then refer to it from the main text as ...
4
votes
1answer
827 views

Rotating text in a table, and getting hlines in the right place.

I have a table where the first line includes quite some text, and then each of the other cells is fairly small (a symbol or two maximum). At the moment, my code looks like this: ...
10
votes
6answers
891 views

How do I expand a macro into a tabular head?

I would like to be able to define a macro that can be used in the tabular definition. How can I do this? This does not work: \documentclass{article} \begin{document} \gdef\buildtabularhead{|||} ...
4
votes
5answers
7k views

Formatting table

I have a table that is created with the following code: \begin{table}[htdp] \caption{Comparison of Elements in Air on the Space Station and sea level on Earth} \centering \begin{center} ...
2
votes
1answer
345 views

Include source text from URI (e.g., Wikipedia)

Background Wikipedia content is reasonably current and free to use. Consider the tabular content at: http://en.wikipedia.org/wiki/Comparison_of_web_application_frameworks#Java Problem Copying ...
4
votes
1answer
393 views

ConTeXt - indented table, but horizontal rules go to left margin

This will be my last ConTeXt question for a little while...I've set up \setuptabulate[indenting=yes,margin=40pt] This works only to the extent that the table cells are indented appropriately - but ...
9
votes
2answers
741 views

Protrusion of fractions in tabulars

I have a number of tables in a book that I am busy with that have quite a few tables of the general form shown below: If you notice the fractional part of the numbers 5 1/2 and 16 1/2 protrude to ...
17
votes
2answers
2k views

How to make longtable respect \nopagebreak in the beginning?

For the book I am typesetting now I need a table environment with the following abilities: Span over multiple pages; Allow \nopagebreak between two lines Do not ignore \nopagebreak before the ...
3
votes
1answer
1k views

Table cell overflow

Consider this document example: \documentclass[a4paper,draft]{article} \usepackage{calc} \usepackage[demo]{graphicx} \usepackage{tabularx,multirow} \usepackage{geometry} \geometry{hmargin=0cm} ...
4
votes
1answer
584 views

Figure in the table with Tikz

How do I align a figure Tikz item at the top of the table? Its my result. I need the second alignment.
5
votes
1answer
1k views

Creating tables with spanning rows/columns

I'm trying to create a table which looks like but I'm not really sure how to incorporate multiple spanning rows and columns together (to add 'Organism 1' and 'Organism 2'). I've gotten to this ...
5
votes
2answers
772 views

xtabular* does not work on two columns

I'm trying to split a table in several pages, for doing this I'm using the xtab package and xtabular. However, the behavior of the xtabular* environment (that supposedly should break the two column ...
7
votes
1answer
3k views

Putting LaTeX table legend in a “x\y” style [duplicate]

Possible Duplicate: Tables of numbers Is it possible to put a "x\y" style legend in one cell (maybe be made up of several cells) of a table? It would be great to make the 'x' slightly lower ...
19
votes
2answers
21k views

How to include enumerate in tabular?

I would like to have text in one column table with multiple rows, but I need to include an enumerate in one cell. I get errors and read on the Internet the problem is in combining environments with ...
11
votes
5answers
2k views

Improve intercolumn spacing of this table

I'm trying to spruce up the appearance of this table: \begin{tabular}{rr@{\hspace{2em}}rr@{\hspace{2em}}rr@{\hspace{2em}}rr} \toprule \multicolumn{2}{c@{\hspace{2em}}}{\textbf{Word C}}& ...
2
votes
2answers
1k views

Starred version of “xtabular” not working

I want to insert a long table in a two-column paper. I tried "tabular" first, but the problem is that it doesn't divide the table among pages. Then people in this post suggested that I use xtab: In ...
31
votes
2answers
8k views

How to repeat top rows (column headings) on every page

I have a big table which contains hundreds of rows. I want to repeat the top two rows on every page of the table. How can I do it in TeX?
2
votes
3answers
252 views

How to set the width of the cell and allow it to take multiple lines?

I have a table below \documentclass[a4paper,12pt]{article} \begin{document} \begin{quote} \begin{tabular}{|c|c|c|c|c|} \hline \multicolumn{4}{c}{Table title}\\ \hline Fuze Type ...
1
vote
1answer
419 views

Table Out of Page [duplicate]

Possible Duplicate: In LaTeX, how can I make a table that takes up more than a single page? I have a big table which one page is not enough for. I would suppose that since LaTeX is WYSIWYM ...
1
vote
1answer
517 views

Drawing lines in tables?

I use the following code to draw a table: \makebox[\textwidth]{% \begin{tabularx}{\textwidth}{|X|S|S|S|S|S|X|} \hline & $--$ & $-$ & $-/+$ & $+$ & $++$ &\\ \hline The ...
12
votes
3answers
342 views

Expansion of first token in a tabular cell

Background I currently do some work on the collcell package which collects the content of a tabular/array cell and provides it to a user defined macro, e.g. using ...
3
votes
1answer
365 views

paper edition of my university facebook

I'm trying to make the paper edition of the face-book of my university. I got some constraints; for example, I have to do very small margins. \documentclass[a5paper,twoside]{book} ...
14
votes
1answer
5k views

Coloring columns in a table with colortbl and booktabs

I have created a rather complicated table with some columns that I want to color. For the table, I chose the booktabs and tabularx packages. For coloring the columns, I use colortbl. The problem that ...
4
votes
3answers
178 views

Table environment that can break inside a cell

I am wondering if there is an environment for creating a table in LaTeX that will not only break at \hline, but instead can break in the middle of a cell. I have to write very long reports in one ...
6
votes
3answers
336 views

Adding colour to table cells when decimals are aligned with arrays and {.} used in the column definition

I've got a table (below) that aligns the decimal points of my data - I wish to highlight a value (2 adjacent cells), however this leaves a white space where the decimal point is! If I increase the ...
2
votes
1answer
800 views

Aligning equations by row and column — with vertical lines

I want to include two sets of equations side-by-side in a table. Here is my example: \documentclass{article} \usepackage{amsmath} \newcommand{\eqnbox}[2]{ ...
10
votes
2answers
16k views

Separate \arraystretch value for every table

\arraystretch defines vertical spacing of tables. If I have several tables, how can I define a separate value of \arraystretch for every table? In my case, the last defined \arraystretch works for all ...
7
votes
1answer
1k views

List environment inside the tabular environment: extra line at top preventing alignment

I have a LaTeX question that is bugging me. I have been trying to get a list environment to appear correctly inside the tabular environment. So far I have gotten everything to my liking except one ...
33
votes
3answers
49k views

Is there a way to slightly shrink a table, including font size, to fit within the column boundaries?

I have a table that is just a little too wide for a 3.33" column. Is there a way to simply shrink the table a little to make it fit? I'm OK if the 10pt font becomes 9pt-something. Here is an example. ...
8
votes
2answers
3k views

How to make really wide tables narrower

Is there a way to fix extremely wide tables? I have the following table: \begin{tabular}{lllll} \toprule & Manual Tests & Randoop 2.5 Minutes With GUI Code & ...
7
votes
2answers
528 views

Aligning columns, but allowing for text inbetween

I need help aligning text that spans multiple lines where I have Verbatim code in between. Here is a mock example to show what I mean: Fruit Amount Apple $3.00 \begin{verbatim} ... ...