{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
736 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
714 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
375 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
838 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
1k 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 ...
7
votes
2answers
5k 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
548 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
5k views

Change alignment for individual table rows

Is it possible to change alignment for individual rows? Example: +------------+--------------+--------------+ | Left | Center | Right | +------------+--------------+--------------+ ...
3
votes
2answers
1k 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
343 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
232 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 ...
12
votes
4answers
7k 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.
4
votes
1answer
1k 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
9k 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
4k 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} & ...
31
votes
1answer
27k 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 ...
6
votes
2answers
1k 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, ...
14
votes
5answers
10k 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
2k 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 ...
3
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. ...
38
votes
1answer
79k views

How to specify the row height in LaTeX table?

I want to create a LaTeX table with three rows which have different row heights. How can I do this? The following code \renewcommand\arraystretch{2.4} \setlength\minrowclearance{2.4pt} seems make ...
3
votes
1answer
183 views

Pushing indices into inter-column spacing in tables automatically.

I have a table that is very slightly to wide for the page. It contains table notes \tnote{} and these are what made my table too wide. Now I recall from the documentation of one of several packages ...
1
vote
1answer
219 views

Tabulating all labelled equation numbers with their labels in latex

Is there any way in Latex to collect the labels for references from a document in a table? I'm writing a long document but would like to collect together my references of various kinds (i.e. ...
6
votes
2answers
464 views

siunitx S column to produce aligned numbers in italics and parentheses

My apologies first as it may be that if i spent a sufficient amount of time playing and reading the siunitx manual, that I might be able to figure this out. About an hour has failed to yield the ...
3
votes
1answer
3k views

Specify starting row number for \rowcolors from colortbl package

In the following application of \rowcolors from the colortbl package, how can I specify the option to start the alternating color pattern from the 3rd row onwards? The first two rows in this case are ...
8
votes
2answers
9k views

Table inside table

Inside of a Beamer presentation, I want to put a graph side-by-side with a data table. Outline of the code: \begin{tabular*}{l r} \begin{center}\includegraphics{graph}\end{center} & ...
9
votes
1answer
1k views

Pgfplots: plot graph inside table

I would like to plot a table with a graph inside it. I am trying to use this example as a guide. This is the current hand-constructed version. UPDATE: I don't have enough reputation to answer my ...
5
votes
1answer
686 views

Multi-line column labels in a table

In a table a long label for a column often needs to be split into two parts. I usually do this manually by putting each part in a row of its own but it feels wrong because it splits a semantic entity. ...
4
votes
2answers
176 views

Align unrelated arrays

How can I align arrays like the ones below so that they start at the same distance from the left edge of the paper? \documentclass[a4paper,11pt]{article} \usepackage[utf8]{inputenc} \begin{document} ...
6
votes
2answers
15k views

Set table position to top [duplicate]

some content \begin{table}[t] \begin{tabular}{c c c} tabular content \end{tabular} \end{table} \chapter{new chapter} The output is: First page: some content Second page: table centered ...
9
votes
3answers
8k views

How to vertically center text with an image in the same row of a table

I want to create a table with multiple rows of the following form: a cell that contains text and then multiple cells that contain images. The text should be vertically centered and the contents of ...
3
votes
1answer
273 views

I get an error when I put an imaginary number in a column of a table with column specifier S (from siunitx package)

Using the siunitx package. I have a table with column specifier S if I then put an imaginary number in it comes up with a compile time error: ! siunitx error: "table-partial-number" ! ! No space ...
4
votes
1answer
692 views

I had a problem with spacing of tabular columns combined with \multicolumn. I found an inelegant solution. Perhaps someone knows of a better one?

Consider a table with several columns. Three consecutive columns are thin. These three thin columns have a long \multicolumn{c}{3}{??} heading over them. If nothing is done to specify how these should ...
4
votes
3answers
2k views

How to include an array in cell of a tabular environment

For an equation that has an array we use \\ for new row as well, and \newline didn't work, and this is understood by the tabular environment as a new row! Would appreciate all the help!
3
votes
1answer
194 views

Please help me to run this code in LateX!

\documentclass{article} \usepackage{array} \begin{document} \begin{tabular}{| >{\centering}p{2.5cm} | >{\centering}p{0.5cm} | >{\centering}p{2.5cm} |>{\centering}p{2.5cm} ...
1
vote
1answer
279 views

The last section goes beyond the bottom border

I have my last section which consists only of {tabular}, it is longer than 1 page, so I need to split it to 2 pages. So I have done something like that, hoping it displays the first {tabular} on the ...
3
votes
2answers
2k views

table overflows the page

I use \documentclass[a4paper,14pt]{report} and the longtable package. Also I have \usepackage[left=3cm,right=1cm,top=2cm,bottom=2cm,bindingoffset=0cm]{geometry} in the preamble. I have some ...
2
votes
1answer
988 views

Hyphenation within multicolumn

I've got the following table, which I'd prefer not to split, and it's slightly too wide for the page. How can I make some of the column headings hyphenate? I don't want to have to define a fixed width ...
7
votes
1answer
1k views

tabular and array

Consider the following example: \documentclass{article} \usepackage{array} \usepackage{calc} \begin{document} \begin{tabular}{p{\textwidth - 3cm}|p{1cm}<{foo}} Caption1 & Caption2\\ ...
8
votes
1answer
2k views

Color of square cell in array

I would like to have array with square cells and fill cells with colors. There is done implementation of table with square cells by W. Robertson ...
1
vote
1answer
643 views

Setting table placement as “here” in a multicol environment, spanning 2 columns

I have a problem with table placement. I want the table to be anchored to the position where it occurs in the text (i.e. "here", "h") and the columns should simply wrap around it. The table should ...
3
votes
1answer
2k views

Start new paragraph inside a table cell

Look out for the \par below (on the row starting with "MSA" and notice it does not achieve the desired new paragraph. How to achieve the desired effect? Thanks. \documentclass{article} ...
1
vote
2answers
180 views

How to align some lines under tabular?

I am using tabular, and I would like to realize something like that: word1 word2 word3 word4 longerword5 word6 word7 word8 So word1,2,3,4,6,7,8 are well aligned, and I do not ...
14
votes
1answer
13k views

How to make a \cline or \cmidrule narrower?

I'm trying to copy this table into TeX: I have problems with the horizontal lines under "Gaussian" etc. When I specify three \cmidrule's, they are not separated but are combined into one big ...
15
votes
4answers
4k views

Why can't I wrap \rowcolor in \only? (Beamer)

See the following minimal example: \documentclass[table]{beamer} \begin{document} \begin{frame}{Boo} \begin{table} \centering \small \begin{tabular}{rcc} \only<1>{\rowcolor{green}}Hey & ...
3
votes
1answer
919 views

Vertically center text in a specific cell

I want to vertically center the "Characteristic" heading in its respective cell? \documentclass[a4paper,12pt]{article} \usepackage{booktabs} %for top, middle and bottomline \usepackage{multirow} ...
9
votes
1answer
7k views

Vertical lines are being broken up (disrupted) by the horizontal booktabs lines

My vertical lines are being broken up (disrupted) by horizontal booktabs lines. How can I fix this? It's well and good to say use \hline but I also need a cmidrule that spans only the second two ...