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

7
votes
1answer
869 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 ...
44
votes
5answers
56k 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
390 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
382 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. ...
3
votes
1answer
297 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
412 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: ...
4
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
556 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
325 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
887 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
7k 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 ...
7
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
650 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 ...
5
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
903 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
153 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
434 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 ...
9
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 ...
18
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
167 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;& ...
15
votes
3answers
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
396 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
646 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
8k 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
303 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
385 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
12k 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
986 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
215 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} ...
10
votes
3answers
6k 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
634 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 ...
4
votes
2answers
158 views

Orientate page horizontally?

Is it possible to make on table to be oriented horizontally? I have a big table that I need to fit on one table and this is only way it can be done (except of using VERY small font).
6
votes
1answer
10k views

Help on converting table to longtable

How can I convert the following table to longtable with the same result (but being able to break across pages)? \begin{center} \renewcommand*{\arraystretch}{1.5} \begin{table}[h] \begin{tabular}{ ...
5
votes
1answer
5k views

Multirow and lines - how to draw line going through selected columns

I was wondering if it is possible to draw line which goes through some columns in table(not all columns). I have a table which looks like that \begin{longtable}{|c|c|c|c|c|c|c|c|c|c|c|c|} ...
3
votes
1answer
443 views

multicolumn-command which automatically uses all columns of the table?

Is it possible to define a multicolumn{}{}{}-command, which automatically spans all columns of a table? For my longtables I want to use a command defined in the preamble, which typesets at the right ...
6
votes
3answers
935 views

siunitx: how can I avoid adding decimal zeroes?

How can I format a table column with siunitxwithout adding additional zeroes after the decimal separator? I'd like to see 5,2 in the output instead of 5,200 (however: 0,246 shall still be displayed ...
4
votes
1answer
167 views

How to avoid duplication of longtable setup code

I have many longtable's in my document. Everything is the same across all the tables, except for the caption and the content (of course). How can I avoid duplicating the stuff required to set up ...
4
votes
1answer
2k views

Wide table in two-column doc: error ! Extra }, or forgotten \endgroup.

I am trying to create a table which spans both columns of a two column document based on the IEEEtrans document class. However I am receiving the following error which I cannot explain: ! Extra }, or ...
0
votes
1answer
201 views

How can I shift individual cells in XY-pic without shifting the corresponding row/column?

I'd like to create a figure using XY-pic in which one cell actually spans two rows (like \multirow). Should look something like: 1,1 1,3 BIG 2,1 3,3 With arrows from 1,1 and 2,1 to ...
1
vote
2answers
331 views

Changing thinness and form of a vertical line in a table

I am trying to create a cover page, where in the middle of the page i use tabularx (tabular could have been just as well) to split the width of the page in to two parts. I would like to know how ...
2
votes
1answer
247 views

Using parindent within the longtable environment

Here is a simple test case of the problem I'm having: \documentclass{article} \usepackage{longtable} \begin{document} \begin{longtable}{p{2in}|p{5in}} foo & \parindent=1in bar \\ ...
4
votes
2answers
3k views

Stop automatic indenting of tabular in apa6e

In apa6e, tabular environments indent automatically. This does not match APA's guidelines. One can work around this by putting a \noindent in front of every \begin{tabular}{...} line. How can I stop ...
27
votes
2answers
45k views

How to merge columns in a table?

I have this table, but wanted to format the first row. I like to match the two columns of first row, and last two columns of the same first row. Any suggestion on how to do that? \begin{table}[!h] ...
21
votes
2answers
27k views

How to force table caption on top?

I have a table which works ok...as per example below. But in the thesis, the right column is centered and caption forced to below table. Is there a way I can make it look like? ...