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

6
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
335 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
9k 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
324 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
590 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
11k 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
850 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
181 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 ...
30
votes
3answers
36k views

How can I draw a horizontal line spanning only some of the table cells?

In a table, how can I draw a horizontal line that goes only through some of the cells? I mean a line like the one in the Foo and in the Bar area of this table: +----+-----+ |Foo |1 |2 | | |1 |2 | ...
0
votes
1answer
240 views

Without using `\fboxsep` method, how to make a cell has 4 equal paddings?

Scenario Plese see the screenshot below. The top table is produced using minipage-typed column and the bottom table is produced using m{}. WITHOUT using \fboxsep approach (that was already answered ...
1
vote
1answer
309 views

How to avoid `&` conflict when using `\begin{align}` in a tabular cell?

Minimal CODE \documentclass{article} \usepackage {% array, calc, amsmath, longtable, varwidth% } \newsavebox\TBox \newcolumntype{B}[1] {% @{}% ...
8
votes
4answers
659 views

How to make 4 equal paddings (left, right, top, bottom) in a table cell?

I want each cell in a tabular to have 4 equal paddings of exactly 15pt each. How to make 4 equal paddings (left, right, top, bottom) in a table cell? \documentclass{article} ...
2
votes
2answers
553 views

How to avoid orphan line of multipage tabular?

There is an orphan line on page 2. How to get rid of it? Minimal Code \documentclass{article} \usepackage[a4paper,margin=5cm,landscape]{geometry} \usepackage{longtable,array} ...
3
votes
1answer
2k views

Multiline listing in a table environment

I'm trying to simulate an effect that is very easy to do in WYSIWYG environments, namely having a table with some cells containing somewhat complex multi-line entities. For instance, consider the ...
4
votes
3answers
3k views

Sorting Table Column

Suppose I have a table with say two columns. How can I sort its rows based on the first column? Is it possible in latex? If I do it in another application (like MS Excel) can I import the data from my ...
3
votes
1answer
3k views

vertical line in tabular problem

im trying to create a table with a vertical line at the left and at the right, EXCEPT the top row shouldn't have the vetical lines. something like: A B C | a b c | | a b c | | a b c | | a ...
3
votes
1answer
730 views

makecell package vertical centering of vertical text

I'm using makecell package to write vertical text to my table cells. It works fine, but I have trouble centering it. Normal vertical text (within a {tabular}) is displayed as: \rothead{Some ...
0
votes
1answer
116 views

Line after the table shows up on previous page

\begin{table}[ht] \begin{minipage}[b]{1\linewidth}\centering \begin{tabular}{l l c l | l l c c} One & Two & Three & Four & Five & Six & Seven & Eight\\ One ...
2
votes
2answers
5k views

How to nest tables?

I want to make a table inside another table as follows. Unfortunately, it does not work. What is wrong with it? \documentclass{minimal} \usepackage{array,longtable,calc} \begin{document} ...
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
440 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
176 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} ...
22
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 ...