{tables} is about the tabular environment and related packages such as {array}, {booktabs}, {tabularx} and {longtable}. For questions about the table environment (i.e., about floating or positioning), use {floats} instead.

learn more… | top users | synonyms (2)

7
votes
6answers
5k views

Aligning paragraph inside a tabular

Consider the following code: \documentclass{article} \begin{document} \begin{tabular}{|p{5cm}|} \hline \textbf{item 1:} These are some texts to just fill in the first line. \tabularnewline ...
3
votes
2answers
435 views

Can this command be converted to environment?

I have a command as follows: \newcommand{\Comment}[1]{&&&#1\tabularnewline\hline} And now I want to convert it to be an environment as follows: \newsavebox{\tempDescription} ...
5
votes
1answer
1k views

How to redefine the color of table rules without interfering the content of its cell?

I attempted to change the rule color of my table to red. Unfortunately, the content in the table cell also got interfered as shown in the following figure. The margin frame rules also became red which ...
0
votes
1answer
175 views

Why did my exact calculation still produce small gaps on the most left and right table rules?

I have specified each tabular cell width exactly using formula ##1\linewidth-2\tabcolsep-1.5\arrayrulewidth as shown in the following code snippet: \documentclass[dvips,dvipsnames,rgb]{book} ...
7
votes
2answers
1k views

Two Column Layout for Tables

I have a table with many rows, but only a single column. The column itself is a coefficient for an algorithm, hence just a number. Currently, when typeset with the longtable package it looks somewhat ...
10
votes
2answers
5k views

How to make a landscape table fill the whole width?

It seems that neither \textwidth nor \textheight can force the table to fill the whole width. \documentclass[dvips]{book} \usepackage[a4paper,margin=20mm,showframe]{geometry} \usepackage{lscape} ...
5
votes
1answer
1k views

Adding vertical stretch at a table row?

I have a longtable that is used to produce checklist forms. The basic layout is shown below, The second page (if there is one - some forms are quite short) would be better if it had the bottom ...
2
votes
1answer
2k views

array package breaks references in a tabular environment

This is a follow-up question to my last question: Defining a new LaTeX environment for numbered two-column proofs Basically, I'm trying to define the following environment: \newcounter{proofc} ...
21
votes
1answer
13k views

Fixed column-width table with text left-aligned in cells

\section{Section Title} %label{8.4.47} \subsection*{Some note on Section} \begin{footnotesize} \begin{tabular}{p{2cm}|p{4cm}|p{3cm}|p{3cm}} Heading 1 & Heading 2 & Heading 3 & Heading 4 ...
14
votes
3answers
1k views

How do I make a square table in LaTeX?

How can I make a perfectly square table in LaTeX? Each cell will just have a single character in it. I'm trying to print a pretty tabula recta as shown below.
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
343 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. ...
42
votes
3answers
62k 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 ...
11
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
901 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 ...
6
votes
1answer
338 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
500 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
774 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
402 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
459 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
595 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
618 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 ...
45
votes
3answers
13k 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
550 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
598 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
14k 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 ...