Questions tagged [tables]

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

483 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6
votes
0answers
608 views

Define own \rowfont (without using tabu)

Since the future of tabu is not that safe 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} \...
5
votes
1answer
164 views

How can I produce s separate PDFs for each one of my floats, when their code isn't self-contained

I've written this document (say it's an article) with a bunch of float - figures and tables. Some of them are just \includegraphics, so the figure essentially exists outside as well inside the ...
5
votes
0answers
252 views

Which component to use: provides few columns, page-breakable, valign, minimun height?

I have got so much help on this site in my particular tasks, and now i realize i'm using something wrong for my purpose. I need a decision (component, or a set of the components), that provides few ...
4
votes
0answers
196 views

Checkboxes and TextFields within Datatool csv tables

I've got a sample csv table with three columns - Pet, Names and Number. It's a list of Cats and Dogs, their respective names and the occurrence of each name. i.e. The order of Cats or Dogs in the ...
4
votes
0answers
1k views

Pandoc Markdown Table header background Color

I am using pandoc markdown to convert my documents to pdf. I have tables in the document that required formatting. I was able to create alternative colors for rows. However, I am unable to change the ...
4
votes
0answers
266 views

Footnote missing when used with table, tabularx

I'm using fithesis3 class and I'm unable to get to work table + tabularx + footnotes + footnote references. I have tried \tablefootnote - https://tex.stackexchange.com/a/35328 \scrextend (\footref) ...
4
votes
0answers
1k views

ODS to LaTeX: use formatting from the ods file?

There is a nice solution for importing tables from ods file, in the form of the odsfile package. For very simple, non-formatted tables it basically produces the same effect as the table in the ods. ...
3
votes
0answers
62 views

Scale multiple table rows to fill remainder of page

I am working on a LaTeX class for a schedule planner, and I want to scale a few rows in a table to fill the remainder of the page (evenly distributed), while leaving alone the previous rows of the ...
3
votes
0answers
63 views

Inputting a big number of tables into LaTeX

I am working on the project in LaTex that requires me to input a large number of tables produced in R via xtable packages. Let's say I have already output a large number of tables (about 150 of them). ...
3
votes
0answers
56 views

Doing iterative arithmetic inside of an iterative tabularx

I'm trying to create a matrix table that will iteratively fill in the cells based on inputs that I can change. I originally tried the solution shown here, but I wasn't able to get Latex to properly ...
3
votes
0answers
111 views

Exporting tables made with dcolumn and multicolumns to docx using Pandox

I am trying to convert a tex-document into a docx-file to share it with some colleagues who do not use TeX and will not do so in the (near) future. At the moment, the best possibility seems to be ...
3
votes
0answers
151 views

Technical report table of contents

I am writing a technical report. Pease how do I replicate something this nature using report class. Could someone please assist with the page layout (boxed margins, a simple table in header) My code: ...
3
votes
0answers
188 views

Using dcolumn for tables: Alignment on decimal and thousands separator

I'm struggling to align numbers on the decimal (.) as well as thousands (,) separator using dcolumn. I'd like to avoid unnecessary space when displaying decimals in one, and thousands in another row ...
3
votes
0answers
75 views

Problems inputting tabular data

Could anyone help me figure out what's the real problem here? I'm creating a table with some data exported from Stata, but I can't seem to get the input command to work properly. If I paste the code ...
3
votes
0answers
140 views

Synchronise data spanning over two side-by-side pages in ConTeXt

I am working on a three-language glossary. The idea is having three columns (German, English, Italian) spanning on two pages side-by-side. The data are stored in an XML file whose structure is the ...
3
votes
0answers
103 views

Create design with vertically content-spanning rotated headers

You're dealing with a complete LaTeX noob here, so please be gentile ;) I'm trying to typeset a particular lay-out, but I've not been able to get the desired result so far. My previous attempt was ...
3
votes
0answers
94 views

Context: Nested tables declared in buffers don't appear in embeddedxtables

