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

4
votes
1answer
3k views

Columns of Tabular on Different Slides (Beamer)

I would like to show a tabular by columns for didactical reasons. Example: \begin{tabular}{ll} Beispiel & Erklärung \\\hline Die Schule fällt Fritzchen nicht leicht. & Unterricht\\ Fritzchen ...
11
votes
1answer
2k views

Enumerate/itemize without margins in table cell best practice

I want to use an itemize or enumerate list inside a table cell. For this there should be no margin around the list. My question is, what is best practice to do this? I found different solutions for ...
5
votes
1answer
820 views

How do I eliminate the vertical realignment when using arrayrulecolor with cmidrule?

I'm using consecutive \cmidrule commands in conjunction with \arrayrulecolor to alternately hide and unhide horizontal rules in a table. However, when \arrayrulecolor is used with \cmidrule, some odd ...
4
votes
2answers
295 views

Page break table with single cell

I have an environment set up of longtables that I use as "tips"-boxes and exercises in my book. The left column shows only one word rotated (tips, exercise or whatever) while the right contains the ...
9
votes
4answers
1k views

How can I typeset non-inline math in tables?

I have to typeset mathematics in table and want to avoid it being scaled down because I have to use inline math (\( \)). However, using \[ \] for example does not work. What is the best way to typeset ...
1
vote
2answers
746 views

Alignment of columns of nested tables (tabularx)

I want to nest 2 tabularx tables: the columns of the "inside" table belong to a column of the "outside" table and therefore shall be indented and have a vertical line on their side. I tried to do ...
4
votes
1answer
1k views

Split table into multiple files with \input

I want to split my table into multiple files: \input{table_head.tex} with following content \begin{table}[htpb] \centering \caption{Caption} \begin{tabular}[r]{ccc} \addlinespace \toprule A & B ...
9
votes
3answers
35k views

Caption on tabular environment

I have got codes like the following (generated by Kile). How can I add a caption. I guess I should have used the table environment. Is there any solution now? ...
90
votes
7answers
101k views

Column and row padding in tables

How do you guys go about controlling column padding in tables? Update To clarify, I'm looking for a way to control both vertical and horizontal padding. So, if I had a simple table like in the ...
4
votes
1answer
721 views

lstlisting produces empty row when used inside a tabular

Is there any way I can get rid of the empty new row produced by lstlisting inside a tabular? Here's a minimum working example: \documentclass[11pt]{article} \usepackage{listings} \lstset{ ...
6
votes
1answer
222 views

booktabs's horizontal rules aren't displayed with cifa document class

There seems to be a problem between the CIFA document class and the booktabs package. When I compile the following code, the horizontal lines are not displayed: \documentclass{cifa} ...
5
votes
1answer
418 views

Color changes cell height in tabular

The following code shows that a \color{red} command increases the height of a tabular cell. I want to use a switch, not a command as \textcolor{red}{text}. \documentclass{article} ...
14
votes
2answers
8k views

\flushleft with p{} option in tabular

If I have defined tabular alignment with the p{} option, \begin{tabular}{p{.3\textwidth}p{.7\textwidth}} ...(contents)... \end{tabular} Is there a way to specify that I want it \flushleft without ...
1
vote
1answer
248 views

What is the best way to setup this statblock as a macro?

I'd like to get a macro setup for this statblock format. Basically, I will be converting an XML document containing the data for the instances within the document. This is a sample of the format I am ...
2
votes
1answer
637 views

How do I get pages to have Roman numerals? How can I move a table to the left when flushleft won't work?

How do I get pages to have Roman numerals? How can I move a table to the left when flushleft won't work?
5
votes
1answer
259 views

Table counter increasing by 2 for every table

I'm having some issues when using tabularx within a table environment. The most annoying of these issues is that the table counter seems to be increasing by 2 for every table. So instead of having ...
8
votes
3answers
294 views

Vertically Centering Text/Numbers in Rows of Array using Math Mode

I am trying to center text in an array of two rows inside a math mode environment so that the text in the second column of the array appears half way between the first and second row of the first ...
7
votes
2answers
666 views

How can you change the font for the contents of all tables in a document

Is there a simple way to set the default font for all tables in a document?
3
votes
1answer
300 views

how to apply style to complete row or table in tabulars

How can I define a style (font, size, color etc) for a whole row, without repiting the command before each cell? Note that I do not want to use tabu package. I want to know to what extent this can be ...
5
votes
2answers
1k views

Width of nested tabularx environments

