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

1
vote
2answers
34 views

aligning text in a cell of a table

How to vertically align short stack in a cell of a table? I am using "\shortstack" and would like it vertically centred in the cell of a table
6
votes
1answer
62 views

How does the \newcolumntype command work?

I'm a StackExchange and LaTeX newb trying to figure out tables and tabularx. Sometimes I copy code but don't actually know what I'm doing or why it works or fails. Can someone explain to me how the ...
2
votes
1answer
82 views

How can branch if I'm in a halign or not?

Edit: It seems that I can use \noalign\bgroup before the \halign. That's fine. But how do I test that I'm inside the halign group? I'm able to write an own if, but it would be better to ask tex for ...
2
votes
1answer
39 views

Appending an empty row after every 5 or 10 rows in LaTeX table

I wonder how to append an empty row after every 5 or 10 rows in LaTeX table. Here is my MWE in .Rnw format. Any help will be highly appreciated. Thanks \documentclass{article} \usepackage{longtable} ...
2
votes
1answer
44 views

Misaligned vertical lines in table

In my document I use different kinds of tables, as shown below in a simplified way. My problem only affects the first table shown in the output. Strangely, the vertical lines between columns "B" and ...
4
votes
1answer
46 views

Odd incompatibility between multi-line forest nodes and tabular

The following MWE compiles just fine: \documentclass{article} \usepackage{forest} \begin{document} %\begin{tabular}{c} \begin{forest} [x\\y, align=center [z] ] \end{forest} ...
0
votes
1answer
47 views

Defining table location in document

I've created a table in my document with the help from here the table looks exactly as I want except it's location in my document , how can I define the location of the table anywhere in the doc ? ...
4
votes
0answers
28 views

Change footnote number to text using tabu

Problem: Changing footnote default numbering to text using the tabu package. Minimal Working Example (MWE): \documentclass{article} \usepackage{array,booktabs}% http://ctan.org/pkg/{array,booktabs} ...
3
votes
1answer
56 views

How to align horizontally tikz picture and text in a tabular in LaTex?

I have a table as shown below: My code is: \documentclass[12pt,a4paper]{article} \usepackage{amsmath,amsfonts,amssymb,tikz} \usepackage[left=1cm,right=1cm,top=1cm,bottom=0cm]{geometry} ...
1
vote
2answers
44 views

Making several rows in a column

Hi guys I have this really weird table I made in word and want to make it in LaTeX since I am a noob in LaTeX I dont know how to split a column into several rows can some please tell me the coding how ...
0
votes
1answer
17 views

Weird error with memoir sidecaption, subbottom and threepartable package

I have a weird error using threepartable, sidecaption, subbottom and memoir class ! You can't use `\prevdepth' in restricted horizontal mode. \TPTdoTablenotes ->\par \prevdepth ...
1
vote
1answer
21 views

cline issue in drawing horizontal lines in tabular environment

I am trying to draw a horizontal line for cells 2 to 3 and then for cell 5 in a table using \\ \cline{2-3,5}. But it does not work for me. Can anyone tell me how to accomplish this in LaTeX tabular ...
106
votes
7answers
121k views

Column and row padding in tables

How do you guys go about controlling column padding in tables? Update To clarify, I'm looking for a way to control both vertical and horizontal padding. So, if I had a simple table like in the ...
4
votes
2answers
58 views

Changing width of table lines

We know that by adding \setlength\arrayrulewidth{xpt} changes the thickness of all the table lines. If I wanted to change specific table lines, how to do it? \documentclass[11pt]{article} ...
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: ...
1
vote
1answer
33 views

“Paragraph ended before \verbatim@ was complete.” when trying to use verbatim in tabular

I have the following code in my Beamer slide code: \begin{frame} \frametitle{selections} \begin{tabular}{ll} sample 1 & \begin{minipage}{3in} \begin{verbatim} sample 2 \end{verbatim} ...
2
votes
1answer
27 views

How should multiline pieces of code be put into a table?

