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

11
votes
2answers
5k views

\hhline adds white line where no line is intended

In a table, containing colored cells, i want to have a \hline dividing only some cells, similar to \cline but compatible with coloring single cells with \cellcolor, which is possible by using \hhline ...
8
votes
2answers
11k views

\cellcolor overwrites table lines

I have a table which I want to fill with multiple colors, each cell possibly different from another. Which means, I can't make use of e.g. \columncolor (as in this post). While the table without any ...
11
votes
2answers
1k views

PGFplotstable: Is it possible to set a number format for a *row* instead of a column?

Using pgfplotstable, it's straightforward to set a column number format using columns/(columnname)/.style={(format)} What I would like to do is change the number format of a particular row. In my ...
4
votes
1answer
235 views

Is this layout feasible in LaTeX?

I run a cheat sheet website, and at the moment producing PDFs of the cheat sheets is a nightmare. I would like to find an easier system, and I'm wondering if LaTeX might be it. I've not used LaTeX a ...
4
votes
1answer
1k views

Landscape forces premature pagebreak

After some trouble I have managed to make a table in landscape orientation that breaks over three pages. I used tabularx and the landscape package. Now my problem is that the thing won't float like ...
4
votes
1answer
505 views

number separator formatting with ragged right positioning using siunitx, R, Hmisc::latex

I found Boris's suggestion to use siunitx to achieve number formatting in Hmisc::latex tables to almost be exactly what I was looking for: R, Sweave, Hmisc: pretty-print numbers However, if you look ...
4
votes
2answers
589 views

spreadtab insert multiple values to a cell

\begin{spreadtab}{{tabular}{rrrr}} \toprule & @A & @B & @C \\ \midrule 1 & 33 122 & 133/\Factor & 156/\Factor \\ ...
4
votes
2answers
279 views

divide table cells by a certain amount

I made a mistake in the values that i put in the table. I need to divide all the values by 105. Is there a method where i can do it without having to replace this with a completely new table ? % ...
14
votes
1answer
7k views

Cellcolor overwrites partial horizontal lines (\cline)

So I need to make a colored table with multirows, together with the use of partial horizontal lines. I used \cline which does not work: the \cellcolor-command overwrites the line. This question told ...
2
votes
1answer
212 views

Math in table doesn't work

I have a table, which code is: \documentclass[a4paper]{report} \usepackage{booktabs} \usepackage{fullpage} \usepackage{multirow} \usepackage{array} \usepackage{threeparttable} \usepackage{amsmath} ...
6
votes
1answer
762 views

Colourful notes - todo list annotations in tables

