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

3
votes
1answer
66 views

How to divide the column in equal size in table

below is my code snippet. I want to make the size of all column equal. The column "XYZ" is not coming in same size with others. The same code works with \documentclass[conference]{IEEEtran} class ...
0
votes
2answers
63 views

Could someone turn this table into a latex table?

I have this table on Word and I would like to convert it to a latex table. The only thing is I don't know how to create rows that have 2 lines. If someone could just give me the code to make this ...
3
votes
3answers
85 views

How to align table so that it doesn't overflow the page horizontally

I need this to fit in page, but it overflows! I tried reference on the link How to shrink a table automatically so that it fits onto a page? Latex table goes out of page border but no success. ...
1
vote
0answers
55 views

Toprule, midrule and bottomrule not showing up correctly

I'm trying to set up a table with the nice look from the \toprule, \midrule and \bottomrule commands. However, they don't seem to show up correctly - the thickness of the top and bottomrule are not ...
2
votes
2answers
49 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 ...
0
votes
0answers
20 views

Multiple row in heading for tables

I have a problem formulating two rows in my heading of my table using pdfplotstable exporting csv file from excel. This is what i have: \usepackage{pgfplotstable} \documentclass[a4paper, 12pt]{book} ...
2
votes
2answers
41 views

how to make table width fit to width of column?

