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

14
votes
3answers
884 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
71 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.
1
vote
0answers
50 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 ...
60
votes
3answers
98k views

Increase LaTeX table row height

How does one increase the height of the rows in a LaTeX table?
30
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
1answer
52 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} \...
2
votes
1answer
29 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)...
1
vote
0answers
18 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
26 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
28 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
83 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
42 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
40 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
31 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
76 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
33 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
24 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 ...
56
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
101 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
53 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} \...
4
votes
4answers
59 views

Height of text not correct in fixed-height table

I am making a puzzle that involves putting the letters of nine-letter words in 3x3 boxes, and have written the following code to get started (MWE). \documentclass{article} \newcommand{\letters}[9]{\...
0
votes
1answer
26 views
0
votes
0answers
16 views

positioning of tables in a big file [duplicate]

I have a strange problem when positioning table in a big file. I use the option h! to put the table exactly where the code is written. \begin{table}[h!] ... \end{table} The problem is, in the big ...
1
vote
2answers
44 views

parallel tables and in-between lines

How can I create the following table? Actually, it includes 2 tables and some lines connecting to cells each time. \documentclass{standalone} \usepackage[english,greek]{babel} \usepackage{ucs} \...
0
votes
1answer
103 views

Why is it so difficult to generate a \midrule dashed in LaTeX?

I want to get the equivalent dashed version of \cmidule(lr){1-2}. Looks like the solution is not trivial. What is the easiest way you think of?
1
vote
1answer
35 views

Vertical spacing after enumeration in table altough all seps are set to zero

I have a strange vertical spacing after a \enumeration in a table although I have set all seps to 0pt ([itemsep=0pt, topsep=0pt, parsep=0pt, partopsep=0pt]. I want zero vertical spacing after the ...
0
votes
1answer
40 views

How to display a table with a lot of columns (long and large table)?

As far I know the longtable package allow to split a long table in multiple page. The problem is that my table is both long and large. I have 35 rows and 40 columns. How to split this table on ...
5
votes
1answer
89 views

Change footnote number to text using tabu

Problem: Changing footnote default numbering to text using the tabu package. Minimal Working Example (MWE): \documentclass{article} \usepackage{array,booktabs}% http://ctan.org/pkg/{array,booktabs} ...
2
votes
2answers
96 views

Tables aren't in order in itemize

Good evening Why is result so wrong? What is wrong? Tables aren't in order and the black marks aren't on the right place. Thank you for help. \documentclass[10pt,a6paper]{book} \usepackage[utf8]{...
3
votes
2answers
126 views

how to create an explianation for some text, line and picture even ,and how to align the text

I can create a color table, but now I want to add some explanation to this table like below picture Should I use tikz or only table feature? Can anyone give me a start point? Here is my table code:...
7
votes
1answer
120 views

Define an environment that automatically produces some of a table

Is there a way to define an environment which will automatically produce the first row and first column of a table, leaving you to fill in the rest of the entries as usual? I'll show you what I mean. ...
2
votes
0answers
38 views

Parsing input for table automatically generated from csv file

I have a .csv file which looks like: {one},{two},{three} 11/07/2014,14:49:54,(100,100) 2,2,2 I have some code which creates a table from the .csv file. \documentclass{article} \usepackage{...
1
vote
2answers
47 views

Best way to create custom number of table rows

Is there any standard way of defining a class so that \startTable \newTableEntry{x}{12.1} \newTableEntry{y}{11.1} \endTable can be done? The result should be x 12.1 y 11.1 Thanks!
3
votes
2answers
62 views

Best way to add space between columns with alternating colored rows

I did some search on the topic without success. Most of the time people want to remove spaces, or have problems with last column, etc. In my case I want the spaces to be there and between columns. I ...
1
vote
1answer
46 views

LaTeX: Overlapping text in table

I am making a large table for the appendix of my paper, only I have problems with overlapping columns. I have checked multiple posts however the solutions did not help to solve my problem. I hope you ...
2
votes
1answer
55 views

How to draw Tables

I want to draw this Table: I tried: \documentclass[book,12pt,twoside]{report} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[french]{babel} \usepackage{array} \begin{document} ...
0
votes
1answer
80 views

How to limit the width of \halign?

The glues inside my \halign rows don't get reduced when they should. The contents of \halign behave as if they had infinite horizontal space. This is the source code for the first table (it's very ...
0
votes
1answer
22 views

Table caption alignment

I have a table like this: How can I align Caption with left of table not paper?! And I want to stretch the table a little. \documentclass{article} \begin{document} \begin{table}[h!] \centering \...
1
vote
2answers
56 views

How to adjust tikzpicture in the table?

I insert tikzpicture in a table, but the picture is always not in the center of the cell, especially when in a multirow. This is my code: \begin{table}[H] \begin{center} \begin{tabular}{cccccc} \...
1
vote
1answer
29 views

Disable transparency warning when using ctable with pgfplots?

I'm using ctable package for tables with footnotes. IMO it looks better than using booktabs with threeparttable package. I also use pgfplots (which I guess uses tikz package, in turn). Everything ...
1
vote
1answer
32 views

How to get on one page - section and table which is turned

Good evening/morning/afternoon How to get on one page the table (below) and the section (below)? I changed a scale of the table but the table is still on the next page not the same page as text of ...