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

8
votes
3answers
2k views

How can I achieve proper vertical spacing for long blocks of text within a \multirow?

I'm trying to work with a table of the form: \begin{tabular}[]{l D{.}{.}{-1}} \multirow{2}{1in}{Here is a ton of text that is not going to fit in one single line in this 1 inch column.} ...
4
votes
2answers
376 views

Is there a way to compile a LaTeX table into tab delimited text?

I am submitting a manuscript to a journal1 that will only accept Word or .rtf submissions (arrrg!) and they require that tables be tab separated text. Is there a way to compile LaTeX tables into tab ...
0
votes
0answers
106 views

Multipage tables (column-wise) [duplicate]

Possible Duplicate: Table and multi-page I have a table with a lot of sideways content. Like the following table: A B ... X Y Z Entry 1 Entry 2 Entry 3 The table ...
11
votes
4answers
1k views

How to vertically center a content spanning multiple rows without using nested tables?

I don't want to use nested tables. My current code produces the following result. And I want to get the following output. And the minimal working example: \documentclass{article} ...
3
votes
1answer
2k views

tabular inside a newcommand [closed]

I'm trying to define a \newcommand that has a tabular in it, but I get an: ! You can't use `macro parameter character #' in restricted horizontal mode. Here's an example: \newcommand{\Mytest}{1}{ ...
9
votes
2answers
2k views

How to include tabularx/y in a new environment?

I am looking for a way to define a customizable environment for tables in my latex documents. This means: caption and label width of table customized column format (tabular preamble) While this ...
4
votes
1answer
5k views

How to manage big and smaller tables in LaTeX?

When big tables are created in LaTeX, then the table extends to the footer as well. If I use the longtable package then it works fine for tables which are longer and it does not extend to the footer ...
1
vote
2answers
309 views

Why are some columns truncated in my table output?

I have a latex table generated, it has 12 columns, but it is displaying only 11 columns...why is it so? Is there any mistake I am doing? Should I work something with the font size because I have ...
20
votes
2answers
10k 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 ...
6
votes
1answer
3k views

dcolumn and text in table header

I am using the dcolumn package to align cell contents at the decimal seperator. Now in the table header I have a textual description of the column, for example like this: \begin{tabular}{c|d{4.3}} ...
2
votes
6answers
343 views

Table with two headers?

I would like to create a table like the one you can see here, maybe emphasizing nicely labels A,B with respect to the values (0,1). I tried to search but could not find a Latex code for this. Can ...
1
vote
1answer
4k views

Centering contents of table cells horizontally and vertically

I'd appreciate help centering the contents of the topmost row vertically and horizontally in their cells(?). I've tried using \multicolumn without luck. \documentclass[10pt,a4paper]{scrreprt} ...
3
votes
3answers
2k views

Enumeration of footnotes wrong

I have a small table, where I need a footnote and after it a text with another footnote. So I researched for it and found out, that I shall use \footnotemark in combination with \footnotetext in the ...
7
votes
1answer
974 views

Aligning the currency symbol in a tabular environment

Friends, I have to create some sort of a balance sheet, so my first sketch is using a tabular environment. I also have to follow some styling rules. One of the styles rules I need to obey is the ...
48
votes
5answers
68k views

How to rotate a table?

I have a table and I want to rotate it. The table has 3 rows and 4 columns, and I want to rotate the text inside this table as well. How can I do this?
1
vote
1answer
405 views

Can't get a complex table work

I'm trying to create a complex table, but at the current point I have no idea how to proceed... because there are some questions in it, I'll start a "50" bounty for the question! So the answer will ...
3
votes
2answers
385 views

Table rows alternating between column and notes-row

I would like to alter my ham-radio logbook so that every other row is a full-length notes row, possibly having the words "notes" in light grey in the background of the full-length row. ...
4
votes
1answer
331 views

longtable: Keeping some cells together on the same page

I'm using longtable in my CV to list work experience, so it can continue over multiple pages. However I like to keep some rows together, such as employer and job title, is there a way how I can do ...
4
votes
1answer
6k views

Cell shading without removing lines

I was wondering if there is any way to shade some cells in table without removing lines. I starged with this command \cellcolor[gray]{0.9} however upper line of the cell disapeard. Is there any ...
1
vote
1answer
430 views

Custom (or any) environment inside tabular adds unwanted vspace

I wanted to define my own version of a verbatim-like environment, that has some less line spacing and uses alltt instead of verbatim, so what I can use \(\cdots\) inside. What I tried was: ...
5
votes
5answers
3k views

Align numbers with numbers and asterisks in table by decimal point

I have created the following table with numbers and asterisks in it. Now I would like to align the numbers by decimal points. I included the package dcolumn and defined a new column type: ...
0
votes
1answer
612 views

itemize within tables is no longer working

I'm new to this forum (and relative new to LaTeX). After upgrading MiKTeX to the latest version yesterday evening I'm unable to compile a document containing an \begin{itemize} ... \end{itemize} ...
1
vote
2answers
336 views

How to vertically align two columns of text in a table (tabular)

This should should be a simple question, but after reviewing other responses I still can't seem to get it working. I've simplified my example to the following: \begin{tabular}{p{.5in} l } ...
5
votes
1answer
980 views

Controlling cell width and height simultaneously in a table

I'm trying to create a multi-page table with all cells having the same height (as well as certain fixed widths) so that certain manual cut-and-paste operations are a lot easier. One issue is that one ...
8
votes
2answers
8k views

How do you make a paragraph indent within a table?

I can manually try and indent, but it only works on the first 'paragraph' within the cell, and the \hspace won't even work with the second paragraph. Is there an easier way? \ctable[ cap= A short ...
8
votes
2answers
5k views

Horizontal rule with adjustable height behaving like \cline{n-m}

How can I produce \noalign{\hrule height 1pt} only through a certain number of columns just like with \cline{n-m} (or basically \cline with adjustable thickness)? Fig. 1: The approximate objective ...
6
votes
1answer
5k views

Producing a column with rotated text in all cells

I would like to set the first and the second column of the shown tabularx table to automatically rotate any text inside a single cell of one row or a single cell consisting of cells joined by ...
4
votes
3answers
729 views

Reproducing a tabular form

I am trying to reproduce the following tabular form layout: Fig. 1: Desired output (found on the internet). First question: I can merge multiple cells into a single one both horizontally and ...
7
votes
1answer
4k views

Is there a way to animate table columns in beamer?

I have a beamer presentation with a tabular environment. I want to expose the tabular environment column by column, on separate slides. I tried using \pause in the tabular header, or in the cells ...
4
votes
2answers
975 views

Estout and dcolumn: Overriding decimal alignment

I'm using estout (esttab actually) to produce a table in Latex from Stata. I'm using the dcolumn package to align the decimal places in my table. I want to override the alignment for a single row; ...
2
votes
3answers
4k views

Booktabs and longtable - strange spaces between lines

I needed to make some horizontal table lines bold so I used booktabs package. However if I use \toprule command to make line bold I get strange outcome - there are some spaces between bold line and ...
2
votes
1answer
155 views

How to align text corresponds to text within the above line?

My attempt was to use tabular: \begin{tabular}{cccc} Let & $M_1$ recognize $A_1$, where $M_1 = (Q_1, \Sigma, \delta_1, q_1, F_1)$, & \\ & $M_2$ recognize $A_2$, where $M_1 = (Q_2, ...
0
votes
1answer
494 views

Big table with cells spanning more than one page

I have a huge table that spans across multiple pages. I am using the \longtable to create these tables. Not only is the table huge, there are cells in the table that are more than one page long. For ...
4
votes
3answers
1k views

How to create equally spaced columns in a table with centered number blocks, which themselves are aligned on the decimal marker?

I've searched around this site and also alot with Google, but did not find exactly a solution to my problem: I want to create a table width equally (and automatically) spaced columns. These columns ...
10
votes
4answers
4k views

Add extra space only between two specific columns of a tabular without adding extra columns

I am trying to move two columns of a tabular apart and running into difficulty. I tried adding \hspace between the columns with the @{...} syntax, but multicolumn seems to ignore that this spacing is ...
19
votes
2answers
3k 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 ...
1
vote
1answer
189 views

Forced line breaking in table with references

I have a table with citations in it and I use apacite for citation. Here is a short example: \begin{table}[h] \tiny \begin{center} \caption{\textit{ }} \begin{tabular}{ll} \hline Authors & ...
2
votes
3answers
10k views

how to insert multi line equation in the tabular environment?

How can insert multi line equation in the tabular environment? For example see the following code that can show my request. \begin{tabular}{rrr} &a &b\\ &u=\begin{cases} 0;& ...
19
votes
4answers
2k views

Generating a table of glyphs with XeTeX

I am trying to get XeTeX to generate a table of all the possible glyphs of a given font, but can not figure out how to make XeTeX know how many glyphs the font has, so I have to specify an exact ...
4
votes
2answers
418 views

Preserving table width and header, when using tables across multiple frames in Beamer

When using the beamer class, how can I create a table which preservers the contents of the header and the width of the columns across multiple pages, without naming this width explicitly? longtable ...
3
votes
1answer
710 views

Could I use \columncolor with \only? (Beamer)

In Why can't I wrap \rowcolor in \only? (Beamer), there are solutions to how to use \rowcolor with \only in Beamer. Is there a way to use \columncolor in a similar way?
7
votes
1answer
9k views

\colorbox{color}{text} without increasing the height and width of the cell in a table

When using \colorbox{color}{text} to put background color for the text in a table, the text with background color seems to take more space and makes the respective cell higher and wider. Is there a ...
2
votes
1answer
323 views

Increasing spacing between the rows of a table containing both equations and words

Below is some code I am working with. \begin{tabular}{l|m{4.75in}} Equation 1 & $y^{10} + x^{6} + 7x^{3} + 6y^{11}$\\\hline Equation 2 & $\begin{alignedat}{1}(n + 1)^{2}u_{n + 3} &+ ...
3
votes
1answer
2k views

Automatic short/long abbreviations AND a table of abbreviations

As usual I have quite a number of abbreviations (acronyms, initialism, ...) in my thesis and I'm not happy with the way I have to do it with glossaries. I 'only' need the following: Abbreviations ...
3
votes
1answer
397 views

Tabular+dcolumn+mathspec — columns overlapping

I would like to typeset a table using the D column type as described in the dcolumn package. When I combine this with \setmathfont(Digits){Gotham Narrow Light} I get overlapping columns: ...
14
votes
2answers
14k views

Making a long table continue over two columns

I am using multicol to make a two-column document using the book document class. I have a long tabular that I want to break where the page breaks and then continue in the next column. I could split ...
6
votes
1answer
1k views

tabular, siunitx and input - `Extra }, or forgotten $.`

I'm trying to include data into a tabular environment \usepackage{booktabs} \usepackage{siunitx} \begin{table} \begin{center} \begin{tabular}{SSSS} \toprule {$na^3$} & ...
3
votes
1answer
227 views

Tables with optional rows

I defined some macros to store data. Them, I typeset them in a table. If one of the macro is not executed (the corresponding data is not available, the row should not appear. \documentclass{article} ...
12
votes
3answers
8k views

How to refer a figure as a table?

I have a question regarding LaTeX .. I have a table from an excel file which I print screened and posted as a figure in LaTeX. However, I want to make it a table. Problem is, the particular table has ...
3
votes
1answer
690 views

Tabular environment within the \newenvironment

I'm writing a book, in which we refer the reader to the CD-ROM for the source code, and tell him the compiler and the result of running the program. Here's an example: Since this "template" is ...