{tables} is about the tabular environment and related packages such as {array}, {booktabs}, {tabularx} 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
2answers
62 views

Why different column width in table

I am getting different column width in table and i am not able to correct this. The row with multiple columns in last (with text member) has uneven width. Please help. Here is a sample code. ...
2
votes
1answer
26 views

Putting table in a theorem environment sends it to the very end of the document

I'd like to illustrate my \begin{example} \lipsum[2] \end{example} with a table yet adding the table to the environment sends it to the very end of the document: \documentclass{article} ...
4
votes
1answer
57 views

caption of a table

I've got the following code: \begin{center} \sffamily \captionof{table}{Codexample} \begin{tabular}{ll} \topule[2.5pt] exampleline & example \\ ... \bottomrule[2.5pt] \end{tabular} \end{center} ...
104
votes
24answers
12k views

Comprehensive list of tools that simplify the generation of LaTeX tables

Manually hacking tables in LaTeX is one of the less funny things when preparing a document. Naturally, there are quite a few tools that promise to simplify this. In fact, I have somewhat lost track of ...
1
vote
0answers
24 views

LaTeX: table with variable number of lines [duplicate]

In LaTeX, I can do this: \begin{tabular}{|p{5ex}|p{5ex}|}\hline & \\ \hline & \\ \hline & \\ \hline \end{tabular} But I cannot get a variable number of blank lines this way ...
4
votes
1answer
75 views

I am having trouble importing a big excel table into latex [duplicate]

