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

3
votes
1answer
304 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 ...
3
votes
1answer
295 views

Column format datatool

all. Suppose I have a csv file (let's call it data.csv): Solution,mol/L,Volume(mL),delta_v(mL),moles HNO3,16,5,0.2,3.125E-4 NaOH,6,20.2,0.2,3.367E-3 H2O,1;200,5,2.000E-1 H2SO4,6,5.2;0.2,8.667E-4 ...
3
votes
2answers
113 views

Many multirows in table

I am trying to achive something like this Name | Age | Sex | AverageGrade | Subject | Grade | --------------------------------------------------------- | | | |Maths ...
13
votes
3answers
1k views

Copy table row n times

I would like to copy the row of a table, let say, n times, but unfortunately my sample below does not compile. It is my understanding that the \foreach command should copy what is in its argument but ...
15
votes
1answer
2k views

coloring every other row of a table, with vertical lines

I am making a table that needs every other row colored. I thought to use this. \usepackage[table,svgnames]{xcolor} \rowcolors{1}{white}{gray!15} But my table has vertical bars ...
2
votes
1answer
601 views

Centering does not appear to work in table

Hi I just can't get the text in row 3 to centre. Array package is loaded. Any help greatly appreciated. \centering \begin{tabular}{|c|m{5cm}|} \hline STATE & EVENT \\ \hline The vase was ...
2
votes
1answer
95 views

Placing a .pdf file in the center with \multirow

The following is my code \begin{sidewaysfigure} \centering \scalebox{0.9}{\begin{tabular}{c|c|cc} \emph{}&\emph{a}&\emph{b}&\emph{c}\\ \hline \rotatebox{90}{text}&\multirow{2}{*}{ ...
1
vote
0answers
43 views

How can I set the cell margins in a table? [duplicate]

Possible Duplicate: Column padding in tables How can I set (modify the default values) the internal, i.e., top/bottom/left/right, cell margins in a table?
5
votes
1answer
7k views

Latex error: \begin{document} ended by \end{table}

I'm getting the following error from my Latex code: \begin{document} ended by \end{table} But the error is not what the message says, because the begin{document} is ended by \end{document}. The ...
6
votes
1answer
230 views

huge table + footnote-ish thing

I have a book, which is basically a 100-page table. I use xtab package to layout this book. The book has a list of 100-ish definitions, which are referenced multiple times in the table. Think of a ...
8
votes
2answers
4k 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 ...
1
vote
2answers
345 views

Tables environment

I have a question about breaking lines and pages in table environment. I know, there are some solutions as using longtable package, however, it is quite complicated and I don't know how to work with ...
3
votes
1answer
3k views

Making scientific table with AASTex package - is there a better option?

I really like the formatting of tables offered by the AASTex package. AASTex Generator But it is not quite what I need in terms of flexibility. Here is some code for a table I am making. I don't ...
3
votes
1answer
694 views

Long table in landscape mode with alternating row colors does not work with \multicolumn

I am trying to put together a longtable in landscape mode over several pages using the longtable package. The idea is simple. I want alternating row colors in the main body of the table. However, ...
4
votes
1answer
820 views

Context: Vertical-Align Image in Table Cell

I'd like to vertically center the alignment of an image in a table cell. The Text is (like usual) vertically centered, but the images continue to stick to the top of the cell. \starttable[|l|l|] ...
3
votes
1answer
384 views

Subequations inside a table

I am trying to insert a subequation system inside a table. This is the idea of what I want: \begin{table*}[tb] \centering \caption{Device Modelling Specifications.} \label{tab:deviceModelling} ...
17
votes
1answer
1k views

Retrieve the color definition in HTML

I need to build a table of this type: STUFF | COLOR | PICTURE | COLOR DEFINITION To retrieve the color definition, I tried to use \extractcolorspecs expecting that the third argument { color-cmd ...
2
votes
1answer
247 views

How to use alternate table coloring with wrapping column?

I am working on table in which the last column is wrapped with a command \Addbreakable. I need to color alternate rows as well. But I can do either \Addbrekable or coloring alternate rows. Note: ...
8
votes
2answers
567 views

How to wrap text in a table when there are no spaces at which to break the line?

I have a lot of text in table. I want to wrap it with in 2cm. In the last column, I have [1][2][3].....[89][100] but the column width is only 2 cm. It is supposed be wrapped by itself. How can I ...
6
votes
1answer
959 views

endfloat and ctable are incompatible?

It seems that endfloat and ctable are incompatible: \documentclass[a4paper]{article} \usepackage{endfloat} \usepackage{ctable} \begin{document} \ctable[caption = Queries available, pos = H, center, ...
10
votes
3answers
638 views

Control order of columns in table

Is there maybe a way to define the order of columns oneself? Say I have \begin{tabular}{ l l l } A1 & C1 & B1 \\ A2 & C2 & B2 \\ A3 & C3 & B3 \\ \end{tabular} but ...
1
vote
1answer
420 views

Use of \hiderowcolors & \showrowcolors within LyX

Loading the xcolor package with the [table] option provides the command(s) \rowcolors(*) for alternate table row coloring. Any attempt, however, to use \hiderowcolors and \showrowcolors inside table ...
10
votes
1answer
710 views

How can I anchor TikZ matrix cell contents to 'baseline' without shifting cell location?

The cells in my tables often contain expressions with superscripts. This results in a text baseline that appears to "wander" between adjacent cells. For example \begin{tikzpicture}[every ...
6
votes
2answers
12k views

How to set table size to \linewidth without using a package such as tabularx?

PLOS journals provide the following instructions for preparing a LaTeX manuscript: Do NOT use any other packages than those specified in the template. If you use any other packages, your ...
8
votes
1answer
539 views

Subdividing a column in a tabular

I recently had to make a table that came out more or less like this: \begin{tabular}{|l|l|l|} \hline Head 1 & Head 2\\ \hline 1 & \multicolumn{2}{|c|}{A}\\ \hline 2 & ...
2
votes
1answer
508 views

How to remove vertical-line gap on right side of tables when adding space between header and content?

I use the supertabular environment to create a table containing images. I defined that the header should be separated from the content by a single line. Because the first image in table is on the line ...
1
vote
1answer
137 views

Table wrapper breaks when using svn-multi and booktabs

I have a bizarre problem with a customised table wrapper in conjunction with booktabs and svn-multi. The MWE below illustrates the issue. The wrapper myTable works fine if: either booktabs is not ...
4
votes
2answers
280 views

pdfpages doesn't allow me to draw a thick horizontal line in “tabular”

I have the following code: \documentclass{article} \usepackage{amssymb} \usepackage{caption,sansmath} \usepackage{array} \DeclareCaptionFont{sansmath}{\sansmath} \captionsetup{textfont={sf,sansmath}} ...
1
vote
0answers
36 views

Table generating error [duplicate]

Possible Duplicate: 19 simple tables giving “TeX capacity exceeded” / “Too many unprocessed floats”? TexStudio 2.3 Miktex2.9 Hi everybody I am kind if new to LaTeX. ...
4
votes
1answer
367 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 & ...
4
votes
2answers
203 views

how to redefine the `\\` in a tabular environment?

I want to redefine the tabular environment, such that each for example \begin{tabular}{c|c} AAA&BBB\\ CCC&DDD\\ \end{tabular} would produce (for example) AAA,BBB;CCC,DDD; Question 1 In ...
6
votes
1answer
868 views

How do I right-align the last line of a justified paragraph?

I want to wrap around text in a table cell; therefore I use the p option in the definition of tabular. However, I'm writing in Hebrew, so it aligns the last line to the left, instead of to the right. ...
8
votes
1answer
869 views

Arrows between two tables

I'd like to connect two cells from different tables using arrows. How can this be achieved?
3
votes
1answer
298 views

Center align 2 column tables between columns

I currently have a table which has 2 columns: the left one is right-justified and the right one is left-justified. I'd like to center the table relative to between the two columns: that is, have the ...
11
votes
2answers
463 views

Centering tabular: Why does this work?

About a month ago, someone asked how to align a tabular environment around the intercolumn space, which was something I'd been trying to figure out for a brief eternity. Werner's answer worked more ...
8
votes
1answer
8k views

Tabular: Underfull \hbox (badness 10000) in paragraph at lines

I read all the questions regarding the error message Underfull \hbox (badness 10000) in paragraph at lines but I am still not sure if my code is correct. The problem is with the tabular of a table. ...
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 ...
15
votes
2answers
12k views

Evenly distributing column widths

Consider the following hunk of code: \begin{tabular}{| c | c | c | c | c | c | c | } \cline{2-7} \multicolumn{1}{c}{} & \multicolumn{3}{|c|}{Fantastical aardvarks} & ...
5
votes
1answer
119 views

Safeguard an environment against tabular mode

The semantics of a given environment require that it is typeset inside a minipage if it is used inside a tabular. If I add the minipage declaration for a positive check for "internal" mode in the ...
6
votes
1answer
621 views

How to arrange table rows in multiline like rowspan but with same color?

I am working on LaTeX and R. My result in table are in one line (comma seprated) and i want them to be in multiline but within same row (like rowspan). I tried to use newline but that does not ...
5
votes
1answer
196 views

A bit larger spread between rows of a 2x2 table

The following is my expression: \begin{equation} \left[ \begin{tabular}{c|c} $y$ & $a_{bc}$ \\ \hline $a_{ab}^T$ & $y$ \end{tabular} \right]. \end{equation} Note ...
2
votes
2answers
129 views

Table layout problem

I have a problem with a table. Since I am a day zero newbie in latex, please bare with me. This is what I did: \begin{table}[h] \begin{tabular}{|l|p{0.5\textwidth}|} \hline ...
1
vote
1answer
1k views

Strange indent using tabular in titlingpage

I need to create a simple problem description page for my thesis. This will also be the title page of the document. I'm using the memoir class. I tried to use the tabular environment to align some ...
4
votes
2answers
611 views

Alignment troubles with tabular, pgfuseimage and multirows

I'm stuck with some alignment problems in tabular: and in draft mode: The point is that the bottom left one should take the whole space without overflooding the bottom (so to speak) The original ...
4
votes
2answers
162 views

Insert text line in array

I am looking for a (clean) way to keep text aligned in a situation like the following: thesis under the direction of: [tab] Title [&] Name [&] University with the supervision of: ...
5
votes
1answer
1k views

siunitx: How to get bold, aligned entries and how to align when units differ in length?

I tried my first steps with siunitx, but I have trouble achieving the following in the minimal example below: 1) aligning the entries in the first column with respect to the decimal dot 2) getting a ...
9
votes
3answers
814 views

Multicolumn 3 out of 6 doesn't work

I'm trying to make a multicolumn in a 7 columns tabular. \documentclass{article} \begin{document} \begin{tabular}{|l|l|l|l|l|l|l|} \hline & \multicolumn{6}{c|}{Parameters}\\ \hline We don't care ...
14
votes
1answer
14k views

Change caption font size

I want to change the font size of a single rotated table caption (definitely not all the captions in all my tables/figures) Right now I can wrap the text inside the \caption around a \scriptsize{} ...
3
votes
2answers
696 views

Wrap text in tables in rubber columns

I can use p{}, m{} or r{} but I shall pass a fixed size. Is there a way to do it with rubber columns?
1
vote
2answers
2k views

Align table caption with left border of longtable

Subj. I cannot use singlelinecheck=off because it aligns it to the left border of the page. And why table is too narrow? \documentclass[12pt,a4paper,oneside]{article} ...