{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
3answers
1k 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
786 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
232 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
109 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 ...
1
vote
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
358 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} ...
114
votes
24answers
16k 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
776 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
1k 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 ...
18
votes
2answers
18k 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 ...
11
votes
2answers
7k 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
2k 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
533 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
204 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 \\ ...
1
vote
1answer
271 views

How to improve table code?

I am trying to write a tex code that output a table like below: I wrote the following code: \newcounter{NumberReqF} \newcommand{\ReqF}{\stepcounter{NumberReqF}\theNumberReqF ~- } ...
2
votes
1answer
5k views

LaTeX Error: Illegal character in array arg using apsrtable in R

I am using sweave in R-Studio and am attempting to use the R package apsrtable. Both the model objects I am passing apsrtable are lm objects, and I get the error illegal character in array arg ...
3
votes
3answers
843 views

How to align p-values description in the notes of a table?

I am trying to format the p-values description in the notes of a table. The whole table layout is done with Stata (using command esttab) but changing the p-values format seems to be impossible. ...
5
votes
2answers
1k views

siunitx rounding in table with parentheses

I'm trying to create a standard regression table with standard errors in parentheses below the coefficients, while using siunitx to align the numbers on the decimal point, and to round the numbers. ...
4
votes
1answer
670 views

squeeze the text in table

I had gone thro this question and still in my case, i have the overlapping text in the table Here is my MWE \documentclass[a4paper,10pt]{book} \usepackage{pdflscape} % to change certain pages to ...
2
votes
2answers
1k views

Increase space between two tables in minipage and TikZ overlay

Sorry but this is the MWE I could post. I also attached the image. The top image is what I am getting and the bottom one is what I desire. I manage to create nodes but do not know how to connect them. ...
2
votes
1answer
426 views

LaTeX Table Fixed Header while scrolling

I was wondering if it's possible to construct a table in LaTeX which has a fixed header so when we scroll down the page of the output PDF, we can still read the column names and keep track of what the ...
8
votes
2answers
3k views

\lstinline!Foo! vs \lstinline{Foo}

I wonder what is the difference or correct usage of \lstinline!...! and \lstinline{...}? I like better {} because I feel there it's more consistent with other commands but for example in below ...
2
votes
2answers
828 views

threeparttable \midrule-sized space

I want to add some space between rows of my threeparttable. One way is to add \midrules, but that adds lines which are visually confusing. Is there a \midspace command? Side question: Is ...
3
votes
1answer
1k views

longtabu and floats: wrong table breaks on pages with floats

I noticed that the tabu package seems to have problems with its longtabu environment, if it is placed on a page, where a float already is placed. Consider the following MWE: ...
10
votes
2answers
17k views

itemize in a tabular environment

When compiling this: \begin{table*}[h] \begin{tabular}{|lll|} \hline \bfseries Name & \bfseries Opt 1 & \bfseries Opt 2 \\\hline \hline \bfseries Item 1 & X & ...
2
votes
1answer
6k views

Problem with position of table using sidewaystable environment

I am using the sidewaystable environment to rotate a table and its caption. My problem is that when compiling, there is a blank space at the bottom of the page and the table is moved to the top, ...
25
votes
5answers
4k views

Reading data from a relational database into a LaTeX table

I'm using Tex Live 2009 on Debian squeeze. I can upgrade if I really, really have to, but I'd rather not. i was wondering if it would be possible to do the following. Given some data in a ...
2
votes
2answers
948 views

excel2latex table: output out of page

I generated the following code for a table using excel2latex add-in. However in the PDF output the table is ugly and morely cut halfway and moves to the right. Please suggest a solution. % Table ...
1
vote
0answers
250 views

Vertical alignment for tables [duplicate]

Possible Duplicate: Set table position to top How to place a float at the top of a floats-only page? I've got this problem... I tried with the search but I couldn't figure out! I've got ...
2
votes
0answers
70 views

Enumerated List and Table [duplicate]

