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

5
votes
1answer
430 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
479 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
713 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
313 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. ...
28
votes
3answers
79k 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
816 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
408 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
126 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
553 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
499 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
109 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
338 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
347 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
149 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
178 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
958 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
908 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
264 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
657 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} ...
3
votes
1answer
471 views

TikZ Matrix 'draw' alignment

Apologies if this has already been asked - I could not find it. The following is an example of what goes wrong: In this example I would like it to look just like a regular 2x3 table, but I think ...
3
votes
1answer
5k views

Creating table using TikZ matrix

I'm trying to create a table in TikZ with the first column right-aligned, and the texts in each cell on the same line the rest of the columns center-aligned, and each has width of 1cm My attempt ...
1
vote
1answer
280 views

LyX: Changing layout inside table cell

I'm using LyX to write a simple report. I had some paragraph written as a "description list", when I thought that it may look better as a table instead. I created a table, and when I copied the text ...
5
votes
2answers
217 views

Color Management with a Family of Curves

I am struggling with following fairly simple looking problem of plotting a family of curves. \documentclass[border=1mm]{standalone} \usepackage{pgfplotstable} \pgfplotsset{compat=1.8} \...
4
votes
2answers
392 views

Repeat entire table

Is there a method to repeat an entire table? I've defined a custom table format using xparse and I have potentially ~50 of these custom tables. I would like to create an appendix of the tables, ...
2
votes
1answer
659 views

Table with tabular, column type p grabbing available space [duplicate]

I have a table with one column which contains a longer description spanning multiple lines. Therefore I use the column type p, which requires me to specify a fixed column width. Is it possible to ...
4
votes
1answer
481 views

How to line up a chemical structure in the table (chemfig)?

I have a table which has three rows of chemical structures. The structures in the second row are not lined up with the first and third rows. I tried to use \vspace to bring the structure down but it ...
6
votes
2answers
843 views

Using footnotesize in ctable package

I have a long table requiring the use of a \footnotesize. The table is made using a \ctable package as follows. \documentclass{article} \usepackage{ctable} \usepackage{booktabs} \begin{document} \...
3
votes
4answers
155 views

Algorithm for 'Plugging in' Values to Tables

Simply, if I have a table of the form: \begin{tabular}{l r r r r r l r r r r r} \hline {}&{}&{}&$n$&{}&{}&{}&{}&{}&$n$&{}&{}\\ \cline{2-6}\...
4
votes
1answer
371 views

Figure + table wider than textwidth

I have a figure and a table placed next to one another, but they are wider than the textwidth. Now I want to center them so they exceed the textwidth margins. Can this be done? Edit: currently I have ...
1
vote
2answers
391 views

Can't add fixed column types to tabularx columns with different widths

Trying to introduce a ratio between the X-column types of tabularx not 1:1. I now encountered the problem that my third column type p{11ex} is no longer accepted. I don't know why. \documentclass[...
3
votes
1answer
2k views

Table inside a caption

Sorry if this is a triviality ... Anyhow, how would you go about to insert a table inside a figure caption? how do I go about to insert a block inside a block? \begin{figure}[h] \begin{...
5
votes
2answers
365 views

Creating Thin Tables in LaTeX

Suppose I have the following table: \begin{table}[!p] \fontsize{6}{6}\selectfont \caption{First 200 terms of Hofstadter's $Q(n)$}\label{tab11} \center{ \begin{tabular}{l r r r r r l r r r r r} \...
13
votes
1answer
520 views

How does one construct an abstract (n × n) empty grid of squares?

I would like to just create a grid like this, but without numbers or color, but I'd like to represent an n × n grid abstractly with ellipses like this: Also, I need just a simple—singular—grid ...
13
votes
2answers
2k views

Tables with colored cells and dashed lines

I would like to draw a table with some colored cells and dashed horizontal lines. Here is my first attempt using the colortbl package and the arydshln package: \documentclass[12pt]{article} \...
3
votes
2answers
458 views

can't close table

I can't figure out why the following code produces the table as you can see in my attachment: \centering \begin{tabular}{|m{3.5cm}|m{10.0cm}|m{2.5cm}|} \hline \...
3
votes
1answer
280 views

siunitx tables and commands between columns

I'd like to add parenthesis around some columns in a table, using the siunitx package. I'm using the > and < column specifiers, and they seem to work... except in the last column, where some ...
6
votes
1answer
183 views

How to typeset a table explaining Euclide's algorithm?

I would like to typeset a table explaining Euclide's algorithm for calculating the greatest common divisor of two numbers, like this one: How can I do that in LaTeX?
9
votes
2answers
639 views

Line down the side of the page

At the moment I'm using the {tabular} environment to distinguish examples in a document I'm writing: \begin{tabular}{r|p{11cm}} \emph{Example} & [Lots of text and equations] \end{tabular} It ...
3
votes
2answers
495 views

Fixing itemization alignment and line wrap inside tabular

I'm trying to construct a table using the following code: \documentclass{article} \usepackage[inline]{enumitem} \begin{document} \begin{table}[h] \begin{tabular}{p{.3\linewidth}p{.7\linewidth}} \...