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

6
votes
2answers
960 views

Fill table with dynamic amount of columns

I want to fill a table with a dynamic (calculated) amount of columns. The column should be filled with a value which the user should provide comma separated. I therefore tried to use forcsvloop, but I ...
3
votes
1answer
70 views

Use the content of a counter in cline

consider the following example: \newcounter{cnt} \setcounter{cnt}{3} \begin{tabular}{l|l|l|} \cline{2-3} a & b & c \end{tabular} I have a package that generates tables with a ...
4
votes
1answer
120 views

algpseudocode side effect

All tables in my document seem to be affected after I've started using package algpseudocode. Pretty much every table now always starts with two additional lines. These lines are utilized properly ...
2
votes
1answer
796 views

tabularx with rotatebox and top-alignment

I would like to write a table with column name in a rotatebox. The problem is that I can't make the row title in 2 lines and rotated and then, the content in itemize is not top-aligned. Can you help ...
9
votes
2answers
521 views

Typesetting Supertabular in two columns

The problem is how to typeset supertabular in two columns. Really, I didn't understand the solution in Balancing long table inside multicol in LaTeX. As you see in the picture below, first, the ...
3
votes
1answer
1k views

Horizontally align multi-line cell in table

I want to horizontally align two cells with two lines in a table environment, something like this: ------------------- | A long | foo | | | ----| | multiline | bar | ------------------- ...
2
votes
0answers
46 views

Why doesn't raggedright work in the last column of a tabular (with package array)? [duplicate]

Here's my MWE: \documentclass{article} \usepackage{array} \begin{document} \begin{tabular}{>{\raggedright}l>{\em}l} A & B \\ E & F \end{tabular} \begin{tabular}{>{\raggedright}l>...
5
votes
1answer
819 views

place floating tables and figures in order of appearance

In my document I number tables and figures with the same counter, using the answer to http://stackoverflow.com/questions/3865036/using-a-single-count-for-figures-and-tables-in-latex/7771554#7771554. ...
7
votes
1answer
112 views

LaTeX doesn't put 3 tables at the top of a page as I'd expect

Why in the example below LaTeX puts Table 3 in p. 3 and not in p. 2 (just after Table 1 and 2)? I use the parameters [htb] for the position and I set topnumber equal to 3 so that I would expect Table ...
4
votes
1answer
738 views

How to create this table for multi-line rotated text and thick vertical lines?

I want to create the table below and I am not sure how to do it. I also want the lines that say, "Long line of text really long" to be wrapped, and take up 2 instead of 1 so that the table isn't as ...
3
votes
1answer
673 views

How to get horizontal black line when coloring cells?

I have the following table with an arrow showing the missing black horizontal black line: Here is the relevant code, I am wondering how do I get a black horizontal line where there is one missing? ...
4
votes
1answer
292 views

Landscape Picture + Table format

I'm using latex, and memoir, and I want to create a page template that would always take one and only one page, containing a picture that is aligned to the left of the page, and always fitted inside a ...
4
votes
2answers
847 views

Latex Table in Exam Class

I'm trying to add Question Type : Match the Pairs using EXAM Class use code mentioned below : [FYI: I'm converting HTML Table into Latex table. I'm using pdflatex to get pdf from tex file mentioned ...
5
votes
1answer
386 views

Is there a way to use pgffor to build the rows for a tabular environment?

I was trying to build a tabular environment that is auto-generated through the use of pgffor's \foreach macro. But I can't seem to get it right. Here's a MWE for generating a multiplication table: \...
3
votes
1answer
149 views

Centering a text in longtable

I am having some difficulty with centering a text in a table. If you happen to have some spare time, please kindly enlighten me on the following problem. Referring to the picture below, you could see ...
12
votes
3answers
1k views

Horrible table layout

I have a table which gives an overview of some theory. It includes a lot of words or combination of words. The layout is horrible and not LaTeX quality. Some guidance as to how to improve would be ...
3
votes
1answer
109 views

nodal-graph in table spacing issue

