{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
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
217 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 ...
5
votes
3answers
12k 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
327 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
363 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
430 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 ...
3
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
297 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 ...
4
votes
1answer
6k views

Use multiple \multicolumn commands in a LaTeX 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 ...
2
votes
1answer
2k views

How to apply \raggedright to my table headings?

Can somebody show me how to apply \raggedright to my table headings in this example? \documentclass[a4paper,12pt]{article} \usepackage{tabularx} \usepackage{booktabs} \usepackage{siunitx} ...
13
votes
2answers
5k views

Tables with multiple panels in LaTeX, R and Sweave

I would like to know what the accepted Sweave/R/LaTeX solution is for producing tables with "panels": multiple parts, which may or may not contain the same columns, combined into one table. The ...
4
votes
1answer
191 views

How to add a hyperlink to a multiline element in a table, which uses makecell?

I've an existing table in LaTeX (for my resume), which uses makecell package to produce the formatted output in multiple lines for each entry. Example of one row: 2007 & \makecell[c] {Bachelor of ...
1
vote
2answers
1k views

Incomplete vertical line while creating a table

My code is as below. Last column line is splitted when I leave space between the rows. How can I get a solid vertical line? Please reply \begin{table}[h!] \caption{\textbf{$\alpha=10; U=1; ...
2
votes
1answer
259 views

Hyperref problem with enumerated tabularx rows

I was trying to do an enumeration with columns, which references one item from another one in the same list. I figured out that the best way is to make a table with enumerated rows. I had a working ...
7
votes
1answer
20k views

LaTeX table cell with a diagonal line and 2 sub cells [duplicate]

Possible Duplicate: Diagonally divided table cell Diagonal lines in table cell I'd like to have a LaTeX table, where the top left cell marks what the headers are to the right and also ...
51
votes
2answers
65k views

Changing the font size in a table

What's the recommend way of changing the font size in a particular table? Is there a better way than enclosing all values with, for example, the \tiny function.
10
votes
2answers
1k views

Automatic way to break narrow tables into two columns?

Is there an easy way to break long narrow tables into two (or possibly more) columns (i.e. without manually rearranging the columns)? In the following example you can see that there is a lot of ...
8
votes
1answer
240 views

Formatting footnotes as a table (not footnotes for tables!)

Is there some way a person could format footnotes as a table? What I'm trying to do is put translations and transliterations from English to Japanese in footnotes on my pages in the form WORD ...
1
vote
1answer
659 views

ltablex - Multi-column problem

I have a problem using a multicolumn command in an ltablex environment. When I insert a large amount of text into a multicolumn command the text (and the table) run off of the side of the page. I've ...
5
votes
2answers
986 views

longtable: avoiding multiple captions

I have some problems using longtable with a caption. The caption repeats every page therefore multiple entries are created in the list of tables. I only want one caption per table - for the following ...
3
votes
1answer
587 views

Center ConTeXt table horizontally

Although my table is only so wide and inside a alignment[middle] environment, it doesn’t get centered and stays left aligned. (For ConTeXtians: right aligned :)) I tried a hack and add an empty ...
4
votes
1answer
179 views

How do I create a table that meets the following specifications?

Following this question: I want to create an environment for a table with the following specifications: The left column is a vertically centered rotated text, saying Övning. The right column contains ...
4
votes
1answer
996 views

Table paragraph spacing

In the preamble of my document, I'm using \usepackage[parfill]{parskip} to make a new line between each paragraph. But when I try to write paragraphs inside a table: ...
5
votes
1answer
6k views

Newline in table cell possible?

I am trying to add linebreaks in my table cell but found that Lyx doesnt allow me to. How can I do that?
40
votes
1answer
33k views

How to add extra spaces between rows in tabular environment?

I couldn't find any option that lets me expand the vertical space between rows in tabular environment. For example, \begin{tabular}{c c} $f^{(n)}(x)$ & $f^{(n)}(0)$ \\ ...
5
votes
2answers
3k views

Wider tables in LaTeX, which is the best solution?

Hi I have a LaTeX table code generated from R like the following \usepackage{rotating} ... \begin{sidewaystable} \begin{center} \small\addtolength{\tabcolsep}{-7pt} ...
22
votes
1answer
30k views

Make a table span multiple pages

I have a table that takes up a full page, but I want it to start on a page that already has some text and then continue onto the next page (i.e. it's ok if the table gets broken up and spans two ...
1
vote
1answer
141 views

The entire table is not displayed even when rotating package is used [closed]

I have some tables with wider column content, I have 8 columns. The whole table is not displayed in LaTeX, when I reduce the font size also there is no result. I have about 7 tables in single .tex ...
1
vote
1answer
809 views

How to eliminate unnecessary page break in LaTeX?

I have couple of lines (text) followed by table. I want both the text and table to appear in same page, now text appears in one page and table in next page. How to change it? I have tried using ...
7
votes
1answer
4k views

Center sideways text in table

I'm trying to make a two-column table environment. The left column is supposed to center the sideways text "Tips" vertically and the right column should be a normal paragraph column. Here's what I ...
12
votes
2answers
8k views

How to color the font of a single row in a table?

I have a table and I want to make the font color red for just one row (not the background). How do I do that? Here's my table: \begin{tabular}{ l | l l l l } & 1 & 2 & 3 & 4 ...
6
votes
4answers
5k views

Create a table with two parts with different tabular features

I'm trying to build a table that has two panels with different numbers of columns. For example: Table 1: An interesting table Panel A: Some stuff First name Last name Product ...
8
votes
1answer
384 views

Execute token after \halign

I like to create a macro which processes a following brace group as "argument" using \halign. After it has been processed a token (a macro) should be executed. With an \hbox I can use ...
10
votes
3answers
14k views

Control spacing around table caption

I want to put several tables in the same table float like this: \documentclass[a4paper, 12pt]{article} \usepackage[T1]{fontenc} \usepackage{subfig} \begin{document} \begin{table} \caption{Internal ...
8
votes
4answers
10k views

Automatic wrapping of a \multicolumn table cell

I output lots of tables to LaTeX using the estout/esttab package in Stata. I frequently want to have long footnotes on the bottom of the table, explaining coefficients, sources, etc. The estout ...
6
votes
2answers
516 views

Automating LaTeX tables with specifications from R

I have some latex tables generated from R-code, the sample latex table code is below \begin{table}[ht] \begin{center} \begin{tabular}{|c|c|c|c|c|c|c|c|c|c|c|c|c} \hline & 1 & 2 & 3 & ...
7
votes
3answers
2k views

How can I achieve proper vertical spacing for long blocks of text within a \multirow?

I'm trying to work with a table of the form: \begin{tabular}[]{l D{.}{.}{-1}} \multirow{2}{1in}{Here is a ton of text that is not going to fit in one single line in this 1 inch column.} ...
4
votes
2answers
345 views

Is there a way to compile a LaTeX table into tab delimited text?

I am submitting a manuscript to a journal1 that will only accept Word or .rtf submissions (arrrg!) and they require that tables be tab separated text. Is there a way to compile LaTeX tables into tab ...
0
votes
0answers
106 views

Multipage tables (column-wise) [duplicate]

Possible Duplicate: Table and multi-page I have a table with a lot of sideways content. Like the following table: A B ... X Y Z Entry 1 Entry 2 Entry 3 The table ...
11
votes
4answers
1k views

How to vertically center a content spanning multiple rows without using nested tables?

I don't want to use nested tables. My current code produces the following result. And I want to get the following output. And the minimal working example: \documentclass{article} ...
3
votes
1answer
2k views

tabular inside a newcommand [closed]

I'm trying to define a \newcommand that has a tabular in it, but I get an: ! You can't use `macro parameter character #' in restricted horizontal mode. Here's an example: \newcommand{\Mytest}{1}{ ...
9
votes
2answers
1k views

How to include tabularx/y in a new environment?

I am looking for a way to define a customizable environment for tables in my latex documents. This means: caption and label width of table customized column format (tabular preamble) While this ...
4
votes
1answer
5k views

How to manage big and smaller tables in LaTeX?

When big tables are created in LaTeX, then the table extends to the footer as well. If I use the longtable package then it works fine for tables which are longer and it does not extend to the footer ...
1
vote
2answers
280 views

Why are some columns truncated in my table output?

I have a latex table generated, it has 12 columns, but it is displaying only 11 columns...why is it so? Is there any mistake I am doing? Should I work something with the font size because I have ...
20
votes
2answers
8k views

How can I use a table generated by R in LaTeX?

I have a LaTeX table generated like this, \begin{table}[ht] \begin{center} \begin{tabular}{rrrrrrr} \hline & 1 & 2 & 3 & 4 & 5 & 6 \\ \hline 1 & 181.21 & 169.01 ...
6
votes
1answer
3k views

dcolumn and text in table header

I am using the dcolumn package to align cell contents at the decimal seperator. Now in the table header I have a textual description of the column, for example like this: \begin{tabular}{c|d{4.3}} ...
2
votes
6answers
338 views

Table with two headers?

I would like to create a table like the one you can see here, maybe emphasizing nicely labels A,B with respect to the values (0,1). I tried to search but could not find a Latex code for this. Can ...