I have the following two pieces of information that I would like to present side-by-side in a Beamer slide. I think I'd like these two things in two cells of a two-column table. Is there a good way to ...
2
votes
1answer
94 views

How can I align this table with another way?

I tried to align this table. My code \documentclass[border=2]{standalone} \usepackage{amsmath} \begin{document} \begin{tabular}{c c c} 1 & $=$ & 1 \\ $2 + 3 +4$ & $=$ & $1+8$ \\ ...
7
votes
2answers
6k views

LyX table new line

While inside a table, it seems impossible to use Ctrl+Enter in order to start a new line in the same column. So if I have, for example, a column name "veni, vidi, vici" and I don't want it to be so ...
5
votes
1answer
9k views

Regression tables made with esttab in Stata have columns with different widths, using LyX

I am relatively new to LyX and I am trying to output regression results into TeX code, and then insert the resulting tables in a LyX document. The command I use to create the table is: reg y1 x1, ...
1
vote
1answer
43 views

\columncolor overwrites table lines

When I fill columns of my table with a color, it overwrites some of the lines. Is there a way to avoid it? \documentclass[slidetop,11.5pt,xcolor=table]{beamer} \usepackage{tikz} ...
1
vote
1answer
72 views

\hline not working

Hi I want to make an additional line in my document. The problem is that it tells me \hline is a "undefined control sequence"... I tried to create a small example file but the problem is that I use a ...
3
votes
1answer
37 views

Multi-page table over two columns

I can create tables over both columns in two-column mode using table* with tabular and multi-page tables using longtable or supertabular but I am not able to combine both. ...
1
vote
0answers
30 views

Siunitx S column with line break

I have a table with many S columns of the siunitx package containing mean and errors. The table is to wide for the page width when the mean and error are typed in one line. However breaking a line ...
0
votes
1answer
76 views

Lists shaped like tables [duplicate]

As the title implies, I would like to find a way to write (ordered) lists in the shape of a table. This is particularly suitable for homeworks, for instance. The solution I came with to use the ...
1
vote
1answer
61 views

Lyx still inserting blank pages between tables in floats

I have a Lyx document with many tables and figures in floats after the bibliography. Lyx is inserting a full blank page (with a page number) between Table 1 and Table 2. Note these tables are rotated, ...
1
vote
0answers
35 views

Booktabs table with rotated and aligned header, multirows, and tabularx columns