Good day, hi, I am having some difficulty with including graphics in a table. If you happen to have some spare time, please kindly enlighten me on the following problem I would like to know how to ...
4
votes
1answer
477 views

Multirow tables

Firstly I am very sorry for I know not how to make the TeX code works here. I am trying to have multirows for the first and last columns and following is the closest I could get. Could you please ...
4
votes
1answer
147 views

Table entry shifted downwards with Hyperref package

I wanted to make a table with two columns: the left column lists the terms that the right column explains. Also I'd like to make the terms on the left column link to itself. The minimum working ...
3
votes
2answers
1k views

Table caption spanning two columns

I have an appendix section in my document, and I have to put a table after that. The problem is that I intend to use table*, but if I use that it would ignore table*[h] and will place the table on top ...
5
votes
1answer
408 views

Is it possible to automatically stretch a table to fit the remaining space on a page?

\section{Change the improper fractions to a mixed number.} \begin{tabularx}{\linewidth}{|X|X|} \hline $\dfrac{29}{3}$ & $\dfrac{30}{4}$ \\ \hline $\dfrac{22}{5}$ & $\dfrac{48}{5}$ \\ \hline $\...
6
votes
3answers
473 views

How to keep tables readable in code

What is the best practice for creating and updating tables in Latex? I am using Texmaker but I find it hard to update a table like adding entries or adding a column. I have to count entries which is ...
7
votes
3answers
692 views

Vertical alignment of graphic and tabular

There are a bunch of related questions here. But I was not yet able to pull this off yet. I have the following code: (where hist.tex is a plot drawing) \fbox{\scalebox{0.40} {\input{hist.tex}}} \...
3
votes
0answers
310 views

Highlighting extremal values in table when all values are not the same data type [closed]

I have a table generated by pgfplotstable, and would like to highlight the maximum value in each row for a particular number of columns. Here is a simple, completely made up, example that should ...
6
votes
2answers
3k views

Vertical Alignment of tikz picture in a table cell

I apologize in advanced for asking a question that has been asked before. I have read the other posts on SE about vertical alignment but I'm very new to Latex and had difficulty understanding them. ...
27
votes
3answers
76k views

vertically align text in table in LaTeX

Probably a straightforward problem. Why is the final column not center aligned vertically? Here is the code I'm using: \documentclass{article} \usepackage{array} \begin{document} \begin{table}[h]...
2
votes
0answers
99 views

List across multiple rows of a table [duplicate]

Is it at all possible to create a table that contains a list that spans across multiple rows. That is the numbering must continue from row 1 to row 2 etc. My use case is that I have a table in a ...
1
vote
1answer
803 views

multirow with paragraph

I created a multirow table in LyX. When I tried to convert it to PDF, LyX hang and I had to kill the process. Finally, I narrowed the problem down to a MWE where there is only a single multirow cell, ...
2
votes
1answer
56 views

Changing Format of Table Entries

I had attempted to shorten this table and I think I don't think I've edited it properly. In particular I think that I've made a mistake changing everything up to the numeric entries. Would anyone ...
0
votes
1answer
405 views

Supertabular + minipage

I have a very long but narrow table (3 columns but 800 rows) and I would like to have it such that the table starts on the left side of the page and breaks onto the right side of the page before ...
2
votes
1answer
72 views

Spanning a row over defined columns

My code is as follows, however, "Banks' reaction strategy" should be centered over columns 2 to 4. How can I do that? The code: \documentclass[a4paper,12pt]{article} \usepackage{booktabs} %To make ...
7
votes
1answer
125 views

Why does not \centering work on a table, while \begin{center} does?

