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

10
votes
4answers
17k views

scaling a table to fit an entire page

I used Excel2Latex to pump out some tables from my excel file. All works fine but heres the output picture: I want the table to be streched accross the entire page. Is this possible and if so how ...
3
votes
1answer
24k views

Merging different cells in a table with \multicolumn

I am having troubles with \multicolumn. In the second row the cells containing a 9 should have equal sizes. How can I achieve this? \documentclass{article} \begin{document} \begin{center} ...
8
votes
1answer
451 views

Why does \num{} not work in situnitx's S columns?

Consider the following MWE: \documentclass{article} \usepackage{siunitx} \begin{document} \begin{tabular}{SS} 0.01 & \num{0.01} \\ 0.1 & \num{0.1} \\ 1 ...
6
votes
1answer
2k views

Circle around content of a table: is it possible?

I managed to create three tables with letters in it: \begin{minipage}{0.37\textwidth} \begin{tabular}{c | c | c | c | c} E & G & P & A & L\\ \hline I & I & U & G & F\\ ...
0
votes
1answer
251 views

Including word-generated A3-table with screenshot-pictures and Excel-generated diagramms in the cells

I have a A3-size Sheet made with Word, some columns contain jpgs from screenshots and some excel-generated charts. When I created this table I wasn't aware that it will go into my latex-pdf file. I ...
19
votes
3answers
32k 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 ...
3
votes
2answers
364 views

Centering text in tables problems with colortabs

I am trying to produce a basic color table as shown below \documentclass{article} \usepackage{booktabs} \usepackage[dvipsnames*,svgnames]{xcolor} \usepackage{colortbl} \usepackage{array} ...
11
votes
3answers
8k views

Table column width “fill to margin”

I kind of would expect tables to be able to "fill to margin", instead of choosing a number and iteratively rebuilding the document until it is the right size. For example, I want this 2-column table ...
2
votes
1answer
609 views

siunitx - Decimal points not present

Trying to use siunitx to make my columns look all nice and so such. However, The decimal points are absent... Example: Code: \documentclass[letterpaper,twoside,12pt]{article} %%% PACKAGES ...
8
votes
2answers
462 views

How to check if a column type is defined?

Column types for tables can be defined and overwritten with \newcolumntype. I would like to know if a column type is already defined for an example which shall only be executed in the case where the ...
8
votes
3answers
8k views

Table padding in LyX

I'm creating in LyX a table wich has a single character for every cell. Problem is, a lot of space is wasted, because each cell has some padding points which I'd like to reduce. A cell is now big ...
10
votes
1answer
23k views

How can I reduce table row height?

I use the following code to render a table in LaTeX. But the problem is that the default row height is too big for me. I want to be able to specify the row height. How can i do it? ...
1
vote
1answer
375 views

Strange looking table

I am trying to print this rather odd looking table, below I know there is an package called exam, though I sort of want to do this "my own style" I did try to make the table below, but I was not ...
3
votes
1answer
2k views

How do I indent a table within the itemize environment?

I'd like to know how to indent a table within the itemize environment. \documentclass{article} \begin{document} Hello. I love \LaTeX! I have a question: \begin{itemize} \item How can I ...
15
votes
3answers
4k views

Errors with ragged-right justification in tables

My main goal is to disable text justification in tables and just have left-aligned text. I've loaded the array package and defined a custom \newcolumntype like so: \usepackage{array} ...
1
vote
1answer
1k views

Problem with dtx code: rowcolors unknown