I've decided that I'm going to make LaTeX notes for all of my lectures next year (I'm doing computer science at university). I want a way to brighten my notes up - make them more exiting to read when ...
2
votes
0answers
513 views

Why does LaTeX longtable start on next page? [closed]

I have a 3-column-longtable that spans over several pages, there's no problem with that. The thing is that there's some text before the longtable. Instead of starting right under the text, LaTeX ...
3
votes
1answer
230 views

Can I have a table that spans multiple pages using ctable?

I'm currently working on a paper and I have a bunch of tables. Currently I'm using the ctable package for my tables. One of my tables is rather long and it spans more than one page. However currently ...
5
votes
2answers
732 views

Conflict between `booktabs` and `arydshln` packages

Please see the MWE below and its result. I didn't use the arydshln package in the example, but I have to use it somewhere else in the same document. As you see, there is something wrong with the ...
10
votes
1answer
7k views

Remove border of top left table cell

I want to remove the border of the top left table cell (top-border and left border of this cell). My table looks like this: \begin{table}[!ht] \centering \begin{tabular}{|c|c|c|c|} ...
8
votes
3answers
8k views

Add “just a little more” padding to my table?

I have a table resembling a matrix with a extra lines for emphasis. This table may also contain frac{} items which do fit into the cell but sort of "hit" the boundaries. Trouble is, that I have quite ...
2
votes
1answer
861 views

enumerate list embedded in table with custom label

I'd like to augment the embedded enumerated list inside tabular to have custom labels. I am using Yiannis Lazarides's tabular example, but would like to add a custom label that can do circled number ...
1
vote
1answer
375 views

Create landscape tables with apa6 document class

How can I create landscape tables with the apa6 document class? The landscape environment seems to be ignored; the table is still upright. I guess the problem is that tables and figures are ...
6
votes
1answer
473 views

How to force tables to be in the middle of the page

I am trying to include a set of tables into my document. Since the tables are quite large, I want them to be on landscape pages, and centered right in the middle of the page (that is, centered in ...
7
votes
2answers
522 views

colortbl rowcolor overtop of @{decl}

I have tables with many $\pm$ values that I was using the @{decl} command to have nice alignment. However, I wanted to add some row colors. Trying to use colortbl I found that the cell/row color was ...
0
votes
2answers
174 views

Enumerating contents in Tables and Table stretching

In my document, I have a table with pretty much texts in it. One of my problem is that I have about 2, 3 hierchical levels of texts, such as row 1: Description row 2: 1. Advantages a. on ...
9
votes
1answer
797 views

Several \begin{equation} \end{equation} in columns

I have 3 elements of the following form (approx ~20 equations for each one) : \begin{equation} \begin{aligned} % LOTS OF EQUATIONS % \end{aligned} \end{equation} How to put display these 3 elements ...
11
votes
1answer
3k views

break a table on two columns

I have a table that is quite long (less than a page, by the way) and quite narrow; to save space I wish to have it, let's say, on two columns. Referring to the following image, I wish to have the ...
2
votes
1answer
190 views

Text-wrapping and enumerated list in a table

I currently am trying to type a table in LaTeX, such that I need not only text-wrapping in one of the cells, but also an enumerated list in one cell. Here is what I have, but the table slides off the ...
8
votes
1answer
1k views

How to wrap text around a landscape table over multiple pages? \sidewaystable or \landscape + \longtable

I am trying to create a landscape table that breaks over multiple pages. I have successfully done this with the following: \begin{landscape} \begin{longtabu} to \textwidth{some columns} \caption[my ...
1
vote
1answer
158 views

Centering text in a tabular environment

Good day to all, This look not beautiful for me, I want the text is centred in the box, especially $\frac{1}{s^n}$. Your help is much appreciated. \documentclass{report} \usepackage{amsmath} ...
8
votes
1answer
993 views

pgfplots need help with complicated stacked bar chart using selected rows from data table

I'm trying to recreate this bar chart from the data table found in the MWE below. It involves doing a couple things that I can't figure out: stack positive and negative bars on the same axis, ...
3
votes
2answers
1k views

Having a table use textwidth and still have centered text?

I'm wondering if it's possible to have a table in LaTeX that spans the entire textwidth, and that the columns automatically center themselves... I have tried using the "X" option in tablerx, but it ...
11
votes
1answer
28k views

Brackets in first column in table give “Missing number, treated as zero” error [duplicate]

Possible Duplicate: Error with table I'm writing a table with 4 columns and 1 row. The first column starts with a bracket. It compiles without issues: \documentclass{article} ...
2
votes
3answers
638 views

Table of images with captions

I have a table with four images. \begin{table}[ht] \caption{table caption...} \centering \begin{tabular}{cc} \includegraphics[width=45mm]{w.png} &\includegraphics[width=45mm]{x.png}\\ \newline ...
4
votes
1answer
706 views

How to sort table for plotting with pgfplots?

Is it possible to sort a table at the point that is included in a pgfplot. In the example below, the point x=3 and x=4 are ordered for plotting. I am looking prefereably for an 'in-place' solution, ...
0
votes
1answer
906 views

LaTeX table header with split horizontal lines

I've seen the following table in paper and would like to reproduce it in LaTeX. The one thing that I'm struggling with is the broken horizontal lines between the two different "Dep. Var." columns (gap ...
5
votes
1answer
371 views

Interference between \includeonlyframes and \onslide across tabular row

I seem to have run into a strange interference between \includeonlyframes and use of \onslide to uncover a row in a tabular environment. Consider the following: \documentclass{beamer} ...
5
votes
1answer
3k views

Remove top and bottom margin in tabular (around lists)

If I create a table with several (short) lists, currently I'm using a table construction with enumitem to (almost) remove the left margin. Now I still have a rather large margin at the top and the ...
7
votes
2answers
742 views

How to make \tfrac work in >{}?

When I used >{$\sqrt\bgroup\tfrac}c<{\egroup$}, I got the following output. The weird part happened at the last column. How to fix it? \documentclass[border=3pt]{standalone} ...
13
votes
2answers
4k views

Color entire table

How do I get an entire table to get a background color. I dont mean the indivual cells but the entire table to get a gray shade. Something like this:
3
votes
2answers
1k views

Caption on tables with wrapfigure

I'm simply trying to get a table on the right side of my text. I've tried many different packages like float, floatflt, and wrapfig, the latter got me the closest to what I wanted. My only issue at ...
1
vote
1answer
872 views

multirow doesn't seem to work

EDIT: The problem now is that in the table, between 'Baseline' and 'Action' there is a space that I want to remove (look the image below). 'Action' is indented, and it's ok, but it's too detached from ...
6
votes
1answer
3k views

Newline in \multirow environment

One element of a multirow column is long. How can I split it so that it spans over multiple line. The following code \documentclass{article} \usepackage{multirow,array} \usepackage{booktabs} ...
2
votes
1answer
542 views

Spurious spaces in tabular environment with siunitx and percent symbol

I keep getting spurious spaces when I use the siunitx in a tabular environment in the presence of a percent (%) symbol. I am trying to align at the decimal point. My code is: \begin{tabular}{lS} ...
3
votes
1answer
442 views

Misalignment of table columns when using multirow

I have a LaTeX document in which I am using custom environment and commands to make everything a bit easier. However, when I use the multirow command in one of my custom environments, the alignment of ...
3
votes
3answers
4k views

How to draw a multirow table?

I am new to Latex and need help drawing tables. Here is what I have right now: and here is the code for it: \begin{center} \begin{tabular}{|c|c|c|c|} \hline Topology & Average Delay(s) & ...
8
votes
2answers
706 views

How to shrink a table automatically so that it fits onto a page?

I have a table that looks like this: \begin{table}[h] \centering \caption{MYCaption} \label{tbl:table1} \begin{tabular}{|l|l|l|l|} \hline \rowcolor[gray]{.8} \multicolumn{4}{|c|}{Team 1}\\ \hline ...
4
votes
2answers
353 views

Need help with cosmetic changes to longtable

I need some assistance with a longtable (code below). I have a few things that I've been trying to accomplish but have not been able to. 1) I want the grey background to cover the table in a similar ...
3
votes
1answer
439 views

Automatically insert capital letters as alphabetical breakpoints in a sorted column of names

Recently I used LyX to prepare a list with 200+ guest names for a wedding (page 1 illustrated below). Actually, it was a table including invited family names, the number of persons of each invited ...
3
votes
1answer
2k views

Altering the position of bullet given by \item

I am working on my resume and for that I am using one of the following construct: \documentclass[letterpaper,9pt]{article} \newlength{\outerbordwidth} \usepackage[empty]{fullpage} \usepackage{color} ...
5
votes
1answer
331 views

Alternate multicolumn

Is there a nice way to use \multicolumn in alternate rows in a table. i.e., \begin{tabular}{| l r |} \hline item 1 & item 2\\ \multicolumn{2}{|c|}{item3}\\ item 1 & item 2\\ ...
1
vote
1answer
499 views

siunitx package not working in tables

I can't get the special table columns from the siunitx package to work. The numbers render in a normal l column but not in the special S coulmn. Here's my minimal example: ...
3
votes
1answer
3k views

Greek Letters in Latex Table

I have been using online latex editor for generating equations for my blog. I am kind of novice to Latex. Now I want to generate a table for the first time. But when I try to write a greek letter into ...
2
votes
1answer
541 views

Create Custom tabular

Is there a way to make something like tabular such that in a loop we get each column in a line and render them in a custom format. Like this \begin{custom_tabular} l1c1 & l1c2 & l1c3 \\ l2c1 ...