{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
2answers
605 views

ConTeXt center tabular

In ConTeXt, a tabular environment evidently does not behave a centered context. e.g.: \startalignment[center] \starttabular \NC item one \NC item two \NC\NR \NC item three \NC ...
1
vote
2answers
1k views

Error in tabular code generated from Excel2LaTeX

I used Excel2LaTeX to create a table in LaTeX and here is the code that gives me an error. % Table generated by Excel2LaTeX from sheet 'Sheet1' \begin{table}[htbp] \centering \caption{Add caption}...
10
votes
3answers
17k views

Are there any tools that convert a table from MS Word to LaTeX tabular format?

I have a really big table in MS Word and would like to convert it to tabular format automatically. I'm using Texmaker and their quick tabular wizard is good but it doesn't let you copy paste data ...
8
votes
2answers
2k views

Cannot use \toprule when doing \input inside tabular — why?

Using \input inside a tabular environment does not seem to work in all cases, but I don't see why. The MWE below gives the following error message: ! Misplaced \noalign. \toprule ->\noalign ...
1
vote
2answers
4k views

Rotate table with caption: “Not in outer par mode. \begin{table}[h]”

I would like to rotate one table with caption however it returns me an error Missing \endgroup inserted ...omparação de Gerenciadores de Documento} Undefined control sequence \end{sideways} ...
7
votes
1answer
7k views

Adjust size and position of a PGFplots plot

I created a 2x2 array where each box contains a subfigure. For three subplots I use \addplot3 from PGFplots with colorbar and in the other, a \addplot. Due to the use of colorbar, the symmetry of the ...
6
votes
2answers
832 views

Hebrew vs. German/English translation side-by-side

