{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
3answers
502 views

colortbl: new environments and how to apply \expandafter

This is a followup question from one asked by Andrew Howard. After some discussion, it became clear that colortbl has some issues with the names that can be used for a \newcolumntype. The result of ...
3
votes
2answers
1k views

Using \columncolor outside column definition

I'm trying to create a command, which calls on an environment, which defines a custom column definition with one argument using \newcolumntype, and defines a second command, containing parameters for ...
14
votes
5answers
2k views

In a tabular, how to left align ignoring minus signs?

I'd like to create a table that is aligned left, but minus signs are ignored. E.g., the following gives a normal left-aligned table \begin{tabular}{llll} & a & b & c ...
0
votes
0answers
2k views

padding for table cells [duplicate]

Possible Duplicate: Column padding in tables I am unable to determine the padding for table cells. Here is my table so far: \begin{center} \begin{tabular}{ m{5cm} m{12cm} } \hline ...
0
votes
0answers
65 views

Multiple 'List of Tables' entry for single threeparttablex type table that spans multiple pages [duplicate]

Possible Duplicate: How to use a longtable with only one entry in the list of tables I have a single table that spans three pages using threeparttablex/longtable. The table: ...
12
votes
1answer
386 views

Error with table

\begin{table}[ht] \makebox[\textwidth][c]{ \begin{tabular}{ccccc} \hline \hline [] & [] & [] & [] & []\\ [] & [] & [] & [] & []\\ ...
0
votes
0answers
171 views

How to rotate the text in latex table? [duplicate]

Possible Duplicate: How to Rotate Text in Table across column spanning many rows I would like to make my first column of table merger together and include a 90°-rotated text in that merged ...
6
votes
4answers
3k views

How to decrease the font size of a table in an \input file

I have: \documentclass[11pt]{article} \begin{document} This is the main tex document. \input{tables} \end{document} In the tables.tex file, I only have numerical tables. I want to decrease the ...
7
votes
3answers
3k views

How to make a table with centered images?

On page 6 in this PDF is there a table with centred pictures in the right column. Does anyone know how to make such a table? I am using pdflatex.
13
votes
2answers
5k views

Different font sizes for different rows

I want to put different sizes of fonts (smaller) into different rows of my LaTeX table. I found that it is possible to have different font sizes for different columns of this post. Is there any simple ...
2
votes
1answer
1k views

Overriding margins with longtables

I am trying to create a large table, it is both wide and has a lot of rows. I've gotten long table to work and break it up, and I've managed to turn it landscape. However, due to the size of the ...
5
votes
1answer
328 views

Finding a table's row height

I have two tables, one of which has two rows as a header. The first table's header looks something like this: \toprule \footnotesize\textsc{Stars}\\ \tiny{Name} & \tiny{SHA} & \tiny{Dec}\\ ...
7
votes
1answer
4k views

Minipage, columns, tabular: differences in applicability?

This \parbox vs. \minipage post helped me to understand the main reasons to use either \parbox or {minipage} for placing material side-by-side ({minipage} is usually the winner). I have a similar ...
5
votes
1answer
562 views

How to wrap text in a cell (without any explicit lengths)

I'm hoping to wrap text in a single "mega-cell" at the end of a table. ---------------------- | header1 | header 2 | ---------------------- | entry1 | entry 2 | ---------------------- | ...
3
votes
1answer
478 views

The text “height” keeps popping up in tables

In my LaTeX document, I have some simple code for the simplest of tables. But, when I let TeXnicCenter output it to PDF, the text 'height' is suddenly in the first cell and on the first cell in a new ...
30
votes
3answers
10k views

Professional-looking tables with alternating row colors?

Both the Booktabs documentation and the Small Guide to Making Nice Tables provide some nice rules-of-thumb for making professional-looking tables (e.g., no double rules, no vertical rules, etc.) Q: ...
5
votes
2answers
2k views

Vertical spacing in tables with math

How can I force LaTeX to vertically center math in a table taking into account subscripts, superscripts, etc? It appears from the output below that LaTeX vertically centered the $JV$ and added the ...
9
votes
2answers
282 views

Table with “curly” break

I searched a lot but I wasn't able to find a package that can really fit my needs. I want to achieve something like the “Page Table” in this image: A regular table but with some “curly breaks” that ...
2
votes
3answers
132 views

Is there error in this code for a table?

I am trying to make a table using ScribTeX using the following code: \documentclass[12pt,oneside,reqno]{amsart} \usepackage{amssymb} \usepackage{mathtools} \usepackage[T1]{fontenc} ...
6
votes
1answer
920 views

How do I create the headings for this multirow multicolum table?

I wish to create a table that looks like the following: +-------++--------------------------++--------------------------+ | || Category A || Category B | | Title ...
21
votes
2answers
4k views

Aligning inside tabular environment, specific cell

I'm trying to align a specific content of a single cell. For example, \begin{tabular}{|r|r|} \hline 1 & 2 \hline right & to_the_left \hline 1 & 2 \hline ...
8
votes
3answers
3k views

Longtable caption numbering

I am trying to prevent a table from showing up in the list of tables. I used long table to create the table. This is the first table in my document. I know \caption*{} command should do the trick but ...
1
vote
1answer
390 views

table with monospaced and nonbreaking spaces

I have a xtable generated in R/Sweave that I would like displayed in portrait mode in a pdf. The spaces in the spacedSeq should properly align the sequences. How can I force this to be in a monospace ...
5
votes
1answer
4k views

How to vertically and horizontally centre text and images in (different) table cells?

I have a table which contains images in one column. I would like the first column to have text centred vertically and horizontally. I would like the second column to have text left justified and ...
6
votes
1answer
931 views

Within table, vertically align top of a list and normal text in horizontally adjacent cells

I am making a table where two of the columns constitute a pros/ cons list. I have created a custom list environment with minimal white space around it for this purpose. However, I still find that the ...
0
votes
1answer
682 views

XeLaTeX: xtabular package fails to work

I am trying to make my resume neat and tidy. So, going for LaTeX/XeLaTex. Resume Here The problem is, even though I use the xtab package to put my long tables across multiple pages, for some reason, ...
13
votes
5answers
756 views

Editing *existing* multipage TeX tables in a spreadsheet-like interface?

Is there any GUI/interface/package that will enable me to edit existing data in columns of my super-complicated multipage TeX table? Currently, I count the "&"s to get to the correct column and ...
4
votes
2answers
470 views

An improved \rowstyle that takes the cell contents as an argument

It is possible to format the column entries of a tabular in an argument-style fashion using the lrbox environment to store the column cell in a box (say) \mybox; and supply \mybox as an argument to ...
2
votes
2answers
1k views

booktabs and tiny horizontal space

In a regular table, I'm trying to remove the small horizontal space before the first column and after the last one as achieved with package booktabs with the option @{}. How can I do that? Please ...
1
vote
1answer
1k views

Align table-text in Lyx 1.6.9

I created a table with normal font text inside. After I select the text and go to Edit>>Text style>>Customized and select Larger, in the input the text looks aligned ok (it's right in the ...
8
votes
1answer
4k views

Center wide longtable (not tabular or tabularx)

I have a long and wide table that does fit on A4 format, but is too wide for the text margins. I want that table to be able to spread over multiple pages, but I also want it to be centered on the ...
5
votes
3answers
2k views

Table exceeds page

I'm new to tex and got a problem with a table that exceeds the page, because the content is too wide. I'd expect the table to wrap the text into a new line / new lines, if the text is too long for the ...
25
votes
4answers
9k views

Rotated column titles in tabular

I'd like to create a chart where the column titles are rotated, as per this toy example: I used the rotating package to generate the above. It has certain shortcomings: the rotate command doesn't ...
4
votes
1answer
2k views

Fix sized centered multirow and multicolumn tables

I'm using TeXLive 2011, and one of my friends has a problem with creating tables, which use fix sized centered \multirow and \multicolumn cells. This is his thesis, so there is a lot of ignorable code ...
6
votes
2answers
2k views

Crop entire document around figure

Have you ever submitted a LaTeX paper to a journal that wants separate figures? When you want to include a figure composed of a table of images, you must build it separately. When I run latexpdf, I ...
6
votes
2answers
530 views

How to eliminate the \\ at the end of a longtable

I define a macro \mycmd like this \newcommand\mycmd[2]{{some complicated format #1}&{some complicated format #2}\\} to simplify the input. So I can just write: sometext \begin{longtable}{cc} ...
4
votes
4answers
331 views

Adding lines that go from one cell to another on a different row

I've google a bit about this topic but I've found no result. I'm trying to write some notes for my University course. The topic is "numerical interpolation methods". More precisely I have to build a ...
4
votes
1answer
3k views

Columns of Tabular on Different Slides (Beamer)

I would like to show a tabular by columns for didactical reasons. Example: \begin{tabular}{ll} Beispiel & Erklärung \\\hline Die Schule fällt Fritzchen nicht leicht. & Unterricht\\ Fritzchen ...
11
votes
1answer
2k views

Enumerate/itemize without margins in table cell best practice

I want to use an itemize or enumerate list inside a table cell. For this there should be no margin around the list. My question is, what is best practice to do this? I found different solutions for ...
5
votes
1answer
904 views

How do I eliminate the vertical realignment when using arrayrulecolor with cmidrule?

I'm using consecutive \cmidrule commands in conjunction with \arrayrulecolor to alternately hide and unhide horizontal rules in a table. However, when \arrayrulecolor is used with \cmidrule, some odd ...
4
votes
2answers
298 views

Page break table with single cell

I have an environment set up of longtables that I use as "tips"-boxes and exercises in my book. The left column shows only one word rotated (tips, exercise or whatever) while the right contains the ...
10
votes
4answers
1k views

How can I typeset non-inline math in tables?

I have to typeset mathematics in table and want to avoid it being scaled down because I have to use inline math (\( \)). However, using \[ \] for example does not work. What is the best way to typeset ...
1
vote
2answers
795 views

Alignment of columns of nested tables (tabularx)

I want to nest 2 tabularx tables: the columns of the "inside" table belong to a column of the "outside" table and therefore shall be indented and have a vertical line on their side. I tried to do ...
4
votes
1answer
1k views

Split table into multiple files with \input

I want to split my table into multiple files: \input{table_head.tex} with following content \begin{table}[htpb] \centering \caption{Caption} \begin{tabular}[r]{ccc} \addlinespace \toprule A & B ...
10
votes
3answers
42k views

Caption on tabular environment

I have got codes like the following (generated by Kile). How can I add a caption. I guess I should have used the table environment. Is there any solution now? ...
106
votes
7answers
121k views

Column and row padding in tables

How do you guys go about controlling column padding in tables? Update To clarify, I'm looking for a way to control both vertical and horizontal padding. So, if I had a simple table like in the ...
4
votes
1answer
763 views

lstlisting produces empty row when used inside a tabular

Is there any way I can get rid of the empty new row produced by lstlisting inside a tabular? Here's a minimum working example: \documentclass[11pt]{article} \usepackage{listings} \lstset{ ...
6
votes
1answer
223 views

booktabs's horizontal rules aren't displayed with cifa document class

There seems to be a problem between the CIFA document class and the booktabs package. When I compile the following code, the horizontal lines are not displayed: \documentclass{cifa} ...
5
votes
1answer
441 views

Color changes cell height in tabular

The following code shows that a \color{red} command increases the height of a tabular cell. I want to use a switch, not a command as \textcolor{red}{text}. \documentclass{article} ...
14
votes
2answers
9k views

\flushleft with p{} option in tabular

If I have defined tabular alignment with the p{} option, \begin{tabular}{p{.3\textwidth}p{.7\textwidth}} ...(contents)... \end{tabular} Is there a way to specify that I want it \flushleft without ...