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

2
votes
2answers
38 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] ...
2
votes
0answers
28 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
51 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
28 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
25 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
33 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\\ ...
1
vote
1answer
18 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: ...
0
votes
2answers
29 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
37 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} ...
2
votes
1answer
38 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? ...
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
75 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} ...
2
votes
0answers
39 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} ...
1
vote
0answers
36 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}{!}{% ...
1
vote
0answers
19 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} [...] ...
4
votes
2answers
52 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 ...
2
votes
2answers
40 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
85 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
31 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
22 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
171 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} ...
2
votes
1answer
63 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: ...
1
vote
1answer
39 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 ...
1
vote
2answers
38 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
70 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
172 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
62 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
46 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
28 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| } ...
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
26 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
23 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
41 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
19 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
43 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
42 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
74 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
47 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. ...
2
votes
1answer
38 views

how to make this Table with multiple rows

Hi all how i could make this table in latex?? i tried but no luck here is the code i try: \documentclass[letterpaper]{article} \usepackage[english]{babel} \usepackage{color} \usepackage{array} ...
2
votes
1answer
28 views

\multirow cell is not vertically centered when \cellspacetoplimit and \cellspacebottomlimit are used

Common cell is not centered vertically. Without \setlength\cellspacetoplimit{5pt} and \setlength\cellspacebottomlimit{5pt}, it is centered. But I do want additional spacing between rows. I can ...
1
vote
0answers
27 views

Trouble with footnotes in Tables made in Stata using “esttab”

I am having trouble displaying my footnotes in my table, the notes keep running as one long line and it makes it so I cannot see my fifth column either. I have tried using \threepart table and also ...
1
vote
0answers
35 views

Adjusting column width in siuntix table

I have a table that I am trying to adjust the column width of, to make it a bit smaller. I am using \renewcommand{\tabcolsep}{.00001pt}to do this. However, one column does not seem to respond to this ...
1
vote
1answer
30 views

Curly brackets spanning multiple lines (no math env) | Only 1 curly bracket, at 1 side

Adapted from the question: Curly brackets spanning multiple lines (no math env) Inside a tabular environment (non-math context), how to have only 1 curly bracket (e.g. only the left one) spanning ...
2
votes
0answers
80 views

How to place multiple tablenotes on appropriate page with longtable?

I am trying to get footnotes (footnotes 2 and 3 in MWE) at the bottom of the table on the appropriate page with longtable. But with MWE I have provided I am able to get footnote only at the end of the ...
0
votes
0answers
21 views

how to make table? [duplicate]

how to make table like this in image? I want to produce the line {} in first cell