{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
1k views

Importing CSV table - Error [closed]

I am new to LaTeX and am compiling a document right now using TeXworks. I am trying to create CSV tables into my document right now, and although I succeed in between I must have some small bug in the ...
2
votes
2answers
3k 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
383 views

looping in tabular

I am curious to know why the following failed. A similar thread is on comp.text.tex unanswered. Of course, other manipulations of \whileexpr work, but why does this fail? \documentclass{article} ...
2
votes
3answers
766 views

How to get rid of these excessive rules?

\documentclass{article}%cannot be minimal \usepackage{longtable} \usepackage{ifthen, xspace} \newcounter{xyz} \setcounter{xyz}{1} \def\and{&\xspace} \begin{document} ...
1
vote
1answer
48 views

How to get alignment finally “right” with tabularx and an image?

Two things I'm struggling with in the following MWE: "looooooooooonger text" doesn't fit: don't want the middle and right column to be equally spaced: the maple may move over a little to the right ...
1
vote
1answer
154 views

How to create a large table with Pgfplots and string entries?

I tried to hack this here for a larger case but it is firing errors. What is causing the too many columns error and is Pgfplots ideal for this kind of table generation? Goal: table that I am trying ...
1
vote
1answer
374 views

How to eliminate vertical space before and after verse environment?

I'm using the verse package to typeset poems inside a tabular environment. Is it possible to eliminate the space before and after the verse package? \usepackage{verse} ... \begin{tabular}{p{30mm} | ...
1
vote
2answers
933 views

How to use \hlines and | column separators in a csv table uploaded with datatool

Hi I've been trying to use the datatool package to get data from csv files easily into documents as formatted tables. I seem to keep getting the lines on the first column shifted down by a row. If I ...
1
vote
1answer
147 views

Can images and tables be always placed immediately after the paragraph they are first mentioned, even if white-space needed to move to another page?

I would like to ensure that when I mention a table/figure in the text, the figure/table will appear after that paragraph ends. Even if this means leaving the rest of the page blank and putting the ...
1
vote
3answers
2k views

Center-align text in columns in tabular environment in multicol environment

I need the text in the second two columns to be center-aligned. I also need someone to please help me clean up this table. It looks ugly. Notice it is inside a multicolumn (2-column) environment, ...
0
votes
1answer
103 views

Automatic three digit grouping

I have huge numbers in tables (some of them are grouped in three digit groups but some are not). I need to make a small space (or comma) between groups of three digits. I have used two packages, ...
0
votes
1answer
90 views

Long table centres the table

I have a table like this \begin{tabularx}{\linewidth}{lX} Cap & The underlying is a an interest rate cap\\ Floor & The underlying is an interest rate floor\\ Swap & The ...
0
votes
1answer
175 views

How to fit a table of figures with various sizes into a page

I'm trying to fit four figures with various sizes into a table on one page. I started with the following code, but couldn't figure out how to get it work. How can I achieve that? begin{figure} ...
0
votes
1answer
893 views

How to mark/round an element of a table/tabular?

I´m creating a table for simplex, and I want to create a circle around a number in a table. How can I make this in LaTeX? I use PSTricks, but I prefer don´t create an image and a table/tabular ...
0
votes
0answers
65 views

Multiple 'List of Tables' entry for single threeparttablex type table that spans multiple pages [duplicate]

Possible Duplicate: How to use a longtable with only one entry in the list of tables I have a single table that spans three pages using threeparttablex/longtable. The table: ...
16
votes
3answers
4k views

How to wrap text in table cell?

this code: %%%%%%%%%%%%%%%%%%Table: Valence x valence crosstab \begin{table*}[t] \centering \begin{tabular}{c c c c c c c} \toprule \midrule ...
14
votes
2answers
9k 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 ...
13
votes
2answers
23k views

Misplaced \noalign

Unfortunately I cannot solve the error with noalign on my own: ! Misplaced \noalign. \hline ->\noalign {\ifnum 0=`}\fi \hrule \@height \arrayrulewidth \futurelet... l.12 ... ...
13
votes
2answers
257 views

Writing descriptions of columns of table

How do you do table like this? I don't need coloured background and blue borders. This is what I have. Looks terrible. And doesn't even fit on page. \documentclass{article} \usepackage{polski} ...
11
votes
2answers
214 views

Is there such thing as “p{height}”

I am making a table right now and it's really annoying that items in my cell are getting crunched \begin{center} \begin{tabular}{|c| c | c|} Critical Points $P_0$ & $f(P_0)$ & Conclusion \\ ...
9
votes
3answers
205 views

Code review: Tables on a page

In a document I am working on, I am trying to group four tables on a single page. However, it seems I still have not one, but multiple issues with my understanding of how tables work... I tried to ...
9
votes
4answers
343 views

Center table by end of cell

I want to be able to center my table, but align the center by the end of the first cell. Currently just using the \begin{center} command i am able to center the table but i would rather the table be ...
9
votes
1answer
640 views

Lost float in exam class

For some reason, I can't seem to put a figure or a table environment inside a solution environment while using the exam class. It produces a float is lost error. Has anyone found a way to bypass this ...
9
votes
4answers
2k views

Caption and footnote width with ctable

I am using ctable and I have a table with footnotes. Since the table is narrow, the caption text is squeezed in the table width, which looks odd. I can use mincapwidth to specify a minimum width for ...
8
votes
2answers
1k views

Difference between tabular and array environment

What is the difference between a tabular and an array environment? When should be used the former and when the latter?
8
votes
2answers
639 views

Tabular paragraph vertical alignment

How to make this kind of tabbed paragraph: 3 columns 2cm 10cm 2cm, the last column is right aligned and it's content starts on the last line of the paragraph of the second column. 10. Some text ...
8
votes
1answer
543 views

bracket covering only a part of a matrix

How can I write a matrix, with brackets that cover only rows/columns in a certain range, but still has the right indentation? What I would like: My current solution: \[ \overset{ ...
8
votes
1answer
1k views

How to wrap text around a landscape table over multiple pages? \sidewaystable or \landscape + \longtable

I am trying to create a landscape table that breaks over multiple pages. I have successfully done this with the following: \begin{landscape} \begin{longtabu} to \textwidth{some columns} \caption[my ...
8
votes
1answer
780 views

siunitx number too big when trying to round

Using the siunitx package \usepackage{siunitx} I am trying to put numbers with plenty of decimal digits in a table while rounding them to 3 digits after the decimal point. There is a compilation ...
8
votes
3answers
13k views

How to write vertically in a cell

I know that with \begin{sideways} ... \end{sideways} I can write a text vertically, but it rotates the text by +90 degrees. What should I do to rotate it by -90 degrees?
8
votes
2answers
916 views

Four Language Parallel Column Book

I am trying to format a four column parallel text in four different languages to display on two pages with two columns per page. I have tried using ledpar and parallels but I cannot get it to work. ...
8
votes
1answer
415 views

Can I set the format of an entire column except for the header?

I would like to italicize all of the names in the second column of a table, but presently the only way I have found to do this is to use \textit{} in each cell, i.e.: \begin{table} ...
8
votes
1answer
3k views

How can I prevent hyphenation in a table column?

I have a table (tabular) with some fixed width columns, and I'd like to prevent a hyphen being inserted (preferring a line break to be inserted prematurely). The sample table's content is below. ...
7
votes
4answers
310 views

How to color a cell of a table using multirow and center the cell content?

I have checked for other similar questions. I followed the suggested solution in the question Color in multirows. After implementing this solution, I still have a problem. I want to develop the ...
7
votes
3answers
216 views

Three tables side by side

I have three tables and I need that the three tables stays side by side. I tried with this approach but the tables are overlapping each other. \begin{table}[!htb]\tiny ...
7
votes
2answers
238 views

Rectangles around words in table including diagonals

I'm trying to make a map of word correlations that will include a table of words with similar groupings marked by surrounding them with a rectangle with rounded corners. This needs to also be possible ...
7
votes
1answer
120 views

Import a table with a specified format

Basically, I have a table (from a file) containing only numeric values. I would like to import in latex but it has to be formatted in a specific way, as illustrated by the picture. The ... should be ...
7
votes
2answers
178 views

Allow [ characters in tables without entering math-mode (from R)

I have R code that produces latex code like: \begin{tabular}{D{.}{.}{7}D{.}{.}{7}} \toprule \multicolumn{1}{c}{x} & \multicolumn{1}{c}{y} \\ \midrule [1, 5) & 1 \\ [1, 5) & 2 \\ [5, 8) ...
7
votes
2answers
1k views

How thick a rule does \hline produce?

How thick a rule does \hline produce (in a bog-standard tabular environment) ?
7
votes
2answers
130 views

Braces on either side of a list

I want to create this: The following code does this, but produces a number of overfull hbox and vbox statements in the log -- how can I get rid of those? On the other hand, if there is a better ...
7
votes
1answer
467 views

How to define a table column to always be a math equation, while others are text?

I'd like to typeset a table listing some equations, something like Euler's formula & e^{i\phi} &= \cos\phi + i\sin\phi Euler's identity & 1 + e^{i\pi} &= 0 Putting this in a ...
7
votes
1answer
449 views

General question on floating and non-floating objects in LaTeX

I am wondering when you place a non-floating object such as a minipage into a floating environment such as a table or figure if this construction as a whole is then a floating or a non-floating ...
7
votes
1answer
7k views

“! Misplaced \omit” error

The code below describes a table that goes like: |_|x x|x x| |x|x|x|x|x| |x|x|x|x|x| where |_| = empty cell, |x x| = multicolumn{2}, |x| = cell with text in it. \begin{tabular}{c|c|c|c|c|} ...
7
votes
2answers
1k views

Putting an arrow next to table

I have a table. Each row in that table represents data at a certain point of time. Lower rows represent data for later times. To illustrate this, I'd like to draw an arrow at the side (which doesn't ...
7
votes
2answers
2k views

Multicolumn verbatim

Is there someone who could help me with creating a table with some rows merged and verbatim text in it? I actually want to create 3x2 table. Like this \begin{tabular}{rr} \hline ...
7
votes
3answers
3k views

How to make a table with centered images?

On page 6 in this PDF is there a table with centred pictures in the right column. Does anyone know how to make such a table? I am using pdflatex.
7
votes
1answer
1k views

tabular and array

Consider the following example: \documentclass{article} \usepackage{array} \usepackage{calc} \begin{document} \begin{tabular}{p{\textwidth - 3cm}|p{1cm}<{foo}} Caption1 & Caption2\\ ...
7
votes
3answers
1k views

tree list in a table

I would like to put a tree list into a table environment. Smth. like: +--------------------------+---------------------------+-------------+ | Heading 1 | Heading 2 | ...
6
votes
1answer
202 views

Create table with automatic row numbering

I am trying to create a table with subheading and automatic row numbers. The original table looks like this: The latex to generate the table is as follows: \documentclass{article} ...
6
votes
1answer
242 views

Is there a dummy package like Lipsum or Blindtext for Tables and Figures?

Lipsum and Blindtext offer paragraphs, lists, and even whole documents of dummy content for testing LaTeX layouts. Is there a package that will generate tables and figures in a similar way?