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

Resulting table off page limits

everyone, I've been trying to build a timetable in LaTeX but the resulting table is off. Could somebody help me out? \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \...
130
votes
24answers
20k 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 ...
0
votes
0answers
16 views

Changing table into long table to span multiple pages

I used the tabular/table environment in order to create a table. The problem is the table is longer than 1 page and from what I understand I need to use the long table environment to separate the ...
3
votes
2answers
27 views

Two tables side by side with independent and global captions

I want to put two tables side by side in my document, with (a) and (b) subcaptions for them, and also a global caption "Table 1. Blahblahblah" (spanning to one of the columns only). At the moment I am ...
0
votes
2answers
28 views

Fit long table into page

I have this long table that I cannot make it fit in the page. I tried to turn the page in landscape and it helped a bit but the problem is still that I can't wrap the text when it is longer than the ...
0
votes
1answer
25 views

How to increase the height of the rows in latex tables?

I have a bit problem, my table is bit large and I used the command \resizebox{\columnwidth}{!} to fit it the paper, however, this result in bad row height, so how can I solve this issues. Here you ...
1
vote
0answers
26 views

(top) vertical alignment of tabular

I am a total beginner, I manage to make small changes in a template, but I don't quite understand LaTeX syntax yet. I have this code: \newenvironment{cvskills}{ \begin{center} \setlength\...
1
vote
1answer
10 views

Align figures in tabular environment with text

I have two picture that I want to align it with the text next to it from top, i used this code: \documentclass[3p,onecolumn]{elsarticle} \usepackage{array} \usepackage{lipsum} \begin{document} \...
5
votes
3answers
47 views

Tabular macro does not work

i try to write a short macro to align some (3) words one below the other in one cell of a table, like here: tabular inside a newcommand For a reason I do not understand it does not work. Here is my ...
1
vote
1answer
34 views

tabular to look identical to a list with and without parindent

I would like to define a tabular (yellow labels) type environment that looks identical to my list (green labels) environment. I can get them close but have not been able to get them exactly alike. If ...
0
votes
0answers
19 views

\cmidrule and unwanted vertical space in contiguous table cell(s)

Is there a simple way other than by invoking \multirow or inserting a frame or box to stop the vertical space being added to all table cells adjacent to but not covered by \cmidrule? This vertical ...
2
votes
3answers
118 views

How can I give my figure more space?

I am making a table with some text underneath the columns. I'd like to make it a figure, but when I do so, the text underneath the columns collides with the Figure label. See the attached photo ...
2
votes
0answers
35 views

Command to create alignment

Consider the following mwe: \documentclass[letterpaper]{article} \usepackage{amsmath,amssymb} \usepackage{array} \begin{document} \begin{center} \renewcommand{\arraystretch}{1.2} \...
2
votes
1answer
54 views

Problems with references to figures and tables

