{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
2answers
52 views

“Extra \else” and inserted “\inaccessible” when using textbf with pgffor

I'm getting errors whenever I try to make \textbf interact with pgffor and xparse. Here's an MWE that gives ERROR: Extra \else and ERROR: Missing control sequence inserted at the end of the \coljoin ...
3
votes
1answer
64 views

Table in a resizebox out of bounds

I'm trying to resize a table so that it will fit a page, following the instructions given in this question. However, \centering doesn't seem to work, as shown by this example: \documentclass{article} ...
2
votes
1answer
53 views

Latex - set row height for a part of a tabular

I am trying to write a table. The table has 3 parts: header, body, footer. The rows of the body must have a fixed height regardless of their content. The last column should extend until there is ...
2
votes
2answers
51 views

Tabular with linespacing

Moin, I want the rowspacing behavior to be default. So this: \usepackage{longtable} % ... MAGIC ... % \begin{longtable}{ccc} entry1 & entry2 & entry3 \tabularnewline entry4 & ...
1
vote
1answer
56 views

How to get rid of an error when I load array or siunitx?

When I load array or siunitx or (probably other packages that I haven't tried), I get an error saying: ! Package array Error: Illegal pream-token (\specifier): `c' used. ...
3
votes
1answer
80 views

Alignment in Siunitx with Comma separators

How can I right align the following two columns, just specifying that there will be at most 5 integer digits and never any decimals? I can't seem to get the right combination of options. I can align ...
1
vote
2answers
56 views

Using `\multirow` [duplicate]

I need to build a table that looks like this: Quite obviously the \multirow package must be what I'm looking for, but every example I've seen so far only shows how to do this the other way around - ...
4
votes
1answer
55 views

Aligning by ; with dcolumn works only for 1 column

I have a problem with aligning columns by ;. Using the dcolumn package I was able to align the first column but when I try align all 4 columns by ;, like this \begin{tabular}{r|kkkk}, it fails with ...
1
vote
1answer
46 views

How to use margins to center a table

I want to realize something like in this two pictures. I want to use a part of the margins for notes (draw even tables!). I want that the margin change from odd page to even page (I think it's simple ...
2
votes
2answers
43 views

How to increase the horizontal space in an array below?

\documentclass[preview,border=12pt,12pt]{standalone} \usepackage{mathtools} \newcommand\specifier{% r@{}r@{}l @{\quad}c@{\quad} r@{}r@{}l @{}c} ...
6
votes
4answers
166 views

How to color a cell of a table using multirow and center the cell content?

I have checked for other similar questions. I followed the suggested solution in the question Color in multirows. After implementing this solution, I still have a problem. I want to develop the ...
3
votes
1answer
31 views

How to remove the lines of the first top-left cell?

How to remove the lines of the first top-left empty cell, please? \documentclass[french]{beamer} \usepackage{babel} \usepackage{adjustbox} \usepackage{array} ...
7
votes
2answers
194 views

How to make double lines to only one bold (thick) line

How to make the double lines to only one bold (thick) line ? \documentclass[french]{beamer} \usepackage{babel} \usepackage{adjustbox} \usepackage{array} ...
3
votes
1answer
24 views

vertical-align of cells of an array and double left vertical line

How to make the D and F chars in the tabular appears on top of cell using this code ? \documentclass[french]{beamer} \usepackage{babel} \usepackage{array} ...
6
votes
2answers
79 views

\centering just a table instead of all text

I'm having problems with this my code because once I added the tables all the text following them was no longer justified. here is the code \begin{document} \chapter{1} \centering\large ...
2
votes
1answer
161 views

How to make this table in LaTeX?

I'm not an expert in LaTeX, and just want to ask. How can we build the following table in LaTeX? Thanks.
6
votes
2answers
201 views

Warning: Please use \TABLE{…} in place of LaTeX environment

Please see the MWE: \documentclass{JHEP} \author{me} \abstract{a} \title{title} \begin{document} \begin{table} \begin{tabular}{c} hello \end{tabular} \end{table} \end{document} After compiling ...
2
votes
1answer
61 views

How to correctly use tabular/table

What's wrong with this code, please? \documentclass[franch]{beamer} \usepackage{babel} \begin{document} \begin{frame}{Cs} \centering \begin{table} \centering \caption{Comparatif entre \textit{Two ...
1
vote
1answer
62 views

Multicols and multirows table

i want to create this table structure: +---+-------+ | | b | | a +---+---+ | | c | d | +---+---+---+ | e | f | g | +---+---+---+ This is, what i have so far: \begin{tabular}{ | c | c | c ...
5
votes
1answer
165 views

Latex Table - \smallskip breaks vertical lines

I am creating a table, in which I want to separate groups of lines, using \smallskip. However, at the very left of the table there is a \multirow cell, whose vertical lines are now broken. Is there a ...
2
votes
1answer
141 views

How to properly draw a table using tabular

How to draw a table using tabular \documentclass{beamer} \begin{document} \begin{frame}{Cs} \centering \begin{table} \centering \caption{C} \begin{tabular}{|l|l|} \hline u & i\\ \hline ~58Ko ...
5
votes
1answer
65 views

How to place a line for “N.A.” at a cell of a table

I see some tables with a horizontal line placed at the middle of a cell, for terms not available or not applicable. For example, how shall I replace the "N.A." below with such a line? ...
4
votes
2answers
148 views

Fixing a messed table

I am trying to make a table in Latex. Now I have combined most of my Latex experience in making this (I am still new) and I thought I was making good progress until I saw the end result. The problem ...
2
votes
0answers
41 views

Tables and Figures towards the end

I'm submitting a manuscript and the editing team asked for the following two changes: 2) Please remove the figures from the main text file as they are already uploaded separately in the Figures ...
4
votes
3answers
75 views

using a macro to define the body of a tabular / & separator problem

I'd like to create a macro that can create and fill a multiline tabular with 4 entries per line from something like \bidding{3H,4S,5C,X,XX,-} where the number of entries is of course dynamic. I have ...
5
votes
1answer
73 views

Reading Arbitrary Text into a table format

Another file question from Latex; this time I'm trying to read in data from a single text file and put it directly into a table. The file reads something like: something | data | stuff | bacon ...
1
vote
1answer
71 views

Extra alignment tab error, on Table

I am trying to make a table in LaTeX. However, I get several extra alignment tab errors and I do not know why. I have searched here for similar problems but I only found extra alignment tab error ...
1
vote
1answer
26 views

array package: problem with >{declarations} in preamble: Extra alignment tab has been changed to \cr

I have a document that uses both the longtable and the array package. At first I ascribed the problem to an interaction of both. After testing, it seems array is the only culprit. Here's a minimal ...
0
votes
1answer
60 views

Making Table in LATEX having different rows in different columns [duplicate]

I wish to have this table by using latex code.
1
vote
0answers
122 views

Missing \cr inserted [closed]

I have a problem with the tabu environment. When I compile my code starting my longtable with \documentclass{srrreprt} \usepackage{tabu} \usepackage{longtable} \begin{document} ...
5
votes
2answers
59 views

Newenvironment wrapper around widetable

I'm trying to create a custom environment figs based on widetable, using \newenvironment. \documentclass{article} \usepackage{widetable} ...
5
votes
2answers
144 views

SWOT Table - how to convert to an article?

I need a SWOT analyse in color, and I found this one at http://www.mostlycolor.ch/2013/10/colored-blocks-in-beamer.html : Can someone help me by converting the beamer, so I can use it in an ...
3
votes
2answers
106 views

Table in footnotes

I would like to include tables in footnotes \footnotetext{SOME TEXT TABLE SOME TEXT} I can use the tabular environment, but the begin{table} with the caption and the label doesn't work.
4
votes
2answers
127 views

Possible to create table inside a table

Is it possible to create a table inside a table like this in LaTeX, can someone please lead me in right direction to achieve this? Thanks
5
votes
2answers
201 views

Isometric Tables in LaTeX

Can someone please help me with a simple LaTeX code to draw something like the attached picture?
1
vote
1answer
51 views

Draw a box around a title on the title page

As part of a title page, I'd like to make a simple box around my Title. Nothing fancy, just a black lined box around it. But I don't want the box to be as narrow as usual but to have some space around ...
1
vote
1answer
51 views

Multiple questions regarding formatting tables

Question 1 A while ago, I used some code from here, which fitted my requirements perfectly. However, I'd like a different table, and playing around with the code (I'm quite new to Latex) has not ...
3
votes
1answer
69 views

Left-alignment of table caption. Forced to center

I am trying to get the table caption left aligned (as the first table labeled "parameter estimates" using tabularx), but in tabular* environment (also happens to my tabularx in the original document) ...
0
votes
1answer
42 views

How to break table horizontally [duplicate]

I would like to know how I can break a table horizontally without reverting to landscape the page. I did not find anything about this issue. In my special case (s. code down below), I would like to ...
1
vote
0answers
30 views

Define own \rowfont (without using tabu)

Since the future of tabu is not that save I’m trying to define an own \rowfont macro. This is what I’ve got so far: \documentclass{article} \usepackage{array,tabularx} \usepackage[table]{xcolor} ...
1
vote
0answers
61 views

How to suppress hyphenation in figure and table captions?

To suppress hyphenation in section names I use \hyphenpenalty=10000 in \titleformat command. Is there any similar way to suppress hyphenation in figure and table (and longtable) captions?
4
votes
2answers
128 views

Table and graphic frame

Is there any LaTeX package that can produce tables and figures like the example in the folowing image by default? EDIT: I used tcolorbox but I did not get the result needed as I'm not familiar ...
2
votes
1answer
37 views

Four side by side figures each pair have one common caption

I am using the following LaTeX code to put four figures in two rows with two figures side by side so that both of them are on a line and have a one common caption. Unfortunately when I am using the ...
5
votes
2answers
134 views

Right align text in table

\begin{center} \begin{tabular}{|p{3.35cm}||p{5cm}|l|} \hline \thead{Område} & \thead{Positive konsekvenser} & \thead{Negative konsekvenser} \\ \hline \hline \textbf{Arbejdsfordeling} & ...
4
votes
2answers
347 views

Missing $ inserted

When I use this code I get the ! Missing $ inserted.<inserted text>$ R and ! Missing $ inserted.<inserted text>$ \bottomrule errors on the 3rd and 4th last lines. How can I fix my code so ...
3
votes
1answer
67 views

Plain TeX Paragraphs in Tables

I want a small amount of information to be placed in columns. The problem is that the information contains paragraphs. Basically this is what I want: Column 1 Line 1 Column 2 Line 1 Column 3 Line ...
5
votes
1answer
67 views

\rowcolor in \NewDocumentCommand

It seems to be impossible to wrap \rowcolor in a macro defined with \NewDocumentCommand, while everything is fine with \newcommand. Is ist possible to fixe this? \documentclass{article} ...
1
vote
0answers
44 views

prevent color from overlapsing cell border

All question I have looked to doesn't help me to solve my problem. Here's my code : \documentclass[a4paper,10pt]{article} \usepackage[utf8]{inputenc} \usepackage[frenchb]{babel} \usepackage{color} ...
3
votes
1answer
49 views

Problems with table

I have some issues by creating my table. I can't find out to add: "Test3", "X1", and "Y1" - so it fit in -- in a good way. My preamble: \documentclass[a4paper]{article} ...
1
vote
1answer
74 views

Caption under table

Is it in any way possible to make a caption right under my table? I've tried \caption{table 1}, but that does not work, nothing changes. And how do I get the text aligned to the left in the column? ...