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

Put a text in the middle of a column

I have the following code: \documentclass[12pt]{article} \newlength{\mylen} \settowidth{\mylen}{the title} \begin{document} \begin{tabular}{|l|c|} \hline the title & number \\ \hline ...
2
votes
2answers
36 views

Set the width of a column according to the first line and wrap text

I have the following code: \documentclass[12pt]{article} \begin{document} \begin{tabular}{|l|} \hline the title \\ \hline very very very very long \\ \hline \end{tabular} \end{document} The code ...
2
votes
1answer
35 views

Remove the vertical borders of a table row

I have the following code: \documentclass[12pt]{article} \begin{document} \begin{tabular}{|l|} \hline line 1\\ \hline \\ \hline line 3 \\ \hline \end{tabular} \end{document} The code draws a ...
1
vote
1answer
47 views

How to use background on a single row or column in table?

When using simple tables in Context (\starttable command), can one place a background on specific rows and/or columns?
2
votes
3answers
101 views

Table not looking good tabularx

I'm trying to make a table in Latex but I'm not expert in it and it's not looking good. Below is what I did but the result is not fitted and not looking good so if anyone could please how I can ...
11
votes
2answers
17k views

Resize table and caption

I usually apply a \scalebox to resize things, but I always stumble upon the fact that I cannot simply include a \caption{...} in the \scalebox. As an alternative to \scalebox, I found I may use ...
1
vote
1answer
42 views

Formatting columns with multicols and lstlisting

I want to get the code displayed in the picture below to come after the title I have for it. I know I have previously asked this question but it was detailing with enumerated items. Can I get some ...
1
vote
1answer
26 views

csvsimple creating multiple lines out of one entry

Data looks like this: name,job,age John,student,21 Frederik,student,18 Johnson,professor,49 I'd like to generate a table, that when for the first time a new job show up (the list is sorted by job), ...
1
vote
1answer
42 views

Overlay table with arrows

I have a table that I want to overlay with arrows to show which cell in one column is connected to which cells to another column. Something like that: Is this possible? I could use an external ...
1
vote
1answer
44 views

Changeable thickness of lines within table

I am working on a table that @David Carlisle fixed for me in this topic: Formatting pbox in table for neat distribution of text The tex for the table is below: \documentclass[a4paper]{article} ...
3
votes
1answer
34 views

Vertical alignment in tables without multirow

