{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
45 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
28 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} \...
3
votes
1answer
19 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
98 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
16 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
64 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
78 views

Table with two kinds of rows

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
51 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
58 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
39 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
95 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
116 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
36 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
44 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
79 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
55 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 ...
2
votes
1answer
33 views

How can we make a \multicolumn row the same as the others?

How can we make the first row, which uses \multicolumn, to look the same as the second row? \begin{table}[H] \caption{Pronombres personales.} \label{tab:personales} \centering \begin{tabular}{| >...
1
vote
1answer
34 views

How to add a table below a figure in \figure environment

I want to add a table inside a \figure environment so the figure has a table below it. I want to do this so I can have a caption that explain the figure and its result in this table. \...
0
votes
0answers
10 views

Increase the vertical height of a specific row [duplicate]

In a tabular environment, how can I use \renewcommand{\arraystretch}{3} increase the height of a specific row? For instance, making a custom height of the first row only? \renewcommand{\arraystretch}{...
2
votes
1answer
33 views

Problems merging cells

Please, I need help. I'm trying to do this table, but I have some issues trying to merge the cells. I want to write something in those 3 rows merged but the text goes to another place and also there ...
11
votes
2answers
8k views

Tabular, make a column or a row emphasized

I want to create a table and to make all cells of a column emphasized. Is there a simple way to do it, or do I have to emphasize every single cell?
1
vote
1answer
27 views

How to add a caption to tabulary?

I'm having problem to add the caption to a table when I use tabulary. Here's my code but I don't understand where I make the mistake... \begin{tabulary}{\linewidth}{LLLL} \caption{Summary of the ...
1
vote
0answers
18 views

xtable, via knitr, inside multicols

How can I put an xtable (made with knitr) in a multicols environment? The table is working outside multicols, but when I place it inside multicols it disappear. I've tried with lstlisting inside ...
1
vote
1answer
2k views

How to force multiple tables onto a single page?

I am doing the final layouting pass on a book, and while LaTeX does "the right thing" most of the time, and the occassional ugliness can be tweaked with minor touches to the text, there are cases ...
0
votes
1answer
47 views

Remove line between caption and table

How I can remove line between caption and table? My code is: \begin{table}[h] \tables{360pt}{1.875pt} \caption{EG unit Characteristics for TPC and 201 bus distribution systems} \label{tab1} \begin{...
4
votes
2answers
85 views

multirow left align and centering

I am using multirows and my code is as follows: \begin{table}[H] \footnotesize \setlength\tabcolsep{2pt} \begin{center} \caption{\\ \fontsize{10pt}{12pt}\selectfont \normalfont insert title } \...
3
votes
1answer
107 views

How to calculate a page subtotal?

I have a longtabu that spans multiple pages. I would like to be able to provide a page total that sums and/or counts the values in one or more columns. Does anyone have an idea how this might be ...
2
votes
1answer
36 views

it possible to put mdframed environment inside tabular environment?

I try to use colored framed boxes inside tabular environments. Is it possible to used "mdframed" environment for it? Unfortunately, the code below does not work (it gives: «! LaTeX Error: Something's ...
1
vote
0answers
29 views

Avoiding \hline and \multicolumn in table

I have a table as the following. The journal that I am submitting to doesn't allow \hline or \multicolumn. Do you know how I can have a similar table (similar look) but avoiding \hline and \...
0
votes
0answers
22 views

Longtable and tabulary Together [duplicate]

Is it possible to have longtable and tabulary together in a table for autofit and Auto continuation of table in next page Below is my code \documentclass{article} \usepackage{longtable,tabulary,...
3
votes
3answers
229 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 & \...
2
votes
1answer
121 views

2nd Column EnvironmentTable and figure 2x2 on the top of 1st and 2nd page

Can anyone help me revise my code so that I can achieve the following goals. 1.How to make the table to be on the top of the first page? Now it skips the first page and jumps to the middle of the 2nd ...