I get the following error in my .dtx file: ) (./test.dtx ! Undefined control sequence. l.35 % \rowcolors {1}{colorrow}{colorbody} which I do not understand since xcolor and colortbl are loaded and ...
6
votes
2answers
1k views

Error with hyperref + tabular + footnotes in tabular

Here's the code: \documentclass[12pt,letterpaper]{article} \usepackage{array} \newcommand{\fntxt}[1]{\footnotetext{#1}} \newcommand{\fnstep}{\stepcounter{footnote}} ...
17
votes
1answer
14k views

p,m and b columns in tables

I wonder why p columns are aligned at the bottom and b columns aligned at the top? created with this code: \begin{tabular}{|p{0.3\linewidth}|m{0.3\linewidth}|b{0.3\linewidth}|} \hline \centering ...
5
votes
1answer
2k views

Defining repeated tabular/array columns using a computed value to specify the number

Background: I just recently saw that one could define multiple columns in a tabular or array using the syntax: *{num}{<align>} So, for example \begin{tabular}{r*{3}{l}r} is the identical to ...
9
votes
4answers
4k views

Footnotes in Tabulars?

Is there a simple, elegant solution to add footnotes in a table (tabular)? Preferably, the solution can also support the cleveref package. EDIT: My intended effect is that, the footnotes should be ...
44
votes
6answers
11k views

Best way to create an system of equations environment?

I am trying to write a few systems 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 ...
9
votes
2answers
3k views

colortbl: \rowcolor in tables with \begin{tabular}{@{}ccc@{}}

I'm trying to make a table with the following code: \begin{tabular}{@{}ccc@{}} \hline \rowcolor[gray]{.9} a & b & c \\ \hline \end{tabular} Unfortunately the \rowcolor command seems ...
10
votes
2answers
148 views

Restore original definition of $

I found an incompatibility between onlyamsmath and tabu, related to the redefinition of the $-sign. (Its is an active char, and thus breaks inside tabu columns specifiers). This is triggered with: ...
17
votes
2answers
60k views

Combine 4 cells in a table

Here is some simple table - I cannot upload, because I'm just a guest. I want to merge 4 cells. I mean I want to combine three "this" area in this table. I thought I have to use multirow and ...
1
vote
1answer
2k views

why does my document fail with sideways from rotating package?

I want to test landscape tables, and started with the sideways environment. However the code does not compile, I get the error: (./content/landscapetable.tex ! LaTeX Error: Something's wrong--perhaps ...
1
vote
2answers
1k views

Question about tabular

I need some table in LaTeX. As you can see, my LaTeX code is following \setlength{\extrarowheight}{7.6pt} \begin{footnotesize} \begin{tabular}{l|m{7cm}} \hline \hline Workloads & Applications \\ ...
1
vote
2answers
2k views

Use tabularx in LyX instead of default tabular

I recently got into LyX and I’m getting along quite well. The only thing that bothers me is that LyX’s table feature produces really sloppy-looking tables by default, i.e. double borders and stuff ...
3
votes
1answer
1k views

tables across page (ltxtable vs ltablex)

In the past I worked with the ltxtable package, which unfortunately require the table in a separate file. Now I found the ltablex package which claims to be a rewrite (or it rewrites) the tabularx ...
2
votes
1answer
286 views

How to display a specific entry from an external data source input?

I have a data.txt file and it contains an array of numbers, I included it in the preamble of the .tex file, now I would like to display some specific entry from the data file, not the whole data set ...
5
votes
2answers
1k views

sans serif math in tables and siunitx

I want to know the easiest way to ensure that the content inside a tabular, including siunitx columns is set using a/the sans serif math font. The normal document is set in serif font. This approach ...
9
votes
1answer
2k views

Automating Adding Tables Fast to LateX from R? [duplicate]

Possible Duplicate: How can I use a table generated by R in LaTeX? I use a lot of tables from R, and I find it cumbersome and very slow to type the "&" and "\" etc. to get the tables ...
8
votes
3answers
519 views

colortbl: new environments and how to apply \expandafter

This is a followup question from one asked by Andrew Howard. After some discussion, it became clear that colortbl has some issues with the names that can be used for a \newcolumntype. The result of ...
3
votes
2answers
1k views

Using \columncolor outside column definition

I'm trying to create a command, which calls on an environment, which defines a custom column definition with one argument using \newcolumntype, and defines a second command, containing parameters for ...
14
votes
5answers
3k views

In a tabular, how to left align ignoring minus signs?

I'd like to create a table that is aligned left, but minus signs are ignored. E.g., the following gives a normal left-aligned table \begin{tabular}{llll} & a & b & c ...
0
votes
0answers
2k views

padding for table cells [duplicate]

Possible Duplicate: Column padding in tables I am unable to determine the padding for table cells. Here is my table so far: \begin{center} \begin{tabular}{ m{5cm} m{12cm} } \hline ...
0
votes
0answers
66 views

Multiple 'List of Tables' entry for single threeparttablex type table that spans multiple pages [duplicate]

Possible Duplicate: How to use a longtable with only one entry in the list of tables I have a single table that spans three pages using threeparttablex/longtable. The table: ...
13
votes
1answer
520 views

Error with table

\begin{table}[ht] \makebox[\textwidth][c]{ \begin{tabular}{ccccc} \hline \hline [] & [] & [] & [] & []\\ [] & [] & [] & [] & []\\ ...
0
votes
0answers
172 views

How to rotate the text in latex table? [duplicate]

Possible Duplicate: How to Rotate Text in Table across column spanning many rows I would like to make my first column of table merger together and include a 90°-rotated text in that merged ...
6
votes
4answers
4k views

How to decrease the font size of a table in an \input file

I have: \documentclass[11pt]{article} \begin{document} This is the main tex document. \input{tables} \end{document} In the tables.tex file, I only have numerical tables. I want to decrease the ...
7
votes
3answers
4k views

How to make a table with centered images?

On page 6 in this PDF is there a table with centred pictures in the right column. Does anyone know how to make such a table? I am using pdflatex.
16
votes
3answers
7k views

Different font sizes for different rows in table

I want to put different sizes of fonts (smaller) into different rows of my LaTeX table. I found that it is possible to have different font sizes for different columns of this post. Is there any simple ...
2
votes
1answer
2k views

Overriding margins with longtables

I am trying to create a large table, it is both wide and has a lot of rows. I've gotten long table to work and break it up, and I've managed to turn it landscape. However, due to the size of the ...
5
votes
1answer
344 views

Finding a table's row height

I have two tables, one of which has two rows as a header. The first table's header looks something like this: \toprule \footnotesize\textsc{Stars}\\ \tiny{Name} & \tiny{SHA} & \tiny{Dec}\\ ...
7
votes
1answer
4k views

Minipage, columns, tabular: differences in applicability?

This \parbox vs. \minipage post helped me to understand the main reasons to use either \parbox or {minipage} for placing material side-by-side ({minipage} is usually the winner). I have a similar ...
5
votes
1answer
641 views

How to wrap text in a cell (without any explicit lengths)

I'm hoping to wrap text in a single "mega-cell" at the end of a table. ---------------------- | header1 | header 2 | ---------------------- | entry1 | entry 2 | ---------------------- | ...
3
votes
1answer
555 views

The text “height” keeps popping up in tables

In my LaTeX document, I have some simple code for the simplest of tables. But, when I let TeXnicCenter output it to PDF, the text 'height' is suddenly in the first cell and on the first cell in a new ...
32
votes
3answers
12k 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: ...
5
votes
2answers
3k views

Vertical spacing in tables with math

How can I force LaTeX to vertically center math in a table taking into account subscripts, superscripts, etc? It appears from the output below that LaTeX vertically centered the $JV$ and added the ...
9
votes
2answers
301 views

Table with “curly” break

I searched a lot but I wasn't able to find a package that can really fit my needs. I want to achieve something like the “Page Table” in this image: A regular table but with some “curly breaks” that ...
2
votes
3answers
132 views

Is there error in this code for a table?

I am trying to make a table using ScribTeX using the following code: \documentclass[12pt,oneside,reqno]{amsart} \usepackage{amssymb} \usepackage{mathtools} \usepackage[T1]{fontenc} ...