My MWE is \documentclass[a4paper,11pt]{book} \usepackage{array} \usepackage{lipsum} \begin{document} \begin{center} \begin{tabular}{|>{\centering\arraybackslash}m{2cm}| p{8cm} ...
0
votes
0answers
22 views

TOC for two line header

My table of contents gets broken up as some of my headings consist of two lines. For legibility on a paper form, I have them tabbed in for indentation purposes. I use the soft enter and it just drops ...
3
votes
2answers
73 views

Formatting pbox in table for neat distribution of text

For the purpose of a paper I am writing I have some very big tables. I couldn't fit the numbers inside the boxes so I used pbox. The problem is that now the numbers within the box aren't distributed ...
2
votes
1answer
50 views

Long (two-page) table in twocolumn document

I'm trying to include a not too lengthy table of mathematical notation definitions in a paper I'm writing. The paper is in twocolumn mode, the definition table has to span both columns, because ...
1
vote
1answer
43 views

Xtabular: how can I convert to a single column?

I am taking the example provided for a two column table in the following document, and modifying to suit my needs: http://tug.ctan.org/macros/latex2e/contrib/xtab/xtab.pdf I need to convert this to ...
1
vote
1answer
70 views

Margins- table how do i put the table inside the margins

This is my code, i don't know how to write a tabel on my own yet, so i used an online maker to do this, how do i make sure that the table won't go over my textwidth? \begin{table}[h] ...
2
votes
2answers
86 views

Vertically center tikzpicture in table

I'm tryin to vertically center a tikzpicture in a table. Here's a not-very-minimal example: \documentclass[12pt]{article} \usepackage[utf8]{inputenc} % UFT8 - danske bogstaver og andet godt fra havet ...
2
votes
1answer
41 views

Include a table as label in pgfplots

I would like to have as a symbolic x coordinate a tabular. Is this possible? Below is a MWE that has all the required elements. \documentclass{article} \usepackage{pgfplots} \begin{document} ...
12
votes
3answers
5k views

How can I left-justify a paragraph cell in a table?

I have a table of maths as below, where I've used the p{} attribute to allow the list of partitions to wrap inside the cell. The problem is that it also justifies the column, which looks very strange ...
2
votes
1answer
37 views

Tabular gets aligned to the right for no obvious reason

I have a tabular which gets aligned to the right while I use \centering. I'm using the article class with only the packages babel and array. The code I have: \documentclass[paper=a4]{article} % A4 ...
6
votes
2answers
127 views

@{} removing the vertical line for the header row of table

I'd like to remove the horizontal spacing between the text and table lines. I am using @{}, but it removes the vertical line of the table for the first row. Does anyone know why? ...
18
votes
8answers
16k views

LaTeX table capabilities

This might be a proper question for community wiki. How can various text processor (like Word or Writer) table capabilities be achieved using LaTeX? For example, can I achieve: multicolumns and ...
1
vote
2answers
36 views

line break within table column

I have looked up many of the previous posts on this....but of no avail.....I need a solution to break a line within a table column, without a break appearing at the table edge of the second row....my ...
2
votes
1answer
47 views

How to wrap some text (numbers) in an ellipse (oval shape) in table?

I followed the example here and got this: \documentclass[a4paper]{article} \usepackage{amsmath,array,booktabs} \usepackage{tikz} \usetikzlibrary{calc} \def\startCirc#1{\tikz[remember ...
5
votes
1answer
73 views

Why does hanging indent with \everypar mess up table spacing?

I'm trying to add a hanging indent to every paragraph of a particular column of a table: \documentclass{article} \usepackage{array} ...
1
vote
1answer
78 views

Creating tables spanning across columns

My problem is I wanted to create a table which is very long and spans across / continues into the next column. But the end of my table seems to be disappearing. My code is as below: ...
0
votes
1answer
69 views

Expand table columns proportionally to textwidth

I have a simple table: \begin{table}[h] \begin{tabular}{|l|l|l|l|l|} \hline First entry & 2nd & 3rd little longer & Forth & Fifth\\ \hline\hline 4.7\% & 11.7\% & 2.5\% ...
13
votes
5answers
451 views

Coloring negative and positive numbers automatically

I believe numprint.sty is not working. at least the manual states that Printing negative numbers in red does not work. Only the minus sign is printed in red. When was this bug introduced? Some ...
5
votes
2answers
105 views

Display math and tabular

I'm pretty new to latex and having some trouble. I have multiple math formulas which I'd like to organize on the page. i used: \begin{tabular}{p{6cm}p{6cm}} \[...\] & \[...\]\\ \end{tabular} ...
2
votes
1answer
60 views

Alltt inside mdframed longtable

I am trying to achieve the following: I have text material which is to be put in verbatim form. This material also has some mathematics, so I am using the alltt package. This text needs to be in a ...
1
vote
3answers
62 views

How to make enough space in empty column?

As I am trying to make a simple table in Latex, I realize the empty column that I created has a really small width. Is there a way that I can increase the space in empty column?
0
votes
2answers
40 views

Problem with formatting two tabulars and long caption in table*

I am using 2 tabular inside the same table*, with the same caption. everything works fine if the caption length is small, say a single line. But when I add a really long caption which also contains ...
0
votes
0answers
13 views

Caption in table [duplicate]

I'm trying to keep the following format for some tables: [Table] [Caption] I used this code \begin{table}[h] \centering \begin{tabular}{ |c|c|c|c|c|c|c|} \hline \textbf{Class} ...
4
votes
2answers
119 views

Is there a way to `\kill` a row in {tabular}

Is there a way to \kill a row in a {tabular} or {array} environment? I want to provide text that will set the column widths but then have that row not appear.
4
votes
2answers
72 views

loop in tabular that uses \the\count to access current line number

I would like to generate an autmatic table using loop. As suggested here before, it is best to first generate the lines in a toks and then pass them to tabular. However, I have problems with accessing ...
2
votes
1answer
44 views

caption with ltablex and ThreePartTable - the caption is increased by 2

I'm using threeparttablex and tabularx packages. I have 2 problems: caption only enumerates right if put before \begin{tabularx}; notes are not center aligned with the table; My code is the ...
1
vote
2answers
87 views

How to draw multi row multi colum table with many filelds

I need to create a table of the type given below. But I am not getting this. Could anyone here help me? Thank you
1
vote
0answers
24 views

I want to make a table but its when I want to add a double line, it gives me two tables [duplicate]

So I tried to make a table using this code: \begin {tabular}{|l||c|p{8cm}|} \hline test & test2\\ \hline\hline test3 & test4\\ \hline\hline \end {tabular} Between the 2 rows of thext I ...
2
votes
1answer
43 views

Conversion of table from tabulary to tabular

I have table A.3 that I want to convert into a layout more like table A.4 so that it fits the text width. I know this is best attained by using tabular. I actually had a solution similar to A.4 ...
4
votes
1answer
194 views

Using a package only for certain tables

I am using the tabularx environment since it the X component of the columns is very useful and necessary for the tables I want to produce. However, a single one of my tables is longer that a page, and ...
5
votes
3answers
84 views

separately centered table headers, separately centered table content

edited for clarity: dear texperts: I have an interesting puzzle. I am thinking that the following format is better than one in which the middle column is all 'r' and the right column is all 'l'. ...
2
votes
1answer
32 views

Table doesn't fit page even with rotating

I have two tables (only one is shown in above picture) that are too wide and even with rotating the tables with the sidewaystable package they don't fit to one page. It is a must for me to fit both ...
3
votes
1answer
31 views

Rotating caption title together with table

As presented in the above picture, when I use the command \rotatebox{90} to rotate a table the caption (title) of the table doesn't rotate. How can I make the title rotate with the table? Note that ...
4
votes
1answer
53 views

fp alignment in tables

Can anyone explain why the output from these two entries is different? Does anyone know how to make the second one match the first? \documentclass{article} \include{fp} \newcommand\entryOne[1]{ ...
0
votes
1answer
69 views

How to solve a “Misplaced \omit” error in a table?

I'm trying to code table in LaTeX; however, the following code isn't working: \documentclass{article} \usepackage{a4} \usepackage{subfig} \usepackage{xfrac} \usepackage[normalem]{ulem} ...
4
votes
1answer
99 views

Using MinionPro Tabular Figures in Tables and Proportional Figures in text

I am trying to use MinionPro tabular figures in tables because they look much better than proportional figures. However, I would like to keep proportional figures in text. This is the configuration ...
4
votes
2answers
39 views

Increase margins from table line to text

In the following tables I'm trying to increase the margins of the two lines below the years (1881 and 1907) so that the text (inhabitants...., km2....) is not so near to the lines. I can't seem to ...
1
vote
1answer
39 views

How to use ERT command to long tables that is provided for float table

I have been provided with ERT (Evil Red Text) command which when used for float tables, displays the caption of the table as Table 1.1 in List of Tables. I want to know how I can use such command for ...
1
vote
1answer
55 views

Insert labels inside table rows

I have a long table with different equation, I need to make a label and then refer to them in some cells, trying to do that by putting usual label giving me wrong results in LyX, more precisely if the ...
1
vote
1answer
64 views

\resizebox and page sizes

What is the exact operation and syntax for resizing an object? I am writing a macro package for printing on multiple paper sizes, including A4 2-column, eBook-size, portrait and 9inx6in WEB browsable ...