{tables} is about the tabular environment and related packages such as {array}, {booktabs}, {tabularx} and {longtable}. For questions about the table environment (i.e., about floating or positioning), use {floats} instead.

learn more… | top users | synonyms (2)

1
vote
1answer
35 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
24 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 ...
1
vote
1answer
26 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
29 views

How can I fix overflowing tables?

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
33 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} ...
6
votes
1answer
47 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 ...
1
vote
2answers
43 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
50 views

Alternating column AND row colors with tabu?

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
118 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 ...
0
votes
0answers
36 views

inserting figure or table affect \chapter and \section

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 ...
4
votes
1answer
20 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 ...
0
votes
1answer
25 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
31 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 ...
1
vote
2answers
55 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
28 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} ...
3
votes
2answers
228 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
43 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
55 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 ...
2
votes
0answers
17 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
23 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 ...
2
votes
1answer
40 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
54 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
43 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 ...
0
votes
0answers
52 views

Is it possible to use MathML to describe data tables? [closed]

I want to display data tables using MathML. I googled it but all the results describe mtable with examples showing describing matrices. So, I'm puzzled whether it is possible. I need to display data ...
2
votes
1answer
36 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 ...
0
votes
1answer
21 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 ...
1
vote
3answers
65 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
41 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} ...
4
votes
1answer
39 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
58 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 ...
2
votes
1answer
25 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 ...
1
vote
0answers
60 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
75 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 ...
2
votes
2answers
43 views

Add vertical line margin-aligned from a given point through subsequent pages

Using the memoir package, I would like to have a vertical line on my margin like this: Some leading content ... vertical space ... ---------------------------------- XYZ | Content A | ...
2
votes
2answers
34 views

How to align an image to the bottom inside a table cell

I created the following document: Code: \documentclass[11pt]{article} \usepackage[a5paper]{geometry} \usepackage{tabularx} \usepackage{graphicx} \begin{document} \begin{tabularx}{\textwidth}{|X|} ...
3
votes
1answer
49 views

Oversized colored row in beamer block

As a follow up to this question, I am trying to insert tables in my beamer presentation so that they have the same style as blocks. However, I want to avoid using rules in my tables, and I am trying ...
3
votes
2answers
58 views

Table layout: cells with short and long text

I've been fiddling with a table layout where some cells contain very little text while others may need multiple lines, and I can't seem to get it readable and nice-looking. MWE: ...
1
vote
0answers
17 views

Different vertical spacing just in header row of table [duplicate]

Does anyone know how to make the header row of a table of a different thickness than the body rows? I can control the standard 'thickness' of the rows via: \renewcommand{\arraystretch}{1.25}, where ...
3
votes
0answers
68 views

exam class - align problems horizontally using probsoln

I would like to create worksheets with problems filled by rows instead of columns. I am using probsoln to store and call the problems, but they always end up filling the worksheet vertically. I tried ...
0
votes
1answer
36 views

small font of text under table, but keeping table size itself normal

When making a table in lyx using tex coding (ERT): I want some explanation text in a small font under the table (using \multicolumn). But when i type {\small [text]} the entire table shrinks, even if ...
3
votes
2answers
53 views

tabular can't vertically align the cell to the top

I have the following code: \documentclass[11pt]{article} \usepackage{array} \begin{document} \begin{tabular}{|p{1cm}|m{1cm} | @{}m{0pt}@{}} \hline 1-1 & 1-2&\\[1cm] ...
4
votes
1answer
25 views

Vertical alignment of the `aligned` environment in table cells

I think most people will agree that the vertical alignment in the table cells below is less than ideal--especially if I want to remove the \cmidrule to be more in line with accepted "best practices" ...
5
votes
3answers
118 views

lining figures in tables and math, old style figures in text

I’m using TeXLive 2012, up to date on Ubuntu 12.10. When I use the libertine package with the option osf and newtxmath for math fonts!, I get oldstyle nombers everywhere, but I only want to use them ...
4
votes
1answer
64 views

Using LyX, how do you put a table and a figure side by side and caption them Table XX and Figure XX?

I have found solutions for them to be done in normal TeX, but how do I do this in LyX? What I wish to obtain is something like that shown in Table and Figure side-by-side with Table caption above, ...
5
votes
1answer
34 views

How do I prevent \cellcolor from over effect of \hline

I'm trying to add HTML code based color to my table, like so: \usepackage[table]{xcolor} \begin{tabular}{ |>{\columncolor[HTML]{F2FAF8}}c| p{11cm} |} \hline CELL 1 & CELL 2\\ \hline CELL ...
7
votes
2answers
238 views

How to improve the looks of a table?

I want to display measurement outcomes in a table that lets the viewer read off the measurement value of N and $\Theta$. The picture below shows my first attempt. While this is ok, I would like to ...
4
votes
1answer
34 views

Slashbox with tables: Adjusting the diagonal separator for multiple rows

I am using the slashbox package in a table as shown next. However as you can see, the diagonal line in the first cell is not the real diagonal of that cell. This is because of the existence of more ...
4
votes
2answers
47 views

Extra alignment tab has been changed to \cr

\begin{table}[ht!] \begin{center} \begin{tabular}{p{0.6cm}p{0.6cm}p{2.3cm}p{1.4cm}p{2.3cm}p{1.45cm}} \hline \bf p & \bf N & \bf $\|u-u_{h}\|_{L^{2}(0,1)}$ & \bf $L^{2}$ ...
2
votes
1answer
29 views

Underfull hbox in tabular

I'm trying to make a table with fixed column widths. Cells in the first column will generally not have enough text to require a line break within the cell. The second column's cells will quite often ...
1
vote
1answer
43 views

Footnote in tabularx doesn't work (with hyperref)

Here is the min file: \documentclass{article} \usepackage{tabularx}[1999/01/07] % v2.07 \usepackage{hyperref}% 2012/10/15 v6.83k \listfiles \begin{document} \begin{minipage}[t]{.5\linewidth} ...

1 2 3 4 5 45