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

0
votes
1answer
23 views

Wrong alignment after \multicolumn

I used multicolumnn to get some text in 3 columns. The problem is that i can't get A, B, C and the numbers in the center of the column anymore. What am i doing wrong? \documentclass[a4paper,12pt]{...
3
votes
1answer
70 views

How to make a table with equally sized columns?

I have the following table: \documentclass{article} \usepackage{booktabs} \begin{document} \begin{table}[htbp] \centering \caption{Add caption} \begin{tabular}{...
1
vote
1answer
32 views

Reduce space between figures in tabular

I have arranged 4 plots using tabular. Now I try to decrease the space between the rows to move the plots and the labels closer together. In another post (Column and row padding in tables) I read I ...
4
votes
2answers
102 views

Lighter midrule

I have a table that looks like \documentclass{article} \usepackage{booktabs} \begin{document} \begin{tabular}{cc} \toprule A & B \\ \midrule Q & M \\ W & N \\ E &...
2
votes
1answer
42 views

How to make a table column that belongs to two row-colomns

I have produced a table that looks like this: I want to reproduce the table almost identical as the picture, but I have some difficulties. I used the following: \begin{table}[h] \centering \begin{...
1
vote
2answers
34 views

Problems to fit a table into a column of a twocolumn environment

I'm trying to fit a table into one column of a twocolumn environment but everytime I try to fit it in just one column, it disappears. What should I do ? \documentclass[10pt,a4paper,final,twoside]{...
2
votes
2answers
427 views

How to left align caption inside subtable?

I have the following code: \documentclass[letterpaper,12pt]{article} % things needed to include figures \usepackage{subfigure, graphicx} % float must be included for the [H] to actually work \...
4
votes
2answers
90 views

How to vertically (and horizontally) center text of cells using tabularx?

My question is very similar to this one: previous question but when I vary the example a little (as below), my cells are no longer vertically aligned \documentclass[12pt]{article} \usepackage{...
0
votes
2answers
28 views

Put a frame around table notes

I created a table and I added some notes to some cells. I was wondering if it is possible to put a frame around the table notes. The frame should have the same size as the the table. At the end I ...
0
votes
1answer
41 views

Problem with formatting Text in Table

Here is my code. Every time I include an image into my table the text in the same row skip lines and start from the bottom, to align itself [the text] with the image. Can you please advise me on how ...
2
votes
1answer
30 views

How to make mhchem work with \bgroup and \egroup satements? [duplicate]

I am trying to create a table in which a column consists entirely of chemical formulae. I would like to use the array package to automatically insert the \ce{...} command, taking the cell's content as ...
2
votes
1answer
84 views

How to create a simple 6 column table in Latex?

I am struggling in figuring out how to create a 6 column table that fits in my latex file. Note that I do not want to increase the width of the margins. I just want a simple table with 6 columns and ...
2
votes
2answers
411 views

cm - illegal unit of measure in tabular?

I wanted to created a table and I get an illegal unit of measure error, but I use cm, which works great normally.... I don't know why but sometimes I get this error and sometimes it works great... \...
0
votes
1answer
36 views

how to float long table to next page without influence the two column layout?

I'm trying to place a rotated long table in IEEEtran. In order to add long table, I added the \onecolumn before the table and \twocolumn after that. The table appeared on the right place but the text ...
2
votes
2answers
37 views

Over multiple rows text from bottom to top (or vice versa)

Is it possible to format a table so that in one column you get some text over multiple rows where the text appears vertically oriented from bottom to top or vice versa? In this case, given should be ...
2
votes
1answer
52 views

Problems with references to figures and tables

I am finishing my course conclusion work writing using LaTeX, and insert the images I used standard codes, such as \begin{figure}[!h] \centering \includegraphics[width=13cm]{lixeoutroa} \caption{........
1
vote
1answer
35 views

Drawing Nx1 tables in a row with specified spacing using tikz(page replacement algorithm illustration graph)

Actually, how to draw the picture like this. That's the illustration of LRU page-replacement algorithm in operating system concepts.
3
votes
2answers
103 views

Row too wide in Table!

I have the table below. But row 11 and 20 are too wide so I would like to have them split in two in a way that it still looks nice. So that the end result looks something like 11 Crude petroleum and ...
2
votes
0answers
62 views

Code crashes on Mac OSX, not linux?

Using TexWorks. 2 people using Mac OSX, one El Capitan, one Yosemite. 1 person using linux. The following code works on linux: \begin{tabular}{|l|l|l|} \hline Scalar form & Meaning & ...
1
vote
0answers
34 views

Define “no color” in a table cell

Is is possible to define a colour as no colour? This is for use in LaTeX tables for individual cells to override a defined \rowcolor. I've experimented with using a white colour, but then if the user ...
1
vote
4answers
35 views

Tiny Problem with Centering a Column Label

Could you tell me why is it that I can’t get in the last column to center G'_i above the figure 8 below? \begin{center} \begin{tabular}{cccS} \multicolumn{1}{c}{$C$} & \multicolumn{1}{c}{$...
12
votes
5answers
2k views

Caption and footnote width with ctable

I am using ctable and I have a table with footnotes. Since the table is narrow, the caption text is squeezed in the table width, which looks odd. I can use mincapwidth to specify a minimum width for ...
4
votes
3answers
98 views

Aligning text in a minipage environment with the top of a table in a tabular environment

I would like the text in the minipage environment aligned with the top of a table in a tabular environment. \documentclass[10pt]{amsart} \usepackage{adjustbox} \usepackage{mathtools} \usepackage{...
6
votes
3answers
288 views

Why is there no pagebreak in my table?

Sorry for a stupid question, but I am completely new to Latex. I seem to understand how to create pdf-tables from latex code in TeXworks, but all the tables, which are created, have only 1 page. I am ...
4
votes
1answer
50 views

alternate row colors for only some columns

I'd like alternating row colors for only specific columns (and in a perfect world, also only a subset of rows), with a table using multirow and multicolumn. I've found that putting \rowcolor{COLOR} ...
0
votes
1answer
55 views

How can I be sure that there are also lines between the boxes that are empty [duplicate]

I have a problem with Latex, TeXmaker (program). I would like to make a table but the last two boxes are empty, but how can I be sure that there are also lines between the boxes that are empty? Now ...
0
votes
2answers
80 views

Creating a similar table

I'm trying to create a table similar to the one in the picture below. I don't use LaTeX often and I am in need of some help. Any info would be much appreciated.
1
vote
2answers
45 views

How to use siunitx to align decimal points in a table column [duplicate]

Could any of you tell me how do I align the decimal points in the 8th column and why is it that I’m not seeing vertical column dividers in the first row except before classes? \begin{center} \begin{...
0
votes
2answers
32 views

Renaming the label of figure just in some cases

I would like to change the caption of Figure for Table just on a particular case, which is when the figure is a table (screenshot of a table made with MSWord). The last thing is about the position of ...
0
votes
1answer
34 views

\begin{table} incompatible with graphicx?

I used to import tables from R program using the LaTeX commands that R spins out in the xtable-package. It involves commands like: \begin{table}[ht] \centering \begin{tabular}{{ rr }} \hline & ...
4
votes
4answers
75 views

Aligning Maths in a Table Column

Is there a way to align this column on t_p? \begin{center} \begin{tabular}{cl} $t_p \le -2\; ^\circ\mathrm{C},$ & frost is expected \\ $-2\; ^\circ\mathrm{C} \le\, ...
1
vote
0answers
35 views

Integrals in mode \begin{matrix}…\end{matrix}

Using \begin{matrix}....\end{matrix}, I'd like to write the integrals in an adequate size. How do you do this?
1
vote
2answers
69 views

Table column-wise split dynamically across pages automatically

I have a table which has many columns. They can't fit in one page on PDF file. I would like to find some packages to print this table in several pages automatically. Each page should have same table ...
3
votes
1answer
38 views

Adapted table width to text using pgfplotstable and csv excel

I have a problem with forcing my table to the same width as the text. I export the csv (Excel) file to Latex using this approach, see code. Changing text-size in Excel works to a curtain "level", but ...
1
vote
0answers
13 views

Table in beamer says that something's wrong [duplicate]

Following this question and its answers: Algorithm with beamer package causing nightmares, I am trying to fit a table in the presentation, so I did this: \documentclass[table,dvipsnames,svgnames]{...
1
vote
1answer
24 views

Shiny - Package array Error: Illegal pream-token-

I have the following table that is compiling when I use TeXnicCentre (running on MiKTeX): \begin{table}[H] \begin{center} \begin{tabular}{\textwidth} \Large{\textcolor{Gray}{DATE:}}& \\ \Large{\...
2
votes
1answer
49 views

Aligning top of tabular with surrounding text

How can a tabular environment with a top line be aligned with the surrounding text, so that no space is inserted above the top line of the tabular? \documentclass{standalone} \begin{document} LEFT \...
7
votes
2answers
6k views

Reduce cell margins in a table

I have a table as shown below. \documentclass{article} \usepackage{graphicx} \newcommand*\rot{\rotatebox{90}} \begin{document} \begin{table}[!ht] \centering \begin{tabular}{| c | c | c |} ...
50
votes
5answers
103k views

LaTeX tables: How do I make thicker or thinner horizontal lines (typically \hline)?

The title says it all: In LaTeX tables: How do I make bold horizontal lines (typically \hline)?
2
votes
1answer
50 views

Alignment in siunitx table

Consider the following example: \documentclass[ a4paper, 12pt ]{article} \usepackage[ hmargin = 2.4cm, vmargin = 3cm ]{geometry} \usepackage[ locale = DE, detect-weight = true, detect-...
0
votes
0answers
31 views

Page Totals For LongTabu

I have a LongTabu that spans several pages and was wondering if there was a way to change the footer/add a row to the LongTabu to display the number of items on the page as well as a running total of ...
1
vote
1answer
44 views

Vertical alignment of tabular to baseline in an itemize environment

I have a tabular inside an itemize environment: \documentclass{article} \begin{document} \begin{itemize} \item[(b)] \begin{tabular}{|c|c|} ... \end{tabular} ...
0
votes
2answers
51 views

Table textwrapping

I'm trying to obtain a table like this, but the output I had doesn't satisfy me. Do you know how can I change this code? This is the table I'm trying to get: This is the table that I obtain: ...
0
votes
1answer
40 views

Is this a Beamer with Animation on Tables bug?

On the second slide of the animation, the following code results in the first table being offset down the page. Is this a bug? (Sorry if the example isn't exactly minimal, but it does show the ...
1
vote
0answers
23 views

Set tabular column width but prevent multiple lines

With the following example the column width is set, and that is exactly what I want. However, in this unusual case I want to prevent the multiple lines and neglect the following text. \documentclass{...
2
votes
2answers
98 views

To create a complex Table

I need to create a table like this: The code I wrote is: \documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \...
60
votes
3answers
98k views

Increase LaTeX table row height

How does one increase the height of the rows in a LaTeX table?
2
votes
2answers
49 views

Multicolumn table issue

I am having an issue with a table with one column containing multiple columns. After the multicolumn (named "Power Factor" in this case) the remaining columns do not have a vertical line joining the ...
2
votes
2answers
48 views

Different Vertical Alighments Across Columns in a Table

I'm trying to create a table where some of the columns are are meant to be centrally (vertically) aligned, and some are meant to be at the top. It appears that using the 'm' column type for centering ...
5
votes
3answers
83 views

Header of table with math mode, align to decimal dot

I have to create a table with math symbols in the header and numbers in the body. I would like to align all the numbers to the decimal dot. To do that I used the siunitx package. The problem is that I ...