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

3
votes
1answer
49 views

How to create a table with fixed column widths

I've put in the following code: \begin{tabular} {l{4cm} l{5cm}} hello & foo\\ hello & bar\\ \end{tabular} and it gives me an error: ! LaTeX Error: Illegal character in array arg. ...
3
votes
2answers
59 views

How to adjust tabular width to math body as defined by geometry?

How to adjust tabular width to math body as defined by geometry? In the following example the table goes more to the right than the border of body as defined by geometry package. ...
0
votes
1answer
255 views

Table does not display in List of Tables

I'm including a table: \begin{table}[htb!] \centering \csvautotabular{results.csv} \caption{Results} \end{table} And in the top of my document, I have: \listoffigures \listoftables However, all ...
0
votes
1answer
57 views

Space Issue in Resume

I have the address, portfolio website fields to the side of my name in the resume. Although I used the flushleft command for the table with contact information etc, they do not seem to appear beyond ...
1
vote
2answers
85 views

Creating a table with axes

I am trying to make a LaTeX version of the table pictured below. This is mainly complicated by the axes below and to the right. The code given below is how far I've managed to come. First of all I am ...
0
votes
1answer
34 views

Strange problem of text relocating to a new page when I don't want it to [duplicate]

Best way to demonstrate this problem is with a screenshot. I've had to blank out the content for security reasons. As you can see, I have a page with some text which contains 1 complete section and ...
2
votes
2answers
415 views

How to create a table with some rows merged on the right column

I want to create a table like There are 2 cells in the 4th column which are merged vertically on the right side. While it is easy to merge them on the left side using multirow, I'm at a loss on ...
2
votes
2answers
84 views

Collapse table columns to vertical hierarchy

In constructing a table in LaTeX, I am exporting data from Excel with a hierarchical representation, but for more optimal printing I need to collapse the first four columns and replace the empty cells ...
1
vote
1answer
44 views

Sub-figures of different sizes grid layout

I have two subfigures that I want to align as such: But what I got is this with the codes below: \documentclass{book} \usepackage{subcaption} \usepackage{pdfpages} \begin{document} ...
3
votes
1answer
42 views

Colored tabulated data

I was attempting to get this color effects in my tabulated data: Here is the code that I have so far: \documentclass{article} \usepackage[table]{xcolor} \setlength{\arrayrulewidth}{1mm} ...
2
votes
2answers
38 views

Insert tabular with caption inside itemize environment

I am trying to insert a table with a caption inside an itemize environment. However I can't find a way to align the caption nor the table itself to the border of the outer environment. I already ...
2
votes
0answers
41 views

Table on top or bottom [closed]

I am currently discussing with a colleague whether to put a table on top or bottom in proper documents (e.g., research paper). I once learnt to put figures on top and tables on bottom. I actually ...
1
vote
2answers
38 views

Align centered wiith dcolumn when \multicolumn used

When \multicolumn is used in dcolumn, then there is misalignment in text and the heading. See the figure for more details. \documentclass[12pt,oneside]{report} \usepackage{amsmath} ...
0
votes
0answers
17 views

Copy row titles in first column

I would like to load the following CSV file (I chose random values, I am interested): colname1,colname2 X,3 71,X and let latex generate a table that prepends an additionnal column with the cells ...
2
votes
1answer
22 views

Append columns in table from two input files

Suppose I have 2 files, in1.tex and in2.tex. In file in1.tex, the data is 1a & 1b \\ 1c & 1d and in in2.tex, the data is in a similar format: 2a & 2b \\ 2c & 2d In my scenario, ...
0
votes
0answers
34 views

How to fix a table (not table*) using space on two columns?

I have a very small table that should fit just right on one column, in the middle of the text, just like I would expect a float to behave. However, regardless of where it ends positioned on the page ...
3
votes
1answer
69 views

How to draw several tikz figures in a table?

I want to create a table containing many tikz figure. Here is the minimal working example. EDIT: Somehow I managed it and drawn it. But it is not looking too good. I also need captions for each ...
3
votes
1answer
49 views

