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.

396 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5
votes
0answers
89 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
244 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 ...
5
votes
0answers
572 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} \...
4
votes
1answer
131 views

Is coding multi-line curly braces in text mode possible?

I need to typeset the following document: I have coded the following \documentclass[french, a4paper, 10pt]{book} \usepackage[french]{babel} \usepackage{fontspec} \begin{document} \setlength{\...
4
votes
0answers
176 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
879 views

Is it possible to exchange rows and columns of a table without retyping

I wrote a table that turned out to be too wide. So I have to turn it sideways for it to fit a typical journal paper. Is there a way I can avoid typing it all over again?!
4
votes
0answers
252 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
49 views

hhline drawn over vertical lines in a table

Hi I am quite new to LaTeX and have attempted to put a table together as follows: It is pretty close to what I want but I can't seem to find a way to separate the last three columns with white space. ...
3
votes
0answers
52 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
73 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
112 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
57 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
952 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 ...
3
votes
0answers
131 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
98 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
86 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
189 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
53 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
201 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
566 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
28 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
135 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
52 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
70 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
24 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
352 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
97 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
137 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 ...
2
votes
0answers
108 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
72 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
125 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
373 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
235 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
100 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
742 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
116 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
56 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
366 views

How to place multiple tablenotes on appropriate page with longtable?

I am trying to get footnotes (footnotes 2 and 3 in MWE) at the bottom of the table on the appropriate page with longtable. But with MWE I have provided I am able to get footnote only at the end of the ...
2
votes
0answers
283 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 ...
2
votes
0answers
307 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
129 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
541 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
243 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 ...
2
votes
0answers
395 views

Pgfplotstable: Filter specific rows when reading from file

So far I have a file from which I read data to the macro \data (in the MWE I replaced the file with an in code table). From this table only 3 rows are selected and printed. What I would like to ...
2
votes
0answers
88 views

Column Sorting Toggle in Output PDF

I'm interested in creating a table with columns that can be actively sorted in an output PDF. In this manner, I mean a table in which one can sort each column either alphabetically or numerically, ...
2
votes
0answers
317 views

How to get Subcaption outside float working for landscape tables?

I use the nice MWE displayed below to display a landscape table (found here: Tex: How to place table on new page.) I have one big table (that's why landscape) which I want to split across multiple ...
2
votes
0answers
340 views

How to break tablenotes (page break) in longtable with threeparttablex?

How can I break my TableNotes in ThreePartTable (it is a landscape table)? \documentclass[a4paper]{article} \usepackage[english]{babel} \usepackage[top=2.975cm, bottom=2.975cm, left=2.975cm, right=...
2
votes
0answers
181 views

Insert table with fixed width

I want to insert a table into my article. The following code can work. \begin{table} \centering \caption{Table 1 Normal function table} \begin{tabular}{|c|c|c|c|} \hline & $x<0$ & $...