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

7
votes
3answers
565 views

Irregular tables in LaTeX

Is it possible to create a table with a layout as this one? If yes, what packages should I use?
10
votes
1answer
4k views

Midrule that extends only over some of the columns in booktabs

I hope this isn't a silly question, the thing is that I want to create a table with a midrule applied in just some cells, I mean something like that (just between Item, Animal and Description): ...
5
votes
2answers
637 views

Table formatting

I am working on the table \documentclass{article} \pagestyle{empty} \usepackage[landscape]{geometry} \usepackage{multirow} \usepackage{booktabs} \newcommand{\ra}[1]{\renewcommand{\arraystretch}{#1}} ...
6
votes
1answer
813 views

Disappearance of the table title/caption, when using colortbl

I'm formatting a manuscript according to the PNAS style, as prescribed in http://www.pnas.org/site/authors/LaTex.xhtml When I color my table using the package colortbl, the title/caption disappears ...
6
votes
1answer
767 views

how to decouple alignment of rows within a column in LyX?

How do I decouple the paragraph alignment of rows within a column in LyX? I would like my top row to be aligned in the centre, and all subsequent (content) rows to be aligned left. However, whenever ...
1
vote
0answers
150 views

Infinite Loop in Babel with Rotating Sidewaystable [closed]

I don't know whether this is a babel or a rotating bug, and I have filed a report with Debian (http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=710031), but perhaps someone knows a workaround. The ...
2
votes
1answer
155 views

Table going past margins

I'm trying to create a header for my resume. I'm almost happy with the result, but there's a small formatting issue. I'm using a table to control where my name and contact info are placed. My name ...
5
votes
2answers
127 views

Use a nested enumeration as a column of a table

I am creating a list of requirements in a table in which the first column should be an enumeration, such that each requirement is identified by a unique number. Some requirements also have sub ...
2
votes
0answers
42 views

Table spanning two pages horizontally? [duplicate]

Is there a way to have the overflow of a table too wide for the page to continue horizontally on the next page? I'm trying to create two pages with a table each where every row is adjacent to same ...
3
votes
1answer
267 views

How to align a tabular cell right and centre?

I've vertically centered a column of headings as suggested in an answer to this post using array and m{}. How can I also right-align those headings? Here is a picture of my current table and the ...
5
votes
1answer
170 views

How to make a figure consisting of a table of subfigures and headings?

I've got 3x3 images that I'd like to arrange in a table with row and column headings. All images have the same dimensions. I still want the caption to read "Figure 1.1" and not "Table 1.1". One way ...
7
votes
3answers
230 views

Adjusting command behavior based on argument type

I have a following command in my latex document: \newcommand{\ApplyGradient}[1]{ \pgfmathsetmacro{\PercentColor}{100.0*(#1+0.2)/1.3} \textcolor{black!\PercentColor}{#1}} ...
2
votes
1answer
517 views

Vertical alignment (top, center, bottom) of figure and two texts in tabular

Based on Tabular alignment of text and figure, my question is how can I get t, c, b alignment of all 3 elements that make part of tabular. The t and c works fine, but not the b. ...
3
votes
1answer
2k views

Why the tabular column specifier C doesn't work?

I'm using the tabular enviroment \begin{tabular} ... \end{tabular} inside of the beamer class \begin{frame} ... \end{frame} tags. In standard latex documents, i often use something like ...
5
votes
1answer
303 views

Tabular alignment of text and figure

For an exam paper I'm preparing, I want to properly build a top page header, with the university logo, and two block of text side-by-side (for course, department, etc.). I have already seen some ...
7
votes
1answer
343 views

How to force LaTeX to print a table in an even-numbered page

Is there a way that I can force a table to be printed in an even-numbered page? One thing that comes to mind is to print a blank page before it if the table happens to be in an odd page but this makes ...
3
votes
1answer
342 views

exsheets and the final grade table

I am trying to build an exam using the excellent exsheets package. My problem is with the last table, the one that has the grades. Somehow, it seems that \hline does not provide a full table with ...
3
votes
1answer
381 views

Writing under a Table

I made a table with the tabular environment and I wanted to continue writing (under it) but the words are moved to the next page. I used: \makeatletter \setlength{\@fptop}{0pt} ...
4
votes
1answer
629 views

Aligning tikz nodes to tabular cells?

I would like to make a Zwicky Box by using tabular combined with an overlaying tikzpicture. How can I (semi-)automatically align nodes to the vertical and horizontal center of their corresponding ...
3
votes
1answer
52 views

Cell merging of a full row not working

I'm referring to this Merge columns in LaTeX. I simply can't find the error, here is my LaTeX code: \begin{tabularx}{\linewidth}{|X |X|} \hline Lorem ipsu & dolor sit \\ \hline ...
3
votes
1answer
429 views

How to extend the horizontal line and colored box all the way?

I want to extend the horizontal line and the colored box all the way to the end of the page, however using \hrulefill (instead of \hline, screws up the format.) This is my code: ...
1
vote
0answers
84 views

How can I fix overflowing tables? [closed]

I'm writing in markdown, and converting to PDF (via latex) using pandoc. It handles the conversion excellently, with the exception of tables, which overflow to the right of the page. Is there an ...
0
votes
0answers
41 views

How to remove vertical spacing before tables? [duplicate]

I'm using the book class and I created a table. The table is alone on page and the spacing to the upper edge of the paper is too big. How can I reduce? I tried using \setlength{\textfloatsep}{0.1cm} ...
9
votes
1answer
95 views

How do I make an exact copy of a table, but keep its number for referencing?

I have a table, and I want to print it twice in my document. I want them to have the same label, caption and number, so that in the caption when it says "Table 1: foo" the same number shows up, and so ...
2
votes
2answers
9k views

Wrapping text in \multicolumn

I would like to wrap (and center) text within \multicolumn. Tabularx and tabilary only wrap the text outside of the \multicolumn{} columns. I would also like to define the column width as defined by ...
1
vote
1answer
929 views

Alternating column AND row colors with tabu? [closed]

There is a very convenient way to have alternating row colors in tabu using \taburowcolors{ .. }. But is there a way to do the same thing with columns plus alternating row colors ? What I want ...
6
votes
2answers
611 views

Auto-generate attendance list

I am trying to generate attendance sheets for my class. I need the sheets to have two things: 1) a list of the students in the class with a blank for them to sign their names. 2) a randomized version ...
1
vote
0answers
128 views

inserting figure or table affect \chapter and \section [closed]

I am using scrreprt with this preamble: \documentclass[fontsize=12pt,a4paper,oneside, listof=totoc, bibliography=totoc, titlepage, headsepline, DIV12, ]{scrreprt} I have a document with \chapter ...
5
votes
1answer
275 views

Split a tabularx cell at its diagonal when the X column specification is used?

How do I split a cell diagonally, when I'm using tabularx with X column, i.e. \begin{tabularx}{\textwidth}{X}? I've seen many answers on this topic on TeX.SE, but none of them are applicable to cells ...
1
vote
1answer
458 views

Centering vertically in table cell with other rotated cells

I would like to center the Available Expression, Very Busy Expression... Live Variables cells. The following code aligns the quoted cells only on the bottom of the cell itself: is there a way to ...
1
vote
1answer
382 views

Problem with landscape table layout following a normal table in a document

I have landscape tables which span multiple pages and are laid out as three part tables with a notes section at the bottom. The landscape tables in the document are fine at the beginning of the ...
2
votes
2answers
344 views

How to apply a macro to each row of a table

This is similar to the question about cells, but with whole rows, and hopefully will help me to implement an answer to this question. Given a macro \RowMacro, how can I define the mytable environment ...
1
vote
1answer
226 views

How to put captions below tables residing in multiple columns

I made the following document, consisting of 2 tables in 2 columns: Code: \documentclass{article} \usepackage[a5paper]{geometry} ...
8
votes
2answers
17k views

Create a table with LaTeX

I need to copy a table from a pdf file to my LaTeX document. I know I have to do it by hand but still don't understand how to create a table with LaTeX.
3
votes
1answer
96 views

tabular vertical align based on lowest line in a cell, not on the base line

I want to make an enumeration that looks like this 1. This is some very long sentence that might need several lines. Does the next cell line up with the last line of this ...
2
votes
2answers
3k views

Table captions continued

I am writing an article which has a long table with many rows. I would like to divide this table for multiple pages but I can not change the captions of these tables like "Table 1: Blablabla" and for ...
4
votes
1answer
344 views

Nested tabularx doesn't work with ltablex

This works: \documentclass{article} \usepackage[a5paper]{geometry} \usepackage{array} \usepackage{tabularx} \setlength{\parindent}{0cm} \begin{document} \begin{tabularx}{\textwidth}{ |X|} \hline ...
0
votes
0answers
31 views

Cleveref reference table as section [duplicate]

I am using cleveref for my references, and I just noticed that a reference to a table is actually resolved by cleveref into “section”. Is that indended behaviour? Is there maybe something wrong with ...
3
votes
2answers
323 views

specifying a longtable not to split

I am using longtable in my report as I have many tables that are longer than a page. To make it consistent, I am using longtable for all the tables. Many times because of page settings, a small table ...
3
votes
1answer
668 views

How can I stop content overlapping my footer?

I am trying to use LaTeX to generate PDF versions of cheat sheets people build on my website. They are all three column documents, effectively each containing multiple tables. For the most part, ...
1
vote
1answer
425 views

Text does not fit into table which causes bad box errors

I use Excel2Latex to convert tables in Excel to Latex, however a problem arises when the text is too long to fit in the column and I get many bad box errors. My code is: % Table generated by ...
2
votes
1answer
421 views

tabular with “centered” and “flushright” entries

I need to typeset a tabular with the following requirement: the head of a tabular should be center in the column the entries should be flushright and (more or less) center in the the column like ...
1
vote
1answer
100 views

Support sections on the bookmark in landscape mode

I'm writing a book and I want to put a unnumbered chapter (chapter*), where I will discuss the results and then put the results in tables. These results are divided into three options, so I want to ...
3
votes
3answers
3k views

Itemize inside longtable

I have the following (Non-working) example. \renewcommand*{\arraystretch}{1.8} \begin{longtable}{lcl} \caption{Summary of proven determinants for falling}\\ \toprule ...
3
votes
1answer
233 views

Extra space between columns (fixed/predefined width and X) in tabularx

This is a follow-up question of: What is the right way to set predetermined column widths with tabularx? As seen in the code below, \begin{landscape} \renewcommand*{\arraystretch}{2} ...
5
votes
1answer
114 views

What is the right way to set predetermined column widths with tabularx?

I was just wondering about this, because I went over the tabularx documentation and I couldn't find an answer. So, there are several questions going on here: Is it better to use a proportion of the ...
4
votes
1answer
232 views

How to display numbers in the format 12.3 (4.56) in a table column?

I would like to print numbers in a table in the form 12.3 (4.56) using siunitx. How can this be achieved? I'm a bit worried that siunitx changes the numbers in various ways and I would like to ...
5
votes
1answer
312 views

longtable on dedicated tables page

I have written a document that includes many tables, so I have chosen to place all tables at the end of the document, invoked via the [p] option in the table environment. I now have to include a long ...
2
votes
0answers
503 views

Creating table as shown in the picture [duplicate]

I want to create a table in LaTeX which begins as shown in the figure below. How do I make it using the table/tabular package? I made it using TikZ, but I am sure this is not the efficient way to go ...
3
votes
2answers
266 views

How to vertically align 'numbers' in a table? [pairs of numbers given as strings]

I display two sorts of values (say, A and B) in one table. The values are generated in R and I automatically create strings like "A (B)", so all values of type B are put in parentheses and are ...