xcolor gives me 101 errors

I wanted to use the xcolor package to get the possibility of creating different shades of certain colors, in this case black!90. After including xcolor in my document I suddenly get 101 errors. I have ...
2
votes
0answers
42 views

Tabular into a .png when compile TeX document? [duplicate]

Do some of you know, whether it is possible or not to make a tabular into a .png when compile into a pdf TeX document? Best,
3
votes
0answers
28 views

Tabu table with different row-spacing between one-line and multi-line rows [duplicate]

during my work with Latex I encountered a problem with my tables. As you can see in the following MWE, theses tables sometimes have rows witch contain cells with multiple lines. Those rows have less ...
4
votes
0answers
41 views

Move tables to appendix

I have almost 100 tabular environments in my latex document and I've decided that they would be better placed in my appendix. What is the easiest way to move them all and provide a reference to them? ...
0
votes
0answers
31 views

How to move the caption at the top of the table?

I used the code given in this link: Aligned Table of Notation Sybmols - Works but with Errors I need to move the caption to the top of the table. I tried to play with [htbp] but couldn't figure it ...
3
votes
2answers
3k views

Aligned Table of Notation Sybmols - Works but with Errors

I am getting a four (4) errors and 1 Bad Box with the code below. However, the output is the way I need in the PDF. Any ideas why I am getting the errors? And if so, how I can fix it. The error is ...
0
votes
1answer
40 views

Remove vertical spacing from top/bottom of itemize environment within a table [duplicate]

I'd like to create compact itemized lists within a column of a table that are vertically alligned with non-itemized text from the same column. I'm using enumitem to get more control over these ...
2
votes
3answers
40 views

Text vertically aligned in tables

I have create a table using a online creator,and I have no idea how to setthe text vertically centered. I have red all the post I have found about this topic. However, since I didn´t make my code and ...
2
votes
1answer
52 views

Aligning equations in tabular with aligned environment

I am trying to align equations in a tabular environment. Having read that align and align* don't work in tabular, I found this thread: Aligned equations in tables which suggests using the aligned ...
2
votes
1answer
55 views

How to diagonally divide a table cell … adaptation?

I try to adapt this solution How to diagonally divide a table cell … properly? to my needs. But I have a width problem 1\tabcolsep is too short, but anything longer is too long, should be ...
2
votes
2answers
43 views

Longtable and List of Tables - How to add “Table” before numeration?

Im using a template for my Msc thesis and everything was ok, until I used the longtable, to create tables in multiple pages. When I use the normal TABLE, the caption appear like this in the LIST OF ...
1
vote
1answer
35 views

cleaner html code from tex4ht

I wish to have cleaner html code from tex4ht, but I am not able to see, form the code from the file, why there are carriage returns in the html code this is the code for tabular. I added several ...
6
votes
1answer
324 views

Repeating the same column type

I'm using package numprint to create a table which automatically formats its columns. However, the table has many columns. Right now, my table definition looks like this: \begin{tabular}{l n{2}{3} ...
8
votes
2answers
252 views

How can I convince texcount that my use of \newcolumntype is perfectly valid syntax?

Note that not counting words is not an option. All journals in my discipline require a word count on submission, as do most anthology editors, conference organisers and other institutional powers. ...
40
votes
6answers
69k views

Table with multiple lines in some cells

What is the easiest way to have 2 lines in some of the cells in a table? The only way I can think right now is to actually have 2 separate rows (without the line in the middle) and use \multirow on ...
1
vote
0answers
27 views

Table with greek words into columns or rows

I have a problem with a table layout and greek words. I use the code \begin{center} \begin{tabular}{ *{4}{>{\centering\arraybackslash}p{1.5cm}} } \toprule I & \g πλήθος παλμών\e ...
1
vote
2answers
126 views

Mcq Answer Grid

I'm trying to create beautiful Mcq (Multiple Choice Question) Answer Grid so could someone help me please to improve it with the following needs: Add Arguments to get automatic row-column numbers in ...
27
votes
2answers
67k views

Add notes under the table

