{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.
25
votes
4answers
16k views
Column 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 this
...
21
votes
3answers
5k views
Diagonal lines in table cell
I need this table:
(each row and column should have the same height and length, last cell should be divided by diagonal line). I tried the following code:
\documentclass[11pt]{article}
...
57
votes
17answers
5k views
Comprehensive list of tools that simplify the generation of LaTeX tables
Manually hacking tables in LaTeX is one of the less funny things when preparing a document. Naturally, there are quite a few tools that promise to simplify this. In fact, I have somewhat lost track of ...
22
votes
3answers
2k views
How can I make a table that takes up more than a single page?
I've got data that I need to include in a table, but there's a lot if it. I've played with the font size and table formatting as much as I can, but the table still won't fit on the page. Is there ...
35
votes
3answers
7k views
Why should a table caption be placed above the table?
In the papers I read the caption in figure floats is placed below the figure and in table floats the caption is placed above the table.
I recognize that this is a common style that a lot of people ...
25
votes
5answers
7k views
How can I automatically calculate sums in a LaTeX table?
Sometimes I would like LaTeX to automatically calculate sums (or other simple arithmetic) for me, eg. in a table. I would like to ensure that when I update the table, I don't accidentally forget to ...
38
votes
1answer
6k views
Aligning numbers by decimal points in table columns
Let me begin by stating that I did google the answers (and I'll reference to them soon). Yet each of the resources I found discussed one particular method, I'm interested in a comparison of the ...
26
votes
2answers
3k views
multicolumn long table or enumeration
I would like to generate a multi-column table that wraps within columns of the document, and splits across pages. There are a couple of similar questions here
How do I create a really long table in ...
23
votes
3answers
21k 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 ...
20
votes
4answers
2k views
How to separate table content and table style
I want to know if there is a way to separate table / content for table style (think CSS).
Like to have only data specification
\begin{tabular}
H1 & H2 & H3 & h4 \\
V1 & V2 & V3 ...
14
votes
2answers
1k views
How typeset a numeric table from a CSV file
I have a CSV file (db.txt)like this:
30.0, 0.0, 0.0
60.0, 1.9098, 5.8779
90.0, 6.9098, 9.5106
120.0, 13.09, 9.5106
150.0, 18.09, 5.8779
180.0, 20.0, 0.0
I need to typeset it. My ...
110
votes
14answers
63k views
How to add a forced line break inside a table cell
I have some text in a table and I want to add a forced line break. I want to insert a forced line break without having to specify the column width. Something like this:
\begin{tabular}{|c|c|c|}
...
24
votes
6answers
4k views
Footnotes in tables?
I would like to have footnotes in tables, but the \footnote command does not work inside a table environment. Googling one finds that this is a frequently asked question, at least in the UK. That ...
17
votes
3answers
1k 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 ...
21
votes
2answers
6k views
Center column with specifying width in table (tabular enviroment)?
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 ...
11
votes
1answer
2k 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
= & ...
31
votes
2answers
2k views
Easiest way to delete a column?
I have a set of 10 tables and each has an extra column that I don't want. Specifically, these tables are descriptions of database tables exported by phpMyAdmin, and they all have a "MIME" column that ...
23
votes
2answers
940 views
Parametrize shading in table through TikZ
I wanted to do some shading in a table according to its values. For example, if you see the table below:
a b c d
a 90 10 0 0
b 0 80 10 10
c 0 0 95 5
d 0 10 5 85
I want to ...
19
votes
2answers
2k 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 ...
14
votes
3answers
4k views
Tool for manipulating LaTeX tables (HTML to LaTeX)
I am wondering if there is any tool that can help me work with tables in LaTeX. Specifically I'd like to be able to import HTML tables (or small Excel tables) into LateX
Are there tools that can help ...
16
votes
2answers
3k views
How can I use a table generated by R in LaTeX?
I have a LaTeX table generated like this,
\begin{table}[ht]
\begin{center}
\begin{tabular}{rrrrrrr}
\hline
& 1 & 2 & 3 & 4 & 5 & 6 \\
\hline
1 & 181.21 & 169.01 ...
14
votes
5answers
6k views
bordermatrix with blocks
I need to write a complicated matrix, that has a structure as in the attached picture.
10
votes
2answers
835 views
How can I draw a Karnaugh map
Can you please help me drawing the kmap as shown in the link.
A sample of the circles around the 1's is sufficient.
*Edit**
I made the following code. Can you help me now in completing this ...
8
votes
3answers
7k 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}
...
4
votes
5answers
3k views
Formatting table
I have a table that is created with the following code:
\begin{table}[htdp]
\caption{Comparison of Elements in Air on the Space Station and sea level on Earth}
\centering
\begin{center}
...
7
votes
2answers
1k views
Balancing long table inside multicol in LaTeX
I would like to put some longer tabular data inside the multicols environment while maintaining its balancing abilities. I have tried supertabular with the trick to redefine \newpage as columnbreak. ...
7
votes
3answers
3k views
Footnote in table
I have some table like the following one and want to write some configuration using ´footnote´.
\begin{table}
\begin{center}
\begin{footnotesize}
\begin{tabular}{|l|l|l|}
\hline
...
25
votes
2answers
29k views
How to create fixed width table columns with text raggedright/centered/raggedleft?
I would like to create a table with some columns' width specified, while the text in those columns should be centered both horizontally and vertically. I found out that
\usepackage{array}
...
27
votes
2answers
3k views
Org-mode export to LaTeX: temptation or nuisance?
We are talking about Emacs and Org-mode: There are several advantages of drafting papers with Org-mode and to have them transferred later to LaTeX, e.g.:
I'd like to avoid »programming while ...
22
votes
3answers
4k 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: ...
31
votes
4answers
7k 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. ...
9
votes
3answers
4k views
Example of fancy table using TikZ package
Can anyone share me several fancy table templates? I want to make this thread like a reference so that each time I need a template, I could just go here. If you can, please provide a screenshot for ...
24
votes
3answers
3k views
Why not use vertical lines ('|') in a tabular?
My question is a follow-up to the answer to a follow-up question, to be found here. ;)
I'd like to know why one would advise against using vertical lines (via |) in a tabular (i.e. in ...
5
votes
2answers
1k views
Formatting complex table from CSV using datatool
I have this csv file, formatted like this one:
Store,Product 1,Product 2,Product 3,Product 4,Product 5,Sub Total
Store 1,15,99,299,75,292,780
Store 2,33,353,429,283,561,1659
Store ...
8
votes
3answers
5k 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.
18
votes
2answers
2k views
How to repeat top rows (column headings) on every page
I have a big table which contains hundreds of rows. I want to repeat the top two rows on every page of the table. How can I do it in TeX?
47
votes
2answers
3k views
Which tabular packages do which tasks and which packages conflict?
I've read a couple of questions recently about tabular environments, and it seems there's a whole bunch of packages that do stuff in this field. I'd really like a summary of what each package does, ...
13
votes
7answers
8k views
LaTeX table capabilities
This might be a proper question for community wiki.
How can various text processor (like Word or Writer) table capabilities be achieved using LaTeX? For example, can I achieve:
multicolumns and ...
32
votes
5answers
22k views
How to break a line in a table [duplicate]
Possible Duplicate:
How to add a forced line break inside a table cell
In a table I would like to have a line break in the text inside a cell. Is there an easy way to do so, or do I have to ...
26
votes
4answers
19k views
How can I have two tables side by side?
Suppose I have two tables that don't have many columns (3, for example). How can I position them side by side?
9
votes
3answers
1k views
Horizontal row separation line in tikz matrix (like \hline in tabular)
In this question tikz-matrix-as-a-replacement-for-tabular a nice solution was given to let the matrix in tikz behave like tabular.
In this solution cell/.style={rectangle} was used to draw lines ...
11
votes
3answers
717 views
Expandable version of \InputIfFileExists or \IfFileExists
From this question: Cannot use \toprule when doing \input inside tabular -- why? I know that everything inside the tabular environment should better be expandable. The MWE below suggests that ...
8
votes
2answers
650 views
Strange line spacing effects in longtabu
I got some strange effect with longtabu:
As you can see the line with λ seems to be closer to the above line than to the one below of it. I cant’t figure out why …
This is the code with which I ...
3
votes
2answers
3k views
Set table position to top
some content
\begin{table}[t]
\begin{tabular}{c c c}
tabular content
\end{tabular}
\end{table}
\chapter{new chapter}
The output is:
First page:
some content
Second page:
table centered ...
8
votes
1answer
742 views
How to align picture top left in a table?
is there a way to create a table with 2 columns,
in the left column should be some text,
in the right column should be a picture.
The problem is - to align both to the left, top corner. The image ...
7
votes
1answer
745 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 ...
20
votes
5answers
2k views
Best way to create an system of equations enviroment?
I am trying to write a few system of equations, and I want the terms to be nicely spaced as below
2x + y + 3z = 10 \\
x + y + z = 6 \\
x + 3y + 2z = 13
Now using some ...
18
votes
3answers
3k 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 ...
23
votes
2answers
955 views
Gradient color in one cell of a table
I'm trying to create a tabular and I'm facing the following small issue.
I would like to make the background of one cell a gradient color. Is it easy to do that in LaTeX? And if so, how to do it?
17
votes
2answers
21k views
How to specify the row height in LaTeX table?
I want to create a LaTeX table with three rows which have different row heights.
How can I do this?
The following code
\renewcommand\arraystretch{2.4} \setlength\minrowclearance{2.4pt}
seems make ...