{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
1k views

Setcounter not working in appendix

I would like all my tables and figures in the Appendix to be prefaced by A and to reset the counter for tables and figures. I have searched this forum and have found examples to do this. However, when ...
3
votes
3answers
1k views

Tables with footnotes for various purposes [closed]

I am searching for a method to keep consistency in the text regarding footnotes. Therefore I tested some options: tabu, longtabu, and longtable tablefootnotes ctable The first method (tabu, ...
3
votes
1answer
705 views

Siunitx: alignment, parentheses and font size

I'm trying to align numbers (that are bolded, between parentheses, etc.) by decimal points in table columns while using the auto-round option of the siunitx package. The following code doesn't work: \...
3
votes
3answers
399 views

aligning numbers with brackets in tables

I am attempting to use Latex to present financial statements. The majority of the work involves the tabular environment with numbers presented in columns which I have set as ragged right. My problem ...
1
vote
1answer
1k views

Table of contents and renumbered pages with \setcounter{page}

In this document, I need all of the parts before the first chapter to be numbered with roman numerals (i, ii, iii, etc.) and afterwards with arabic numerals, starting with 1. The problem I've got is ...
2
votes
0answers
445 views

apa6: Sidewaystable combined with threeparttable, endfloat problem

I am using the apa6 class and want to place tables at the end of the manuscript. This works well with normal tables, and also with sidewystables. However, it does not work when a sidewaystable is ...
2
votes
1answer
309 views

Left aligning cell contents in a table

If you compile the code given below, then the row which states "Average Pre-Authentication Response Time" is justified with a lot of spacing between the words. I want it to be left-aligned. Also, if a ...
4
votes
1answer
205 views

Center longtable parts vertically on page

I am using \longtable to split tables into two parts which are displayed on two pages in a double page layout. I do not let longtable break the table, but instead use \newpage on a line where it makes ...
2
votes
3answers
212 views

Is there a “rule” that figures “must” be at the top of a page, and tables at the bottom? [closed]

Today I had a discussion with my professor, who demands me to put all of my figures at the top of a page, and all tables at the bottom. None may be inline with the text. He says that "this is the ...
3
votes
1answer
484 views

Tabular and grid typesetting

In my document, I try to remove most of the vertical stretch, using some of the tricks detailed in this document. Specifically, I have \setlength{\lineskiplimit}{-10pt} \setlength{\lineskip}{0pt} ...
5
votes
1answer
4k views

How to create a new column type with top alignment

I am trying to create a table which has wrapped text and the text in each cell is ragged right and top aligned. As you can see in the following image I'm not getting the top alignment. Here is my ...
3
votes
2answers
657 views

Customize the captions of tables

I'm a little disperse between packages caption, floatrow, I'd customize the captions of my tables, but at the same time, I would like the figures captions to remain unchanged. How can I left align ...
1
vote
0answers
78 views

pgfplotstable: how to repeat row entries and combine it with external data [closed]

I want to combine the table data (in a file A.txt) -0.13336 -0.13634 -0.13336 -0.11589 -0.136 0.76158 0.63087 0.76158 0.95729 0.63 0.9543 0.59712 0.9543 0.90589 0.59712 0.17172 0.13013 0.17172 0....
3
votes
1answer
559 views

How to give color and style to one table in lyx

I have been trying to do something like this in Lyx. As you can see is a very simple style that I been trying to reproduce but without any success. I know there are to many questions related to ...
0
votes
1answer
115 views

LaTeX table appears below reference, not in correct location

I have a table using the tabular environment: \begin{table}[ht] \centering \begin{tabular}{c|cccccc} & Landmarks in the Human Genome Project \\ \hline \rowcolor{LightCyan} 1953& Watson-Crick ...
3
votes
1answer
372 views

How to put a table at the head of a page of a two column academic paper?

I have a huge table that needs to be in the paper and I want to fit it at the top of a page. How can I align in such a way, at the top of the page?
3
votes
1answer
276 views

Too little space between wrapped text and the line below it

Consider the following table example, the text in the second row is wrapped. \documentclass[a4paper]{article} \usepackage[english]{babel} \usepackage[utf8x]{inputenc} \usepackage{tabu} \usepackage{...
6
votes
2answers
247 views

Can't center vertically text in table with enumerate in one column

Code: \documentclass{article} \usepackage[a4paper]{geometry} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \usepackage{array} \begin{document} \begin{tabular}{ |m{0.8cm}| p{3cm} |c| } \...
8
votes
1answer
420 views

Formatting an array of complex numbers with pgfplotstable

Say I have two csv files representing the real and imaginary part of a complex matrix. I would like to nicely display this matrix in LaTeX. The difficulty is to correctly round numbers and not ...
3
votes
1answer
198 views

latex table appearing below references

I have a table using the tabular environment: \begin{table}[ht] \centering \begin{tabular}{c|cccccc} & Landmarks in the Human Genome Project \\ \hline \rowcolor{LightCyan} 1953& Watson-Crick ...
1
vote
1answer
165 views

How to add more columns to one row relative to other rows in a table?

I just simply add a row with more columns compared to other rows. I learned that there is \multicolumn command to span the columns but in my case if I use this command I need to repeat it so much time ...
3
votes
1answer
154 views

Store and reuse distance between items

I am creating a table in which I have cells containing itemize environments. For a given row I have either zero or two cells containing this environment and working together. However the text for the ...
4
votes
2answers
216 views

Wide table in twoside document

I am using a twoside document style and have a wide table crossing the right margin if it is on a right page. How can I disable the twoside style for just the table to center it. What is the correct ...
2
votes
1answer
87 views

How to use longtable package?

I am trying to use the longtable package and I cannot get it to work. I have pasted my code below, can anyone help me? \documentclass[a4paper,twoside,12pt]{report} \usepackage{longtable} \begin{...
2
votes
1answer
712 views

(longtable threeparttablex) table notes font size

What I need is the font size of table notes being 8pt. Reading the package documentations and the questions here, I as a beginner tried: \usepackage{threeparttablex} \setTableNoteFont{\fontsize{8}{9....
0
votes
2answers
329 views

Tables inside of ntheorem environment

Very short question: How to put table inside of the ntheorem environment? Simple first try \documentclass[a4paper,10pt]{article} \usepackage[utf8]{inputenc} \usepackage{ntheorem} \usepackage{...
4
votes
1answer
665 views

Table with variable-width columns, width decided based on row content

I'm typesetting some material in two columns, the left one left-adjusted and the right one right-adjusted (it's a list of songs in a concert, with song names on the left and composer names on the ...
6
votes
1answer
235 views

pgfplotstable: fixed precision, switch-case?

I tried using pgfplotstable to format an external txt file, but some problems arrived. My goal is to show the numbers with fixed, fixed zerofill, precision two and with the presign, which should ...
7
votes
1answer
150 views

I'm confused about how expansion is happening here

I was really pleased that I could come up with a means of building the contents of a tabular environment using \foreach \x in {...} {...} structure. But I was curious about what exactly it would take ...
15
votes
5answers
53k views

Center table on page

I would like to center a table on the page, not only the content. But I can't find the right keyparameter or command. I have follwing table \documentclass[11pt]{scrartcl} \usepackage{multirow} \...
3
votes
1answer
293 views

I want to have pbox have line breaks where the margin falls

I am using \pbox to have line breaks in a table, but cannot seem to figure out how to have it break at the "natural" location where the margin begins. Here is my code: \documentclass{article} % \...
8
votes
1answer
695 views

How can I create a table that spans across the width of two vertical (and opposite) A4 pages?

I have a large (wide) table to typeset. I usually use the code below for my tables which enables me to specify the width of each column in the table. However, it is up to me to make sure that the sum ...
3
votes
2answers
458 views

How to specify array row height with slashbox?

I'm having issues with \backslashbox. As you can see from the picture, it's, for lack of a better word, ugly. I want to make the row height smaller to force the slashbox smaller as well. I tried using ...
1
vote
1answer
457 views

hyperfootnotes=false removes link but superscripts still show up at bottom of table

I want to remove the hyperlinks to the footnotes associated with a table in my document. When I use \usepackage[hyperfootnotes=false]{hyperref}, the hyperlinking action is indeed removed; however, ...
3
votes
2answers
167 views

Two equations in a block of table

I make a table, 2*2, \begin{center} \begin{table}[H] \centering \begin{tabular}{|c|c|} \hline $F=ax$ & \nabla F =a $ \\ \hline $G=a+b\\ K=a+c$ & $ H=c+d$ \end{tabular} \end{table} ...
6
votes
3answers
152 views

How do I center this wide table in LaTeX?

I have a very wide table (wider than textwidth) generated with Hmisc. The table is so wide that when centering is used it is automatically left aligned. However, everything that I have tried gives an ...
1
vote
1answer
3k views

Undefined control sequence tables with figures

I'm trying to make a table with figures in them but LateX keeps giving me the same error over and over again. This is the text I'm using: \begin{table}[h!] \centering \begin{tabular}{ | c | m{5cm}...
2
votes
1answer
242 views

parameter description with long descriptions and long lists — possibility of page break?

I have a series of equations with following parameter description. Some of those descriptions are relatively long, meaning that I nead a line break. I use so far table, and to accomodate the long ...
4
votes
1answer
126 views

How to change the default alignment of a caption using the ctable package?

I searched through the manual of ctable handy package and couldn't find any help there, to change the default centered caption to left alignment. This is a MWE: \documentclass[12pt,a4paper]{article}...
2
votes
2answers
252 views

Urgent help with preparing a table

I'm writing my internship report and I need to include this Table, I wonder if there is someone who can help with the TeX program for this Tab.
8
votes
1answer
190 views

“Argument of \pgfmath@@onquick has an extra }” when using pgfmathsetmacro or pgfmathtruncatemacro with &&-operator inside tabular

When I run the following code... \documentclass{article} \usepackage{tikz} \begin{document} \begin{tabular}{c} \pgfmathsetmacro\foo{(2<3) && (3<4)} \foo \end{tabular} \end{document} ...
7
votes
1answer
4k views

Adding row spacing to a longtable?

I want to add some extra spacing between the rows of my longtable - but not for every table of the entire document, just one of them. I've tried to use the \\[dist] mechanism, but with surprising (at ...
10
votes
1answer
1k views

Indenting wrapped words in tabular environment

How do I indent wrapped words in a tabular environment? I would like my table to look like this: +-----------+-----------+ | heading 1 | heading 2 | +-----------+-----------+ | cell 1 | cell 2 |...
10
votes
1answer
54 views

Is there any way to change the caption of a table after its declaration?

I have some tables that are generated automatically by a third-party program. I would like to change their captions without editing their text. Is there any way to change the caption of a table after ...
2
votes
1answer
346 views

Multirow results in text overlapping border

when using multirow in the following example, the content of the multirow cell is placed above the cell border. Is there any means to remove the border automatically where multirow is used? Code: \...
3
votes
1answer
107 views

Inserting existing table in a float

I have a lyx file with tables which are not in a table float, I need to put them in a new table float . It seems it is impossible to do this in the GUI of lyx, So what are the workarounds to achieve ...
5
votes
1answer
88 views

Precision for one row only

I have an array with three rows and I would like that the last row has a specific format. There is a command every row no/.style, but it wouldn't work in our context because the processing is applied ...
5
votes
1answer
274 views

Table with percentage sign for a specific line

I am importing a table from a file and I would like to add a percentage sign for all figures on the third row. The code works well for a specific cell in the table using the command every row 2 ...
4
votes
1answer
40k views

Making table width fit into text width [duplicate]

I'm using p{} format to adjust the width of a table. I expected using {p{0.1\textwidth}||p{0.2\textwidth}|p{0.2\textwidth}|p{0.2\textwidth}|p{0.2\textwidth}} makes the table width smaller than the ...
8
votes
1answer
1k views

Why does \smash screw up vertical spacing after tabulars?

Using \smash after a tabular seems too screw up vertical spacing. Wheras after a paragraph vertical spacing is fine. Witness for yourself: \noindent \begin{tabular}[t]{@{}ll}% One\cr Two\cr \end{...