{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
2answers
235 views

How to eliminate certain vertical lines in tables

I'd appreciate if somebody could help me with this. I'd like to eliminate the vertical lines of the 8th row. I haven't been able to get it. \begin{table} \footnotesize \begin{tabular}{| >{\...
6
votes
2answers
430 views

How to use variables inside a command when generating a table?

I'm not sure about the question, since I do not really understand why it fails. I tend to use commands to generate my tables, and when I use the #1 style of accessing the arguments it works. But now ...
3
votes
1answer
370 views

Table with small circles on each intersection/corner

I'm a LyX user and have a small question - How do I incorporate to my a document a table consists only of the numbers {0,1}, with borders between the cells, and with small colored circles on the ...
4
votes
1answer
234 views

Matrix ball construction table

I want to draw a table similar to this \begin{tabular}{ c | c | c} $\bigcirc$ & & \\ \hline & $\bigcirc$ & \\ \hline & & $\bigcirc$ \\ \end{tabular} for the ...
2
votes
2answers
324 views

How to align rotated table texts?

I turned the captions of my table by 90 degrees. Unfortunately, the headings do not fit to the table contents. Screenshot: Can this be changed? I already tried parbox but that did not work. Here ...
3
votes
2answers
93 views

Having a table and a picture on top of the title

I am trying to put a logo and also a table before a document title. When I add a title, it adds to number of pages and starts the actual document from the next page. I was wondering if there is a way ...
2
votes
0answers
392 views

Supertabular across pages [closed]

I am using the supertabularenvironment to split tables over pages. Does anybody know, how I can give LaTeX a hint, where to break the table and turn to the next page? There are some rows, which should ...
3
votes
1answer
434 views

Definition/explantion of tabular column types

In a question I recently asked (How to make table with rotated table headers in LaTeX) the accepted answer used some features of tabular column types that I was not familiar with, e.g., \begin{...
0
votes
1answer
389 views

Merging rows with tabularx

This seems to be quite a common question with ordinary tabular environments, but I have not been able to find an answer for this problem, or any like it, using the tabularx environment. My code is as ...
1
vote
0answers
80 views

excel2latex table too many }s, wrong endgroups, and too many endgroups [closed]

I am having issues inputting a table generated by excel2latex into my primary document. I have called up packages bookends. And here is the code copied directly from excel2latex (in excel 2010 on a ...
3
votes
1answer
2k views

Auto resize tabular row height

After running following code \documentclass[10pt]{article} \usepackage{multirow} \begin{document} \begin{tabular}{|l|l|l|} \hline \multicolumn{3}{|c|}{Schedulers} \\ \hline \multirow{3}{3cm}{Row 1. ...
3
votes
2answers
451 views

line break in tabular

I try to set a line break within a tabular environment where the column is not definded with p{$width}. I've tried the following without the expected result \documentclass{article} \begin{document} ...
2
votes
2answers
1k views

Multiline listing within multicolumn row

I have a problem putting a listing (using lstlisting package) within a table. The problem is that I want to put a multiline listing in a row taking 2 columns. The following minimal example shows ...
0
votes
1answer
218 views

How to wrap text in table with delimiter?

I have one long text in a column of table. I want to wrap this it into a cell by using delimiter "/". How can I do it in longtable? ABCDEFGHIJ/DATSET Format: ABCDEFGHIJ DATSET
6
votes
2answers
4k views

Importing LaTeX table code into LyX

I create tables in a spreadsheet program, convert them to LaTeX code and then use an ERT to import into my LyX document. When I paste the LaTeX code the entire thing turns out very ugly looking. The ...
2
votes
2answers
219 views

Table alignment

I'm not an expert with the tabular environment...I have some problems: I got an error "Extra alignment tab has been changed to \cr." I would like to have the professor name completely to the right....
7
votes
1answer
530 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 object?...
8
votes
1answer
397 views

Nice-looking tables with thick rules

I want to make a table with rules that are thicker than the default. It's pretty straightforward to do, however the result looks bad: the lines have gaps in them (see image below). There must be a ...
9
votes
2answers
926 views

Patch tabular environment with colorbox

I'm trying to quickly add a colored background using colorbox to all tables as shown in this answer. While I could just update all the TeX by hand, I am trying to patch the tabular environment to ...
6
votes
3answers
4k views

Create LaTeX tables from plain numerical data?

I have a bunch of MATLAB results like this 0 -2.000000000000000 2.000000000000000 1.000000000000000 -1.926829268292683 3.707317073170731 2.000000000000000 0....
33
votes
3answers
22k views

How to make table with rotated table headers in LaTeX

I saw a table created in PowerPoint and wanted to know how to do it in LaTeX. The table is shown below. The aspects of the table that I'm most interested in are the rotated table headers as well as ...
1
vote
1answer
580 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
3k 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
2k 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
413 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
698 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
238 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 \...
6
votes
1answer
1k 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: \documentclass[11pt,letterpaper]{...
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
761 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
277 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} & \textbf{...
1
vote
0answers
321 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
13k 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
2k 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
94 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 http://...
2
votes
1answer
790 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 ...
16
votes
2answers
28k 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
376 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
229 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 \setlength{\...
3
votes
1answer
72 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
151 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
217 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
146 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
421 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
211 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 ...