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

1
vote
1answer
1k views

Big Table with line and pagebreaks

For a technical documentation (two columns: function name left, description right) I need a way for automatic line and page breaks in a table environment in case the descriptions get a bit longer. I ...
2
votes
1answer
1k views

How to reduce distance between two columns?

I have 5 columns in my table. So I want to reduce distance between two columns to make it look good. In the following figure, I want to reduce distance between column 1 and 2. I tried ...
3
votes
1answer
69 views

Enumeration marker appears centered to the left of the table

\item \begin{tabular}{ |l| l| l| } ... \end{tabular} \quad \begin{tabular}{ |l| l| l| } ... \end{tabular} The following causes the enumeration marker (ie, "(b)"), to appear in the ...
2
votes
1answer
146 views

Issues centering table headers [duplicate]

I already asked how to best align header rows in a table especially in a tabu environment. Align (center) header row in table The two identical solutions worked great for one table but I am having ...
4
votes
2answers
211 views

I can't use & tabs in the `align` environment while using it inside a custom environment

I've got a custom environment made for problem sets, and it uses a tabular to align the question number and question body. When I try to use & to group parts of an equation together - like if I ...
3
votes
2answers
139 views

vertical alignment in a row

I have a one-row table with a number of columns. Each cell in this row is another table, which can be either 2x1 or 3x1. I want to make sure that all these sub-tables are aligned to the top of the ...
2
votes
1answer
410 views

How to vertically center text in a table cell with multiple lines?

I want to vertically center "Apple iPad". Does someone here knows how to do that? My code looks like this: \begin{table}[H] \noindent \centering{} \begin{tabular}{cc} \hline ...
6
votes
2answers
191 views

How can I get a very wide table to wrap all three rows within the margins?

I have a series of tables that are going to be very (very!) wide, but with only 3 rows. Is there any way I can get the tables to wrap within my margins, without having to break the rows within the ...
0
votes
1answer
73 views

how can I predefine the color of multicolumns?

I'm trying to use multicolum. In my table all the columns have a predefined color which will be overwritten by multicolum. So my question is how can I define own or some more custom multicolumn ...
4
votes
1answer
5k views

How to get column alignment in tabularx? [duplicate]

When I put X in column specifier, how can I define column formatting? How can I get center alignment? Currently I am putting \centering, but that is not a proper solution. This is my code: ...
3
votes
2answers
1k views

Align (center) header row in table

I use @{\hskip 50pt} to separate columns in my table. The problem which arises is that I add this extra space after a multicolumn. This also moves the header row so that it is no longer centred. Is ...
1
vote
2answers
656 views

\usepackage{parskip} and \tabular

As I had issue with line breaks, How should I do manual line breaks?, I used \usepackage{parskip}. This worked fine. But, when I have a tabular environment, there is a lot of vertical spacing before ...
1
vote
1answer
1k views

how to split the table heading in booktabs?

how to split the column headings? How do I get newline after some word? When I put \\, it changes the alignment badly. This is my code: \documentclass{article} \usepackage{pgfplots} ...
1
vote
2answers
1k views

Table inside a fcolorbox

Here is what I am trying to do: I am trying to create an environment similar to a colored textboxin MS Word and enter text, table, and formulas inside the box. Right now, this is what I do: ...
1
vote
1answer
467 views

Is it possible to put a long table (longtabu) into a adjust box (adjustbox)?

I am wondering as the title says whether it is possible to put a long table, especially for me a longtabu into a adjustbox? My code throws an error but I guess this is the same issue as is with ...
4
votes
1answer
3k views

Generate a table with braces and tables

I'm trying to get a LaTeX table to look like the below. Any tips on how to implement the brackets? I currently just know how to do basic tables, which would be a 11x10 table in this case. Any way ...
4
votes
1answer
3k views

Vertically center a table on a landscape page

