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

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
10k 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
53 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
80 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
49 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. ...
0
votes
1answer
85 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
0answers
37 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
84 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
131 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
9 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
159 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
112 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
30 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
0answers
17 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
47 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
30 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
169 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
68 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
89 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
34 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
134 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
40 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
47 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
48 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 ...
0
votes
1answer
47 views

How to make a table of items in resume? [duplicate]

Hi I am writing my resume in Latex. In "Professional service" section, I wish to list journals I refereed papers to. And I wish to do something like the following template. It seems that the names ...
1
vote
2answers
94 views

How can I show a leading + sign in siunitx S column?

I'm using siunitx's S columntype to align numbers in a table. The numbers are percentage values which should all have a preceding sign (some - and some +). The numbers with a "-" are shown with a ...
4
votes
2answers
87 views

Compilable custom environment when in the body text becomes uncompilable when defined as a new environment

I attempted to make a table which has gray backgound cells except for the first column and the first row colored blue. The following code successfully generates the desired output (although I do not ...
1
vote
1answer
48 views

How to get alignment finally “right” with tabularx and an image?

Two things I'm struggling with in the following MWE: "looooooooooonger text" doesn't fit: don't want the middle and right column to be equally spaced: the maple may move over a little to the right ...
3
votes
1answer
39 views

tabularx preamble tweaks // column widths

am using this: %%% http://tex.stackexchange.com/a/97188/27721 \usepackage{array} \newcolumntype{Z}{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}X} and would like to use (that is, ...
12
votes
3answers
17k views

Importing csv file into latex as a table

I am using the \csvautotabular function to import data from a csv file. It has worked beautifully; however, I only want to import certain columns from the file. How can I exclude certain columns? ...
1
vote
1answer
37 views

While running this table i got errors

\begin{tabular}{|p{0.3in}|p{0.9in}|p{0.2in}|p{0.3in}|p{0.2in}|p{0.2in}|p{0.2in}|p{0.2in}|p{0.2in}|p{0.3in}|p{0.3in}|p{0.2in}|p{0.3in}|p{0.2in}|p{0.3in}|} \hline Sl.No. & Author \& year ...
1
vote
0answers
43 views

Tables going wild when changing font size

I have a document with 3 or 4 wide tables. Using \begin{adjustwidth}{-5in}{-5in} I got them to adjust. However, when I changed the font size (from the default 10 to 13) of the document they went ...
2
votes
0answers
64 views

How to break tablenotes (page break) in longtable with threeparttablex?

How can I break my TableNotes in ThreePartTable (it is a landscape table)? \documentclass[a4paper]{article} \usepackage[english]{babel} \usepackage[top=2.975cm, bottom=2.975cm, left=2.975cm, ...
2
votes
1answer
49 views

Using “moderncv” package, the \cvitemwithcomment command gives error

I'm trying to create my personal CV using moderncv package but I'm getting an error: in language skills section I'd like to insert a table resuming my skills using the code as follows ...
24
votes
2answers
57k views

Add notes under the table

I'm using the latex package apa6e because the apa package isn't using APA style version 6 yet. Now I'm trying to add a table with notes right underneath it, like in this table for instance: Since ...
0
votes
1answer
17 views

Tabular Alignment and Centering around Decimal Point [duplicate]

I'm trying to align numbers by a decimal point in LaTex. I know this has already been answered, but what I can't figure out is how to center justify the labels around the decimal point. ...
0
votes
0answers
27 views

Specify horizontal position of xtable output in LaTeX

I originally posted about this on StackOverflow (http://stackoverflow.com/questions/31359737/table-environment-from-xtable), but it was recommended for me to post it here instead. I am using the ...
3
votes
1answer
75 views

Table layout is wrong when stretched to text width

I am trying to change the width of my table to text width but the layout is bad as shown below .. Any ideas? My Code: \begin{table} \centering \begin{tabularx}{\textwidth}{|l|l|l|l|} \hline ...
4
votes
1answer
38 views

Remove column sep between longtable and a tabular insides

when I created a tabular inside longtable, there is a space between them. How can I remove that space? Thank you. \documentclass[10pt,twoside]{article} \usepackage[a4paper,tmargin=1.75cm, ...
3
votes
1answer
27 views

Bad linebreak with tabulars in loop

I have built arrays (with csnames) containing contact information, and I would like to print out all the contacts in tabular format, using a loop. But when the tabulars overflow the \textwidth, ...
3
votes
2answers
61 views

Images not spaced properly

I'm placing images into a table, but they aren't lining up vertically, even though they are the same height. A complete example is: \documentclass{llncs} \usepackage{amsmath} \usepackage{array} ...
4
votes
4answers
70 views

Missing vertical line in multirow table

I'm trying to make a table, but some vertical lines are missing. Could someone help me to see the mistake? \documentclass[11pt]{article} \usepackage[utf8]{inputenc} \usepackage{dsfont} \parindent0em ...
3
votes
1answer
62 views

Suppress Chapter number in Table to display “Table #” instead of “Table Chapter#.#”

This is my first time working in LaTeX; I am working on my dissertation and I need to rename Tables so that they are numbered as Table 1, Table 2 etc. rather than include the Chapter number in them so ...
2
votes
1answer
37 views

Change colors to table lines

I have: \documentclass[11pt]{article} \usepackage[table]{xcolor} \definecolor{orangec}{RGB}{255,158,62} \begin{document} \begin{tabular}{|l|l|} \cline{1-2} ...
1
vote
3answers
55 views

Align table horizontally - rescale

I would like to align horizontally two tables, if necessary rescaling them, to put them on the same line. Obviously even the caption must be scaled, remaining aligned with the center of the table. ...
1
vote
1answer
22 views

Having a table, add colors

If I have \documentclass[11pt]{article} \begin{document} \begin{tabular}{|l|l|l|l|} \hline text& text &text &text \\ \hline text& text &text &text \\ \hline ...
4
votes
3answers
147 views

How to type short division?

I am typing elementary arithmetics, is there any one knows how to type this ? I know perhaps there's a package "polynom" could solve this problem, but is there any method that could work without ...