Possible Duplicate: Table with a numbered list How to I create an enumerated list with tables enbedded in each item: Item 1 Descriptipon Col1 Col2 Col3 Col1 Col2 ...
5
votes
1answer
310 views

Table with a numbered list

What is the best way to make a table/list that looks like this: 1. Item 1 subitem type date subitem type date 2. Item 2 subitem type date ...
2
votes
1answer
358 views

Table spanning multiple pages with another embedeed table that can span two pages

I have found out that longtabu inside longtabu is not possible but maybe another solution exists. I am autogenerating lots of latex code for documenting a certain binary communication protocol and I ...
5
votes
1answer
10k views

Reduce space before and after tabular environment

I have a document with many occurrences of \begin{tabular} ... \end{tabular} I have been unable to find a global command that will reduce the vertical space before and after this environment. ...
3
votes
2answers
2k views

Avoid pagebreak in landscape

I'm using the lscape package to landscape certain pages of the document. These pages basically are a section/subsection heading plus a table that must be landscaped. The problem is that entering ...
5
votes
2answers
321 views

Datatool, Two DB rows per table row, vertically ordered

So after searching for some hours I'm surprised that there wasn't any useful solution to find. I import a CSV table using datatool. That table only consists of 3 narrow columns, but I got a lot of ...
2
votes
2answers
333 views

Put a text on the left top corner of a tabular

I have several tabular as follows in my article. To save some space, I don't want Step 2 to occupy a whole line, maybe just putting it on the left top corner of the tabular is a good idea... Does ...
2
votes
1answer
2k views

sidewaystable misplaced in twocolumn document

I need to format an existing document to accord to the guidelines of a paper. The existing document contains a big table, contained in a sidewaystable environment: \begin{sidewaystable}[p] ...
3
votes
1answer
168 views

Misalignment of text in other cells when figure is placed in table (bounding box problem)

Here is my code: \documentclass[10pt]{article} \usepackage{amssymb} \usepackage{amsfonts} \usepackage{amsthm} \usepackage{amsmath} \usepackage{bigints} \usepackage[pdftex]{graphicx} ...
29
votes
1answer
44k views

Change align of a single cell in tabular [duplicate]

Possible Duplicate: Aligning inside tabular environment, specific cell I have a simple table with a given align. I want to know if there is a way to specify a different align for a cell. ...
21
votes
4answers
2k views

How to draw arrows from cell to cell at the borders of a table

How can I draw arrows from cell to cell at the borders of a table? More precisely I'd like to get something like this: It would be nice to have a solution using TikZ. Edit: Since I have other ...
9
votes
1answer
3k views

Using beamer \visible command inside a table, without adding vertical space

When using the beamer \visible command inside a tabular environment, beamer adds an extra vertical space before the text. For example, in the following code, beamer adds an empty line before the word ...
2
votes
0answers
497 views

Removing spaces between colored rows [closed]

I have a small tex document below, and I have tried various methods to remove the white spaces between rows, but haven't had any luck yet. Thanks! Here's the document: ...
5
votes
1answer
184 views

Problem with a conditional in a tabular

I want to use conditionals to fill a tabular, but it fails. My MWE: \documentclass{article} \usepackage{environ} \newcounter{mycounter} \NewEnviron{montab}{% \setcounter{mycounter}{0} ...
3
votes
1answer
719 views

How can I align Tables and Figures vertically with Subfig?

---------- TABLE ------------ | a | b | FIGURE 1 | c | d | | e | f | | ...
11
votes
1answer
9k views

Include table as a subfigure

Is it possible to include "table code" as a sub-figure (instead of an image) using the package subfig? If so, how?
2
votes
1answer
180 views

How to hide table# & Break cell text into two rows

I asked for a new table environment here. How to create new table environment. I took the solution provided by Yiannis I works great I have two questions - I do not know how to break the cell ...
0
votes
0answers
208 views

Using tabular to align pseudocode? [duplicate]

Possible Duplicate: Print programs with its proper syntax Line Breaks in Text Mode not Working I need to write some pseudocode. I tried using the algorithimic package, but it introduced ...