I'm having trouble using tables nested in embeddedxtables with Context (a word of warning" this is all very new to me so please forgive any obvious missteps...) I have tried to simplify my example to ...
3
votes
0answers
205 views

Remove most bottom space of tabular (or tikz-picture?)

I'm trying to add a table-like structure left of a ganttchart. It appeared to me that labeling every bar with its own tabular of fixed column-width would be the easiest and I got quite close to what I ...
3
votes
0answers
323 views

How to remove tabcolsep in the first column of all tabulars in one place?

I want to vertically align the first column of all my tables the text. I can change the \tabcolsep using @{} but I how can I declare this in a single place as a default value? Edit: I added an MWE ...
3
votes
0answers
60 views

Vocalised Arabic changes baselines in tabular environment

Using polyglossia I often set an Arabic text opposite and English text, and I want the baselines to match vertically within a tabular environment. Sometimes the Arabic text is vocalised, and ...
3
votes
0answers
211 views

Border control for LaTeX tables generated using TeX4ht

In producing simultaneous pdfs and html/word files using xelatex and TeX4ht I have noticed that the table produced by TeX4ht is kind of illogical and is clumsy to clean up and manipulate. I would ...
3
votes
0answers
591 views

One tabular with column input from multiple data files with pgfplotstable

I have a question which sort of extends the page Multiple Files input to one pgfplotstable. In the answer to this question, data is read from dataB.dat and subsequently appended to the data as ...
2
votes
0answers
63 views

Attendance list

In my last question, Reading a student class list, I asked how to read a list of students and create a class list. Everything works ok as @egreg had a wonderful answer. I am now attempting to create a ...
2
votes
0answers
68 views

Why is the table drawn over footer instead of being moved to the next page?

On the second page the table is drawn over the footer instead of being moved to the next page. But the first table does get moved to the second page instead of being drawn right after \lipsum[1-2], ...
2
votes
1answer
93 views

Longtable caption error

I get this error when trying to compile my longtable caption. Without the caption it all works fine. I also included the \\ after the caption. ​!Undefined control sequence. I tried ...
2
votes
0answers
40 views

Problem with color background

