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

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
233 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
314 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
504 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 ...
3
votes
2answers
201 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
184 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|} ...
4
votes
1answer
604 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
938 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
24 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 ...
4
votes
1answer
248 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
238 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
706 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
75 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" ...
12
votes
3answers
1k 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 numbers everywhere, but I only want to use them in ...
6
votes
3answers
4k 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
261 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
412 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 ...
6
votes
1answer
3k 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
5k 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}$ ...
3
votes
1answer
2k 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
1k 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
129 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
346 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
154 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 ...
1
vote
1answer
563 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 ...
7
votes
1answer
243 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} ...
4
votes
1answer
4k 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
117 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
434 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.
2
votes
2answers
2k 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
248 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
38 views

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

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 ...
4
votes
2answers
1k 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
2k 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 ...
7
votes
2answers
116 views

Can't make table with non-standard multicolumns

I want to create a table like this: 1-st row: 2 columns, 50% each. 2-nd row: 9 columns, sizes given. I tried to use the approach from this answer: Table with non-standard multicolumns Created ...
3
votes
1answer
3k views

wraptable generates table overlying text in XeLaTeX

I am using XeLaTex on OS/X. wrapfig appears to work perfectly. When I try the following: {\bf This closing line of a paragraph emphasized} \begin{wraptable}{r}{0.8\textwidth} ...
4
votes
2answers
87 views

“hiding” \par from a tabular

I want to use a macro to write a line of a tabular. As part of this macro, there is an argument that isn't set in the tabular, but is saved for later use. This unused argument should be allowed to ...
3
votes
1answer
2k views

LyX: Removing indentation from a table

I want to make a table that has terms on the left side with .25\textwidth and descriptions on the right side with .75\textwidth Like Name: asdjoia Position: ...
3
votes
1answer
68 views

Table with non-standard multicolumns

I want to typeset this table: As you see, it's hard to use multicolumn here. I tried 2 consecutive tables: \documentclass{article} \usepackage[a5paper]{geometry} \usepackage{tabularx} ...
5
votes
1answer
235 views

Table width is not wide enough

I have a problem in the table width, it is very small as shown below and I need it to fit in two column paper. Any help please? \begin{table}[H] \centering \begin{tabular}{|r|r|r|r|} \hline ...
4
votes
2answers
115 views

(How) Can I vertically align parts of cell contents differently?

I am trying to create the following game matrix and am wondering how exactly can I vertically align the cell contents? Especially since I need them to be offset differently in the same cell.Is this ...
2
votes
1answer
602 views

Cannot compile tabu

I have been trying to compile the following tabu environment with xelatex, but to no avail: \documentclass{article} \usepackage{xcolor} \usepackage{tabu} \begin{document} \taburowcolors ...
4
votes
3answers
441 views

Drawing a grid on array of images

I have nice story to tell with pictures. There Maltese type cross which is processing and twisting at the same time. So to make it more visual in paper i need grid something like this Drawing on an ...
2
votes
1answer
2k views

LaTeX prevent oversized table from getting cut off

I have a LaTeX file with a very wide table with many many columns. When I compile this and convert to pdf, the right part of the table is cut off because it is too big to fit on a page. Is there a ...
4
votes
1answer
241 views

Table is printed in reverse order using xepersian

I am using xepersian package and the tables are printed in reverse order. For instance when typesetting the following code: \makeatletter \@ifundefined{Umathcode}{\let\Umathcode\XeTeXmathcode}{} ...