I'm using the latex package apa6e because the apa package isn't using APA style version 6 yet. Now I'm trying to add a table with notes right underneath it, like in this table for instance: Since ...
2
votes
1answer
27 views

tex4ht non roman languages inside tabular environment

I have tables with accented letters and other non-roman scripts, but they do not appear inside the environment tabular. The letters do appear outside of the tabular environment. i compile with ...
0
votes
2answers
45 views

How can I merge 3 cells? [duplicate]

I'm trying to do something like this My code is as follows \begin{table}[H] %\resizebox{\columnwidth}{!}{ \centering \caption{Reduct size} \begin{tabular}{|l|c|c|c|c|c|c|c|c|c|c|c|} \hline ...
2
votes
1answer
138 views

Vertically aligning form fields within a table

I would like to vertically align form fields within table rows. The problem I am facing is that other columns within the same row can stretch over multiple lines. Solutions as sketched in form field ...
2
votes
2answers
50 views

\phantomsection inside tabular: alignment problems

I would like to use \ref and \label for two lines in a table, which can be done using \phantomsection: \documentclass{article} \usepackage{hyperref} \usepackage{lipsum} \begin{document} ...
1
vote
1answer
36 views

Note does not appear in the minipage and the minipage exceeds the margin boundary

\documentclass{article} \usepackage{booktabs,threeparttable} \hyphenpenalty=2000 \exhyphenpenalty=2000 \begin{document} \begin{minipage}{\marginparwidth} \centering \begin{tabular}{r r r} ...
2
votes
1answer
603 views

Problem with framelines in tables

I am having a problem with LaTeX at the moment, which I seem completely incapable of solving. I am trying to create a simple table which has 4 columns and (should have in the end) 36 rows, including a ...
3
votes
3answers
75 views

Automatic vertical spacing after minipage when used in tabulator environment

I encountered some issues with the minipage package combined with the tabulator options. For clarity, I provide a MWE: \documentclass[10pt, a4paper]{article} \usepackage{multicol} ...
3
votes
2answers
47 views

Centering table and its catption as well as justifying caption which spans multiple lines

I wonder how to center table and its catption as well as justifying caption which spans multiple lines. Below is MWE. Any help will be highly appreciated. Thanks \documentclass{article} ...
2
votes
1answer
40 views

tabular: Missing number, treated as zero

The following piece of code works and compiled, when I change the \pagestyle{empty} to \pagestyle{plain} in the following style file for resume. https://www.math.nyu.edu/student_resources/res.cls ...
5
votes
2answers
65 views

Build table in new command results in too long vertical lines

I am trying to build a table inside a LaTeX 3 command. A MWE: \documentclass{article} \usepackage{xparse} \ExplSyntaxOn \NewDocumentCommand{\createTable}{ m m }{ \begin{tabular}{|c*{#2}{|c}|} ...
3
votes
1answer
52 views

Controlling the float of table in supertabular

A table is created in supertabular environment. After the general heading Symbols and table caption General Parameters, I need to place the table below the caption. However, the table floats to the ...
2
votes
1answer
61 views

How to remove cell padding in longtable environment?

I have a table that spans multiple pages. So naturally I used the longtable environment in the landscape mode. The table works fine but output has large amount of vertical cell padding and sometimes ...
2
votes
1answer
55 views

Table header: diagbox line does not touch corner

Diagbox in table header does not touch corner of cell. Thank you for any help. Here is the Minimal Working Example (MWE), and at bottom a picture of what that MWE is rendering: \documentclass[11pt, ...
1
vote
0answers
40 views

Fillable Form fields aligned in Table

I am creating a form using Winedt and my form fields are aligned in a table environment. however when I test the form and enter something into the field in my pdf reader, all the fields autofill with ...
5
votes
2answers
83 views

Add a column to an existing multirow element

I have the following code: Main.tex: \documentclass[11pt]{article} \usepackage{techdoc} \title{Lorem Ipsum is simply dummy text} \subtitle{Lorem Ipsum is simply dummy text} \department{R\&D} ...