I am trying to create a RPG "character sheet" using LaTeX. For those unfamiliar with the madness of nested boxes, underlined whitespace etc. involved, this here gives a good impression (except that I ...
7
votes
4answers
2k views

Using external tables in TikZ

How do I use tabela.xls as a data source to a LaTeX table or even a table made with TikZ with the following command? Note: I wanted to use tabela.xls as a data source for multiple files. Tex and that ...
7
votes
5answers
12k views

Centering mutirow text in a table whose cells contain several lines of text

I'd appreciate advise in centering a multirow text. In the MWE below the multirow text "spring" is NOT centered over the three rows that it spans. ...
7
votes
2answers
420 views

Tab not as extra alignment tab

Is there a way to have LaTeX render the tabs in a tabular environment to determine the columns so that there is no further need for the ampersands & ? Most of the time the columns only contain a ...
2
votes
2answers
1k views

Repeat table header on every page using supertabular

This question is related to this one: How to repeat top rows (column headings) on every page But I want to repeat the header row of a table using supertabular and not long table.
1
vote
1answer
467 views

tabular align with irregular number of rows

I am trying to set up a tabular system like the one below, but latex does not seem to want to work with different number of elements in each row. Any way to fix this ? |Prime numbers| | Integers | ...
3
votes
1answer
735 views

Beamer ignoring table format?

I have a number of tables formatted in a LaTeX document. I want to put these tables into a beamer class with one table/slide and perserve the table formatting. When I compile my document, everything ...
11
votes
2answers
2k views

How to align picture top left in a table?

is there a way to create a table with 2 columns, in the left column should be some text, in the right column should be a picture. The problem is - to align both to the left, top corner. The image ...
4
votes
3answers
352 views

Dual table alignment and lines

I have a table that is to big to fit in the page width, thus it is separated into two tables. The truth is that I only use one table but insert an empty row in the middle so that the columns stay ...
3
votes
3answers
4k views

Table row with white text on black background

I am trying to reproduce a table like those in this picture So far I have \noindent \begin{tabularx}{\textwidth}{| l | X | l | l | } \hline & Does the proposed research involve processing of ...
6
votes
3answers
3k views

How do I right align certain cells in a (booktabs) table?

I'm very new to LaTeX, and I'm currently waist deep in my first project using it. I'm trying to right align some text in cells in a table. I am using booktabs, not sure if that changes anything (I'm ...
9
votes
2answers
782 views

Table: Can I shift a column by half the height of a row?

This question is best explained by giving the usecase: I have a table where I list some data and I would like to add a column to the right which gives the ratio of two adjacent rows. Now to make it ...
3
votes
3answers
467 views

Enumerate environment with tabular layout

I'm new to Latex. I'm familiar with the enumerate environment as well as the tabular environment, but I am trying to combine the two; that is to say, I want the items in the list to be broken up into ...
1
vote
1answer
160 views

In a tabular, how do I reduce the vertical space in a wrapped text?

In a tabular, I am using the commands that allows you to wrap your text: \begin{tabular}{m{5cm} m{13cm} m{5cm}} but I would like to change the vertical space between the different lines of the ...
9
votes
2answers
7k views

How to globally adjust horizontal spacing in table? @{length}

I want to adjust the horizontal spacing between vertical lines and the cell content in a tabular table. I could do it for each column with @{length}l@{length} (e. g. with \,), but there must be a ...
2
votes
1answer
325 views

Tabs and columns in LaTeX

I'm looking for a way to do something like this in LaTeX: 2006-now good years had a lot of fun 2002-2005 not good years I just wish I knew how to do this ...
9
votes
2answers
19k views

Fit a table into one page

I have a table that is very wide. Now I want to force it into one landscape page. I already set the page orientation to landscape but now I don't know how to force it into one page with scaling. Any ...
6
votes
5answers
1k views

How to typeset tabularx with 34 columns? (Error message)

I want/need to typeset a very large table with >30 columns, which I created with Excel2LaTeX. I don't get it to compile, it only works if I really use 20 columns, however when I insert the 21st one, ...
5
votes
2answers
2k views

Is there a command similar to \cline{i-j} but works with vertical line? [duplicate]

Possible Duplicate: Create a vertical line in a table that spans a range of rows but not all rows The \cline command draws horizontal lines across the columns specified, beginning in column ...
7
votes
1answer
780 views

Help with vertically aligning enumerate labels

I am just getting started using latex and am having some problem vertically aligning the enumerate labels when listing tables (see image below). I would like to have the '(a)' label aligned vertically ...
2
votes
1answer
6k views

\subfloat command from subcaption package doesn't produce bottom margin if used in table

I'm trying to typeset a table of images. If image inserted into cell with \subfloat (subcaption package included), resulting box will be w/o bottom margin, but top, left and right margins will be ok. ...
4
votes
1answer
221 views

convert ctable to rtf/word/odt etc

I need to convert ctables, like the following, into a format for a word processor (MS Word, OOWrite etc.) It should be an editable table but in worse case, an img would be also fine... \ctable[ ...
8
votes
1answer
5k views

How to divide a table row into several columns?

I have a table with two columns. In the first column there is no multiple column. But there are 11 multiple columns in the second column. The format looks like: | A | B ...
6
votes
3answers
13k views

How to change the font of a LaTeX table to typewriter font?

I want to create a table in LaTeX, and this table needs to be in typewriter font. I have found Typesetting Tables with LaTeX, but I don't understand how to use it. How could I do this?
0
votes
2answers
331 views

Environment with customizable number of table columns

I want to make macros for drawing group of questions with same answers with customizable text, number of answers and design (column widths, alignment, etc.), like this: ...
1
vote
2answers
396 views

Format mathematical definitions

I want to define a list of definitions. This is what I have: \begin{align*} Let & L_{1} = (Q_{1},\sum,\delta_{1},q_{1},F_{1}), and \\ & L_{2} = (Q_{2},\sum,\delta_{1},q_{2},F_{2}). ...
4
votes
2answers
440 views

Align words in cells of a table

Consider a table like this: | text1 | text2 | |------------|--------------| | a b c | AAA BBB CCC | |------------|--------------| | | aa bb cc | ...
3
votes
2answers
4k views

remove colon from table name

I'm using two-column article document class. Long table Name is displayed in the following format: Table 1: table caption goes here. But I want to change in this way: Table 1 table caption ...
13
votes
3answers
7k views

Example of fancy table using TikZ package

Can anyone share me several fancy table templates? I want to make this thread like a reference so that each time I need a template, I could just go here. If you can, please provide a screenshot for ...
4
votes
1answer
3k views

Sideways table placement gets deferred more than expected

The problem I have is basically articulated in this thread. According to the veteran respondent, it appears that sideways table does not support placement specifications. However, its behaviour ...
3
votes
2answers
304 views

Using multiple \multicolumn commands in a table to achieve column headers

I'm trying to code column headers in LaTeX so that each header spans two columns; however, the following code isn't working: \usepackage{booktabs} \begin{tabular}{cccc} \toprule ...