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

3
votes
1answer
736 views

Automatic break line after multicolumn

Is there a way to put \\ after multicolumn automatically, each time it appears in the code? Pseudocode would look like this: \newcommand{\commandThatAddsBreaklines} if(thereIsAMulticolumn == true) ...
4
votes
3answers
894 views

aligning text in a table

I have problem with aligning text in a table. Here is my example: \documentclass{article} \begin{document} \begin{figure} \begin{tabular}{| l | p{1.5cm} | p{1.5cm}| } \hline & ...
2
votes
3answers
1k views

How to make a transportation tableau

I am trying to make a transportation tableau in LaTeX. The tableau I wanted looks like the one below.
0
votes
0answers
35 views

Open source workflow to represent a number in a table cell by its background color [duplicate]

Possible Duplicate: Parametrize shading in table through TikZ Drawing heatmaps using TikZ I know this isn't strictly speaking a LaTeX question, so please move this somewhere else if you ...
7
votes
1answer
8k views

Table overlay in beamer on multiple rows

I want to include a table in my presentation (beamer) and this table has 2 panels. I want to first show the first panel and then the second panel, I have been trying to do it unfortunately without any ...
2
votes
2answers
684 views

How does one split a column title into two lines?

\documentclass[12pt,a4paper]{book} \usepackage{array} \begin{document} \begin{table}[H] \setlength{\tabcolsep}{5mm} \begin{tabular}[h]{|>{\centering\arraybackslash}p{2cm}||> ...
5
votes
2answers
166 views

Where are all these errors coming from?

With the following document, I get a lot of errors around line 38. I can't tell where these come from, but the resulting output looks fine. For the sake of good practice, what am I doing wrong here? ...
8
votes
3answers
232 views

Oversized parentheses around tabular

I'm having the following problem. I'm using a tabular environment to create a phrase structure rule (linguistics stuff, don't care about it) and I need parentheses for those parts in the rule which ...
11
votes
3answers
446 views

Aligning complex numbers in centre of table with siunitx

I'm trying to align complex numbers in the middle of a table column using the siunitx package for nicer alignment, but the numbers are centring based on where the decimal point would be on the real ...
3
votes
1answer
6k views

Change font size of text in a table cell

I'm trying to create some beautoful tables with LaTex, but it's kind of hard. How can I change the font size of only some words within a table cell? \begin{tabularx}{\linewidth}{lX} text:&this ...
4
votes
1answer
262 views

Pgfplotstable converting zeros to — in a knitr inline table

how do I change each 0.0 to -- without having to reference each as string type or making the whole table string type? The actual table is quite long and it would take too long to do it manually. For ...
4
votes
1answer
281 views

Equivalent of \DTLiflastrow

With the datatool package there is a \DTLiffirstrow. I am looking for a similar command to detect the last row, \DTLiflastrow, but could not find one. I attempted to create my own but was not ...
0
votes
1answer
421 views

\angle symbol in tabular column definition [closed]

I've got a table full of phasors, and I'm trying to write it as follows: \documentclass[a4paper,journal]{article} \usepackage[cmex10]{amsmath} \begin{document} \begin{table}[h!] \caption{Bus ...
3
votes
2answers
158 views

\multirow - Long name breaking/ruining layout

When I use this tabular enviroinment, for some reason the second-lowest row gets messed up badly. Can anybody please tell me how to fix this? \documentclass[11pt, a4paper, fleqn, parskip]{scrartcl} ...
4
votes
2answers
570 views

Automatically formatting a table from a file with a list of words

I have a list of ~1000 words in a text file. The words are listed in a text file "my_words.txt" with no breaklines as follows: word1, word2, word3, etc. I would like to display these words in a ...
5
votes
1answer
287 views

Table with rotated headings on fixed height rows

I am trying to create a 2 x 2 table with centered headings. The row headings need to be rotated as shown below (mocked-up in another program). The cells are supposed to be 1in tall and 1.4in wide. ...
2
votes
1answer
157 views

Text gets out beyond the table

I use WinEdit and try to make a table. The problem is that I can not move the text in a multirow to the second line. There are the packages I use: \documentclass[12pt, a4paper]{article} ...
3
votes
2answers
189 views

Table is spreading words across the column?

In the code below, the entries of the first row get stretched across their respective boxes. I get that there's not enough room for each line to fit exactly across the box, but I'd like for it not to ...
11
votes
2answers
521 views

Sideways text with rule as table label

I've been trying to achieve the following vertical sidebar effect in LaTeX for my resume, but turns out it's far more difficult than I thought (created easily in InDesign): I've tried everything ...
1
vote
1answer
436 views

How to eliminate vertical space before and after verse environment?

I'm using the verse package to typeset poems inside a tabular environment. Is it possible to eliminate the space before and after the verse package? \usepackage{verse} ... \begin{tabular}{p{30mm} | ...
6
votes
1answer
2k views

Text not spanning full page after wraptable

I wonder why latex doesn't go back to full textwidth after a table that was added in a wraptable? The actual code where I experience this problem is here: http://pastebin.com/CRjHMZdT I would ...
12
votes
2answers
343 views

A macro to typeset a difficult table

The following table was created with the following LaTeX-code (mwe): \documentclass{article} \usepackage{tabu} \usepackage{multirow} \begin{document} \newtabulinestyle{stip=on 1.5pt off 2pt} ...
2
votes
1answer
2k views

Badbox overfull with figures and tables in TexMaker

I have a lot of badboxtype of error in my document. It doesn't seem to affect the layout but what does it means ? Should I resize my figures and tables ? Overfull \hbox (6.77963pt too wide) in ...
5
votes
2answers
1k views

Center long column title

MWE of my table: \documentclass[a4paper,10pt]{article} \usepackage[utf8]{inputenc} \usepackage{graphicx} \usepackage{multirow} \usepackage{array} \begin{document} \begin{table} \hspace{-3cm} ...
4
votes
4answers
1k views

Making table fill the page vertically

I have several tables in my document that are just a bit too small to fill the entire page, vertically. I'd like to stretch the table, either by adding empty lines at the bottom, or by stretching the ...
1
vote
1answer
4k views

Table spanning two columns creates hole in text

I am writing an article in two columns: \documentclass[a4paper,11pt,twocolumn]{jarticle} And at one point I include a table spanning 2 columns. text before table \begin{center} ...
2
votes
2answers
3k views

table too wide for twocolumn-mode document

I have a table which comes outside the text column width into the margin of the paper. How do I make the text in the table align to left ? \documentclass[a4paper,10pt]{article} ...
2
votes
1answer
133 views

Table too wide, want to put it in another page [duplicate]

Possible Duplicate: table too wide for twocolumn-mode document I'm writing a two-column style conference paper, and I am having a table that's too wide to fit into a single column. I saw ...
5
votes
2answers
2k views

Undesired quotes around values in table (pgfplot)

I am saving tables using write.table in R using the following code: x <- rnorm(100) y <- rnorm(100) z <- rnorm(100) model <- z ~ x + y results <- glm(model) pe <- ...
0
votes
1answer
116 views

Add column in a multicolumn table [closed]

This is my code \begin{tabular}{|c|c|} \hline Genre&Prénom\\\hline Humain&Aragorn\\\hline \multirow{4}{*}{Hobbit}&Frodon\\\cline{2-2} &Sam\\\cline{2-2} &Peregrin\\\cline{2-2} ...
4
votes
1answer
487 views

Using collcell package with csvsimple, or datatool

I was trying to compose an answer to Bold one cell in table using CSV reader using the collcell package, and can't seem to get it to work either with the csvsimple tabluar, nor datatool. With the ...
3
votes
1answer
3k views

How to make the table fit into the column?

Hi I have a two columns table with ACM SIG Proceedings template http://www.acm.org/sigs/publications/proceedings-templates Here is my latex: \documentclass{sig-alternate} \usepackage{ctable} ...
6
votes
3answers
427 views

Problems aligning on a decimal in a table with colored rows

I'm having a problem with making a "pretty" table The intent is to have alternating light background colors with black text for normal rows to facilitate reading across, with the header having a blue ...
4
votes
1answer
82 views

What's wrong with this table code?

I'm trying to display a Table with the following code: \begin{table} \centering \begin{tabular}{|l|l|l|l|} \hline \textbf{$\theta$} & \textbf{$\phi$ (\%)} & ...
5
votes
2answers
6k views

Simple tabular too wide

I'm trying to write quite a simple document here but I'm having a frustrating problem with my tabular. Here's my code: \documentclass[a4paper,10pt]{article} %\documentclass[a4paper,10pt]{scrartcl} ...
4
votes
3answers
567 views

How can I draw a table where the upper left corner is missing? (Pic)

Is it possible to draw a table like the one in the attached picture? I've read documentation on the tabular environment but nothing really describes this well. The shading would be nice but the ...
2
votes
2answers
894 views

\tabular multicols noalign

I can not figure out what's wrong. The pdf appears okay anyway \documentclass[a4paper,12pt]{book} \usepackage[margin=1.5cm]{geometry} \usepackage{colortbl} \usepackage{multicol} ...
4
votes
3answers
2k views

Bold one cell in table using CSV reader

Is it possible to bold a single desired cell (or number of cells) using csvreader (besides the head)? Here is an example of making the table. \documentclass{article} \usepackage{csvsimple} % Make ...
4
votes
2answers
2k views

Change caption in table from Table 2 to Table 1A

I have this code: \documentclass[12pt]{article} \begin {document} \begin{table}[h!b!p!] \caption{This caption describes contents of Table 1, gives the big picture.} \caption {Describe contents of ...
6
votes
1answer
2k views

Display top border of table using csvreader

I am using csvreader from the csvsimple package to generate a table in my document. I am struggling to get a top border on the table. Here is the code, including writing the .csv ...
15
votes
5answers
50k views

Center table on page

I would like to center a table on the page, not only the content. But I can't find the right keyparameter or command. I have follwing table \documentclass[11pt]{scrartcl} \usepackage{multirow} ...
2
votes
1answer
679 views

How best to set a comparison table in beamer?

I want to make a frame in beamer that compares two thingys according to 4-5 parameters, uncovered sequentially. My modest efforts to get something pleasing to the eye using \begin{columns} and ...
3
votes
1answer
394 views

subfloatrow and tabularx, wrong numbering of figure

I wanted to "group" a figure and a table to get one figure. It has been proposed to use floatrow for this, with the possibility to remove the subcaptions later on (subfloatrow of package floatrow does ...
38
votes
2answers
2k views

Partially coloring cell background with histograms

Excel has a cool feature called "data bar" conditional formatting that allows the user to partially fill a cell background to create histograms based on cell contents. Here is a screen clip example ...
10
votes
2answers
118 views

Can I refer to cells in a tabular?

I have a tabular table, and in my text I want to refer to cells in the table. One way is to superscript the cell content: \begin{table} \begin{center} \begin{tabular}{lrr}\hline This & $99^a$ ...
4
votes
1answer
6k views

How to add vertical space between two lines of tables

\documentclass[11pt]{article} \usepackage{tabu} \usepackage[inline]{enumitem} \begin{document} \section{abc} \begin{enumerate} \item \begin{enumerate*} \item ...
2
votes
1answer
175 views

how to align item bullet to the top of the table in the item

Consider the following example: \section{abc} \begin{enumerate} \item \begin{tabu}[t]{c|c} \hline $p$ & $p \oplus p$ \\ \hline T & F \\ F ...
4
votes
3answers
444 views

Determine height of tabular

I am working in a minipage, because I want two columns next to each other in landscape mode. In the first column I would like to place a figure, and then a tabular. I am scaling the tabular to ...
3
votes
1answer
519 views

Automatically increasing date in table cell

I'd like to have an automatic date in a table. Automatic date means I'd like to specify a start date which is shown in the first row of the table and every additional row shows appropriate next day. ...
4
votes
1answer
8k views

changing margins for a page with tables

I have a document with a table that is rather large. I have already decreased the size of the font but it still bleeds into the right margin. I would like to decrease the margins on that page so it ...