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

0
votes
0answers
13 views

How to center a table in TeX code using lyx?

I am new user of latex/lyx. I got a table in latex code and tried to add it to my lyx document. But it turned out the table always stayed in the left. Could anyone tell me how to center it in lyx? Any ...
1
vote
1answer
14 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
1answer
30 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} ...
0
votes
0answers
14 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 ...
2
votes
2answers
53 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 ...
1
vote
1answer
30 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
39 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 ...
2
votes
0answers
31 views

Tabular inside listings

I'm trying to get this with this style but I'm getting the error ! Misplaced \omit. \multispan ->\omit \@multispan Here is a MWE: \documentclass{article} ...
2
votes
1answer
35 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} ...
2
votes
1answer
32 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
98 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? ...
1
vote
2answers
33 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 ...
1
vote
0answers
28 views

Booktabs table is not fitting in the page

I generated this table using this site. But this table doesn't fit in a page. Please help. \begin{table}[h] \begin{tabular}{@{}cc|@{}} \toprule \rowcolor[HTML]{C0C0C0} \textit{\textbf{Date}} ...
2
votes
1answer
40 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
57 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} ...
0
votes
2answers
34 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 ...
1
vote
3answers
55 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?
12
votes
5answers
384 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 ...
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
115 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.
2
votes
1answer
42 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 ...
4
votes
2answers
67 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
37 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
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
30 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
24 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 ...
2
votes
1answer
40 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
47 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
59 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} ...
5
votes
3answers
71 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'. ...
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 ...
2
votes
2answers
50 views

How to adjust alignment and column width (tabular)?

I would like columns 2 and 3 to be aligned to the right hand side. However, it does not seem to work. Though several questions relate to this issue and my question will probably be marked as ...
1
vote
1answer
45 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
48 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 ...
2
votes
1answer
83 views

How to circle multiple cells? (special case)

I need to circle multiple cells, on different rows/columns. This is a problem which has been solved. However, I have a more particular case of the problem. I need to draw a circle that needs to ...
4
votes
1answer
35 views

Can \pbox{max width}{text} be used in tex4ht

Can \pbox{max width}{text} be used in tex4ht? If it can't, is there an alternative that will let me wrap text (manually or automatically) in htlatex. In my reading there was an option ...
3
votes
2answers
71 views

Adjusting exact height of the table rows

I am trying to adjust exact height of the row in my table, but the output is not good: \documentclass[a4paper]{article} \usepackage{array} \usepackage{color, colortbl} ...
3
votes
0answers
154 views

Cell overlay in beamer

I used the code posted in this thread to highlight cells in a table: \documentclass[xcolor=table]{beamer} \rowcolors{1}{gray!30}{gray!10} \makeatletter ...
2
votes
0answers
66 views

Border control for LaTeX tables generated using TeX4ht

I am hoping that there is away to outline certain portions of the table because when I open this HTML file using MS Word, I get a very logical invisible table that I can clean up. The current method ...
6
votes
1answer
104 views

Fully Customized Table in Latex

Is it possible to have a customized table in LaTeX that has the following features? Be able to define Width and/or Height for specific row/column Be able to highlight/color a specific row or column ...
2
votes
1answer
47 views

Wrong numbering of tables in appendix

I have an appendix with 26 tables. Strangely, table 22 which should be positioned after table 21 gets automatically positioned after table 2 (cf. picture). This happens for the two tables that I use ...
5
votes
2answers
68 views

Tabular fixed width

I'm using the p column type in order to force the width of the columns of my table. However, the total width of the table becomes larger that the textwidth. Here is a MWE: \documentclass{article} ...
1
vote
1answer
17 views

Add vertical line in tabular head when using multicol

I have the exact opposite problem described in this question : Remove vertical line in tabular head In my case, I am using this code : \documentclass[a4paper, 10pt]{article} \usepackage{booktabs} ...
4
votes
1answer
38 views

array and command in column' s definition of table

to develop a specific class, I would like to define columns in a table by a macro definition. Like in this MWE \def\titi{c|c|c} \begin{tabular}{\titi} a& b&c\\ a& b&c\\ a& ...
3
votes
2answers
61 views

Cross out arbitrary table cells with diagonal line

I'm looking for a way to use a diagonal line to cross out a table cell which may or may not be empty, and without having to manually specify the cell's width and height. (It would also be great if ...
4
votes
2answers
95 views

How to make whole longtable align to the top?

\item \begin{longtable}[l]{l l} 1 & 2 \\ 3 & 4 \\ 5 & 6 \\ \end{longtable} Inside an enumerate environment, the above code produces a longtable that is not beside the item number but ...
4
votes
1answer
62 views

tabu package - gaps in vertical lines

I'm in the unfortunate situation that I have to make a table in LaTeX which has thick vertical lines. Since this does not seem to be possible with the default tabular environment, I chose the tabu ...
5
votes
2answers
61 views

Brackets spanning multiple lines in a single column inside table

I would like to typeset round brackets so that they span multiple lines inside a tabular environment, but only for a specific column. In the example below, I would like the brackets to appear around ...
3
votes
1answer
32 views

Automatic right justify in table - multiple choice question

My code part \newcommand{\iib}[5]{ \begin{center} \begin{tabu} to 0.42\textwidth {@{}|X[l]@{}|X[l]|} \textbf{A)} #1 & \textbf{B)} #2\\ \textbf{C)} #3 & \textbf{D)} #4\\ ...
14
votes
2answers
346 views

Very slight discontinuities in table borders

Tables in LaTeX all seem to have slight discontinuities in the outside vertical borders - little notches that are only really visible if you zoom in. Example: \documentclass{article} ...