{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
1answer
36 views

Mysterious summing: when calculator 's \ADD macro adds too much inside a table

Background: In my previous question, Robert Fuster taught me how to define a global variable using calculator package. I want to define a "counter" that also works with non-integers. I thus defined ...
1
vote
2answers
48 views

Using locally defined calculator commands inside tables (tabularx)

Inside a table, I want to draw rules. Their length equals the cell length times a predefined ratio (i.e. \rule{\ratio\linewidth}{1ex}). I use the \DIVIDE{A}{B}{\ratio} function of the ...
23
votes
2answers
19k views

Evenly distributing column widths

Consider the following hunk of code: \begin{tabular}{| c | c | c | c | c | c | c | } \cline{2-7} \multicolumn{1}{c}{} & \multicolumn{3}{|c|}{Fantastical aardvarks} & ...
2
votes
1answer
97 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 ...
18
votes
2answers
24k views

Automatic line-break in tabular

I'm making a tabular and I'd like to automatically do a like break rather than going beyond the page. This is my tabular code: \begin{table}[h] \begin{tabular}{|l|l|l|} Use Case Navn: ...
3
votes
1answer
26 views

right to left arabic characters in tables

How to get right to left arabic characters inside a tabular environment with the arabi package without to have to insert the \AR command in each cell ? \documentclass[A4,12pt]{article} ...
4
votes
1answer
46 views

Inconsistent spacing of suffix in siunitx formatted table

I want to produce a table with two prices in a row, using siunitx to achieve a pleasant and consistent display of the numbers. Trying not to repeat the currency symbol in the data rows, I insert it as ...
1
vote
1answer
32 views

How to colour a cell and keep the contents in maths-mode?

I am trying to colour certain table cells in some siunitx S columns. The cell colour change with xcolor/colortbl works, but it seems to also change the cell contents to text-mode, which has ...
0
votes
0answers
15 views

\underset error message within my regression table

I am new to LaTeX. I am asking a question regarding a regression table. I am trying place some standard errors below some coefficients. In order to do this I have use the following within my ...
12
votes
3answers
22k views

Tabular, parbox, vertical alignment

What i want to achieve is really simple: I want to be able to align cell content at the top (which is the default behavior of tabular) while being able to manually break lines (and anything you could ...
3
votes
2answers
101 views

Baseline of a cell with a rule is messed up because of \color

I have a table (tabulary) in which some cells are only filled with a rule. This rule is 1ex thick and I want that the bottom of the rule matchs the baseline (of all cells of the row). I've found that ...
1
vote
1answer
26 views

Creation of Specific Table

I have some trouble creating the a table in my LateX document, do you have any suggestions on how to do it? I have the following table but I need to have a "Value" and "Relative Error" header like in ...
1
vote
1answer
33 views

Increasing font size makes coloring of last table column incomplete

My table is aligned to the left by using \hskip-1.50cm. When I increase the font size from 10pt to 12pt, the table's layout shifts to the right and understandably so. The alternating rowcolors do not ...
1
vote
0answers
23 views

Referencing to inputted table

I have many tables generated automatically in separated tex files which i input in my main document using \input{table1} \input{table2} ... Is it possible to refer to this table by using its name or ...
1
vote
1answer
37 views

Curly brackets catching many lines in tables

I have the following table \begin{center} \begin{tabular}{ |p{3cm}||p{3cm}|p{3cm}| \hline \multicolumn{3}{|c|}{Bosonic spectrum of type IIA and IIB theories} \\ \hline Sector& IIA & ...
2
votes
1answer
44 views

numbers too long to fit in a column

Hi I have the following code \documentclass[12pt,a4paper,twoside]{report} \setlength{\textwidth}{16cm} \setlength{\oddsidemargin}{0pt} \setlength{\evensidemargin}{0pt} ...
0
votes
1answer
26 views

Change Default row separator in pgfplotstable / order of commands for each line

I edited the question and added a MWE. Please feel free to change tags or the title of the topic since I'm not sure how to categorize my problem. I'm using the tabu package and pgfplotstable for ...
1
vote
1answer
41 views

3x3 Normal Form Payoff Matrix in LaTeX Tabular Environment

~Disclaimer~ This question is a generalization of this question to the 3x3 case. I would like the same format as the top example in the answer to the above question; That is, "Player 1" on the left, ...
1
vote
1answer
28 views

Create inferior triangular matrix without extra vertical lines

I want to create an inferior triangular matrix like shown in the picture below. My attempt was the following: \documentclass[a4]{article} \usepackage[utf8]{inputenc} \begin{document} ...
1
vote
2answers
28 views

The same space between three tables

I make a very big data table, but the table don't fit in the page, so I slice the table in three tables. I want the three tables are next to each other separated by the same space or then joined by a ...
2
votes
3answers
41 views

Centered text in a tabular row

Consider this MWE: \documentclass{article} \usepackage{booktabs} \begin{document} \begin{table}[H] \centering\scriptsize \begin{tabular}{ccccc} \toprule \arraybackslash Medi\c{c}\~{a}o ...
2
votes
1answer
38 views

Additional row when using pgfkeys inside a table

Inspired by the answer http://tex.stackexchange.com/a/37484, I tried to create a table with a key-value interface. Using \pgfkeys only outside of the tabular environment works as intended, but if it ...
0
votes
0answers
18 views

Make a landscape table next to a portrait table

I made a table in landscape like this one : I was wandering if there is a way of making a portrait table next to it which would be something like this:
1
vote
0answers
33 views

Tabular Columns with Different Vertical Alignment

I'm trying to arrange a poem with one word followed by a block of text followed by one word aligned with the bottom. I keep getting stuck \documentclass[11pt]{article} \usepackage{tabularx} ...
0
votes
0answers
30 views

I can't place a table float where I need it in Lyx

I try to place a table at the end of a paragraph, but it doesn't matter what I do, it always goes to the bottom of the document. I set the configuration of the float, but it doesn' work. And in ...
1
vote
1answer
35 views

Put two tables side by side in the same page

I tried put two tables in the same page. I read in the Internet that I can make this using the minipage. I use minipage but the two tables still in pages differents, not side by side. The piece of ...
1
vote
1answer
44 views

How I merge the cells?

I put this code in LaTeX: \begin{table}[H] \begin{tabularx}{\linewidth}{l*{4}{>{\centering\arraybackslash}X}} \toprule Ensaio & Medi\c{c}\~{o}es do comprimento do fio (cm) & Incerteza ...
2
votes
3answers
152 views

Creating table with interior horizontal lines not reaching the margins

I want to create a table as on the picture below. But I do not know how to get those beautiful looking horizontal lines. I also want to have a table with enough space from the lines to the text, this ...
0
votes
0answers
39 views

Figures inside tables. Too long horizontal lines

I'm trying to put figures inside a table using the command \input but the horizontal lines becomes to long and I'm not sure why? When the figures not are included, the lines length are adjusted to ...
3
votes
1answer
63 views

Dynamic Table based on Json File

I'm trying to add in a dynamic table based on a two-dimensional array that is stored as JSON in a file on the disk. I've got no control of the file, as it gets pulled in from a web-service and ...
1
vote
1answer
23 views

Problem with table spacing when aligning by decimal point?

Please see attached MWE and pdf. The problem seems to be with the column 'Test 1'? Any suggestions would be very much appreciated, I have tried altering each variable but I cannot work out where the ...
0
votes
0answers
19 views

Tables with cross-row connections

Is it possible to create a table with two sets of rows (right and left) connected by lines as it is shown below:
3
votes
2answers
100 views
6
votes
3answers
4k views

Using LyX, how do you put a table and a figure side by side and caption them Table XX and Figure XX?

I have found solutions for them to be done in normal TeX, but how do I do this in LyX? What I wish to obtain is something like that shown in Table and Figure side-by-side with Table caption above, ...
1
vote
1answer
37 views

how to fit tab to the width of a paper using tabular

For the layout of a table, how could I meet the following two criteria at the same time ? Fit the width of table to the textwdith Be able to allocate the width of table to each column (not evenly ...
1
vote
0answers
24 views

Not in outer par mode

I am using the following code and getting the error "Not in outer par mode" when i create my tables: \begin{table}[ht] \setlength{\extrarowheight}{4pt} \centering \begin{tabular}{cc|c|c|} ...
1
vote
0answers
39 views

Problem in combination of longtable and stepcounter{rowcount}

I am making a longtable consisting of 3 columns: linenumber of the text in the table, column with a short abbreviation and a column with possible a lot of text. Since the third column contains a lot ...
4
votes
3answers
251 views

How do I make this table?

I need to create a table with a specific aspect. How did I create the table that I annexed to this message? \documentclass[11pt]{article} \usepackage{mathtools,float} \usepackage{amstext} ...
1
vote
1answer
24 views

How to get footnote text with elsarticle at the bottom of a table?

I am trying to place footnotes at the bottom end of a table as shown in figure with elsarticle, but so far I am not successful. MWE \documentclass{elsarticle} \usepackage{booktabs} ...
1
vote
1answer
54 views

multicolumn table with a legend in latex

I'm not very experienced in drawing tables in latex, but for this paper I have no choice. Please forgive me, if this is a stupid question. So, here's my preamble: \documentclass[a4paper, ...
1
vote
1answer
37 views

Center-alignment in tabular in LaTeX

This is part of my code in TexStudio, I'm trying to center-align some text inside left-aligned table, but it doesn't work. The error is very strange, looks like Something's wrong - perhaps a missing ...
1
vote
1answer
55 views

how i put the text in the middle of a tabular and a figure?

I try to put the text in the middle of the tabular and the figure but when I transform the document in PDF the text doesn't stay in the middle. How I can solve this problem? ...
0
votes
1answer
34 views

Color in between lines - table

I wanna make a table with colors. How I do a table with colors that only the interleaved lines have color?
1
vote
3answers
56 views

ltablex caption text formatting issue

I'm using the ltablex package for creating long tables over multiple pages. For my other small tables I use the tabularx package and I noticed a formatting mistake or maybe a bug? The table caption ...
1
vote
2answers
92 views

paragraph over 2 columns in an article document

I have a two column format for an article and a small paragraph which i want to split in those 2 columns(hard break). I dont want to use \vfill, as I am intending to display a table after the ...
2
votes
1answer
32 views

How I can put the text of the table in two lines?

I wanna make a table with a large text but I can't put the text in two or more lines because the text in the document is cut. I put this in LATEX: \begin{table}[H] \centering \begin{tabular}{ccc} ...
1
vote
1answer
37 views

align numbers based on their decimal point [duplicate]

I have the following table: \documentclass{article} \usepackage{booktabs} \begin{document} \begin{table} \centering \begin{tabular}{ lcccccccc } \toprule \multicolumn{5}{c}{\textbf{Training ...
2
votes
0answers
28 views

How to get table row sub numbering?

I am trying to get serial numbers in table, but some of the rows require sub numbering as shown below: S. No. X Y Z 1 1 12 1 2 4 34 3 3 5 54 2 4.a 6 34 5 4.b 8 32 7 5 1 ...
1
vote
3answers
43 views

Can someone help me out with odd spacing in a multicolumn multirow table using siunitx?

I wanted to put my data in a multi column and multi row table, whilst aligning the entries by decimal point. For that I am using the package siunitx. There problem lies within the formatting of the ...
1
vote
1answer
38 views

Creating a unique table

Hi I am currently trying to create a table in latex that looks something like the table below: So far I have been able to get this far but struggle to adjust the and Measure contribution header ...