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

17
votes
2answers
461 views

Creating a triangular table

Is there a way to create something that looks like this? I have looked at the \rotatebox command, but that will not get the same "jagged" edges on the bottom, and looked at How to draw a ...
2
votes
2answers
76 views

Table formatting

I use the following table: \documentclass[a4paper, 12pt, bibliography=totoc, index=totoc, abstracton, ...
8
votes
1answer
99 views

Animating tabular rows in Beamer without showing the table border

I have a tabular environment with three rows, and I would like to show only the first row on my first slide, then show the next row and finally the third row. I have a solution that almost works but ...
4
votes
1answer
86 views

LyX table border colour

I have a multi-row table in LyX, with black horizontal borders at the top and bottom of the table. I would like to insert other horizontal borders inside the table that are grey rather than black. ...
2
votes
1answer
30 views

Referencing and printing table entries in main body

I have a table with numbers and I would like to reference a specific number in this table by re-producing it in the main body of the text. For example in this table: \begin{table}[h]\caption{Summary ...
0
votes
1answer
140 views

Custom length in table results in Package array Error: Illegal pream-token (]): `c' used… :( [closed]

In the code below I get a Package array Error: Illegal pream-token (]): `c' used. error after inserting this custom length: \newlength{\mylengthy} \settowidth\mylengthy{Registrierte ...
1
vote
1answer
109 views

Footnote in tabu table not shown

Which package should I use for proper footnote handling in tabu tables? I thought tabu was supposed to do everything tabularx does, but footnotes do not show up in tabu tables. Working (using ...
5
votes
1answer
126 views

Making advanced tables [duplicate]

I am trying to generate tables like the one above I found in a textbook in LaTeX. In particular I am trying to find a way to make that $\$ slash symbol in the left upper corner. It would also be ...
3
votes
1answer
48 views

Using longtable with \cmidrule: page-breaking issues

Here's a (minimal?) working example that illustrates both the issues I am having: \documentclass{article} \usepackage{longtable,booktabs,lipsum,array} \usepackage{pgfplots} ...
5
votes
1answer
75 views

How to TeX a table contain large bracket

How to Tex a table in the form? I'm not interested in the detail of the matrix content, just interested in the form of the matrix, especially how to put the arrows and labels outside the matrix. ...
4
votes
1answer
55 views

colors in tablecells in LaTeX

I'm making a tabular and I want some of the cells to be colored. So I searched how to make colored cells. I now have the following: \documentclass{article} \usepackage{xcolor,colortbl} ...
3
votes
1answer
71 views

Combining diagonal table cell lines with minimum row clearance

So, yeah, it just never ends I guess. I'm fully aware that the following table is not exactly going to win an award for its stunning beauty no matter what. But the most important problem is that in ...
2
votes
1answer
219 views

Illegal pream-token in tabular

I'm having trouble constructing a tabular environment and compiling it with pdflatex. Here's what I'm trying to do: \documentclass{article} \usepackage[pdftex]{graphicx} ...
5
votes
1answer
87 views

Formatting a logical (PD) derivation

I'm trying to format a PD derivation but I'm having trouble getting subderivations to display well. Essentially what I'm trying to accomplish is this: 1 | P Assumption 2 | Q ...
4
votes
1answer
59 views

LaTeX not recognizing \end found in a \newcommand

I'm trying to both start and end a table with \newcommand. I'd like to switch to using \EndTableSetupFourColumns (as it removes several warnings and is easier to understand for other readers) but for ...
4
votes
3answers
111 views

Set longtable to fit the page-width

I would like to set a longtable to fit correctly the page-witdh. From now, I've this situation: and the related tex code is: \usepackage{array} \usepackage{multirow} \usepackage{longtable} ...
1
vote
1answer
28 views

Why \ifnum\c@mpfootnote does not work inside tabular?

Why \ifnum\c@mpfootnote does not work inside tabular? Should not I get no footnote-rule? I am just puzzled! \documentclass{article} \begin{document} \makeatletter \long\def\@mpfootnotetext#1{% ...
2
votes
1answer
82 views

inserting external LaTeX tables made by Stata into Scientific Workplace 5.50

I am trying to insert a table of statistical output into SWP 5.50 from an external file. The table is generated by my statistics program, and it looks something like this: ...
2
votes
1answer
26 views

Why does ltablex skip a number in captions?

The below example presents two tables with an tabularx environment (taken from package ltablex) and a caption. After each tabularx-table, the table counter skips one, as if both the caption and the ...
3
votes
2answers
142 views

Professional slashbox alternative

Suppose I have the following table which lists conversion rules, where rows denote the input and columns denote the output type (so, for example, the conversion int8_t -> int16_t would use b, while ...
3
votes
2answers
40 views

Centering a wide table that is defined inside a NewEnviron

I am trying to centre a table with a lot of content whose width is larger than the text width. The problem is that I am defining the table environment in the preamble so I can reuse it, and this seems ...
3
votes
2answers
61 views

Increasing the length between rows in a table

I have defined a new command to increase the length between rows in a table: \newcommand{\ra}[1]{\renewcommand{\arraystretch}{#1}} For example \documentclass[a4paper, 11pt]{article} ...
0
votes
1answer
67 views

Centering table in landscape page [duplicate]

I'm trying to get a table centered both vertically and horizontally in a landscape page. I've tried some of the solutions proposed around here but I can't get them to work in my specific case. Here ...
3
votes
1answer
49 views

Vertical misalignment due to beamer onslide? [duplicate]

The following MWE displays the problem: \documentclass{beamer} \begin{document} \begin{frame}\onslide<+-> \begin{tabular}{p{4cm}r} Text\\Text & Text \\\hline Text\\Text & Text ...
1
vote
1answer
53 views

Last cell in complex table not behaving

I am having a hard time figuring out why the text in the last cell on each row of this complex table I am creating is not positioning correctly. As you can see from my code, the issue only occurs when ...
1
vote
1answer
47 views

How to properly use tabular within \multirow?

For \multirow{3}*{\minitab[c]{India \\ Canada}} I get various error messages in the code below; whereas both \multirow{3}*{India Canada} and \multirow{4}*{\minitab[c]{Common \\ g text}} & ...
1
vote
3answers
71 views

Footnote in tabular environment

It seems as if footnotes would have only a problem with the table environment but in my minimal example non of those answers Footnotes in Tabulars? Footnote in table seem to work for the tabular ...
1
vote
2answers
73 views

Will subcaption and threeparttable live happily ever after? Trouble combining the two

I'm trying to take this MWE table and put it into a subcaption's subtable environment, or, alternatively, use subcaption's subcaption command - see subcaption's manual - to achieve the same end: to ...
1
vote
1answer
61 views

Dashed hline in longtabu (arydshln conflicts, does not work?)

I have a large table with the following requirements: Spans multiple pages (currently using longtable) The last column's text must wrap (using tabu's longtabu environment as tabularx does not ...
4
votes
1answer
89 views

PGFPlots error “Dimension too large” when plotting .csv data

I did search on here for a solution and I did read the manual, but i couldn't find an answer (or at least one that I understood). I am plotting some data in a .csv file and for some reason when the x ...
5
votes
2answers
187 views

Format time span for CV

I would like to add the month to the time span of moderncv. I order not to occupy much more space and still having a beautiful solution, I would like to do the following: Year - Year Month - Month ...
4
votes
2answers
322 views

Misplaced \noalign

Unfortunately I cannot solve the error with noalign on my own: ! Misplaced \noalign. \hline ->\noalign {\ifnum 0=`}\fi \hrule \@height \arrayrulewidth \futurelet... l.12 ... ...
3
votes
0answers
64 views

Stretching each cell to the same height

I'm building a TikZ diagram in a row-by-row fashion. Each row is composed of a sequence of blobs, and the end of the row is signalled by issuing \newrow. Here is the code I have produced so far: ...
1
vote
1answer
65 views

Moving the table caption

I want to move a wrapped table and caption, I'm trying to use vspace but it doesn't move the caption. Any ideas? \documentclass[12pt]{article} \usepackage{wrapfig} \usepackage{floatrow} ...
2
votes
1answer
43 views

Wraptable interferes with the next page

I've got a wrapped table on the right, it reaches the end of the page and stops, and the text next to it finishes its paragraph in line with where the table finishes. The line on the next page stops ...
1
vote
1answer
89 views

multiple uses of multirow

I'm trying to create a table in LaTeX using the multirow package that is such that we have in the first column, a row that spans six (with a title/whatever in it) with an empty space in the top row, ...
1
vote
0answers
8 views

Multiple uses of multirow in LaTeX [duplicate]

I'm trying to create a table in LaTeX using the multirow package that is such that we have in the first column, a row that spans six (with a title/whatever in it) with an empty space in the top row, ...
3
votes
1answer
70 views

Tabular and itemize

I'm having a big problem...I am trying to make a nice table which in the left side has just text and in the right part it may contain some itemized elements. This is how i'm doing it: ...
3
votes
1answer
67 views

Legend as Table under a Table

There are two tables, where the second one is the legend of the first one. How can I combine these easily without destroying the first or second table's layout? \begin{table}[htbp] ...
5
votes
1answer
58 views

Set the width of every columns of a table in ConTeXt

Sometimes, I need such a table whose column widths should be equal with each other. Here is an example: Name Email John john1989@gmail.com Bill bill1990@outlook.com Tim ...
0
votes
0answers
15 views

Cell spacing in table [duplicate]

Consider the following table. Code \documentclass{article} \usepackage{booktabs,dcolumn} \usepackage[table]{xcolor} \newcolumntype{d}[1]{D{.}{,}{#1}} \newcommand*\mc[1]{\multicolumn{1}{c}{#1}} ...
3
votes
0answers
95 views

Align decimal marker with thousands separator using siunitx

My table consists of two groups of rows. The first group contains large values (X,XXX). The second groups contains smaller values (0.XXX). Siunitx aligns all numbers based on the position of the ...
2
votes
1answer
76 views

\hline with \only (or \onslide) in Beamer

In a table in beamer, I would like to remove \hline after X number of slides using \only<1>{\hline} But this always results in an error message: Misplaced \noalign What can I do to ...
3
votes
1answer
65 views

Why is the tnote of my threeparttable's table cheekily protruding? How can the width be (automatically) adjusted here?

Why is the tnote of my threeparttable's table cheekily protruding? How can the width be (automatically) adjusted here? \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{tabulary} ...
1
vote
1answer
86 views

How best to change the font size (etc) of threeparttable's table notes?

How best to change the font size (etc) of the threeparttable table notes ? Google returned these (duplicate) unanswered stubs (in English and German, but with pictures ;) ...
3
votes
3answers
98 views

Know the cell width with tabular* or include a paragraph box without specifying its width

I wrote the following table using tabular* inside a \newenvironment. Worked fine but I prefer to have text wrapping on one column. The table uses "phantom" cells to achive what I want that is having ...
1
vote
1answer
52 views

Left Align with Column Width {p{cm}} [duplicate]

I am trying to create a table something like: Idioms Definition A dime Anything that is common, inexpensive, a dozen and easy to get or available any ...
3
votes
2answers
37 views

Test for empty possibly itemized argument in tabu

For some reason, I can't test if #2 is empty in the following tabu use case. An Incomplete \ifx; all text was ignored after line 14 is thrown executing the following code. ...
3
votes
0answers
61 views

How can I create a table that spans across the width of two vertical (and opposite) A4 pages?

I have a large (wide) table to typeset. I usually use the code below for my tables which enables me to specify the width of each column in the table. However, it is up to me to make sure that the sum ...
17
votes
2answers
290 views

How to generate a table of trigonometric functions that can be broken across pages?

Consider the following screenshot. The features I want to have are: I can shrink the page size and the table is allowed to break across pages. The background of odd rows must be different from ...

1 2 3 4 5 45