I have an excel file including the following table. How should I create something similar to it? Is it better to use the table code in latex or make a figure from it and import it to latex (I did this ...
2
votes
3answers
80 views

Problem with horizontal and vertical centering of multiline cells in a table

I'm having difficulties perfectly centering (both horizontally and vertically) a few cells in my table. Here is a screenshot of what it looks like right now: The problem line is the one which ...
3
votes
1answer
69 views

How to hide the number of a table, whilst keeping it in the list of tables

I want the caption of one of my tables to say only Table, without the number. Caption* did not seem to work. Also, I still I want it to appear in the list of tables. Is there any way to do that?
3
votes
2answers
56 views

Line spacing and alignment issues in tables with multiline cells

While trying to create tables with multiline cells, I run into some line spacing and alignment issues. The following code creates two tables: \documentclass[10pt]{article} \usepackage[english]{babel} ...
2
votes
2answers
64 views

How to centre the horizontal text in table

\documentclass{article} \usepackage{multicol} \usepackage{multirow} \usepackage{array} \usepackage{rotating} \usepackage{makecell} \begin{document} \begin{table} \small \caption{Studies on ...
2
votes
1answer
29 views

Extend vertical line in table

The following code: \documentclass[12pt]{article} \begin{document} \begin{table}[t] \centering \begin{tabular}{c|cccccccc} \hline id & \multicolumn{4}{c|}{Col1} & \multicolumn{4}{c}{Col2}\\ ...
16
votes
1answer
21k views

Make a table span multiple pages

I have a table that takes up a full page, but I want it to start on a page that already has some text and then continue onto the next page (i.e. it's ok if the table gets broken up and spans two ...
0
votes
0answers
19 views

How to continue a very long table on multiple pages? [duplicate]

I have a long table in latex. I used the commands: \begin{table}[ht] \begin{center} \begin{tabular}{cccccccc} (..the table..) \end{tabular} \end{center} \end{table} However the table length ...
5
votes
1answer
40 views

Tabbing environment in tabular environment cancels set table width

I have a table with a tabbing environment in it. I don't want the table to exceed a certain width, but the tabbing environment seems to ignore this. So while inserting a lot of 'blas' in row 5 results ...
3
votes
1answer
77 views

How to right-justify URLs inside a table?

I have a table containing a URL, and I want the URL to break so that the URL is right-justified along with the other text. In my example below you can see that the last few lines are not ...
2
votes
2answers
44 views

Missing vertical line at the end of the first line

I am new to Latex and I have tried to create a table but it seems not to work correctly - the vertical line is missed. Here is the code: \begin{table*}[t] \centering \begin{center} ...
3
votes
0answers
27 views

Why this error? Missing $ inserted [duplicate]

I've not opened any $.. and i'm not using any mathematical command (apart \pm but this is not the problem because it doesn't work the same). The first error is just after the first \end{tabular}. I ...
0
votes
1answer
32 views

Latex table alignment [duplicate]

I have a table of 2 columns, I want the writing in the left column to be centered and the right column to be aligned to the left. Using the commands below, the left column is exactly how I want it, ...
3
votes
3answers
144 views

Vertical alignment in table

I am making a table with LaTeX, and I have trouble with vertical alignment of the texts. When I have \hline, the text crosses the line. Here is the code: \begin{tabular}{lcccc} \hline\hline & ...
3
votes
2answers
51 views

Hide content of tabular environment [duplicate]

I would like to create a pdf file that containes only the table captions, but not the content of the table. So I tried to redefine the tabular environment in the preamble of my document (it is ...
2
votes
1answer
55 views

How to make automatically line break when use longtable?

I use longtable package to produce a table covers two pages, but if there are too many words in one column, the sentence can not switch to the next line automatically, see picture, the 4th column. ...
1
vote
1answer
37 views

Tabular size exceeding page size

I am making a table which includes single columns and 2 - merged columns. I am encountering two problems, first the data is very long and is not places within the area of the page, it exceeds the ...
1
vote
0answers
22 views

Issue with tabular environment [duplicate]

As I am currently tutoring a calculus student, I am creating a mock exam in LaTeX. I have a question concerning a portion of my code which I have displayed below, though, I do not know if displaying ...
2
votes
0answers
69 views

Any alternatives for longtable package? (produce tables can continue to the next page)

I have a program and I want to output the program results as PDF. I am considering to use LATEX to do the work. My results may contain many big tables, I just realized it is not so direct to output ...
4
votes
2answers
79 views

Using pgffor's \foreach to place graphics into a tabular

I want to arrange EPS graphics (included via \includegraphics) in a tabular using \foreach. Currently this is done without any loops like this: ...
1
vote
1answer
53 views

How to add images inside the table in beamer

I need to insert the images in the table in Beamer as shown below The shown figure should be one frame in beamer and table must have the boarder I am using "Torino" theme in my beamer can any ...
35
votes
6answers
7k views

Footnotes in tables?

I would like to have footnotes in tables, but the \footnote command does not work inside a table environment. Googling one finds that this is a frequently asked question, at least in the UK. That ...
3
votes
1answer
33 views

Problem in combining header, table, and href

I am trying to make a specific header for the first page while the header for the rest of the pages will be the same but different from the first page. The header for the first and the second pages is ...
2
votes
1answer
35 views

Align text in multiple rotated multicolumns

I have a table with figures and rotated text in the first two columns. I don't understand 2 issues: How I can align and especially center the text? With the images I included (all same size and ...
1
vote
1answer
48 views

Table with width assignment

I am trying to create a matrix in texmaker when using the wizard-->quick tabular i get a table, but I want to have equal spacing between the columns , so at the option i choose fixed column width when ...
3
votes
2answers
72 views

Formatting this table

I am terrible at creating tables, the following is the code from Excel2Latex % Table generated by Excel2LaTeX from sheet 'Sheet1' \begin{table}[htbp] \centering \caption{Add caption} ...
2
votes
1answer
54 views

tabu to textwidth yields a table wider than textwidth

I have a code for a table that should fit to textwidth, but for some reason it doesn't. Any ideas why? \documentclass {article} \usepackage [T2A] {fontenc} \usepackage [utf8] {inputenc} \usepackage ...
7
votes
2answers
105 views

minipage horizontal alignment

I'm using minipage to put two tables next to each other, and instead it is putting them in vertically. It seems like this is usually caused by having blank lines between the minipages, but that isn't ...
2
votes
2answers
65 views

How can I typeset a table whose lines do not extend to row and column headings? [duplicate]

Is there an easy way to convert this table (with complete lines) into that one (with incomplete lines; the image is "Photoshopped" for illustration)? Note that I want to get rid of the initial ...
2
votes
2answers
84 views

embedding listing code into tables?

I want to create a simple table in this case with the first column having snippet of code, and the secon column describing it. The command \java is just defined as: ...
0
votes
0answers
14 views

In Eclipse how I can view table content in the Latex Table View?

I am using texlipse plugin to write the latex document. As you can see from the following figure when you put a table and corresponding data, then you can see the data information in Latex Table ...
3
votes
2answers
63 views

How to fit the table into landscape mode

The below method works great for a regular table. I was wondering if there is a command phrase to shrink/resize the table in the sideways mode. I think problem is because of \textwidth which obviously ...
4
votes
2answers
784 views

Header of the table must be centered, all other rows aligned to left

I have this MWE: \documentclass{article} \usepackage{multirow} \begin{document} \begin{table}[here] \begin{center} \begin{tabular}{|l|l|c|} \hline ...
1
vote
0answers
22 views

How to center the column headers in a Table? [duplicate]

In a hurry.. \begin{tabular}{p{.5in}|p{1in}|p{1in}|p{1in}} \hline \multicolumn{1}{|c|}{S. No.} & {|c|Book Name} & Author & \multicolumn{1}{|l|}{Publisher}\\ \hline a & b & c ...
5
votes
1answer
47 views

Newtheoremstyle head aligned with top of tabularx

Here's an example : \documentclass[12pt]{report} \usepackage{amsmath, amssymb, amsthm} \usepackage{tikz} \usetikzlibrary{shadows} ...
2
votes
2answers
60 views

How to make sideways table with horizontal text in a cell?

I need to make such table in LaTeX: I came up only with this: \documentclass{article} \usepackage{graphicx} \begin{document} \begin{table} \rotatebox{270}{ \begin{tabular}{|c|c|} \hline ...
1
vote
0answers
41 views

longtable next to longtable [no multicolumn]

I'd like to place multiple tables (two or three) next to each other, with the following requirements: They need to be able to span accross pages They need to be aligned next to each other I need to ...
4
votes
2answers
46 views

Line breaks in custom command that uses tabular environment

I am using a resume template I found here - http://www.davidgrant.ca/latex_resume_template There is a custom command, based around the tabular environment, which is in the MWE below. I would like to ...
2
votes
1answer
36 views

How to keep a nice table, it won't line up properly

Basically i'm trying to make a 2x8 table with a variable in the first column with horizontal lines but it won't line up and keeps adding the word "height" into the table when viewed as a pdf. I can't ...
3
votes
3answers
49 views

Columns are not the same width in a table

I have the following code for a table, but I can't figure out why 2 columns are wider: \newcolumntype{C}{>{\centering\arraybackslash}p{2em}} \begin{table}[h] \centering ...
2
votes
2answers
82 views

Lots of text in one table cell

I need to place lots of text in one table cell. I tried to use longtable, but it seems to work, say, only on a row basis and gives terrible result in case when one row isn't fit in a page. Something ...
0
votes
1answer
55 views

Creating special table [duplicate]

How can I create a table such as following: I do not know how can I have A and B in the middle of four rows ?
1
vote
2answers
65 views

Scan a cell of a table with lines

Is there any way in latex to scan a cell of a table with horizontal, vertical, diogonal with lines? I want similar thing as in below figure. Thanks.
10
votes
3answers
6k views

Tabular with p type columns to fill page width

I wish to be able to have a table (using tabular) that fills the page horizontally with each column using a fraction of that space, for now assume that they are equally sized. I wish to be able to ...
2
votes
0answers
44 views

Problem with framelines in tables

I am having a problem with LaTeX at the moment, which I seem completely incapable of solving. I am trying to create a simple table which has 4 columns and (should have in the end) 36 rows, including a ...