{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
441 views

Setting text in a tabular

I want to make a long table (over all the page), at the moment i am using tabular for it, because everything in it is text. How can i make a line with text in my tabular environment? It shall be for ...
9
votes
1answer
2k views

How to nicely format a table including measurement errors

I have a table which contains measurement results. Currently I have one column per measurement 'type'. In each column, I have values like $+$0.74\,\,$\pm$\,\,0.14. The table is rather long (~30 rows), ...
5
votes
2answers
1k views

Table with several dimensions

I have several dimensions to put in a table in LaTeX, these are actually results of an experiment. I am not sure what is the best way to do it in LaTeX. Here is a snapshot of one of the possibilities: ...
1
vote
1answer
403 views

Problem with side by side figures and captions

I want to have 4 figures side by side and centered in my paper. I am using this code. The problem is that captions and figures are not aligned. It seems captions are in correct position, but figures ...
2
votes
2answers
607 views

Need help with shrinking sideways table.

it's been awhile since I last used LaTex to produce some document. Right now I'm trying to help my wife with producing PhD thesis. And I ran into a problem with a quite big table. I've never used ...
10
votes
1answer
227 views

Is there an easy way to change the column order of a pgfplotstable?

I am aware of Rearrange data in pgfplotstable but I was hoping for a kind of one-pass solution that doesn't spread the table over so many commands but is rather self-contained within ...
5
votes
1answer
908 views

White space between columns using \rowcolor{somecolor}

I have been using \rowcolor{color} command and I have noticed that there is always some white space between one cell and the next one in the row. Here is my code: ...
0
votes
1answer
3k views

Setting single row height with multirow

I have a table in LyX document. And I'm using multirow to span text across multiple rows. For example I might want the text to span across 2 rows, the problem occurs when it doesn't fit, then it just ...
4
votes
1answer
703 views

Vertical alignment of nested table

I have two tables nested inside of a larger table. One of the nested tables is taller than the other, and I'd like to have the two tables line up together at the bottom. I've tried inserting [b] in ...
2
votes
0answers
259 views

Table does not fit [closed]

I created a table that does not fit the page. It's not because it's too big, it's because the table starts from the middle of the page when I export it to PDF. So even though I have half the page ...
0
votes
1answer
74 views

Overhead image in a table,how to have fixed cell dimension

I have this problem: This is my code,i wanna have a fixed height to fit my image perfectly without scaling too much. \begin{tabular}{|c|c|p{5cm}|} \posizCellaRiga \textbf{Nominativo} & ...
1
vote
0answers
290 views

How to specify the the column width but also keep the cell content center horizontally? [duplicate]

I want to specify the width of the column but also keep the content centered. How can I do that? Here is my code \begin{tabular}{p{6cm} c c p{2cm} p{3cm}} \Xhline{3\arrayrulewidth}\hline ...
5
votes
1answer
11k views

Regression tables made with esttab in Stata have columns with different widths, using LyX

I am relatively new to LyX and I am trying to output regression results into TeX code, and then insert the resulting tables in a LyX document. The command I use to create the table is: reg y1 x1, ...
6
votes
1answer
1k views

\hfill in in table cells

There are tables in my document. The baselines between the last row of each table and the following text is usually circa 16,25p (see below). Now I wanted to add right-aligned text to some selected ...
1
vote
1answer
91 views

how to create a two column table for differentiating?

I want to compare two types of networks. I have 4 comparison points. How should I create a 2 column table where every of those 4 points for both networks is aligned?
5
votes
2answers
1k views

Tabular integration by parts

All I am trying to do is write an integration by parts table in LaTeX. I can't seem to find an .tex code examples anywhere though I have seen pictures of such tables in PDF form (like at ...
2
votes
1answer
750 views

Table (tabu) rotate text sideways (90 degrees)

how can I rotate text in a tabu environment by 90 degrees? I export my tables from Excel using a plugin and it puts the text which should be rotated into \begin{sideways} ... \end{sideways} but Latex ...
12
votes
2answers
22k views

Shrink table to fit on a page, or keep it as it is

I am using \resizebox{\columnwidth}{!}{% ... %} to fit a table which might be too wide onto a page by scaling it down. However, my problem is that if the table is smaller than the column width, it ...
4
votes
1answer
347 views

Make the multicolumns in a row equally sized?

I have some big tables and I want to know how it is possible to make the columns in a row all equally sized. You can see in the row 'Intra Prediciton' that the column with the content 'I_PCM' is ...
3
votes
1answer
219 views

How can I convert the tables and math in a latex document to one of the markup languages supported by github's wiki?

I wrote some software documentation in Latex, but need to get it into a more lightweight format. I used pandoc to convert latex to markdown, but it did not do a very good job of converting tables. ...
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
145 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
210 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
408 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
655 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
465 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
684 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
763 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
443 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 ...