I have a landscape page with one table on it. My current code horizontally centers the table, but how can I also vertically center it? \documentclass[10pt,a4paper]{report} ...
3
votes
1answer
5k views

Long table (longtabu) and font style issues

I use the longtabu environment for my tables to span it across several pages. This works great, however, I always change the font size and type as you will see in my example. This worked also very ...
5
votes
1answer
2k views

Change font color of multiple rows in a table

I found the following post to change the font color of a single row in a table: How to color the font of a single row in a table? My row is a long table with 70 rows and for about 25 the I want to ...
0
votes
1answer
48 views

Placing the rows in tables

I have code for creating a table but I came up with a problem: \documentclass[11pt, a4paper, twoside]{Thesis} % Paper size, default font size and one-sided paper \graphicspath{{./Pictures/}} % ...
3
votes
1answer
147 views

coloring text in a dcolumn aligned cell of a table

I need to color some text red (not color the cell background) in cell in a table to highlight it. The numbers in the column are aligned on the decimal using the dcolumn package. The problem is that ...
11
votes
1answer
1k views

How to wrap the 90 degrees rotated text in a table cell

in Microsoft word I have a table which has the following structure. Now, I need to make a similar table in LaTex to submit a publication, I tried with the following code, ...
6
votes
2answers
687 views

Text in table with images is not aligned on top

I have table with text in the first column and image in second. I want both columns to be top aligned. I use following code: \begin{tabular}{p{3cm}l} Internal state after adding 2 elements & ...
0
votes
1answer
767 views

In a table how do I add vertical lines between each column?

I have this as my current table which is fine, but I would like there to be vertical lines too just to make it look that bit neater. I'd also like horizontal lines between each row but this would ...
3
votes
1answer
140 views

Regular expression in table

I want to print a regular expression in table's column. For example: \begin{table}[position specifier] \begin{center} \begin{tabular}{ c | c } \hline comand & regex \\ ...
3
votes
1answer
5k views

Expand table to use page width

I normally use the table and tabu environment to create my tables. I am new to LaTeX and after I while I realized tables look nicer when they use the whole page width rather than being just centered. ...
5
votes
1answer
2k views

Sideways table with rotated header on multiple pages

