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

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
305 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
387 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
988 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
216 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
640 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
159 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
446 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
945 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
202 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
251 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
46k 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? ...
6
votes
2answers
6k views

How to change font size of longtable-lines without changing font size of caption?

I'd like to change the font size of all contents of a longtable to footnotesize. However the rest of the document and also the caption (!) shall be (stay) in normal size. (pdflatex is used) How can I ...
6
votes
3answers
13k views

how to vertically align a cell in a table?

I have a table that I define \begin{tabular}{lllllllllllll} \includegraphics[width=7.3in]{img1.pdf} & \includegraphics[width=7.3in]{img2.pdf} & \includegraphics[width=7.3in]{img3.pdf} & ...
6
votes
1answer
707 views

graphical tools for tabular construction?

I often use R's xtable library or emacs org-mode to create tables in LaTeX (they are wonderful, by the way). I wonder if there are other tools people use which facilitate construction of large tables ...
4
votes
3answers
986 views

Extra line of vertical separator using itemize in tabular

I'm creating a resume based off of the example tutorial HERE. It's fairly simple, actually -- just a two columned table with dates on the left and job on the right. I prefer bullets vs. a paragraph ...
2
votes
1answer
325 views

Variable Column Names using longtable?

I've been using the longtable package in order to create a multiple page table. However, I want all of my column names to be different and am having a hard time getting it to work properly. While ...
6
votes
1answer
287 views

Creating a tabular with guitar tablature diagrams

Friends, I'm using the songs package to write a songbook. Besides the lyrics part, there's also a command to create guitar tablature diagrams: \gtab{C}{X32010} which will produce this diagram: ...
15
votes
1answer
2k views

coloring every other row of a table, with vertical lines

I am making a table that needs every other row colored. I thought to use this. \usepackage[table,svgnames]{xcolor} \rowcolors{1}{white}{gray!15} But my table has vertical bars ...
2
votes
1answer
514 views

siunitx S-column in table: can I combine scientific notation and decimal numbers in one column?

I have a table with values exported from a statistics software, where the values are formatted like this (see example below): Some (very small ones) are in scientific notation, some are in "normal" ...
4
votes
2answers
5k views

sidewaystable vs landscape environment (pdflscape-package) for landscape tables spanning double pages

As explained in several other posts, I'm currently trying to create wide tables. The document is in portrait format A4, but the tables shall be typeset in landscape format. As the tables have more ...
12
votes
3answers
456 views

Define a table one column at a time instead of one row at a time

Is there a way to define a table like so? \begin{tabular}{|c|c|} column 1, row 1 \\ column 1, row 2 \\ column 1, row 3 \\ column 1, row 4 \\ column 1, row 5 \\ && ...
5
votes
1answer
326 views

siunitx: protecting lines with text from being formatted as number?

The siunitx package has already been extremely helpful to me for formatting tables containing numbers and I now use the S-column in nearly every table of my thesis. However there is one problem: In ...
2
votes
1answer
110 views

How to continue a piece of text so it is aligned with the last line of an inline multiline box?

Is there a way to have the continuation of a piece of text aligned with the last line of a multiline environment, such as array? For example, I would like to define the command ...
2
votes
0answers
2k views

How to make a given table line bold

Hi is it possible to make a chosen line of table (created by longtable) bold ?? I saw this question Make first row of table all bold but the answer refers to array package. It is possible to ...
2
votes
2answers
347 views

Paragraph column in tabular working only in the first column

I have a two-column tabular environment and I'd like for both of these columns to have the text aligned at its middle (both vertically and horizontally), along with increased row height: But with the ...
1
vote
1answer
148 views

Hanging Indents in Tables for Equations

I currently have the following code \begin{center} \begin{tabular}{l|p{5in}} Differential Equation & $(1273628x^{4} + 1237129387x^{3} + 12831729x^{2})f'''(x) + (9x^{3} + 12392183012938120x^{2} ...
4
votes
1answer
546 views

How to center numbers in a table column with the siunitx package?

I've been trying and searching for quite some time, but I don't see what I'm doing wrong: I want to create several table columns with decimal numbers (some in the format "1,25" and some like "3,156" ...
5
votes
1answer
169 views

Tabular: l{unit}?

I would like to define a few table columns with fixed width, just like p{2cm}, but I prefer the text to be flushed left, instead of justified. So basically something like l{2cm}. Is there a way to ...
2
votes
1answer
195 views

longtable - strange lines at the end of table

I have strange problem with longtable package. Almost all my tables looks great but some of have strange lines at the end of tables. Please take a look at the picture I create the table like that ...
3
votes
1answer
3k views

Longtable - aligning caption to left [duplicate]

Possible Duplicate: Formating captions in longtable tables Is it possible to align longtable caption to the left side of paper ? Standard table and tabular command align caption to the left ...
6
votes
1answer
2k views

How to get multiple multirows in a table?

I want to render a table with results of experiments. There are 6 experiments (multirows) described by 2 columns and each of them is performed 5 times (rows). My code: \begin{tabular}{l r | l || r ...
7
votes
2answers
520 views

Large table (ca. 30 columns) covering one or several double pages?

For the appendix of my Ph. D. thesis I need to typeset some very big tables containing raw data. They have about 30 columns and might have enough lines to not fit vertically on one (double)page. Is ...
7
votes
1answer
2k views

Listing with line numbers inside a table

I typeset a lot of listings (using the listings package) inside (array-based) tabular environments. This works like a charm, however, breaks when I pass the numbers= option to the listing: ...
3
votes
2answers
416 views

binary representation of an integer

Is there a way to get a binary string of an integer calculated by e.g., \pgfmathparse{pow(2,3)} \pgfmathresult such that later on I can use the string digits in a foreach loop like .. if it is '1' do ...
3
votes
1answer
148 views

How to align a top-align a table that starts with an \hline?

I want to TeXify this document as an exercise. At the bottom of its second page, there are some tables. I tried to create something similar to this using LaTeX and finally did this: Von den 15 ...