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

3
votes
2answers
208 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.
0
votes
1answer
28 views

Merge a all cells in a Row [duplicate]

What I want is really simple, but after googling, trying and crying its not working. What i want: what i've in code: \begin{tabular}{| c |c | } \hline Bla & Bla(Im on the left side) \\ ...
3
votes
1answer
38 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
51 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
34 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
52 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
41 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
49 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
35 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
19 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
64 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
36 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
57 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
23 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
59 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
41 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
33 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
45 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
55 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
35 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
51 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
111 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
52 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
33 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
28 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
46 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
27 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
41 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} ...
2
votes
1answer
83 views

Default Table Style [duplicate]

How can I create a default table style, which remains throughout the course of my document, lets say, for example, I want grid-lines and a gray shading behind the header-row, without having to ...
0
votes
1answer
33 views

Assistance creating a table with different amount of columns on rows

I am trying to create a table in LaTex, which has different a number of columns on some rows, this is what I am trying to achieve: Title1 Title2 Row1 1 2 3 1 ...
1
vote
1answer
26 views

Vertical centering of text inside tabular does not work as expected

I have a simple table with three columns. The second and third columns contain minted environments, and the first column contains text that should be vertically centered for each row. I'm using the ...
0
votes
0answers
28 views

LyX numbering tables wrong in PDF [closed]

I've got a remarkable problem in LyX. In the LyX document all the tables are numbered correctly. Although when I convert my document to a pdf file, the numbers are incorrect. Lyx: table 3.1 => ...
1
vote
1answer
44 views

Two columns of equations, aligned and just one number per column

I'm writing a two-column document, and I want to display two sets of large equations floating at the top. Each equation set should be aligned within the same column, and only the two top equations ...
5
votes
1answer
49 views

m column doesn't center text vertically

I want vertically centered text in a simple table like this: \documentclass{article} \usepackage{array} \newcolumntype{Z}{>{\centering\arraybackslash}m{0.2cm}} \begin{document} ...
3
votes
1answer
41 views

How to center a table in Classic thesis LyX version

I am using classic thesis for writing my thesis and while placing tables, the tables are aligning to the left. I want the table centered. I am attaching images of the LyX code and the output. Any help ...
4
votes
3answers
44 views

Problem with margins and tables

Here is a picture of my problem : As you can see, the table isn't well centered at all. I'd like the distance from the left margin to be equal to the distance from the right margin. Here is my ...
2
votes
1answer
40 views

How to create slant line in a table? [duplicate]

I want to split a table in two part as shown below. How do i split a cell so that i can write "Inferred" and "Ground truth" as shown in following picture.
1
vote
2answers
32 views

Table doesn't fit to page width properly

The table produced by this code always goes out off the width of my page. I want the table to fit within the width of the page. I tried giving extra \\ in between but it made it worse only. ...
7
votes
1answer
91 views

Table: a symbol instead of a vertical line

I know it is a little unorthodox, but it would save me quite some time if I would be able to print a character instead of a vertical line in a table: | a | b | c | -> | a | b $\sim$ c | any ...
1
vote
0answers
32 views

Latex float so no stretching appears, but everything is placed on top

It has probably been already answered, but I cannot find it. If I include images as floats, LaTeX places the last one on a single page in the middle. How do I make LaTeX to put in on the top of the ...
3
votes
2answers
61 views

Text in multirow overlaps the next row

Suppose, I want to create a table like this: I decided to use \multirow with \newline. But the \multirow cell is not stretched vertically: Code: \documentclass{article} ...
2
votes
2answers
37 views

Table does not fit TexMaker

My table has 25 columns I think and how can I make each column smaller and make the table fit on one page ? \documentclass[9pt]{article} \usepackage{booktabs}% http://ctan.org/pkg/booktabs ...

1 2 3 4 5 44