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

6
votes
1answer
83 views

Getting certain data out of .txt file

I'd like to use an external .txt file to provide a table in my LaTeX document with data. To achieve this I've taken into consideration the pgfplotstable package and the filecontents package. Both of ...
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? ...
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
35 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} ...
7
votes
1answer
431 views

Draw register map with TikZ

I was wondering if there was a way to easily draw a register map (like the one below) in LaTeX, possibly in TikZ? The closest I've gotten is just using the tabular environment and that's not even ...
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 ?
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 ...
3
votes
2answers
102 views

Table spacing and alignment

I'm having some problems with tables: 1) Right now cells are centrally aligned (horizontal & vertical). I would like to centre the cells horizontally only so that the text remains at the top of ...
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 ...
3
votes
1answer
69 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} ...
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
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
35 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
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} [...] ...
3
votes
1answer
221 views

Problem with Multicolumn and Multirow table

I have a problem in my multirow and multicolumn table. As you can see in the figure, there is an extra horizontal line over the first column. Can anybody tell me how to remove it. I constructed the ...
4
votes
2answers
4k views

Subfigure arrangment with no caption with IEEE format

I have a little problem. I am trying to arrange to subfigures side by side (i.e. a graph and its legend) using the IEEE article format and I cannot remove the subcaption. I was using package ...
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: ...
0
votes
2answers
30 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
170 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} ...
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 ...
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
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 ...
10
votes
3answers
14k views

Set longtable to fit the page-width

I would like to set a longtable to fit correctly the page-witdh. From now, I've this situation: and the related tex code is: \usepackage{array} \usepackage{multirow} \usepackage{longtable} ...
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| } ...
1
vote
0answers
26 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 ...
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 ...
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.
3
votes
1answer
40 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
18 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), ...
6
votes
2answers
755 views

Text in table with images is not aligned on top

I have table with text in the first column and image in second. I want both columns to be top aligned. I use following code: \begin{tabular}{p{3cm}l} Internal state after adding 2 elements & ...
1
vote
4answers
89 views

Multicolumn table with different alignments

I want to draw the following multiple column table in latex. The headings are centrally aligned and the other text is left aligned. How to do this? Here all fields such as One, Two etc may contain ...
41
votes
7answers
57k views

Inserting a small vertical space in a table

Is there a way that I can insert a small space in a table? When I use a superscript, the number touches the \hline. \documentclass[9pt,letterpaper]{article} \usepackage{helvet} ...
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
71 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
3answers
72 views

Really big table and I can't fit it in one page please help!

I have this table, and I can't fit it, I've tried using adjustbox and resize but it wouldn't fit all of it in a page. Please help! \begin{table}[h] \centering \caption{My caption} \label{my-label} ...
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} ...
3
votes
3answers
49 views

Tables: adjust column widths

I would like this table to adjust the width of its columns to the content. Columns 2, 3 and 4 are way big. Any suggestions? \documentclass[12pt]{article} \usepackage[margin=3cm]{geometry} % ...
2
votes
4answers
54 views

Horizontal centering in table - alternative to array package

I am very new to LaTex and I am having some problems with centering values in a table. I have created the table as below. \documentclass[11pt. oneside]{article} \usepackage{makecell} ...
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 ...
3
votes
1answer
88 views

End of proof sign outside table

How to insert an end of proof sign outside a table (on the right on the table, on the same last line)? So far, I only managed to insert the end of proof sign in the bottom-right cell of my table, or ...
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 ...
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