{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
20 views

Table with iterated multicolumn

I am having trouble creating multicolumn table, which again has multicolumn. I want to again a two column under case even and odd and then again two columns. But I am not able to do this. I need ...
1
vote
2answers
41 views

dash line between rows in a table

Why there is no dash-line between the rows s12 and s1n like between the columns s22 and s2m? Normally there should be one. What I did wrong? Thank you!! \documentclass[a4paper, ...
0
votes
0answers
36 views

multirow with dash line [duplicate]

I would like to have a dash line between the rows s11 and s1n like I do have it between the columns s22 and s2m. May someone help me? I do not get it. I have seen something quite similar, but there ...
4
votes
1answer
61 views

Framing EMPTY cells in a table

This question is based on a previous question: Framing cells vertically in a table I'd like to frame cells just like that and the answer to the previous question works beautifully – except when the ...
1
vote
1answer
29 views

how to center cell-content vertically?

I really like to center the content of the cells vertically, but I do not know how to do it. Is there maybe someone who can help me? Thank you! \documentclass[a4paper, fontsize=11pt]{scrartcl} ...
1
vote
2answers
44 views

tabularx with dynamic columns and much text ends up in under- and overfull boxes

I wrote two tabulars which faces kind of the same problem. They end up in a mess of under- and overfull boxes. I noticed many under- and overfull boxes threads here, but I wasn able to fix it yet. ...
4
votes
1answer
50 views

How to display full table contents

I'm trying to fill a table with equations, but some of the equations are so long that the table is cut off completely on the right side. I just started working with latex yesterday so my knowledge is ...
4
votes
2answers
56 views

Problem with too large table

I'm trying to make a large table with latex, but I have a problem with text inside it, it depasses, the page. here the code : \begin{table*} \centering ...
2
votes
1answer
352 views

Global caption issue with table when using subcaption package

Firstly I apologize if this had been answered before. I have tried looking for it anywhere but I couldn't find any solution. Anyway, I have a trouble with the caption of my table when I included the ...
0
votes
0answers
34 views

How to increase table and figure numbers' font size?

I am trying to make the figure/table number in same sized font with the caption of the figure/table. the code is here: \begin{figure}[!htbp] \centering ...
3
votes
1answer
49 views

tabularx automatic line break and aligned over several tables

I found here a solution to the problem of having an automatic line break: \documentclass{article} \usepackage{tabularx} \usepackage{listliketab} \usepackage{lipsum} % only for this example ...
1
vote
0answers
18 views

Why is this table floating up above the section header? [duplicate]

\section{Main section} \subsection{Some subsection} \begin{table}[] \centering \caption{My caption} \label{my-label} \begin{tabular}{lllll} x & y & z & a & \\ 0 & 0 & 0 ...
2
votes
1answer
28 views

Footnotes in table with savenotes

After considering options for getting my footnotes to work (Footnotes in tables?), I settled on the savenotes environment. Sadly it seems to work randomly, based on the position in the table. I have ...
1
vote
0answers
32 views

Section, figure, table numbers are in smaller font size

I have used \include{resultsanddiscussion} to import certain chapter results and discussion. I have used \fontsize{16pt}{18pt}\selectfont to determine heading size 16 pt and spacing 18 pt. the code of ...
3
votes
2answers
58 views

Width of column after multicolumn header

When multicolumn headers in tables use more horizontal space than the columns they are 'heading', then the additional width is entirely allocated to the rightmost column. The following MWE: ...
2
votes
1answer
29 views

Problem with sideways table

I have this sideways tables, but the text doesn't wrap properly inside the cells, here's my code \documentclass{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} ...
1
vote
0answers
33 views

Centering code listings in tabular

I'm inserting code listings using mint into a tabular, but the text and listings in corresponding columns aren't centered. How do I center them? Here's my table code: \begin{center} ...
4
votes
2answers
78 views

Connoisseur of tables: better header alignment across columns?

Many of you may feel the need to make tables look beautiful, as do I. However, I am having trouble with formatting. Is there a good way to format column headings across multiple columns? First, as ...
0
votes
1answer
39 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
55 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
51 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
47 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
605 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
52 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
26 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
57 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
104 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} ...
0
votes
0answers
59 views
+50

Tablespecification and complex column

Based on 2 former questions I have found another problem, I am not aware about that this could be a problem. Question 1: Conditional complex column type Question 2: Generic table definitions But I ...
3
votes
2answers
36 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
15 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
94 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
66 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
90 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
27 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
174 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
37 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
45 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
125 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
23 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
14 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 ...