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

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
488 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
454 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
310 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
335 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
147 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
530 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
168 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
194 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 ...
5
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
515 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
406 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
145 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 ...
10
votes
2answers
1k 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 ...
0
votes
1answer
397 views

Wrap text using m{…cm} and array package does not work

I am trying to wrap the text using the command m{2.7cm} with array package in this table, but this does not work together. If I use p{2.7cm} without array package it works, but the text is not ...
2
votes
1answer
610 views

Macro for tabbing with complex line breaks (or similar environment)

I have a complicated transcription with mid-line aligned text. I've been using tabbing to do it automatically, but it obviously doesn't do line breaks. I want to write a macro (unless something ...
5
votes
1answer
1k views

\small wrapped around table doesn't work

Nothing happens, even though I've applied \small around the table. No observable change in font size. Howcome? \documentclass{article} \usepackage{booktabs} \usepackage[T1]{fontenc} ...
8
votes
1answer
341 views

Is there a package for automatically managing table headers and formatting?

Is there a package for automatically managing table headers and formatting? For example I don't want to have to manually embolden every header entry individually, not to mention the extra clutter ...
1
vote
2answers
686 views

How to make equal width columns?

Based on Leo's answer but I removed one column and replaced the \big) with a vertical rule. Now I want to make all columns have the same width. How to do this? \documentclass{article} ...
10
votes
3answers
5k views

Automatic table row numbers

Is there any way to get automatic row numbers in table? For example, if I define table contents as \begin{tabular} % black magic column definition \rownumber & foo\\ \rownumber & bar\\ ...
0
votes
1answer
2k views

Using \frac within tabular [duplicate]

Possible Duplicate: Using \frac within a table I'm trying to do that within CodeCogs renderer, but it don't work: \begin{tabular}{cc} \hline \frac{x}{2} & \frac{2}{x} \\ \hline ...
4
votes
2answers
5k views

Coloring a multirow

i have currently this code in LaTeX \begin{footnotesize} \begin{center} \begin{longtable}[c]{ll} \caption[API da listagem de um docente]{API da listagem de um docente.} \label{relStruct}\\ ...
2
votes
3answers
600 views

How to get rid of these excessive rules?

\documentclass{article}%cannot be minimal \usepackage{longtable} \usepackage{ifthen, xspace} \newcounter{xyz} \setcounter{xyz}{1} \def\and{&\xspace} \begin{document} ...
0
votes
1answer
2k views

Align top with multirow tables in Lyx 2.0

I'm having trouble doing vertical alignment in tables with multirow in Lyx. I have data that is in a 'tree' format that I need to present in tables. I would like Category 1, Subcategory 1.1 and Value ...
1
vote
1answer
609 views

Using \frac within a table

Does \frac not work from within a table? I need to reproduce the formulae for various methods on this page - here. I for example use Normalized Square Difference & \frac{\sum_{x',y'} ...
2
votes
1answer
352 views

How to create a table with equally-spaced rows?

Several years ago I succeeded to create a table below. But now I forgot. Maybe I used a \rule with zero width. Is there another smart method to accomplish this mission? I used longtable to make the ...
7
votes
1answer
775 views

Alignment within enumerate

I'm looking for a way to sort of combine the features of enumerate (and other list-like environments) with features of tabular environments. Specifically, what I like about enumerate is that it ...
2
votes
1answer
909 views

Inclined line between two cells in a table [duplicate]

Possible Duplicate: Diagonal lines in table cell How can I put an inclined line between two cells in a table? I know that \cline{i-j} put a partial horizontal line, but I want that this ...
6
votes
2answers
4k views

Listing and Tabular in Multicols enviornment

I want to use the multicols environment to display a listing beneath a table: \begin{multicols}{2} \begin{lstlisting}[] ..... \end{lstlisting} \columnbreak \begin{table} \centering ...
3
votes
1answer
504 views

Rotate ctable, manipulate sideways

When using ctable and sideways, the tables are rotated automatically. \documentclass[10pt,b5paper,twoside]{report} \usepackage[lmargin=25mm,rmargin=25mm,tmargin=27mm,bmargin=30mm]{geometry} ...
12
votes
3answers
3k 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
1answer
4k views

Change alignment for individual table rows

Is it possible to change alignment for individual rows? Example: +------------+--------------+--------------+ | Left | Center | Right | +------------+--------------+--------------+ ...
3
votes
2answers
923 views

pocket-sized address book

Do you know of any latex example or a package that I could use to print a pocket sized paper? All records will have a format like this: | name | phone | e-mail | It would contain only 15 records ...
3
votes
1answer
331 views

Can you help me with the tables ? ( or How to get the tables right ? )

I am writing my bachelor thesis and I have a problem with my tables. They look ugly. Here an example what it looks like (click to enlarge): Here is a testcode: \documentclass{article} ...
11
votes
2answers
202 views

How to create a table of random characters in XeTeX

I want to create a table of 1000 characters picked randomly from the unicode block "unified CJK ideograms" (4E00-9FFF). Each cell should contain exactly one huge character, no character should appear ...
10
votes
3answers
6k views

How to construct a confusion matrix in LaTeX?

A confusion matrix looks like: Is there an easy way to do the same using LaTeX? Otherwise I could just create a diagram with any software.
3
votes
1answer
917 views

how to decrease the space between the \toprule and the \rowcolor

I have a table \begin{tabular}{ccc}\toprule ~&Jun-10&Jul-10\\\hline Energy&19\%&7\% \\ LiveStock&2\%&-7\% \\ \toprule ...
3
votes
2answers
8k views

latex how to make table as the same width as the textwidth?

I have used \begin{tabularx} or \begin{tabular*} but neither of these two work, these two environment managed to increase the width of the table as the same as the text, while they cannot let the ...
8
votes
5answers
3k views

Change font size in tables document-wide

Using scrartcl as my document class, tables are set in a slightly larger font size than my normal text (12pt vs. 11pt I suppose). How can I change the font size for tables document wide? At the moment ...
3
votes
1answer
3k views

Vertical centering of text within a table

I have a table defined as: \begin{table} \begin{center} \setlength{\extrarowheight}{3.0pt} \begin{tabular}{ | c | p{12.5cm} |} \hline \textbf{Item 1} & ...
28
votes
1answer
22k views

Can a table include a horizontal dashed line?

In a normal table, you can use the \hline command to draw a horizontal line. I am trying to make this line a dashed horizontal line. I have found the package dashrule via this answer, but this only ...
4
votes
2answers
966 views

Tabstop-like alignment of text possible?

I'd like to format some text around a tabstop such that what is left from the tabstop is \flushright and the text that is right from the line is \flushright. The Tabstop is at a specific position, ...
13
votes
5answers
8k views

Align Note below table

My question concerns the "Note" below the table. This is my code: \begin{table} \begin{center} \caption{ Descriptive statistics of total sample based on modified data set}\label{table:descrtotal} ...
4
votes
2answers
1k views

How to put table into multicols

I'm trying to get table formated like this: A desription of A D description of D B long description Eee description of Eee of B F description of F Cccc ...
2
votes
1answer
2k views

siunitx, threeparttables and table footnotes

I am trying to use the S option of siunitx for table alignment alongside with threeparttables for table footnotes, but it looks like that the footnote mark is flushed left everytime \tnote{} is used. ...