I cannot get my grips around the different effects of \begin{center} and \centering when used on tables (not inside tables). The MWE should explain the issue clearly: \documentclass{article} \begin{...
0
votes
1answer
536 views

Problem with `longtabu` package not doing pagebreak

I wanted to insert some text in my longtabu table and was surprised that I don't get a pagebreak and the whole text is on the second page. The table doesn't even break the page on the second page. ...
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 ...
1
vote
1answer
95 views

Vertical alignment within table with graphics

Perhaps I am doing it the wrong way, but I have a table with 3 tabulars arranged within minipage each, such that I end up with 3 tables side by side. Each table only has 2 columns: 1 for text and one ...
1
vote
1answer
485 views

Indented longtable [duplicate]

My ltxtable is indentated on both sides and I don't want the indents. My MWE is: \documentclass{scrreprt} \usepackage[latin1]{inputenc} \usepackage[ngerman]{babel} \usepackage{ltxtable, filecontents} ...
2
votes
1answer
77 views

Alignment with multicolumn in table

I'm trying to get three centred columns, evenly spaced under the (rather long) column heading (...). Can anyone help? Thanks! \begin{table}[!] \centering \begin{tabular}{ c c c | c c c |c ...
4
votes
1answer
108 views

Alternatingly shading rows with @{}

I want to alternately shade the rows in my table. I am aware of How to alternately shade rows in a table and similar questions. However, as my table is long and needs to be aligned very neatly in ...
9
votes
1answer
2k views

Barchart with pgfplots with data from R

It took me a while to create a nice (... to some extent) bar chart with R which represents what I need. However I noticed it doesn't look very aesthetic in my Latex document. Sweave isn't a good ...
2
votes
1answer
336 views

Using underline and strikethrough simultaneously in a table

I'm new to LaTeX and am currently using it to try and piece together a report on the orthography of the Armenian language. I'm trying to create a table where one column will display the printed ...
12
votes
3answers
8k views

Padding at the top of a table cell in LaTeX [duplicate]

I have a simple LaTeX tabular table: \begin{tabular}{|l|l|l|} \hline A & B & C \\ \hline A1 & B1 & C1 \\ \hline A2 & B2 & C2 \\ \hline \end{tabular} Now ...
13
votes
2answers
4k views

Rounding of decimal numbers: Looking for an elegant way in latex table

Is there a package to do the rounding numbers for latex tables? For example this table. \begin{table}[htdp] \caption{default} \begin{center} \begin{tabular}{c|c} +1.98185942 & +0.14495331 \\ \end{...
6
votes
1answer
346 views

Create Table for a Family of Curves

Following the issue Color Management with a Family of Curves I couldn't find a proper way of creating the associated table for a family of curves. I tried to create new columns with respect to the ...
3
votes
1answer
145 views

Group two tables so that they appear on successive pages

I have a table that is too big to fit on a page without shrinking the text to unreadable sizes. As a result, I have split it in to two. I can't use longtable to do this automatically as I am also ...
2
votes
1answer
148 views

Highlight smallest number in table

I would like to highlight the smallest number in each row. How would I go about doing this. In the following for example, would like to highlight 3 and 3. \documentclass{article} \usepackage{datatool}...
6
votes
1answer
176 views

Moving an enumerate up

I am trying to emulate a table with nested enumerate lists. From my reading, using a table is impossible - lets assume that is true. I am generating the latex from javascript. What I am trying to do ...
2
votes
1answer
921 views

Trouble aligning rows in two columns using makecell

Been trying to align columns two and three (vertically) but can't figure it out. Columns are coming up central to "Workability" instead, and as column two has some rows taking up 2 lines, they don't ...
6
votes
2answers
889 views

Alignment of table header in column with decimal numbers using siunitx

I have a table with decimal numbers aligned at decimal point. In the column header, I have a % sign. In the code snippet given below, the percent sign is aligned at the left in the column, but I would ...
4
votes
1answer
256 views

Merged cells - borders not matching up

I've got a little problem concerning merged cells in latex. This is the code I used for my table: \documentclass[a4paper]{article} \usepackage[margin=2cm]{geometry} \usepackage{ngerman} \usepackage{...
3
votes
1answer
652 views

Tabular: Using tabular to separate figures in a minipage

\documentclass[demo]{article} \usepackage{tabu} \usepackage{tikz} \usepackage{capt-of} \usepackage{subfig} \captionsetup[subfigure]{labelformat = parens} %\usepackage[demo]{graphicx} ...