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

4
votes
4answers
6k views

Table caption Width

We have table caption background image. We put this as image. But we need the table caption and images exactly same width as table body.
23
votes
2answers
8k views

Diagonally divided table cell [duplicate]

Possible Duplicate: Diagonal lines in table cell I'd like to include a table of numbers in my document. Those numbers are defined by two parameters n and k, and I'd like to achieve a ...
2
votes
1answer
344 views

disabling line breaks in datatool table

I have a csv file containing a list of names with addresses. I'm using the datatool package to load these and output stickers (using the labels package) for envelopes. This is done using \DTLforeach. ...
43
votes
3answers
64k views

How to vertically-center the text of the cells?

I have a simple table as follows: \begin{table*} \centering \begin{tabular}{|l|c|c|c|c|p{2in}|} ... ... \end{tabular} \caption{The factors the camera solver depends on to ...
5
votes
4answers
3k views

How to center the whole tabular, center the header line cells, and have some space after it?

I have a few questions about tables that are probably pretty basic. Here is the code for my table. \begin{table} \begin{tabular}{| r | l | l |} \hline \textbf{Species} & ...
6
votes
1answer
3k views

Eliminate space at end of list in a table

I have a tabular environment, created with array loaded and using m columns, the cells of which mostly contain lists. In cells with a list, there is about 1em of dead space at the end of the list ...
1
vote
1answer
1k views

bottomrule not working in a self-made environment

I have this environment for consistent tables in my LaTeX documents: \newenvironment{defaultTable}[2] { \@float{table}[h] \noindent \tabularx{\textwidth}{#1} \specialrule{0.5pt}{10pt}{0pt} ...
1
vote
1answer
2k views

Table is overlapping text

I'm using the IEEE format latex files from here: http://mocha-java.uccs.edu/ieee/ I have the following code: \begin{center} \begin{tabular}{|l|l|} \hline \multicolumn{2}{|c|}{UHF/VHF Antenna ...
5
votes
3answers
3k views

tabular* with rubber spacing and \cline

I'm using a tabular* with rubber spacing to fill the complete width of the page. This works fine, except that when I use \cline, the line is not complete. It seems that \cline does not cover the ...
3
votes
2answers
2k views

Problem with formatting tables with equal column widths

I want to create two tables that have the same width of columns. Both tables consist of 6 rows and 3 columns. In both tables, row 1 and row 4 are explanatory, and should expand in all columns. In ...
16
votes
1answer
4k views

Preventing itemize environment to insert initial vertical space

I'm using itemize and tables like the following \begin{tabularx}{\textwidth}{>{\ttfamily}llX} \toprule \textbf{\rmfamily Operator} & \textbf{Typen} & \textbf{Regel} \\ \midrule = & ...
6
votes
1answer
7k views

How to Label and Caption a Tikzpicture inside a tabular environment

What is the correct way to label and captionize a tkizpicture inside a tabular environment? (Since figures are not allowed inside a tabular) Excerpt from my .tex: \begin{tabular}{l r} & ...
10
votes
3answers
3k views

How do I create a really long table in a two column layout?

I have a table that has about 130 rows. I tried using the longtable package, but it does not work with two column documents. The table will be starting near the top of the left column, and it should ...
12
votes
3answers
16k views

Problem with Table Vertical Alignment

I want a table whose first column is aligned top, second column is aligned middle, and third column is aligned bottom; like this: I wrote the following code: \documentclass{article} ...
1
vote
2answers
2k views

Using \multicolumn with beamer inside an overlay command

I'd like to have a conditional \multicolumn command depending on the slide, so I put it inside an alt or an only command, as follows: \documentclass{beamer} \usepackage[latin1]{inputenc} ...
11
votes
2answers
5k views

Adding color to a table column as a beamer overlay

I'm trying to have an overlay that adds a background color to a column of a table in beamer. I can create a table with a colored second column using the colortbl package. \begin{tabular}[]{r ...
11
votes
4answers
9k views

Overfull \hbox warning when using tabular

I keep getting this warning Overfull \hbox (0.63303pt too wide) in paragraph at lines xxx--xxx` wherever I have this line in the code \begin{tabular}{p{2cm}|p{4cm}|p{3cm}|p{3cm}} It does ...
3
votes
1answer
926 views

How do I omit a column separator in a tabular environment?

I'd like to create a layout like this (it's for a resume): some text here a little more big chunk of text blah blah blah blah blah blah blah blah | ...blah ...
7
votes
1answer
348 views

Can I set the format of an entire column except for the header?

I would like to italicize all of the names in the second column of a table, but presently the only way I have found to do this is to use \textit{} in each cell, i.e.: \begin{table} ...
4
votes
2answers
2k views

Clickable Table Footnote

I'm trying to have some clickable footnotes within tables. I tried using \footnote{}, it does create a link but there's no footnote text associated with it. \footnotemark[number] along with ...
11
votes
3answers
6k views

How can I center all tables in a document?

Background Would like to center all tables within floats, without having to add \centering to each table. Ideas Tried the following: \let\originaltabular\tabular ...
2
votes
1answer
2k views

Autofit table column with booktabs

Background Using booktabs produces the top table in the following image: Both tables reside in floats, but even when outside of the float the same result is produced. The Application and Version ...
3
votes
3answers
1k views

Vertical alignment in the tables with pictures (epsfig)

I have a table with two columns. The column on the left contains a picture (\epsfig) the column on the right contains the description. The description starts on the same height as the lower end of ...
8
votes
2answers
503 views

Typesetting special table formats

I want to typeset Flynn’s taxonomy: | Single | Multiple | instruction | instructions ---------+-------------+-------------- Single | | data | SISD | ...
11
votes
2answers
641 views

Create an annotation for table text on the page border

I have a table with 2 columns (for vocables, but also complete sentences) and for one of these 2 columns I want to add annotations on the page border. It must however be possible to associate the ...
7
votes
2answers
780 views

Problem with dynamic table creation

I've wandered into uncharted territory with a package I'm writing. At one point I need to create a table of 'n' columns (n supplied by user in doc). Creating a variable in the preamble of the tabular ...
13
votes
1answer
2k views

How to remove top and bottom whitespace of longtable?

I am using longtable instead of tabular environment and noticed that it puts some additional whitespace at the top and at the bottom of the table. Is there some way to remove it (something less hacky ...
4
votes
1answer
3k views

Table column justification when using the p attribute

I am using the p attribute so I can enable text wrapping. How can I get the second column, Numeric Rating to be center justified? \documentclass{article} \usepackage{multirow} ...
7
votes
1answer
406 views

Align number ranges in table

I have a table column that contains ranges of numbers (e.g. 7--12) as well as numbers that are formatted differently (e.g. < 4). These numbers don't align vertically, no matter what kind of ...
4
votes
1answer
464 views

Booleans fail in tabular environment

I've got a workaround for this problem, but maybe someone knows a cleaner way to fix it. I'm using the standard packages in TexLive 2009. Here's the code that doesn't work: \documentclass{article} ...
11
votes
3answers
10k views

columns/alignment with itemize

I'm trying to make alignment points in a list environment. The following code gives me an error, but it almost compiles to what I want, just missing the bullet points. I must be misunderstanding ...
1
vote
2answers
597 views

Matrix horizontal alignment

I am trying to use the Gauss TeX package to display matrices. I have two problems with the following code (not so important): \usepackage{amsmath} \usepackage{gauss} \begin{document} ...
5
votes
1answer
620 views

Background color of cells in ConTeXt

I'd like to set the background colors for cells to indicate their relations. How can I do this in ConTeXt?
7
votes
1answer
2k views

Sideways margin with parbox?

How to get right margin in parboxed header? Top, bottom and left margin are ok, but there is no margin at the right (top) side of 'Parameter' header. \begin{table}[ht]\footnotesize \centering ...
47
votes
3answers
14k views

How to create alternating rows in a table?

Sometimes you can see in books tables, that have alternating background color for rows in a table to support readability. How I can achieve this with LaTeX? And yes, I could put macros \odd and \even ...
10
votes
2answers
6k views

How to handle wide columns with \backslashbox?

I'm using the package slashbox and my left column is reasonably wide, how can I tune the diagonal line (created by \backslashbox) such that it starts and ends in the corners of the cell? Example ...
7
votes
1answer
560 views

How to break headers with `sideways` into more than one line?

I have following table: \begin{table}[ht]\footnotesize \centering \begin{tabular}{|lp{1cm}p{1cm}} \hline \begin{sideways}Parameter\end{sideways} & \begin{sideways}Long header name ... ...
6
votes
3answers
600 views

etoolbox conditional causes unwanted empty row in tabular

This code leaves an empty row at the bottom: \documentclass{article} \usepackage{etoolbox} \def\somedef{foo} \begin{document} \begin{tabular}{|l|} \hline First row, not important \\ \hline ...
19
votes
2answers
15k views

shrinking tables for presentations

What is the most convenient way to shrink a table to fit in a beamer slide?
11
votes
1answer
7k views

How to center vertically content of the table?

I have this table: \usepackage{array} \newcolumntype{x}[1]{>{\centering\arraybackslash\hspace{0pt}}p{#1}} \begin{table}[ht]\footnotesize \centering \begin{tabular*}{0.95\textwidth ...
31
votes
2answers
22k views

Center column with specifying width in table (tabular enviroment)? [duplicate]

I have table that has long headers and I would like to specify width of the column, but also be able to remain it's centred position. Something like |c{0.30\textwidth}|. It is possible? How to ...
10
votes
1answer
2k views

Align equals sign in table

I am trying to align an equals sign between two sets of cells. The first table here doesn't want to align, whilst the second table does. Is there a more elegant way of doing this? ...
8
votes
5answers
5k views

Table will not center (and it is spilling off the right side of the page)

I just generated this table using Excel2LaTeX: Even though I enclosed the table in \begin{center} the table did not get centered. The table still sticks out the right side. Is there somehow that ...
22
votes
3answers
6k views

Highlighting table cells

I have a large (13x13) table in which I need to highlight a subset of cells. I know that I can set a background color to those cells using colortbl or xcolor. But I need to highlight the table without ...
14
votes
2answers
7k views

Raggedleft paragraph in a table

I am trying to typeset a table of two columns, where each column consists of paragraphs and the paragraphs in the right hand column are set raggedleft. Here is a minimal example of the code I thought ...
43
votes
4answers
19k views

Make first row of table all bold

I'm trying to do something that I thought would be relatively simple but seems to be quite hard. I have a table with a number of columns, and I'd like to make all of the titles appear in bold text. ...
10
votes
1answer
1k views

Create a vertical line in a table that spans a range of rows but not all rows

I'm interested in methods to create a vertical line in a table that spans a range of rows but not all rows. I've found one solution below, but is there another solution such as \cline which allows ...
4
votes
2answers
782 views

Alignment in table

I'm creating a table but I'm not getting the correct alignment in the last row of the table. It's a multirow and muticolumn example. Of course, I'm putting some fictitious information and data in the ...
18
votes
2answers
6k views

How do I set a maximum column width?

My problem is that I have many tables in my document with the same layout, and I want to specify the maximum width of a specific column to be 5 cm. I tried with p{5cm} but it make the column fix 5 cm ...
13
votes
1answer
5k views

Framing cells in a table

I want to add borders to a set of cells in a table. But not just a border for the single cells because then I imagine I could just put the cell content in an fbox. Instead I want a frame which ...