{tables} is about the tabular environment and related packages such as {array}, {booktabs}, {tabularx} and {longtable}. For questions about the table environment (i.e., about floating or positioning), use {floats} instead.

learn more… | top users | synonyms (2)

8
votes
4answers
151 views

specific table layout

I want to draw a table like this: with the table width being a portion of the line width, like e.g. 0.8 * linewidth. But I cant figure out how to do it. Anyone? edit: MWE: ...
1
vote
1answer
49 views

Remove whitespace around an enumeration in a table

I've tried using the enumitem suggestion given on http://stackoverflow.com/questions/4968557/latex-very-compact-itemize, but I still see white space around my enumeration: \documentclass{article} ...
4
votes
2answers
82 views

Adding background color to table cells in LyX

I'm doing some tables using LyX and I tried to set a color background in the cells , but I got this error: Undefined control sequence \rowcolor {cyan} & The control sequence at the end ...
6
votes
2answers
95 views

How to indicate a sliding window in a table

I have a table as follows in beamer. \documentclass{beamer} \usepackage[utf8]{inputenc} \usepackage{default} \begin{document} \begin{frame} \frametitle{test} \begin{center} \huge \Huge ...
3
votes
2answers
73 views

How to draw lines and put objects relative to other lines

I'm trying to draw a simple line, and at the end of that line include a table. I would like to do it without having to compute myself the position where the table needs to be drawn. How can I do that? ...
1
vote
1answer
49 views

Table with an itemized list in second column

A colleague of mine asked me for help creating the following picture using tex code. Can someone share a bit of code, maybe for the first two rows? ...
6
votes
3answers
75 views

bigdelim and text with multiple lines

I have a table with a common label for multiple lines. Using bigdelim I place brackets to give explanations. My explanation has too much text for one line, so I would like it to break over multiple ...
3
votes
1answer
53 views

Can the Latex pick up the size of font in table?

Can the Latex pick up the size of font in table? I want to create the table with rigorous bounds and that Latex pick up the size of font by itself.
2
votes
1answer
49 views

How to color a single cell in a longtable [duplicate]

We are using XeLaTeX and the longtable package to visualize information, one of those reports must have a colored cell. A single cell, not the entire row. An example output is here: Is there a way ...
2
votes
1answer
209 views

Why doesn't this this line appear between tables?

I'm trying to learn how to typeset caption tables but... why doesn't this text appear between tables? \documentclass{article} \usepackage{subcaption} \begin{document} \begin{table} ...
2
votes
1answer
48 views

Raising one cell in a table

That is, I would like to raise one cell (e). Currently, the code is as follows: \documentclass{standalone} \begin{document} \begin{tabular}{llll} \hline A & B & C & D \\ \hline a ...
3
votes
2answers
61 views

\newdimen in LaTeX is 0pt after assignment, why?

In the below example, I print out the two dimens in the subfigure captions. Surprisingly (to me), the first one prints correctly but the second one is somehow zero pts. Here is the MWE: ...
7
votes
2answers
128 views

Table-like scheme in LaTeX