I have a problem with the alignment in a bit complicated table setting (see MWE). I have a table normally stretching the complete width of the paper (for illustrating here the nr of columns is reduced ...
11
votes
4answers
12k views

Automatic wrapping of a \multicolumn table cell

I output lots of tables to LaTeX using the estout/esttab package in Stata. I frequently want to have long footnotes on the bottom of the table, explaining coefficients, sources, etc. The estout ...
4
votes
2answers
81 views

Center table in the page

Having this example (note the use of tufte-handout document class): \documentclass[12pt,english,nohyper]{tufte-handout} \usepackage[]{color} \usepackage{lipsum} \usepackage{graphicx} ...
4
votes
1answer
80 views

! LaTeX Error: Unknown float option `d'

I have two tables in an article written by somebody else which compiles fine with TeXLive 2013, but after an upgrade to the 2015 version xelatex hangs at them. Pressing enter the file still compiles ...
0
votes
0answers
8 views

iosart2c table* will make next table caption overflow into second column

In the two-column layout of iosart2c, the very next "table" after a "table*" will have its caption incorrectly flow into the second column, thus overlapping with the text there. Is this a known ...
6
votes
1answer
151 views

Separate content from formatting - i.e., “just type”

What exactly does "separate content from formatting (style)" mean? And if it's "necessary", how do I do it practically? After reading many LaTeX documents and TeX Stack Exchange, I keep seeing ...
2
votes
1answer
92 views

How to align the left edge of text in table with the section heading?

I am trying to make a table as follows. \documentclass{article} \begin{document} \section*{Foo} \begin{tabular}{l l l} Date & : & 2015-01-01 \\ Time & : & 20:30 \\ Place ...
0
votes
3answers
26 views

Table rows | single line | double line | of text not lining up

I have a table with two columns, the width of each column is set. There are cases where the left hand text is one line and the right hand text is two lines. As a result the left hand text is aligned ...
1
vote
2answers
44 views

Tables overlapping to next page

I am constructing a report with multiple tables, but these tables keeps floating to the next page even when is small enough to fit under a text on one page. What can i do? Below is the code i am ...
1
vote
0answers
13 views

how to use inline syntax highlighting from mint inside tabular column

I want to display single lines (not whole blocks) of code in a tabular column. The result should work with longtable as well. I defined a shorthand for inline highlighting using minted. It allows to ...
3
votes
1answer
41 views

Changing color in horizontal line in a table

The following code \documentclass[11pt]{article} \usepackage[table]{xcolor} \definecolor{orangec}{RGB}{255,158,62} \newcommand{\wh}{\color{white}} \begin{document} \begin{tabular}{|l|l|l|} ...
1
vote
1answer
62 views

How do I fix vertical spacing between tables?

I have a document with about 50 tables in it. If one of the tables goes over the page, LaTeX automatically sends that table to the next page. The issue is that LaTeX increases the spacing between ...
2
votes
1answer
50 views

2nd Column EnvironmentTable and figure 2x2 on the top of 1st and 2nd page

Can anyone help me revise my code so that I can achieve the following goals. 1.How to make the table to be on the top of the first page? Now it skips the first page and jumps to the middle of the 2nd ...
1
vote
1answer
27 views

vertical alignment of minipages in two columns in a longtable

I began to learn latex and I use it to prepare a CV. I made good experiences by organizing my CV with a longtable, in order to define the widths and the alignments of the different text blocks. In my ...
3
votes
1answer
97 views

Getting specific row/column values from a csv file to use in text, figures or table cells

I am trying to do the following: read a csv (or other similar format) external file with numerical and string data into an object; reference/get an specific value from such object to use into an ...
2
votes
1answer
36 views

Combined Tables Not Centering Correctly with ACM

I'm trying to put two tables together, so that they sit immediately, with ACM's template and I'm having a problem. The tables will sit next to once another, but the first table will be too far to the ...
0
votes
2answers
64 views

Whats best to arrange several tables on a page?

i have several tables, all of those have a caption, the same number of columns, but differ in the number of rows. Those tables take about 1/3rd of the page (very similar width, mostly the same, even), ...
6
votes
1answer
79 views

Align table data by decimal points

I have tried for about an hour and a half now to get my table data to align by the decimal places and I am beginning to lose my mind a bit. I am aware of the siunitx and dcolumn packages but cannot ...
3
votes
1answer
32 views

How do I put align elements into fixed columns?

I want an "align" equation in one column and a text table in the other column. In LaTeX, it seems that "tables" and "columns" are separate but overlapping mechanisms. In LaTeX, "columns" seem to be ...
4
votes
1answer
130 views

Centering a wide table

I can't seem to center this table. Here's the code I have. I've tried using \centering too. There is a big indent and the table goes all the way to the right edge of the page. \documentclass{article} ...
1
vote
1answer
39 views

How to make tables in which the text appears vertically? [duplicate]

I want my table to appear as shown in the figure. Is it possible in Latex, and if it is how can it be done?
2
votes
1answer
44 views

Animation with LaTeX Tables [duplicate]

I am trying to create an image in LaTeX that shows a table auto-filling itself, such as the four tables shown below. I've seen some posts about animating pictures, but I haven't seen anything about ...
1
vote
0answers
15 views

Merging rows in different columns [duplicate]

I want to make a table like the following. In particularly what does not satisfy me is that I wanted to incorporate \multirow so that `cell1,cell2,cell9,cell10' can be centered in between the ...
2
votes
1answer
45 views

Centering text in a diagonally split table cell

I need help centering a hyphen located in a table cell that has a diagonal slash to split the table cell in two. As can be seen in my photo, the hyphen is positioned at the edge of the cell, I would ...