{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
1answer
722 views

line-breaking in longtable

I'm using the longtable environment with the field p{0.5\textwidth}. The text on that field is set with very odd spacing, because latex attempts to justify it both for the left and right column ...
1
vote
1answer
1k views

\newline not working with booktabs?

A while ago I had a question about having multi-line strings in a table cell ( http://tex.stackexchange.com/questions/3748/in-cell-newlines-in-tabular-environments). I remember seeing it working but ...
3
votes
1answer
826 views

Break a table between pages AND rotate it sideways

I have a long table with a lot of columns, so I want it to be landscape. The problem is I can't figure out how to have both a rotated table, and automatic break between pages?
0
votes
0answers
247 views

Include image in a table [duplicate]

Duplicate of: How to Label and Caption a Tikzpicture inside a tabular environment I am trying to include an image inside a table cell. But I am declaring the image using the figure ...
5
votes
1answer
641 views

Prevent xtab breaking table too soon

Xtab breaks a long table spanning multiple pages too soon -- see my screenshot: The output seems rather unsightly to me. Can I make it take more of the available space? Alternatively, is there a ...
3
votes
2answers
8k views

How can I create a LaTeX table with merged cells in 2nd column or later

I wish to generate a LaTeX table with merged cells in the 2nd column. Any examples I have seen so far have merged cells in the 1st column. The text also needs to wrap with in the cell. (couldn't ...
5
votes
2answers
1k views

Maintaining table format with space between rows

I want to put spaces between rows in a table however my current implementation cuts off the vertical lines. I know I can replace \\with {} \ {} \ {} ..., but is there a more elegant solution? ...
2
votes
1answer
1k views

Wide table problem when generating PDF

I have a LaTeX wide table generated from a data frame in R using xtable, but when the PDF is created not all the data is shown, just a part of it, and the other part is hidden on the right of the PDF. ...
7
votes
1answer
763 views

Generating tables with \@for command

I'm making a report template that requires the list of authors to be presented in several different ways, one of which is a table that lists each author and provides a space for them to sign the ...
3
votes
2answers
3k views

Default value for \addlinespace from booktabs

In the booktabs package documentation the command is described in the following: Occasionally we want to put an extra space between certain rows of a table; for example, before the last row, if ...
5
votes
2answers
287 views

Creating a table that uses all available space

Is there a way to use tabular or some other method to create a table that expands to use the entire available space? So if I created a table with 4 rows, each row would use 25% of the space. Thanks! ...
4
votes
1answer
3k views

Complex Table Layout

I'm trying to display a fairly complex table using Latex. Here is what I want it to look like (formatting, alignment, borders, columnspan, and rowspan). I would also like the columns to be fixed width ...
4
votes
1answer
766 views

Table wrapping in tables not working

I am having a problem with text wrapping in a long table. Here is a copy of my table: \begin{longtable}[c]{l|b{2in}b{3in} b{2in}} %\centering %\begin{tabular}{llll} Author and Year ...
3
votes
1answer
272 views

Making an enclosing, fitting PDF for a table

I want to make a document out of a single table, for inclusion into PowerPoint, etc., as a PDF just the size of the table, with a small customizable margin. Which document class should I use, and how ...
7
votes
2answers
454 views

Aligning columns, but allowing for text inbetween

I need help aligning text that spans multiple lines where I have Verbatim code in between. Here is a mock example to show what I mean: Fruit Amount Apple $3.00 \begin{verbatim} ... ...
5
votes
2answers
1k views

Combined header cell in a table

This question is closely related to at least two other ones; namely, Tables of numbers, and slashbox alternative. What I'm after, is the horizontal- and vertical-alignment of row- and column-headers ...
1
vote
1answer
3k views

Centering Text using multirow that overflows onto multiple lines

I am trying to create a table where one column has multiple rows. This is very easy to do using the multirow package. However, if I specify a width for this \multirow and my text overflows, the second ...
1
vote
2answers
158 views

Opposing alignment of multiple lines of long text without exceeding \linewidth

I'm trying to create some documents using the flashcards macros, and I'd like to have the text aligned like follows ____________________________________ | | ...
2
votes
1answer
604 views

makecell package vertical centering of vertical text

I'm using makecell package to write vertical text to my table cells. It works fine, but I have trouble centering it. Normal vertical text (within a {tabular}) is displayed as: \rothead{Some ...
9
votes
1answer
9k views

tables side-by-side using minipage

I'm trying to get three tables side by side using minipage. In spite of my horrific efforts my tables keep stacking on top of each other instead of standing beside what drives me mad. Can anybody spot ...
2
votes
2answers
4k views

How to nest tables?

I want to make a table inside another table as follows. Unfortunately, it does not work. What is wrong with it? \documentclass{minimal} \usepackage{array,longtable,calc} \begin{document} ...
10
votes
6answers
752 views

How do I expand a macro into a tabular head?

I would like to be able to define a macro that can be used in the tabular definition. How can I do this? This does not work: \documentclass{article} \begin{document} \gdef\buildtabularhead{|||} ...
4
votes
2answers
465 views

Problem in visualizing tabular with TikZ

I'm quite new to LaTeX (I've used it at university for some basic formulas and ready to use templates) and I'm getting again into it for graphics stuffs: I love its clearness. I'm trying to make a ...
2
votes
1answer
340 views

Problem with side-by-side tables

I've checked out related questions here, and found similar answers via Google, and still can't figure out why the following code does not produce two side-by-side tables. They are narrow enough to fit ...
3
votes
1answer
600 views

Create environment inside another environment?

Why can't I define an environment, that encloses another tabularx environment inside it? For example, why can't I do this: \newenvironment{customTabular}{ % This is the begin code ...
2
votes
1answer
591 views

How to remove colon(:) on longtable suffix caption

Using svmono package and \renewcommand\tablename\{Tab.}. When I use table, the caption shows “Tab.1 Bah Bah”. But if I use longtable, the caption shows “Tab.2: Bah bah”. How to remove colon as “Tab ...
2
votes
1answer
582 views

How to “glue” the caption to the table (stay on the same page as the table)

Normally, my captions stay with the table (cannot remember my exact example - couldn't replicate it - but I am now using the booktabs package anyway so let us take this one just in case this one is ...
1
vote
0answers
491 views

Problem with losing some table borders when using colors [duplicate]

Possible Duplicate: Is there a way to make standard LaTex PDF output look good on screen as well I'm trying to make colored rows in my table but for some reason table borders become ...
5
votes
1answer
4k views

Color running over text in multirow column

I have a simple table with 2 multirow cells. However when I apply background color, it covers the lower portion of the multirow cells and cuts through the middle of my text entry which is obviously ...
3
votes
1answer
504 views

Margin notes *and* footnotes in a table environment

I am working on a translation. The original text has marginal notes, and I also need footnotes for commentary. Some of it needs to be tabulated in big two-column tables. So I use \longtable because ...
4
votes
1answer
1k views

Two tables vertically align

i have two tables, each of them has 4 columns. one is just below the other. i want to know how to make every column of the below table have same width of the column of the above table. it looks like ...
1
vote
1answer
285 views

How to avoid `&` conflict when using `\begin{align}` in a tabular cell?

Minimal CODE \documentclass{article} \usepackage {% array, calc, amsmath, longtable, varwidth% } \newsavebox\TBox \newcolumntype{B}[1] {% @{}% ...
4
votes
1answer
223 views

unwanted blank page inserted before tabular

i have a document that consists of a single multi-page table. Unfortunately it gets a blank page inserted as the first page, I absolutely don't want this (it screws with page numbering, etc). If I ...
10
votes
3answers
1k views

How to use siunitx and tabularx together?

I'm using the tabular features of siunitx (for what it is worth: v1.3 since I'm on TexLive 2009) to align numbers in tables, eg. \begin{tabular}{ p{1.5cm} S S S } bla & 1.23 & 4.5 & 67.89 ...
2
votes
3answers
2k views

Center text in a table column?

I have the following table \begin{tabular}{ll} \includegraphics{tag.png} & bla bla bla.\\ \includegraphics{tag.png} & \\ \includegraphics{tag.png} & Store project\\ ...
1
vote
1answer
1k views

How to use images in a table?

I want to use a table where the first column contains images and the second column contains text. Ideally the first column should have the width of the image and the rest of the pagewidth should be ...
5
votes
1answer
432 views

Missing lines in tabular with minimal.cls

If I replace the class by minimal in the code below for a very simple table, the vertical line disappears. Why? \documentclass{article} \begin{document} \begin{tabular}{c|c} a&b\\ c&d ...
0
votes
1answer
1k views

Cannot make latex multicolumn work

I am trying to make a matrix in LaTeX. Now I am trying to make a table with multicolumn like a b c d у So I coded \usepackage{arydshln} \usepackage{array} \usepackage{amsmath} ...
6
votes
2answers
957 views

How to format table with long column head entries?

I would like to create some kind of feature matrix with available classes in columns and implemented features as rows. Problem is, that the class names are quite long. Rotating them by 90° simply ...
5
votes
2answers
582 views

Adding numerical values in a LaTeX tabular column [duplicate]

Possible Duplicate: How can I automatically calculate sums in a LaTeX table? Does anyone know if the is a TeX/LaTeX package which will make an ordinary tabular environment work as a simple ...
6
votes
2answers
826 views

Repeating preamble in LaTeX tabular

The TeX primitive \halign, on which every tabular etc. is built, allows repeated preambles. The easiest explanation of what it is comes by looking at the output of the code below. ...
18
votes
3answers
4k views

How to specify a fixed height for all rows in a table?

I have something like this: \newcolumntype{C}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}m{#1}} \begin{tabular}{| c | C{3cm} | C{4cm} |} Short Text & Short Text & Short Text ...
2
votes
1answer
740 views

siunitx: centering table headings (or other text contents)

I'm trying to center-align the two-line heading of the rightmost column of the following table. Given that I use decimal point alignment, I guess the centre of the headings should be aligned with the ...
6
votes
1answer
3k views

Eliminate space at end of list in a table

I have a tabular environment, created with array loaded and using m columns, the cells of which mostly contain lists. In cells with a list, there is about 1em of dead space at the end of the list ...
18
votes
3answers
1k views

Table and multi-page

I'm writing some sort of book and i've got a very large table. I was wondering if there was a way to span a table not in the length but in the width. In the end, i would like to be able to divide ...
1
vote
2answers
2k views

Using \multicolumn with beamer inside an overlay command

I'd like to have a conditional \multicolumn command depending on the slide, so I put it inside an alt or an only command, as follows: \documentclass{beamer} \usepackage[latin1]{inputenc} ...
8
votes
2answers
463 views

Typesetting special table formats

I want to typeset Flynn’s taxonomy: | Single | Multiple | instruction | instructions ---------+-------------+-------------- Single | | data | SISD | ...
3
votes
1answer
412 views

Diagonal separator in table corner in ConTeXt

How can one create a diagonal separator in a table corner in ConTeXt (like the package slashbox for LaTeX)?
2
votes
1answer
325 views

Table Reference Format and Hyperlinks

I'm using hyperref package and refer to hundreds of tables from the appendix. My labels for tables look like: \label{table:some-numbers}. I then refer to it from the main text as ...
4
votes
1answer
377 views

ConTeXt - indented table, but horizontal rules go to left margin

This will be my last ConTeXt question for a little while...I've set up \setuptabulate[indenting=yes,margin=40pt] This works only to the extent that the table cells are indented appropriately - but ...