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

32
votes
1answer
46k 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 ...
10
votes
1answer
4k 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
512 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
189 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
733 views

How can I align Tables and Figures vertically with Subfig?

---------- TABLE ------------ | a | b | FIGURE 1 | c | d | | e | f | | ...
12
votes
1answer
10k 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
182 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
218 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 ...
4
votes
1answer
403 views

How do I add a \vector to a table?

I am trying to make a table that shows how an element moves from location in the table to another. I would like to add a vector that starts at the first element and goes to the second element. How do ...
1
vote
1answer
770 views

Why is the text in these table column cells not centered?

I have the following table in my document, and it seems to be OK except that the topmost columns' text is not centered. I can't figure out why not. I could manually adjust the multicolumn m sizes to ...
2
votes
2answers
316 views

How to center multiple tabular entries in different centered environments?

I am about to pull my hair out. I was wondering if anyone could give me some tips or guide me to the proper way to correctly format my centered tabular entries. I just want the my centered tabular ...
1
vote
1answer
2k views

Two landscape tables in columns

I am trying to include two landscape tables on one page, with the first one being in the left column and the other placed in the right one. I have tried several solutions including the minipage ...
7
votes
2answers
4k views

Make each column of a table have same width

I have a table as follows: &$\begin{array}{c|cc|cc} & x & \multicolumn{1}{c}{y} & i & 0 \\ \hline x & 0 & \multicolumn{1}{c}{} & -49 & \\ y & ...
4
votes
1answer
874 views

How do I center table headings and stretch the table to full column width?

I have the following code for creating a table in the multicols enviroment. I'd like to center the column headings and make it so that the table automatically takes up the entire column from edge to ...
3
votes
1answer
388 views

How to create groups of table rows with alternating colors?

Problem. When coloring a table, using different colors for even / odd rows is quite usual and can be accomplished with the xcolor package. I, however, don't want to have alternating colors per row, ...
2
votes
1answer
305 views

How to create a document wide table style for border [duplicate]

Possible Duplicate: How to separate table content and table style is it possible to create a document wide table setting for how table border are applied for each table? I want to have the ...
4
votes
4answers
995 views

tabular side-by-side

I am trying to get two tabular constructs side-by-side with a tikz figure in between and can't seem to get what I want using the minipage construct. Here is the code I have ...
3
votes
2answers
2k views

Centering caption under a table

I have the following table in my document: \begin{table} \begin{center} \begin{tabular}{|l|c|c|}\hline defaults&5976&2258\\ \hline \end{tabular} \caption{Results} \label{t2} \end{center} ...
1
vote
2answers
812 views

tabular extend beyond a page

I have a large dataset to show in tabular format. The problem is that it doesn't page break into more pages. And the excess is not being displayed. This is how i used the tabular tag ...
4
votes
1answer
439 views

Workflow for creating/updating tables?

I primarily a Word user, but use LaTeX now and then. One thing I don't like working with in LaTeX is tables. My data might come from Excel (usually), Word, or the output of some custom program. If my ...
9
votes
2answers
885 views

Why do I need a '\vspace{0pt}` to align a table and a figure along the bottom line when using '\vbox' and '\hbox'?

Recently, I fiddled with placing a table and a figure next to each other such that their bottom parts aligned with each other. I managed to do by using \vbox and \hbox, but there is one thing that ...
15
votes
2answers
3k views

How to create new table environment

I am working on a book that has many many such tables. Is there a way to create shortcut for the code shown below. I want to make table caption a variable, because in the MWE shown below except ...
4
votes
1answer
246 views

Measure and retain lengths between tabular rows

I need elements in a tabular environment to set some lengths and be able to access these lengths in another row of this same table. But it appears that adding \global in front of \settoheight and ...
28
votes
2answers
27k views

Vertically center cells of a table?

What is the easiest way to center align each row of table? I have a table column that contains an image and other cells in the same row contain text. I would like to know how to vertically center ...
3
votes
1answer
609 views

Left align sidewaystable

Is it possible to left align a sidewaytable to make use of the extra space at the left of it? Similar to the \LTleft\fill in longtable? I have not found a way to do this yet.
24
votes
9answers
1k views

Which text editor to make tables scripts human readable

Suppose I want to edit a table moon & 456456456423423534 & 2342523 sun & 234324 & 3453 You see I have to enter a lot of spaces manually to align stuff. It is ok ...
1
vote
1answer
521 views

What goes wrong with combining multicolumn and tabular

When I try the following code I get some errors about misplaced \noalign, however I almost entirely copied the code from the wikipage. What is going wrong? \begin{table}[hbt] \centering ...
2
votes
1answer
316 views

Custom environment to accept \item

How can I create an environment that takes items in a way similar to lists? Example: \begin{myEnv} \item{AAA}{BBB} \item{CCC}{DDD} \end{myEnv} I'd like the above do something like ...
5
votes
1answer
10k views