I am having the following problem: I have Hebrew texts and want to put translations (and other information) right next to it in a nice way. (Previously I used the old Nisus Writer for Mac which for ...
6
votes
1answer
826 views

Add figure, which is a table, to the list of tables

I am converting my thesis from Word to LaTeX, and I saved several huge tables as images. For my thesis I have to compile a list of tables and figures. I am using \listoftables and \listoffigures. ...
3
votes
2answers
360 views

List spacing inside a table

Please take a look on the following example: \documentclass[a4paper]{article} \begin{document} \begin{tabular}{ |p{ \textwidth}| } \hline \begin{enumerate} \item Item in a list \end{enumerate} ...
7
votes
1answer
1k views

How to use table in mdframed?

I am working on report format using mdframed and I need to add table inside mdframed. \documentclass[11pt]{article} \usepackage[table]{xcolor} \usepackage{array,ragged2e} \usepackage[pdftex]{...
2
votes
1answer
609 views

How can I get two tables side by side in landscape mode?

I'd like to get two tables side by side in landscape mode with an appendix title at the top. Here's what I've been working with: \documentclass{article} \usepackage{pdflscape} \begin{document} \...
2
votes
2answers
4k views

Bold \hlines for longtable

I've searched the topic and found the following two answers. Answer 1. LaTeX tables: How do I make bold horizontal lines (typically \hline)? The best answer suggests to use booktabs. However ...
2
votes
1answer
98 views

Help on a bug of table

I have problem in marking a table. I want to get rid of this line out there. \begin{table} [htp] \begin{center} \caption{AAA} \begin{tabular}{|c|c|c|c|c|c|} \hline \multicolumn2{|c|}{\multirow{2}{*}...
4
votes
1answer
282 views

How do I get m or b column specifiers working?

I have quite simple example: \documentclass[9pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[english,russian]{babel} \usepackage{PTSerif} \usepackage{array} \begin{document} \begin{...
4
votes
1answer
415 views

Prevent multiple row header from splitting when using xtabular

Using the xtab package and the xtabular environment, I get my table header split when using several rows. Example: \noindent \begin{center} \small \tablefirsthead{% \hline & \multicolumn{...
10
votes
2answers
3k views

Table with colored rows alternating every n rows

I'd like to create a table where the background color of the rows changes every n>1 rows. I have seen in wikibooks how alternate rows can have different colors and I have looked at one xcolor ...
44
votes
8answers
60k views

Inserting a small vertical space in a table

Is there a way that I can insert a small space in a table? When I use a superscript, the number touches the \hline. \documentclass[9pt,letterpaper]{article} \usepackage{helvet} \renewcommand{\...
60
votes
2answers
108k views

color only a cell of a table [duplicate]

Possible Duplicate: Color merged and regular cells in a table individually I tried to color only a cell of my table but I don't know how do it. I found the method to color an entire row.How ...
36
votes
2answers
55k views

Vertical spacing of a table cell

I want to tabulate formulas, but I find that the lines of the table cells are too close together, and this is aesthetically unsatisfactory. Example (formulae copied from wikipedia): \begin{tabular}{|...
8
votes
2answers
434 views

Creating a table which spans verso and recto pages in ConTeXt?

I am preparing a book which contains information which is divided into three columns. The first column (A) occupies the full width of all verso pages. The second (B) and third (C) column share the ...
11
votes
5answers
1k views

problem with using loop inside the tabular environment

I am having trouble with using a loop inside a tabular environment: \newcounter{it} \setcounter{it}{0} \begin{tabular}{ll} \loop\ifnum\theit<4 \addtocounter{it}{1} Q & A\\ \repeat ...
4
votes
2answers
16k views

Changing Table Numbering Scheme to Include Section Number

When I create a table and use \caption, Latex automatically adds "Table 1.1" or something similarly numbered. I'm using the book format, and want the caption numbering to be of the form "Table x.y.z", ...
13
votes
5answers
3k views

What is the proper way to create a horizontal table?

I want to have a horizontal table, like this: However, when using the usual method of creating a table, it quickly becomes a pain having to pre-define the number of columns (especially since I ...
1
vote
1answer
3k views

Allow table to split across pages [duplicate]

Possible Duplicate: How can I make a table that takes up more than a single page? Is there a way to allow tabular environment to split across two pages? I build an environment which uses ...
20
votes
3answers
4k views

How do I create a Shidoku grid?

I can't figure out how to create a Shidoku grid using LaTeX. In other words, I am trying to have a 4x4 grid with a bold line separating the 2x2 subsquares. I have the sudoku package but it won't ...
2
votes
0answers
1k views

sidewaystable will not plot side ways [closed]

I am unable to get a sidewaystable to plot even with simple documents. I've copied this code directly and I can get it to plot as a normal table. It does not work when I change it to sideways. Does ...
11
votes
2answers
19k views

Stop table going off page

I'm aware that my table is too wide as it keeps going off the page on the right. Is there a way to fix this? I'm using lyx as I am a learner.
5
votes
3answers
1k views

siunitx: Alignment Problems with numbers in parenthesis

The example given below gives me a strange offset in 4th decimal place in the parenthesis. Interestingly, this problem arose only after I updated my Miktex 2.8 to Miktex 2.9. I don't know whats ...
0
votes
2answers
825 views

How to create a new command with variable numbers of arguments

I am creating one command to define a functional requirement and many non functional requeriment in a table. I wrote the following code: \newcounter{Number} \newcommand{\Item}{\stepcounter{Number}...
6
votes
2answers
8k views

How to set equal size of cells in tabular environment when \multicolumn extend the size of above cell?

The code example is shown as follows: \documentclass{article} \usepackage{latexsym} \usepackage{bm} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsmath} \begin{document} \begin{center} \...
2
votes
1answer
733 views

Formatting raggedright in booktabs. Why am I getting a \noalign error?

I have a \sidewaystable that is also a \threeparttable. I'm trying to produce it using booktabs. In the shape columns there are words with more than 8 letters that TeX keeps hyphenating. The column ...
22
votes
4answers
3k views

A table with square cells

A friend is trying to make some auto-generated bingo boards, and LaTeX seems like an obvious choice - nothing fancy, just a 5x5 table with square cells, centered text, and line wrapping if necessary. ...
4
votes
2answers
423 views

Cutting a table to fit the available space on a page

I have a long list of data, in a CSV file, formatted like this: tiger, 300, 10.0, 7, 4.0 lion, 200, 15.0, 5, 3.0 bear, 100, 15.0, 3, 1.0 fish, 10, 10.0, 2, 0.1 The first rows are more important ...
4
votes
3answers
3k views

Can't enter calculation in table

I'm kind of new to LaTeX and I want to put these 3 calculations in a table. But I'm getting errors \begin{tabular}{ l | c | r } \begin{math} \frac{9250}{7650} = 1,21 & \frac{10126}{7986} = ...
1
vote
1answer
1k views

Prevent empty line after tabular environment

I have a question related to Empty line after a tabular environment. I have a document using package lineno to enumerate lines. The rendered document enumerates a line exactly after any tabular ...
0
votes
1answer
242 views

Latex : spacing of Figures inserted as Tables

I have inserted 2 figures into my Latex document as a table, using a mini page, so that they are next to each other. When i turn it into a PDF document, the figures overlap. I would like to be able to ...
4
votes
2answers
1k views

How to use the equivalent of a vfill in a tabular environment?

I have a table with two columns and one row. The first one is long and determines the overall height of the table (if need be it can be fixed to \textheight). In the second column I have two images. I ...
2
votes
3answers
114 views

Newbie table formatting/numbering question

I'm trying to format a table like the following: 0.0a summarry b other summarry (long) .1a junk b more junk 1.0a etc b so forth Ie, with all the ...
2
votes
1answer
1k views

tabular tabularx automatic linebreak (p/m/b doesn't work as expected)

The following snipped should break at the end of the column \begin{table}[hb] \begin{tabular}{|l|p{.5\textwidth}|} \hline \bfseries Col 1 & \bfseries Col 2\\\hline \hline Line ...
3
votes
2answers
424 views

Centering content in cells adjacent to Sideways Headings

I have a table produced by the following code: \documentclass[a4paper]{article} \usepackage{tabularx} \usepackage{rotating} \begin{document} \begin{table}[ht] \begin{center} \begin{tabularx}{\...
127
votes
23answers
20k views

Comprehensive list of tools that simplify the generation of LaTeX tables

Manually hacking tables in LaTeX is one of the less funny things when preparing a document. Naturally, there are quite a few tools that promise to simplify this. In fact, I have somewhat lost track of ...
4
votes
2answers
992 views

Getting started with TeX - my first table (a nested table)

I am brand new to LaTeX, and I am trying to create a LaTeX string to create a report with a known format. I will be inserting my LaTeX string into an A4 page in a scribus document. Accoring to the ...
4
votes
1answer
2k views

What is the recommended font to use for a statistical table in an academic journal?

I am brand new to LaTex, and I am trying to create a report displaying statistical data, for an academic publication. The table is quite a large one, consisting of several nested columns, and is 23 ...
26
votes
2answers
31k views

Wrap text around a tabular

I would like to wrap some text around a tabular as the figure shows. Do I have to use minipage and fix the width of the table, and the width of the text on the left hand? Isn't there a simpler way?
5
votes
1answer
1k views

Split sentences in table

I have a table with two columns: a word and its description, which is a sentences. Now, when I create a pdf, the sentences run out of the page boundary. Is it possible to automatically split the ...
12
votes
2answers
9k views

Whole page table with tabularx

I am trying to make a full page table using tabularx. As far as I can understand, the second parameter specifies the entire size and the "X" columns self-stretch to fill it up. What I run into is a ...
3
votes
1answer
3k views

Esttab, overriding decimal alignment

This is a follow-up question to Estout and dcolumn: Overriding decimal alignment In my case, using esttab, it centers the number of observations but it adds some decimals, for instance: Obersvations ...
1
vote
1answer
566 views

How to make (nested) tabularx and multirow play nicely together?

I'm trying to make a layout with 3 independent columns. Following answers this question I have tried using tabularx and multirow to make it work. I seem to be nearly there: However I have two ...
4
votes
2answers
1k views

dcolumn won't align negative numbers and positive numbers

I am using R to analyze data and have used the xtable package within R to produce a TeX output for a correlation matrix. I have also implemented the dcolumn package within TeX so that I would be able ...
4
votes
0answers
209 views

Vertical positioning of content on page [closed]

I've got a document I'm going to generate from some input which basically is a tabularx for each page: \begin{tabularx}{\textwidth}{lXlll} \hline \\[3ex] \commandOne \\ \hline \\[3ex] \commandTwo \\ \...