This table should fit into one column of two column page perfectly. But it displayed a bit longer than column width. I want to make it fit correctly. \begin{table}[h] \renewcommand{\...
2
votes
0answers
29 views

How can I set individual column alignment while using siunitx?

I'm using the following code to make a table that will many many more rows. I want to make it so that the columns that contain numbers will be right and left justified, like the Year row looks like. ...
1
vote
0answers
57 views

Removing blank page before landscape table

I am for the first time using a landcape for some big table I want to put at the end of an article. I noticed that each time I am using it, it left me some white blank page before. Example: As you ...
3
votes
1answer
34 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 ...
2
votes
1answer
27 views

pgfplotstable with .tsv file where the headers have underscores: How to avoid “Missing $ inserted”?

The file I want to show is a .tsv file that I cannot edit. It looks like this: up_gene up_chr up_strand up_Genome_pos APLP2 chr11 + 129991686 BACE2 chr21 + 42617990 BRDT chr1 + ...
1
vote
1answer
41 views

How do I include the word “Table” in the LoT for longtables?

I'm working on my thesis using a package provided by the University. When I compile my document, the LoT is displayed as follows: Do you know how can I include the word "Table" for the appendix C ...
2
votes
1answer
34 views

Equation Array Nested inside Tabular

This kind of set up where equation array or some align environment, doesn't seem to work inside tabular environment event if math mode is enabled: Eg : Align \begin{align*} (1+x)^2 &= 2\\ \frac{...
1
vote
1answer
24 views

Reproducing formatting of MIX words/Text across multiple cells of a table

I'd like to reproduce the formatting of MIX words in Knuth's The Art of Computer Programming. There is good example of what is giving me problems on the 3rd image on this page: http://stackoverflow....
0
votes
2answers
31 views

Table multicolumn branched columns

I would like to generate table exactly with same pattern. I am trying from last few hrs not able to get it correct any one could plz help me ASAP thanking you
1
vote
1answer
44 views

footnote numbering

Whatever I do the footnote starts with the number 5. How can I change that? \documentclass{article} \usepackage{tabulary} \begin{document} \setcounter{footnote}{1} \begin{tabulary}{\textwidth}{LLLL}...
2
votes
1answer
40 views

How to set equal size of cells in tabular environment?

so i would like this table to have equal sized cells, but I cant seem to avoid the overlapping of cells in the second row. How can I define a size? \documentclass[graybox,envcountchap,sectrefs]{...
2
votes
2answers
53 views

\frac fails in tabular environment

Surprisingly the following code shown below fails if there's a \frac, if not it works fine i.e. x/y(z) etc \begin{tabular}{cc} \frac{1}{2} &\frac{3}{4} \end{tabular} any ideas ?
2
votes
2answers
78 views

Position of table columns

What can I adjust so that both columns begin on the same line? \documentclass[a4paper,10pt,fleqn]{article} \usepackage[polutonikogreek, latin, english, french, ngerman]{babel} \usepackage[utf8x]{...
2
votes
0answers
46 views

How to prevent \rowcolor from altering the thickness of cell borders?

\rowcolor seems to alter the thickness of cell borders. Example: \documentclass{scrbook} \usepackage[table]{xcolor} \definecolor{maroon}{cmyk}{0.20,0.00,0.00,0.00} \begin{document} \noindent\begin{...
1
vote
0answers
38 views

Beginner's problem - Undefined control sequence… Problems with RITA package [closed]

I am having a lot of "small" problems with my code in ShareLatex. I think the most of them because the package provided from the Journal (I copied the code for new project in ShareLatex and it worked ...
1
vote
1answer
36 views

How to fix the columns width in a table

I tired a lot with the following code but always i get unequal size of columns { I need columns (2-end) of the same width. \begin{table}[h] \resizebox{\textwidth}{!}{% \begin{tabular}{|p{8cm}|l|l|l|l|...
1
vote
0answers
21 views

How do I minimize tabulary width, contingent on minimizing height or lines per row?

I frequently find that I want to make a table with final column (typically out of 3-5) that will automatically break over multiple lines. So I use \begin{tabulary}{\linewidth}{llL} [...] \end{...
4
votes
2answers
55 views

How do I centre a tabularx table?

I have a pretty big data table for an organic chemistry lab and trying to make it look nice as possible. However, not all headers are centred. % Organic Chemistry II Lab Template \documentclass{...
2
votes
2answers
48 views

Different Vertical Alighments Across Columns in a Table

I'm trying to create a table where some of the columns are are meant to be centrally (vertically) aligned, and some are meant to be at the top. It appears that using the 'm' column type for centering ...
2
votes
2answers
90 views

Sorting table entries automatically

As one part of my thesis, I have more than 20 tables. I need to sort their entries alphabetically. The tables are in following format: \begin{table} \label{tab:first} \begin{tabular}{lllllll} ...
1
vote
1answer
27 views

Vertical alignment of attributes on long table

I have created a longtable of 4 columns. As shown below. I would like to have the attribute on the first column, in this case "Business" vertical (sideways)instead of horizontal. What is the easiest ...
0
votes
2answers
33 views

vertical rule in tabular cell over part of its height

I want to insert a vertical line in a tabular cell which doesn't run over the full height of the cell, but only 90% of it. I tried: \vrule height 0.45\height depth 0.45\height, but \height throws ...
0
votes
0answers
23 views

rowcolor in an imbricated table

When I use the \rowcolor command in an imbricated table, all the rows of the inside table are colored: \documentclass{article} \usepackage[frenchb]{babel} \usepackage{colortbl} \begin{document} \...
4
votes
2answers
175 views

Table with unknown number of rows

I (a LaTeX noob) am trying to create a command that I will call as follows: $\machine{a_1}{a_2}{\vdots}{a_n}$ with a variable number of arguments, which will output $\begin{array}{|c|} \hline ...
2
votes
2answers
25 views

removing spaces and cleaning table in latex

how to remove the spaces which i think from automatic justification in table \documentclass{article} \usepackage{array} \usepackage{longtable} \begin{document} \begin{longtable}{|m{33.19mm}|m{43.51mm}...
2
votes
1answer
87 views

How can i insert a big table in IEEE template?

I am using IEEE template for my paper writing. Now i want to insert a table which is 11x12. So it needs to stretch to the two columns format in the IEEE format. I did like this: \documentclass[...
1
vote
1answer
40 views

Why one cell in a table have different height?

I am trying to make a table having equal height and width to all the cells. I tried this code: \documentclass[conference]{IEEEtran} \setlength{\extrarowheight}{1pt} \begin{table} \centering \caption{...
1
vote
2answers
42 views

How can i make table cells having same width?

I want to make a table where all the cells will have equal width. Here the cells width of automobile is bigger than the others.So i want to take all the cells have the width of automobile. I tried ...
3
votes
1answer
74 views

Table alignment around \pm sign: how to have good alignment without \pm, where appropriate?

First, a MWE: \documentclass[12pt]{article} \usepackage{parskip} \usepackage{amsmath} \usepackage{upgreek} \usepackage{siunitx} \usepackage{booktabs} \usepackage{dcolumn} \usepackage{graphicx} \...
4
votes
3answers
186 views

Change Table name from 'Table S 1' to 'Table S1'

I used the following command to name my tables in the supplementary file. A question is how can I remove the space in 'Table S 1', so that it becomes 'Table S1'? \documentclass[12pt,a4paper]{article} ...
2
votes
3answers
67 views

Alignment in tables using siunitx

I am using the siunitx package to align some numbers in a table. See below for preamble \documentclass[12pt]{report} \usepackage[T1]{fontenc} \usepackage{textcomp} \usepackage{booktabs} \...
2
votes
1answer
68 views

How to avoid equation from touching h-lines in tables

I have lengthy equations in table and I want to avoid these equations from touching table horizontal lines. I have used struts for this purpose but first row it seems that struts are not working as ...
2
votes
2answers
29 views

Table not fitting to column

I have written code for a three column table, but it extends beyond the column margin. How can I fit it in the double column setting of my document. \begin{table} \centering \begin{tabular}{|c|c|c| } ...
5
votes
1answer
106 views

Pass part of halign body as an argument to macro (previously AMS align and its groups)

I originally thought this had to do with the align environment but I discovered it's a feature of \halign, hence the major edit. When inside a tabular environment or simple halign, I need to be able ...
0
votes
0answers
25 views

My pages are not the same size on the PDF for my Senior Econ paper

I don't know if a basic working example would help, as I would not be surprised if packages are conflicting or I have a typo or syntax mistake in the 10 page document. And I've no doubt made it much ...
1
vote
0answers
29 views

Merging cells of adjacent Rows

Is it possible to merge rows like we can merge columns in Latex. I want a table like following.
0
votes
1answer
33 views

Mixing vertical alignments in a tabular

I know about tabu,tabularx, array, and the likes, but none of them seem to provide a satisfying answer to a remark made in the LaTeX Table Hints and Tips by Adrian P. Robson. Quoting: ...
2
votes
2answers
26 views

Vertical alignment trouble between text and equation inserted in two \longtable cells

I have a horizontal table, made with \longtable, with two cells: in the left cell there is text, and the right cell contains an equation I implemented with the \alignat command. If I use the attached ...
3
votes
1answer
49 views

Place matrix and image side-by-side

I am trying to place a matrix and an image side-by-side in a tabular format, using the following code (following the style in Image next to Equation). \documentclass{article} \usepackage{amsmath} \...
2
votes
1answer
22 views

Column-layout tabular in subfigure

I want a table over each column in my figure that contains subfigures in a column-layout. I have tried different combinations of minipage and adjustbox, but have not managed to find a solution. The ...
2
votes
2answers
53 views

vertical centering in tabular using array and booktabs

In the following school timetable for my 4 kids I am trying to use array and the m{} command (vertical align middle) to get the word Peter to be vertically aligned in its cell, (at the cmidrule), ...
2
votes
1answer
51 views

Formatting table to have column width in twocolumn article

I have these tables in an article which I need to be of the article column width with equal columns, or whatever looks the best. I also would like to not put a full line break between the rows, but ...
2
votes
2answers
80 views

Equal size subfigure

I want my subfigures to look uniform, thus each having same width and height. Additionally, each of the two rows should have a center, around which all subfigures in that row are centered. I want ...
3
votes
1answer
53 views

How to color background of header row in latex

I have a document with a lot of tables. I would like to change the background color of the header row, for all the tables in whole document in one go without having to change the table codes itselves. ...