Reduce vertical space between text and table and remove table indentation

I want to reduce the vertical space between the first line text and the start of the table. I also want to remove the indent on the table, so that all three lines start at exactly the same vertical ...
0
votes
0answers
49 views

How to split text from one cell on several pages? [duplicate]

Possible Duplicate: How to create a table that spans over multiple pages, breaking single rows I have a longtable. One of cells has a very long list which which doesn't fit on one page. As ...
6
votes
1answer
3k views

Inserting table and figure vertically in a full page

I have a table with large number of columns and few rows. I need to insert this table vertically in one single page. How to do. I need to do the same with a figure also, wherein I need to insert a ...
13
votes
2answers
5k views

Balancing long table inside multicol in LaTeX

I would like to put some longer tabular data inside the multicols environment while maintaining its balancing abilities. I have tried supertabular with the trick to redefine \newpage as columnbreak. ...
1
vote
2answers
1k views

Setting tabular width

I'm using a tabular within multicols and would like to make a table extend its second column right to the edge of the column within multicols, so the column is pushed over but the text is still left ...
6
votes
2answers
246 views

Vertical numbering with multienumerate environment

I'm trying to get the numbering in the multienumerate environment to go vertically instead of horizontally. So, \documentclass{article} \usepackage{multienum} \begin{document} ...
5
votes
3answers
596 views

Setting the position of an element using Tikz

Recently I've asked a question about "Inserting an image properly in a table", and I got nice answers. I decided to adopt the accepted one but now I have another problem. I thought it was a minor ...
9
votes
3answers
330 views

Inserting an image properly in a table

I'd like to insert those lines that from "Foo" point to the four different rows in the table. I've tries inserting an image but it doesn't come out right (please ignore the bad quality of the ...
4
votes
2answers
280 views

How do I stop tables from messing with alignment?

I'm new to TeX and I'm having a hard time understanding how paragraphs, alignment, indentation, and all that works. Some text here. \begin{tabular}{ l l } a & b \\ c & d \\ \end{tabular} ...
1
vote
3answers
576 views

How can I create a table where one cell spans several rows and all the text is justified?

I'm trying to create a table where the first column spans 3 rows and the text will wrap several times. The second and third columns will each have 3 rows in them. The cells in the second column will ...
10
votes
1answer
245 views

Table-aligned, randomized, repeatingly smaller icons for eyesight-chart

My daughter needs to train her eyesight in accordance to the LEA eyesight chart tests. I have manually created a new chart for her, but it really takes a long time randomzing the four icons and ...
4
votes
2answers
571 views

Vertical alignment of tables when using numbered list in LyX

I have a table on my numbered lists but the number is appearing in the middle, I want it to be at the top like normal. This is what it looks like when using tables. (Screenshot below) I've attached a ...
7
votes
2answers
253 views

Why does 65* become 65∗ when using dcolumn package to align digits?

I am using dcolumn package to align some numbers after the decimal point. However, some of this numbers have "*** signs" in order to relate them to additional information at the end of the table. ...
3
votes
1answer
508 views

PgfplotsTable: How to merge cell contents of two tables to one table?

I have two tables (sorry, inline tables are not working with pgfplotstable 2011/12/19 on my system, even with the option format=inline): Data table (data.csv): X,A,B U,1.1,1.2 V,2.1,2.2 ...
11
votes
2answers
2k views

Justify Table by Row

For example, is it possible to justify the first row of a table differently from the rest? Maybe there is a way to combine two tables to look like one? MWE: \documentclass{article} \begin{document} ...
4
votes
1answer
3k views

Chngcntr: \counterwithout not working

I need to place the tables section after my appendix. I've used \counterwithin{table}{section} to number appendix tables A.1, A.2, etc. Then I use \counterwithout{table}{section} so that the tables ...
6
votes
1answer
1k views

Adjusting S column in siunitx

I am a beginner in LaTeX, trying to use it for an industrial test report. I have numerous tables in my document, and I have recently discovered the capabilities of siunitx. I would like to use S ...
6
votes
3answers
439 views

Table growing with content and automated line break

I would like to have a tabular or something similar with one cell and the following behavior: The cell grows vertically and horizontally to fit the content of the cell but no more than \linewidth ...
3
votes
3answers
372 views

Best way to print key-value pairs: table, array or matrix?

I have a series of values that need to be printed row-wise in multiple columns. (These values, held as \def variables, are generated programatically and some of them can be empty strings.) The ...
13
votes
1answer
966 views

Adding a Caption to a Non-float Environment

I am attempting to add a caption to a non-float environment. The following is a MWE of how I'm trying to do it: \documentclass{article} \usepackage{caption} \begin{document} \begin{tabular}{l|l} ...
5
votes
1answer
514 views

Centering a Table

I have a tabular environment nested within a table environment which I'd like to place horizontally centered. What's the best way to achieve this? If the right thing to do is use the \centering ...