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

0
votes
1answer
40 views

vertical align multicolumn heading

I created a table using this code: \newcommand{\ra}[1]{\renewcommand{\arraystretch}{#1}} \begin{document} \begin{table*} \centering\ra{1.3} \begin{tabular}{@{}rcccccc@{}} \toprule & ...
1
vote
1answer
56 views

Space between sectioning header and tabular environment

I have this situation on Latex. How can I eliminate this space between the \section{PESTA} and the tabular? \subsection{PEST+A} \begin{tabular}{ |p{5cm}|p{10cm}| } \hline ...
7
votes
1answer
56 views

How can update this code for print number with different colors?

I have this code for highlight the diagonal, the first row and the first column with different colours! (This code has been build from egreg on this community :-D in a past question) ...
2
votes
2answers
48 views

Modify Table to match image

I wanted to get the table generated from the code below to be like: with the spacing between the lines and also have the colored boxes. This table is extracted from the book Pll Performance, ...
2
votes
1answer
628 views

Aligning Table Notes in Three Part Table

I am using the threeparttable environment to make tables. The table notes are always indented. How can I get the notes to start flush with the table? \documentclass[a4paper,12pt]{article} ...
2
votes
2answers
53 views

How to tell a column to span half the width of the table

Hi I am making a table with multicolumn and multirows. But I want the next line to have 2 columns that are exactly half the width of the table. Meaning if the width of the table changes when I add ...
2
votes
1answer
23 views

Use arithmetic of counters inside \cline

I have a custom counter \myCounter set to, say 3. I need to produce such a table: The following code does not work: \documentclass{article} \newcounter{myCounter} \setcounter{myCounter}{3} ...
0
votes
1answer
19 views

biblatex \fullcite in table

I am receiving an error when I try to use \fullcite{} in a table. Here is a code showing what I would like to accomplish: \documentclass[11pt,a4paper]{article} \usepackage[american]{babel} ...
1
vote
1answer
34 views

How to left-align captions when table is centred?

I found here on stack exchange some ideas how to do this. However, there is something wrong with my approach. I did the following: \usepackage{caption} ...
0
votes
1answer
27 views

Borders playing up [duplicate]

Would anyone know why my borders are not appearing properly: I'm using the following code: \begin{table}[htp] \centering \resizebox{\textwidth}{!}{% \begin{tabular}{@{}|c|c|c|@{}} ...
1
vote
2answers
59 views

\toprule and p{} in tabular

In my table, in order to have texts centered in each cell, I am using \newcolumntype{P}[1]{>{\centering\arraybackslash}p{#1}} and instead of a simple p{1.5cm}, I am using ...
3
votes
2answers
29 views

How to add vertical space and center the entries of a last row of a table

I currently have a table in latex that looks like: \begin{tabular}{c|ll} \hline Unit (i) & \multicolumn{2}{c}{The combinations} \\ i & $(-1,-1,-1,-1)$ & $(-1,-1,+1,+1)$ \\ ...
2
votes
3answers
106 views

A column that is too wide

I have a table in which the header is making the last column too wide. How do I avoid this situation? \documentclass{amsart} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{array} ...
3
votes
2answers
37 views

Horizontal line \hline inconsistent behaviour

Trying to make a table with the following code \begin{table}[h] \caption{Different scans conducted with the Catphan.} \begin{tabularx}{\linewidth}{|l|X|X|c|X|} \hline \rowcolor{slightgray} \T ...
28
votes
2answers
8k views

Vertical alignment in table: m-column, row size - problem in last column

Unfortunatly, I have a problem with m-columns (array package) in tables with adjusted row height. Somehow in the last column (only there) the text is not centered vertically. Check it out: ...
0
votes
0answers
16 views

threeparttablex with regular table

Is there a way to use threeparttablex with a regular table (tabular environmnent)? I like the additional features it provides. I tried \documentclass{article} ...
2
votes
2answers
97 views

Citations in tabular environment not working

I'm writing my thesis with Rmarkdown but with a lot of LaTeX mixed in. When I compile the document, all my citations appear just fine, but those in my table appear as [?]. I have tested different ...
1
vote
1answer
68 views

Automatically generate the value table of a mathematical function

Is there an easy way to get the value table of a mathematical function? Consider the following example and pseudo-code: \documentclass{article} \usepackage{pgfplots} \usepackage[nomessages]{fp}% ...
2
votes
1answer
94 views

How to fill gantt chart bar with arbitrary color

In the code below I would just like to manually decide to fill the second bar in the chart with a color or hash it! I want to be able to decide which bars to make these changes on a case by case ...
1
vote
1answer
29 views

Nested boxes around cells in a table

I would like to nest two boxes in my table. It looks like this: content content content content content +----------------------+ content | content content | ...
0
votes
0answers
9 views

Automatic linebreaks in table created with csvautoimport [duplicate]

I'm using csvautolongtable to import a csv file. Now the text in some cells is running over the edge of the page. How can I prevent this? \documentclass{article} \usepackage[T1]{fontenc} ...
2
votes
3answers
184 views

Tables and tabularx

I have the following code: \begin{tabularx}{1\textwidth}{|c||p{4cm}||p{3cm}|} \hline \textsc{\textbf{Nombre}} & \textsc{\textbf{Ancho de banda con compresión}} & \textsc{\textbf{Ancho de ...
20
votes
2answers
17k 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
0answers
39 views

Extra } or forgotten \endgroup when using footcite in table

I have a problem using footcite of bibtex and \makesavenoteenv of footnote together. This is my (not so minimal) MnWE, where I am trying to use \footcite inside a table floating environment: ...
2
votes
1answer
63 views

In a table, give an empty line the height 0, so that it virtually disappears

I am using an add-on to Stata in order to generate Latex-Tables that show estimation results and significance levels for some models. On of these programs creates table of the following form, which ...
0
votes
1answer
47 views

Help with tables and multirow

I'm trying to create a table with the following structure: Using the following code: \begin{table}[htp] \centering \begin{tabular}{ |l|l|l|l| } \hline ...
0
votes
0answers
18 views

Tables are not appearing under right section [duplicate]

My tables look perfect but are under other sections in my report spaced out. How do I Keep it under the section I write it in
1
vote
1answer
126 views

Creating a Table with LaTeX

How can I create a table such as the following using LaTeX? I have little LaTeX experience, and I am looking for either a template for something similar, or some guidance. Any help is really ...
16
votes
3answers
6k views

Different font sizes for different rows in table

I want to put different sizes of fonts (smaller) into different rows of my LaTeX table. I found that it is possible to have different font sizes for different columns of this post. Is there any simple ...
0
votes
1answer
24 views

Abbreviated cite with Biblatex's philosophy-modern style

I am writing my master thesis with classicthesis and I decided to use Biblatex's philosophy-modern style \usepackage[style=philosophy-modern,hyperref,square,natbib,backend=bibtex]{biblatex} ...
1
vote
1answer
15 views

How to adjust a big sidewaystable little bit lower vertically?

The rotating's sideways table just crosses the Chapter title: how can I adjust the table vertically lower? Ps. Dealing with big tables, other solution here contains multilinebreaks where prob with ...
1
vote
0answers
23 views

Automatic linebreaks for equations in tabular environment?

I have so far tested the breqn's dmath environment example here but it does not work with tabular in rotating's sidewaystable, resulting into \cr errors in wrong place. So How can you automatically ...
1
vote
1answer
31 views

Space between columns in a tabular

I am trying to format the column space in a tabular. However by using Google I only found a global way to set every space the same (see code) with \tablecodesep. \setlength{\tabcolsep}{0em} \noindent ...
1
vote
1answer
51 views

Tabular cell alignment

I feel like this is a noob question, but I've been busting my chops trying to find an answer to this. I'm trying to create a table with two side by side paragraphs. They don't appear side by side ...
1
vote
2answers
41 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 ...
0
votes
1answer
30 views

Table formatting equal to page size

I have been looking around on this forum, but unfortunately I couldn't find the answer to my question. As given below, I make use of a table. The table contains two columns and I want the first column ...
3
votes
1answer
180 views

siunitx table leading zeros

How to preserve the leading zeros of the errors in a table using siunitx' S-column type? \documentclass[ngerman,english]{scrreprt} \usepackage{babel} \usepackage[locale=DE]{siunitx} ...
2
votes
1answer
44 views

siunitx: Appended currency symbol mispositioned with aligned negative values

I'm trying to do some LaTeX-table-magic for a friend, and I've run into a strange issue I haven't been able to find a solution for. I'm using siunitx (along with booktabs) to align some values in a ...
1
vote
0answers
46 views

How to use longtabu like table* in twocolumn paper

I want to use longtabu in twocolumn paper in latex. My table has a lot fo rows and columns, so I want it to be full-width. I know longtabu does not support twocolumn and it throws error message when ...
2
votes
1answer
33 views

Table is not centering

I'm having some problems creating the following table: \begin{table}[h] \begin{tabularx}{\textwidth}{X X} \textbf{Advantages} & \textbf{Disadvantages} \\ \begin{itemize} \item ...
1
vote
1answer
31 views

Wrap a verbatim table environmet

I have text with all sorts of characters in it that I want to use in a table so thought that verbatim might be suitable, but this doesn't seem to wrap. I've seen suggestions for listings but this ...
1
vote
1answer
38 views

pandoc citations inside table

How can I force pandoc to process the citations that are used inside a table/tabular environment? A minimal example is: \begin{table}[t] \begin{tabular}{|l|l|} \hline [@referencekey] & ...
1
vote
1answer
32 views

How to put footnotes inside table inside minipages in the same page as the tables?

I have footnotes inside tables that are inside minipages (to put two tables in the same row in a two-column article). I use \addtocounter{footnote}{1} \footnotetext[\value{footnote}]{ blah blah} ...
3
votes
2answers
131 views

Three side-by-side tables

I am using this LaTeX code to generate three tables side by side. However, it showing errors and not giving satisfactory result. Can anyone please help me to short out the problem. \begin{table} ...
3
votes
4answers
79 views

Two large sideways tables on one page

I'm new to Latex and I've got two very large sideways tables. I want to put them into one page and used the minipage environment. But the result is way too large for the page and now I'm a bit ...
2
votes
3answers
52 views

A table with fixed width columns, coloured both background and text

I am trying to create a table which has all three traits, mentioned in the title, at once. I tried tabular with individual \color for each column, tabu with \rowfont, and custom column definitions ...
0
votes
2answers
210 views

How to generate a table as below?

I try to generate a table like this using {longtable} and {supertabular} but failed. Anybody can help? \documentclass{article} \begin{document} \begin{supertabular}{|c|c|c|c|c|} ...
5
votes
3answers
151 views

loop in tabular that uses \the\count to access current line number

I would like to generate an automatic table using loop. As suggested here before, it is best to first generate the lines in a toks and then pass them to tabular. However, I have problems with ...
2
votes
1answer
40 views

Suggested objects permitting table-like-column formatting and page breaks amidst long lists of breakable content

My preferred way of structuring and formatting large lists of content is with longtable. Some of my cells contain a lot of text, both in paragraph and itemize or enumerate environments. For reasons ...
1
vote
1answer
16 views

Can't get upper Table border

I need your help in allowing an upper border for a table. many posts have suggested that this should be written: \begin{tabular}{|c|c|c|} I have done so but did not get an upper boundary, in my ...