I am finishing my course conclusion work writing using LaTeX, and insert the images I used standard codes, such as \begin{figure}[!h] \centering \includegraphics[width=13cm]{lixeoutroa} \caption{........
0
votes
0answers
21 views

Text direction in table Arabic babel [duplicate]

I want to write arabic in table \documentclass[14pt]{article} \usepackage[utf8]{inputenc} \usepackage[LAE]{fontenc} \usepackage[german,arabic]{babel} \begin{document} محمد - أحمد \begin{...
1
vote
1answer
43 views

Enhancing Booktab Tables containing Tikz picture

I have created a table containing text, equations and a tikz picture [created using Geogebra and scaled using \resizebox]. As a beginner, I found it difficult to center my content and to remove the ...
0
votes
0answers
20 views

Vertical Line in Table not straight

The code below for a table does not show a straight line all the way down after the second column. Any advice to straighten the line beyond the first row would be appreciated. Thx! \begin{table*}[t]...
1
vote
1answer
31 views

single spacing in table cell in TeX

I am looking for a solution 1. single space 2. justfy line Can anyone please help me? here is the code. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \begin{table}[h!] %\centering \begin{...
4
votes
2answers
64 views

How can I make a similar matrix with even column spacing?

I'd like to make a similar matrix to the one pictured below, but as you can see, the spacing between the columns is inconsistent due to the length of the words. Here is the code I used: \[ \...
1
vote
1answer
69 views

Time calculation with spreadtab

I come from this question: How can I automatically calculate sums in a LaTeX table? I want to do the same but with "timing" calculations. So my example would look like this: \documentclass{article} \...
0
votes
2answers
71 views

Represent pseudocode in tabular format

I want to write my pseudocode in the below tabular format. It seems that authors of above pseudocode have used some special latex package. Can anyone help me by either naming the package which has ...
2
votes
1answer
26 views

Latex table pagebreak doest work

my girlfriend is trying to write her thesis in latex and she came up with following issue: We are trying to enable a table to be split up among multiple pages (if needed) here is what i thought ...
1
vote
0answers
37 views

Class Attendance Register

im a new latex user and i want to create a class attendance register like either of these ones, i will need 40 names in one page and to have 30 columns for dates
2
votes
1answer
37 views

Even and odd questions in grade table using ExSheets

I would like to create a grade table using the ExSheets package. Unfortunately the table is too long for the title page. Having tried other approaches (e.g. longtable-environment, resizebox and others)...
14
votes
3answers
888 views

How do I use the ampersand (&) inside a foreach or conditional (or other group/environment) when building tables?

I am trying to build a table, and inside the tabularx environment I would like to have a loop, something like (here is a MWE): \documentclass[10pt,a4paper]{article} \usepackage{tabularx} \usepackage{...
4
votes
1answer
88 views

Connect two tables with lines

How can I draw the following in Latex? I have created the two tables, but I can't figure out how to draw the lines among the cells.
60
votes
3answers
99k views

Increase LaTeX table row height

How does one increase the height of the rows in a LaTeX table?
31
votes
2answers
20k views

How can I center a too wide table?

I have a document containing a table which is slightly too wide for the page. But instead of growing to the right side only, I would like to have it centered on the page. I have tried to use the ...
1
vote
0answers
20 views

tabularx table formats poorly when too long

I have a long, multi-columned tabularx table in a document I'm working with. I'm finding that under certain circumstances the table's formatting breaks. My minimum working example (works with the ...
0
votes
0answers
27 views

pgffor inside table [duplicate]

How can I use pgffor in tabular environment to output many rows? Here is what I tried: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{pgffor} \begin{document} %works correctly \...
0
votes
1answer
31 views

vertically align rotated text in table

I have the following table (see code of working example below). In column 5 there are two cells that include some rotated text. I would like this rotated text to be centered or aligned at the bottom ...
74
votes
3answers
128k views

How to vertically-center the text of the cells?

I have a simple table as follows: \begin{table*} \centering \begin{tabular}{|l|c|c|c|c|p{2in}|} ... ... \end{tabular} \caption{The factors the camera solver depends on to ...
2
votes
3answers
86 views

Removing white lines in multirow cells

How can one remove the line? Or is there a way to reset doublerulesepcolor? \documentclass{article} \usepackage[table,svgnames]{xcolor} \usepackage{colortbl} \usepackage{hhline} \usepackage{...
3
votes
1answer
43 views

Adapted table width to text using pgfplotstable and csv excel

I have a problem with forcing my table to the same width as the text. I export the csv (Excel) file to Latex using this approach, see code. Changing text-size in Excel works to a curtain "level", but ...
0
votes
1answer
41 views

how to float long table to next page without influence the two column layout?

I'm trying to place a rotated long table in IEEEtran. In order to add long table, I added the \onecolumn before the table and \twocolumn after that. The table appeared on the right place but the text ...
0
votes
1answer
32 views

Formatting TOC in Latex

I am trying to create table of contents with each chapter title underlined. No luck so far. Can somebody help. Thanks
2
votes
2answers
56 views

Specify the height of table header

I'm new to Lyx and I have a problem. I have the following table and everything is good except that I want to limit the height of header cells. I want them to be shorter that this where each header ...
1
vote
1answer
46 views

Table with Multiple Header Column Span and Footer Total Line

[][] I'm having issues formating this table. I have it set out, but i cannot get the \multicolumn to span two main headers and a bottom span. \begin{tabular}{ |p{.6cm}||p{2.5cm}|p{1cm}|p{1cm}|p{2....
3
votes
2answers
78 views

How to place footnotes in the caption of a table?

Problem: Question title says it all, although it can be misunderstood, what I am trying to achieve is through a command (hoping for footnote) to be able to place a footnote mark anywhere in the table ...
1
vote
1answer
34 views

Changing the colour of a cell and positioning text vertically in that cell

How can I change the vertically position of the text 'Data' in the multicolumn cell? And how can I colour only that sell? \documentclass{article} \usepackage[table]{xcolor} \usepackage{colortbl} \...
4
votes
1answer
27 views

Floatrow package conflicting with centering longtable

Consider the MWE below. If I \usepackage{floatrow} the longtable is not horizontal centered. If I comment out \usepackage{floatrow} the table is properly horizontal centered. How can I get this ...
57
votes
2answers
60k views

How to add extra spaces between rows in tabular environment?

I couldn't find any option that lets me expand the vertical space between rows in tabular environment. For example, \begin{tabular}{c c} $f^{(n)}(x)$ & $f^{(n)}(0)$ \\ $-2xe^{-x^{x^{x^2}}}...
2
votes
1answer
105 views

Table formatting like MS office

Hi I'm trying to create a table like this picture: But when I try this code: \documentclass[3p,onecolumn]{elsarticle} \usepackage[labelfont=bf,singlelinecheck=false]{caption} \usepackage{...
1
vote
1answer
17 views

How can I make the label text in description lists wrap in the label area over multiple lines if needed?

I use the enumitem package to customise description lists. Here a MWE printing some fictitious personal details: \documentclass{article} \usepackage{enumitem} \setlist[description]{leftmargin=5em, ...
1
vote
2answers
39 views

Size the files in a table are a short

I'm writing a table on latex, this is the code that I used. \begin{table}[] \centering \begin{tabular}{|l|l|} \hline Lalalal & Papapa \\ \hline $\p{6^...
5
votes
2answers
66 views

Uneven table in the last column

I use quite a lot of (simple) tabular tables. Unfortunately the last column is always a little bit wonky: the text is a few mm higher than in the other columns, just enough to really notice it. How do ...
2
votes
1answer
49 views

How to get table row sub numbering?

I am trying to get serial numbers in table, but some of the rows require sub numbering as shown below: S. No. X Y Z 1 1 12 1 2 4 34 3 3 5 54 2 4.a 6 34 5 4.b 8 32 7 5 1 ...
1
vote
1answer
81 views

Table with two kinds of rows [on hold]

How would I go about making a table that looks like this : A------- A1------- A2------- B------- B1------- B2------- Where rows A and B have the same columns, A1, A2, B1, B2 have all the same ...
0
votes
0answers
12 views

Reducing space between columns [duplicate]

I am working on table which doesn't fit in a two column page. \begin{table}[!htbp] \footnotesize \centering \caption{Regression Results} \label{} \renewcommand{\arraystretch}{0.65}% ...
2
votes
1answer
54 views

List of books with images

I would like to buy some books from E-library so i'm thoughts why not i send them my request by make list of books in latex document to looks like that: My thoughts : \documentclass{article} \...