I would like to draw the kind of table (I don't know any proper name for this, so I cannot research for similar question) shown in the picture below: I have absolutely no clue on how I can draw ...
9
votes
2answers
274 views

Table with alternating row colours and rounded corners

I am trying to create a table with alternating row colours and rounded corners. I combined two answers so far to achieve this: Thorsten Donnig's answer about alternating row colours. Jake's answer ...
5
votes
1answer
41 views

Create linewidth spaced three columned table with column alignment

I'm writing a two columned article: \documentclass[10pt, aps, prb, twocolumn]{revtex4-1} I would like to include a table which is as long as 1.\linewidth. The table should consist of three columns, ...
3
votes
1answer
41 views

Problem with Multicolumn and Multirow table

I have a problem in my multirow and multicolumn table. As you can see in the figure, there is an extra horizontal line over the first column. Can anybody tell me how to remove it. I constructed the ...
2
votes
0answers
73 views

! Undefined control sequence on tables

I am new in LaTeX. I have created LaTeX and Gnuplot to build my graphs. Currently I have to add new table using LaTeX. but I get error: ! Undefined control sequence. l.60 \mycaption ...
2
votes
2answers
68 views

vertically center text in a table

I've got the following table: \documentclass[11pt]{article} \usepackage{rotating} \usepackage[ lmargin=1.0in, rmargin=1.0in, tmargin=2.0cm, bmargin=2.0cm ]{geometry} ...
1
vote
2answers
64 views

How to create a new line in the table cell

I am trying to create a table, but the content in the table cell is quite long, so I decided to create a new line for the cells. But I am not sure how to do that, could someone help me on that? Here ...
2
votes
2answers
92 views

Insert loop inside table?

1- I want to make a table with n number of rows ? my wrong code \newcommand{\xx}{ \begin{tabular}{|c|c|c|} \hline \newcount\fooo \fooo=10 \loop 11 & 12 & 13\\ \hline \advance \fooo ...
3
votes
2answers
78 views

Problem with table content

I have drawn a table of 2 columns and 5 rows. but because of 2nd row, 2nd column content is long,,, Only half of the table displays. other part is not displayed.. Please help me.....I tried many ...
0
votes
2answers
71 views

Longtable & siunitx

So this is the first time I am attempting to use the longtable package and for some reason, I can't even get MWE to run - Pdflatex gets stuck after loading the booktabs package. I honestly can't see ...
1
vote
1answer
57 views

Removing hline when producing latex code for table in R with Hmisc package

I have been struggling with this for some time and can't really find an answer. By default the latex command in Hmisc package cab generate code for table with hline on top, below header row and after ...
3
votes
3answers
579 views

Centering siunitx columns

I have the following table, with the decimal aligning handled by siunitx (MWE): \documentclass{scrartcl} \usepackage{booktabs} \usepackage{multirow} \usepackage{siunitx} \sisetup{ ...
2
votes
1answer
48 views

tabular can't caption is separated

I'm creating a table like this: \captionof{table}{caption} \begin{tabular}{@{} *5l @{}}\toprule \emph{header1} & \emph{header2} & \emph{header3} \\\midrule item1 & v1 & v2 \\ item2 ...
4
votes
1answer
61 views

Caption of table is too small and does not align with other captions of tables

I am making a paper and for one table I have to use the longtable package, after struggling a lot I am almost done with this table. One problem left, the caption does/header of the table is too small ...
4
votes
1answer
65 views

Align missing data in siunitx S column type

How can I align missing data inside a S column type like in the below image? If I just add {\textemdash}, the dash is not centered, example: \documentclass{article} \usepackage{siunitx} ...
0
votes
0answers
36 views

How can I change the vertical alignment of a rotated deluxe table?

I am working in AASTeX using the deluxetable package. I have a deluxe table spanning several pages which I have rotated (using \rotate) to the landscape orientation, but the right edge of the table is ...
1
vote
1answer
56 views

Second Column too wide!

Hello Smart People of Latex Planet; I have this following table: \documentclass[draft,phd,inlinechaptertoc]{psuthesis} \usepackage{amsmath} \usepackage{amssymb} \usepackage{amsthm} ...
7
votes
4answers
150 views

typesetting long lists of numbers - is automatic tabling possible?

I have quite a lot of lists of numbers I need to put into my document. I am not sure how best to typeset them. Inspired by reading Add \midrule Every 5 Lines Automatically the other day, I sort of ...
15
votes
3answers
773 views

Big table - what to do about it?

So I have quite a big table, as you will see in my code. I'd prefer (if possible) to have the table fit on a "normal" portrait page (personal preference as I think it is easier to read). Mainly the ...
0
votes
1answer
49 views

How to draw a simple table with colored cells in Beamer

I am trying to draw a simple "array" data structure in Beamer using tabular. I would like to color some of the cells blue. Here is my M(N)WE. \documentclass{beamer} \usepackage[table]{xcolor} ...
1
vote
1answer
59 views

Justified text and multicolumn size in tabularx

I'd like to create table with (a lot of) justified text and some multicolumns. My example is below. It works more or less... but I get lots of underfull \hbox notices, which I think it's because ...
3
votes
2answers
165 views

.jpg image inserted in a column is shrinked or squeezed

When I am trying to insert a .jpg image in one column of a table in latex. it is getting shrunk and not able to stretch or fit into the whole column. it is getting shrunk or squeezed & when I am ...
0
votes
1answer
53 views

How to change cellspacing of a table in latex?

I've tried searching the answer here, but I did not find it. I have a plenty of 25x25 table with long entries. The table should fit in an A4 sheet of paper. I tried using "landscape". It helped a bit, ...
7
votes
4answers
306 views

Vertically aligned table in plainTeX / LaTeX / Context etc

My last answer about vertically aligned table inspired me to write my first question at this site. How to create the following table in various TeX approaches: plainTeX, LaTeX, Context, eplain, OPmac ...
3
votes
0answers
49 views

Question about seemingly random indentations after compiling [closed]

So I have been working on a large, 360+ page document, and after working on a few pages of tables, the tables have begun to indent with no apparent reason. Now I don't consider myself a nooby here, ...
1
vote
0answers
62 views

All table cells need to have two lines

I found this answer with search: http://tex.stackexchange.com/a/19678/53832 Is there some way to make all cells in the table to work like this? Some of the cells in the table are multirow cells if ...
21
votes
2answers
432 views

Add \midrule Every 5 Lines Automatically

I wrote a table listing scores of 40 students using booktabs package. How to write midrule command automatically every 5 rows? \documentclass{article} \usepackage{booktabs} \begin{document} ...
1
vote
2answers
78 views

Automatic new lines in cells in a table to fit page width

I'd like to let latex automatically put a new line in cells so to fit the table in the page width, is this possible? For example this code would show the table but the table would not fit in the page ...
0
votes
0answers
20 views

List inside a table [duplicate]

I am trying to make two dofferent lists in two coulmns of table, but I am getting an error: something wrong perhaps missing \item here is my code \begin{tabular}{cc} \begin{mylist} ...
3
votes
1answer
56 views

Setting up APA-Tables - three problems

Below, you see a table. The blue boxes display my "problem areas". Setting up tables is pretty difficult for me so far... Uper left box: I want to indent Group A/ Group B compared to Overall Group; ...
2
votes
1answer
54 views

text and image wrapping in latex tables

I was trying to insert pictures with captions in a table in latex. I have read some posts here about adding pictures in the table using \raisebox. I tried something like \begin{table}[ht] ...
3
votes
2answers
75 views

Sideways in table

I created this table: with this code: \begin{table}[htbp] \centering \caption{} \begin{tabularx}{\textwidth}{L*{2}C} \toprule Propriedade & Equipamento & ...
6
votes
4answers
196 views

Vertical alignment of text in a table

I have two images in two different column in a table and in the third table i want to have a text, ideally as a list, but when i write the text it begins at the last row and goes down from there, i ...
11
votes
3answers
703 views

How can I recreate this layout in LaTeX, preferably using TikZ?

I was trying to make it on my own, but my skills aren't enough to solve it.
3
votes
1answer
75 views

Caption in the outer margin using longtable within a tufte-latex document

The tufte-latex class has a page layout with a wide margin on the side; the class redefines the figure and table environments so that the captions are put in the margin, side to side with the floating ...
2
votes
2answers
190 views

Combining Tables and TikZ

There are a few accounting figures which I am making, and I need to add curly braces and arrows with boxes of text inside near table environments. Here is an example figure: I want to use TikZ for ...
6
votes
2answers
113 views

Long text in multirow

I have long text in a multirow cell. And the text takes more rows than the rows in the second column. \documentclass[a4paper,12pt]{report} \usepackage{multirow} \usepackage{longtable} ...
2
votes
0answers
51 views

Footnote in table appears on wrong page

I have a tabular in a floating table environment and want to place a footnote in that table, whereas the footnotetext should appear at the bottom of the page where the table is on. I tried the ...