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

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
337 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
50k 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} ... ...
53
votes
3answers
92k views

How to force a table into page width?

I have the following table: \begin{table}[htb] \begin{tikzpicture} \node (table) [inner sep=0pt] { \begin{tabular}{ l | l } {\bf Symptom} & {\bf Metric} \\ \hline Class that has many accessor ...
1
vote
2answers
469 views

synttree in tabular: vertical alignment of other columns

synttree is a package that allows you do define tree graphs in an easy way. Now I'm trying to put such a tree in a table cell like so: \begin{tabular}{lp{3cm}} ... My left column & \synttree[A ...
3
votes
2answers
4k views

Underfull hbox error on tabular context

I am having a problem with the following document, pdflatex is continuously complaining with Underfull \hbox (badness 10000) in alignment at lines 3--7 in this sample, but it does for many more lines ...
10
votes
2answers
673 views

Using an image as a table

I have an image containing tabular data and would not like to convert this to a real table. What I do want is for this image to have a proper caption and be included in the listoftables. Is it ...
1
vote
2answers
2k views

Bad spacing of table inside subfigure

I have a figure setup as follows: \begin{figure*}[t!] \centering \subfigure[Part 1] { \includegraphics*[totalheight=2in,origin=c]{ost100} } \subfigure[Part 2] { ...
3
votes
2answers
3k views

Default value for \addlinespace from booktabs

In the booktabs package documentation the command is described in the following: Occasionally we want to put an extra space between certain rows of a table; for example, before the last row, if ...
9
votes
1answer
4k views

LaTeX template for use cases

Currently I am trying to create a template in LaTeX for my team members in order to create a set of use cases. I thought of using tabular to create something like the picture below 2 (without colors). ...
9
votes
3answers
15k views

Tabular, parbox, vertical alignment

What i want to achieve is really simple: I want to be able to align cell content at the top (which is the default behavior of tabular) while being able to manually break lines (and anything you could ...
10
votes
2answers
19k views

Table Border Options

\begin{tabular}{|c|c|c|} Column 1 & Column 2 & column3 \\ \hline second row & & \\ \hline \end{tabular} Please help me with table border options. Using | I can draw thin solid ...
7
votes
4answers
2k views

Table with rounded corners?

This table I can create with this code: \begin{tabular}{|l|l|} \hline \multicolumn{2}{|c|}{Team sheet} \\ \hline GK & Paul Robinson \\ LB & Lucus Radebe \\ DC & Michael ...
3
votes
1answer
336 views

Maximizing page usage for a table

I'm printing a table enclosing 4 other data tables, one per page, and would like to maximize the space available by reducing the margins as much as possible. I still need the page number, but wonder ...
17
votes
5answers
10k views

bordermatrix with blocks

I need to write a complicated matrix, that has a structure as in the attached picture.
13
votes
2answers
16k views

How to make double cline in tables?

I want to draw a double cline in a table where the first column is multirow With double \hline I can draw a full double horizontal line but double \cline{i-j} seems to have the same effect with ...
4
votes
2answers
111 views

how do I set up a table in a page such that it is flipped?

I have a table which is too wide to appear horizontally. I want to flip it such that it appears vertically, and put it in a page by itself (no other text appearing in that page). How would I approach ...
1
vote
1answer
1k views

Using tabular in fancyhdr

For my header page layout, I use fancyhdr. I use tabulars in the headers. The following is my code. \documentclass[titlepage,a4paper,12pt]{article} %***************************** preamble region ...
8
votes
2answers
1k views

How can I place five tables on a page, in a 3x2 matrix?

I'd like to insert multiple code-generated tables into a document so that they appear on a single page. I may need to use smaller font to make them all fit. All the tables are of the same size, and ...
8
votes
2answers
6k views

How to Rotate Text in Table across column spanning many rows

\documentclass[fleqn,12pt,a4paper]{article} \usepackage{tabularx} \begin{document} \begin{table}[ht] \begin{minipage}[b]{1 \linewidth}\centering \begin{tabular}{|c|c|c|c|c|} \hline ...
9
votes
2answers
4k views

Big tables with big items: pagebreaks within items?

I am using LaTeX for creating PDF files automatically from within Python scripts. The documents I create basically consist of just one big table, which can span several pages. It consists of three ...
6
votes
0answers
225 views

Is there a “widetable” counterpart to “longtable”? [duplicate]

Possible Duplicate: Table and multi-page I have some tables with 25 columns that don't fit on the page, even after rotating with sidewaystable. I know about longtable but what I would need ...
8
votes
4answers
2k views

drawing an arrow to a table cell

I have to draw an arrow to a table like in this picture.
6
votes
2answers
330 views

Name scoping issue (probably)

I'm trying to solve what is clearly a name scoping problem and don't know how to do it. (This discussion is extracted from a poorly-formed question about the same code that I posted yesterday; I've ...
5
votes
1answer
1k views

floatrow: Changing the formatting of table footnotes

The floatrow package, which is useful for customizing the layout of floats, also allows to add footnotes as well as additional explanations (besides the caption) to tables. (The main commands are ...
6
votes
3answers
2k views

Using tables to typeset proof - how to align equal signs?

I'm a student teaching myself to use LaTeX (and related tools) to type up my homework. It's going great, and I'm already very happy with what I've been able to do so far. Though, I have questions. ...
12
votes
1answer
2k views

How to draw lines around multiple table cells

\documentclass[fleqn,12pt,a4paper]{article} \usepackage{tabularx} \begin{document} \begin{table}[ht] \begin{minipage}[b]{1 \linewidth}\centering \begin{tabular}{|c|c|c|c|c|} \hline ...
2
votes
2answers
591 views

How to set the height for a specific row in a “longtable”?

I have a "longtable" and I need a couple of rows to be "taller" than the others. Is it possible to specify a fixed height for a specific row?
1
vote
2answers
165 views

Opposing alignment of multiple lines of long text without exceeding \linewidth

I'm trying to create some documents using the flashcards macros, and I'd like to have the text aligned like follows ____________________________________ | | ...
3
votes
1answer
2k views

Nesting a tikz picture and tabular within an array environment

Currently I am trying to make a nice layout of logic gates for digital electronics. I have not been able to nest a tabular environment inside of a circuitikz picture, and I'm quite new at nesting in ...
5
votes
2answers
1k views

Combined header cell in a table

This question is closely related to at least two other ones; namely, Tables of numbers, and slashbox alternative. What I'm after, is the horizontal- and vertical-alignment of row- and column-headers ...
10
votes
3answers
12k views

slashbox alternative [duplicate]

Possible Duplicate: Diagonal lines in table cell Is there a better way to label both axes of a table at the same time rather than using slashbox? It looks kind of ugly.
6
votes
2answers
3k views

Putting a tabular in a node within a matrix

I have a picture in which each of the nodes looks something like this: \node (species1) [shape=rectangle,draw] { \begin{tabular}{c c c} \multicolumn{3}{c}{{Species 1}} \\ \colorbox{red}{G1a} ...
10
votes
2answers
868 views

How to align integers on the right, but still center them

Suppose we have a table like this: \begin{tabular}{c} Heading \\ 1 \\ 10 \\ 100 \\ \end{tabular} This will center all the numbers. If I want to align them to the right, I could change the column ...
16
votes
3answers
5k views

Rounding numbers in a table / Truncating text in table

Is it possible to have automatic rounding of numbers in a table? Say that I have this, made in the usual way with a tabular environment: pi | 3.14592654 e | 2.7182818284 phi | 1.6180339887 Can ...
19
votes
3answers
2k views

Table and multi-page

I'm writing some sort of book and i've got a very large table. I was wondering if there was a way to span a table not in the length but in the width. In the end, i would like to be able to divide ...
11
votes
2answers
2k views

Color merged and regular cells in a table individually

In a LaTeX table with merged cells, how can I color each cell with a different color? %% LyX 1.6.7 created this file. For more info, see http://www.lyx.org/. %% Do not edit unless you really know ...
10
votes
4answers
15k views

Good LaTeX Table Editor? [duplicate]

For LaTeX tables editor, I am using LaTable version 0.7.1 which is good to a large extent. The only problem I have (so far) with this editor is the ability of adding multi-lines in a cell. Can ...
7
votes
3answers
1k views

tree list in a table

I would like to put a tree list into a table environment. Smth. like: +--------------------------+---------------------------+-------------+ | Heading 1 | Heading 2 | ...
5
votes
3answers
3k views

Why are the lines around my multicolumn cell misaligned?

In the following table, why does the double line before the diff column not go through? I guess all the multicolumn{1} are wrong? How can I fix it? \begin{table} \centering ...
4
votes
3answers
2k views

Can LaTeX perform simple math operations? [duplicate]

Possible Duplicate: How can I automatically calculate sums in a LaTeX table? Can LaTeX do simple math? I have a table with two columns and want to automatically add a third column which ...
3
votes
1answer
182 views

Staggered entries in tabular environment

I am trying to create a table such that the entries in the left furthermost column are entered normally, but the entries in the column to the right must be staggered in a way such that one entry on ...