This has grey background: \documentclass{article} \usepackage{fontspec} \setmainfont{Segoe UI Symbol} \usepackage{caption} \usepackage{xcolor} \usepackage{blindtext} \definecolor{myblue}{RGB}{230....
2
votes
0answers
45 views

APA6 document class: Second table gets centered vertically

I'm currently stuck with the problem that my second table gets centered vertically when using the apa6 document class. What I would like is the second table on a new page but at the top, just like the ...
2
votes
1answer
59 views

auto linebreak in table with background color

I’m trying to limit my tables size and force line skip. Instead, the text reaches the end of the paper, at the same time I want it to have a grey background in one of the cells. I understand that the ...
2
votes
0answers
31 views

How to design table so that copied text from pdf in sorted by rows in text file?

I have a simple table with text: \documentclass[letterpaper,11pt]{article} \newcommand{\resumeSubheading}[4]{ \vspace{2pt} \begin{tabular*}{0.97\textwidth}[t]{l@{\extracolsep{\fill}}r} \...
2
votes
0answers
251 views

escape=F kable pdf not compiling

I am trying to include m\\textsubscript{2} in a column name using kable. When I change escape=F to allow this to occur the PDF fails to compile. Code: library(kableExtra) kable(table2.1,format="...
2
votes
0answers
53 views

Work plane (table) in Latex

I would like to define e.g. a 3 years study plane, but it shows me only 1 year in pdf, where is the error in the following code: \documentclass{article} \usepackage{etoolbox} \usepackage{...
2
votes
0answers
74 views

How to change the zero in increasing numbers with dotted zero?

MWE \documentclass[a4paper,11pt]{book} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{lmodern} \makeatletter \newcommand*{\pmzerodot}{% \nfss@text{% \sbox0{$\vcenter{}$}% math ...
2
votes
0answers
33 views

How to add vertical stretchable glue to tables?

Is it possible to add stretchable vertical glue to rows of a tabular (I actually use tabularx) environment? I've looked at tabularht, but if I have understood right, this allows me to specify a total ...
2
votes
0answers
520 views

easytable package and \colorrow

I use the easytable package to make isometric tables. This package provide the TAB (with caps) environment to make tables. In the same time I use the xcolor package with table option to colorize ...
2
votes
0answers
156 views

Easier row grouping on tables

Sometimes I want to group some rows like that: Now I can do that like that: \documentclass[a4paper]{report} \usepackage{geometry} \geometry{a4paper,total={170mm,257mm},left=20mm,top=20mm} \...
2
votes
0answers
139 views

Table margin, white space problem and position problem

Table margin problem, extra space is appear in the margin of table (see landscape table 3), also table position is wrongly appearing(I have place the second table in last but it appears as second also ...
2
votes
0answers
82 views

pgfplotstable with lines and colourmap

I am trying super hard to make a table with heatmaps, multirows, columns and some separating lines in latex. The code for this table is: \documentclass{article} \usepackage[T1]{fontenc} \usepackage{...
2
votes
0answers
145 views

Adding a variable with backslash as argument

i would like to make a command to create tables. In a minimal idea the function "autotabell" should be like: \documentclass{article} \usepackage{tikz} \usepackage{csvsimple} \usepackage[latin1]{...
2
votes
0answers
131 views

What the table code needs to look like the attached figure?

I try to create a table with color to look like the following table: I treid to write the following latex: \documentclass[english]{article} \usepackage[T1]{fontenc} \usepackage[latin9]{inputenc} \...
2
votes
0answers
429 views

Changing page margin of floating sidewaystable

I have a large table that I want to put sideways. Also to fit it on one page I want to reduce the page margins. One solution to change the margins is to redefine them with \newgeometry (followed by \...
2
votes
0answers
573 views

Fit Sidewaystable on single page with title

I want to include a sidewaystable in my appendix. I want the title and the table to be on the same page. However, it won't stay on one page. I have tried using Minipage, but it didn't work. Also, I ...
2
votes
0answers
277 views

Table using Longtable/threeparttable/landscape in Scientific Workplace and Miktex

I am really struggling with a situation where the following code of mine works in Miktex, but my colleague who uses Scientific Workplace gets the formatting completely wrong (in particular, the table ...
2
votes
0answers
101 views

Set tabular column width but prevent multiple lines

With the following example the column width is set, and that is exactly what I want. However, in this unusual case I want to prevent the multiple lines and neglect the following text. \documentclass{...
2
votes
0answers
875 views

How to handle too many columns of table

I need to print a table with many columns. I am thinking about two ways: printed table like this (assume the paper only can print 6 dates at one row): Measure date1 date2 date3 date4 date5 date6 ...
2
votes
0answers
124 views

Badly aligned tikz objects and bad page-break in deluxetable

I am creating a table in latex, and I need to use a deluxetable environment. I use the package tikz to draw some circles in the table. The problem I am having is that I want to reposition those ...
2
votes
0answers
60 views

Collecting and analyzing data presented in tables

I have data presented in tabular environments and I want to process it, in LaTeX, in ways that require for multiple cells to be analyzed together. That's in addition to typesetting the cells ...
2
votes
0answers
342 views

Diagonal line in math arrays

I have some arrays in math mode, such as the one below. I would like a diagonal line in a cell, something like diagbox (diagobx package) or diaghead (makecell package). But it seems that diagbox and ...
2
votes
0answers
135 views

Table title and notes not appearing in PNAS

I'm trying to prepare a manuscript for PNAS and am running into issues with a table. As in this question/answer, the table is placed after the \end{article}. However, when compiling the document, the ...
2
votes
0answers
592 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
0answers
263 views

Making an automatic log table yearly

I did a quick doodle in Excel and I like to make a table that looks like the below. Essentially the issue is, I want it to take up the entire page, half the month on one column, and the other half on ...