I am trying to have a sideways table on multiple pages with the header rotated at 90 deg. I have used landscape and longtable for the rotation and multipage span (sidewaystable doesn't work with ...
1
vote
1answer
445 views

Table of definitions formatting help

I'm using the following code to produce a table of definitions. \begin{tabular}{rl} $R$ is... & ...if and only if... \\ \hline irreflexive & for all $x$ iht $xx \notin R$. \\ \hline ...
15
votes
3answers
2k views

How can I illustrate decimal to binary conversion?

As part of my homework for discrete math I need to convert different decimal values, both positive and negative, to 8-bit binary representations using signed magnitude, 1's complement, and 2's ...
3
votes
1answer
206 views

I want to create graph with nodes as in the image:

I wrote an example graph with \xymatrix - that's OK. I added circles with &*+[Fo], that's OK too. I added table inside first circle with \begin{tabular} - it is OK. But table needs to be rotated ...
0
votes
2answers
830 views

tabular margin left overflow [closed]

I try to build a tabular with latex and experience a little overflow of the horizontal line on my tabular on the left. whatever I tried everything just switched the overflow so it sometimes happens on ...
2
votes
3answers
246 views

Centering figure consisting of subfigures

I currently have a graph that uses subfigures as follows: \begin{figure}[!htbp] \centering \begin{subfigure}[b]{0.3\textwidth} \centering ...
3
votes
3answers
361 views

aligning numbers with brackets in tables

I am attempting to use Latex to present financial statements. The majority of the work involves the tabular environment with numbers presented in columns which I have set as ragged right. My problem ...
10
votes
2answers
251 views

Centering all tables in a document with etoolbox

(I know there are already other questions about centering tables such as this. This question is specific to etoolbox.) How do I center all tables using etoolbox? I can do ...
11
votes
1answer
5k views

Multiple references to the same footnote inside a table environment

I followed the steps in this answer to get multiple references to the same footnotes working. As shown in this minimal example, the solution is working great for footnotes in the text, also getting ...
3
votes
1answer
150 views

Use \fill (or similar) to extend a table to the end of the page

I am currently trying to make an invoice from a template which requires a table to extend to the end of the page regardless of the content. I tried using \fill as below (in \tabularnewline[\fill]), ...
0
votes
0answers
38 views

Continued 'figure' after 'table' Error [duplicate]

Possible Duplicate: ContinuedFloat, and Subfloat The error is associated to the addition of a Caption in a Table when, in the same section, there is a figure split between two pages using ...
3
votes
1answer
1k views

Adjustbox not showing caption with key option chosen

I can't get a caption to show up in the following MWE. I've put caption at the end of the key list, and in the actual example the BLAH BLAH BLAH is replaced with an \input{table.tex} variant, but the ...
1
vote
2answers
599 views

How can I edit the caption of a LaTeX table

I have a problem with the caption of LaTeX tables. Is there any way to edit the caption of my LaTeX tables so that not all captions start with “Table1” Can I edit the second file into displaying ...
2
votes
3answers
177 views

format two tables inside a figure

I have a figure that contains two tables, I would like to give format to them. What would be the best option? {\footnotesize\begin{figure} [h!tb] \centering \begin{tabular} {l } \hline ...
0
votes
1answer
119 views

Multiple Column Height

I need to put three lists of data into three columns. After putting the first set of data this happened: But I need all the data to be in the FIRST column only, the next sets of data will go in ...
5
votes
2answers
156 views

Frame individual cells in a table

I'm aiming to make an RPG character sheet in LaTeX, but I'm having a little trouble with the boxes one usually asociates with this kind of thing. Is there a way to individualy frame table cells in ...
6
votes
1answer
470 views

set width of table column to whatever's left in page width

I have some columns with a very short entries on the first column and a rather long entry on the second column. \begin{ctabular}{\textwidth}{ll} \toprule Name & Recipe\\ \midrule Freezing ...
5
votes
1answer
235 views

Beamerclass not showing tikz paths as expected

I tried the following codesnipped: \begin{frame} \begin{tikzpicture} \tikzstyle{every node} = [draw, align=center,circle, scale = 0.5, thick] \begin{tabular}{ccc} \tikz\node (n1) {N1}; & & ...
7
votes
1answer
2k views

Vertical alignment of cells in LyX

How can you set the vertical alignment of table cells in LyX? The right-click menu shows three choices ("Top", "Middle", "Bottom") but none of them is enabled, they are all greyed out.
12
votes
2answers
3k views

Table column widths disproportionate due to multicolumn cell being too long

I'm trying to typeset a table that would have a header in the first row (I'm not looking for a different/better solution to adding a header, but for a fix to this solution. Thanks). I want to achieve ...
1
vote
1answer
73 views

Incorrect table array [closed]

I want to build a table like this: I have tried a code but it doesn't work properly: \begin{table}[htp] \caption{The temporal outlier detection accuracy of hourly mean values with respect to the ...
1
vote
2answers
144 views

Creating table with sub-elements [closed]

I want to build a table like this: I have tried a code but it doesn't work properly: \begin{table}[htp] \caption{The temporal outlier detection accuracy of hourly mean values with respect to the ...
18
votes
3answers
564 views

“[” as first character in table row

Whenever I try to compile a table that has a "[" as first character in a row it gives me the error: Missing number, treated as zero. Illegal unit of measure Example: \begin{table}[htb] ...
6
votes
1answer
1k views

Floating LaTeX longtabu table

I have a table that takes multiple pages, so I use longtabu. However, if I embed longtabu in table environment, the table won't break into pages. How do I create a mult-page table that support ...