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

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
59 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
37 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
61 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
24 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
25 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
754 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 ...
40
votes
7answers
56k 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
70 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
52 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
28 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
2
votes
1answer
48 views

How to create a latex table in R with significance stars?

I have a latex table generated as following in R: \documentclass[12pt,econ]{authesis} \usepackage{natbib} % natbib citation style \usepackage{url} % added 2015-067-06 bc the example .bib ...
5
votes
1answer
86 views

inconsistent table number

I have the following problem: I placed two tables of the same kind following each other but the second table has inconsistent number: The first table has the number 2.1 (chapter 2, Nr. of the table 1) ...
0
votes
0answers
19 views

Colouring Specific Blocks of Rows in a Table

I have my table formatted how I want it. Just want to colour in the A-Type multi-rows, and the C-Type multi-rows; to distinguish them from the B-Type. I wish to have them coloured grey, but only a ...
0
votes
1answer
25 views

Colored tabular - line not showing

\begin{tabular}{| p{10cm} | c |} \hline & \\ {\bf Requirement:} & {\bf Categorie:} \\ & \\ \hline & {\cellcolor{green}}\\ text & {\cellcolor{green}{\bf Must Have}} \\ & ...
2
votes
1answer
27 views

\fontsize command not working as expected

I have some tables in the middle of a document which is in written in 12pt and I'm trying to make them in 10pt. Only the tables. If I write \begin{table} \centering \fontsize{10}{12} ...
1
vote
2answers
61 views

Arabic cells' tables rendered from right to left

Is there a way to get arabic cells' tables rendered from right to left just like they are typesetted. here is a minimal example! \documentclass[]{article} \usepackage[ utf8 ]{inputenc} ...
1
vote
1answer
24 views

Remove top space from lstlisting inside tabular

I have the following problem. lstlisting seems to add an extra space before and after the code. Is there a way to remove it ? I would like to remove the blank spaces before and after the code : ...
1
vote
1answer
42 views

Font size control in table

I have a table that is too wide to fit in a page. How to change the font size in a table? This is the source code. \documentclass[12pt]{article} \usepackage{booktabs} \usepackage{multirow} ...
3
votes
2answers
259 views

Insert table in arabic document

How to insert table in arabic document (using arabtex package)? The table also contains arabic text. I tried to use tabular in arabtex environment, but it didn't work.
1
vote
1answer
37 views

Mysterious summing: when calculator 's \ADD macro adds too much inside a table

Background: In my previous question, Robert Fuster taught me how to define a global variable using calculator package. I want to define a "counter" that also works with non-integers. I thus defined ...
1
vote
2answers
49 views

Using locally defined calculator commands inside tables (tabularx)

Inside a table, I want to draw rules. Their length equals the cell length times a predefined ratio (i.e. \rule{\ratio\linewidth}{1ex}). I use the \DIVIDE{A}{B}{\ratio} function of the ...
24
votes
2answers
20k views

Evenly distributing column widths

Consider the following hunk of code: \begin{tabular}{| c | c | c | c | c | c | c | } \cline{2-7} \multicolumn{1}{c}{} & \multicolumn{3}{|c|}{Fantastical aardvarks} & ...
20
votes
2answers
25k views

Automatic line-break in tabular

I'm making a tabular and I'd like to automatically do a like break rather than going beyond the page. This is my tabular code: \begin{table}[h] \begin{tabular}{|l|l|l|} Use Case Navn: ...
3
votes
1answer
28 views

right to left arabic characters in tables

How to get right to left arabic characters inside a tabular environment with the arabi package without to have to insert the \AR command in each cell ? \documentclass[A4,12pt]{article} ...
4
votes
1answer
50 views

Inconsistent spacing of suffix in siunitx formatted table

I want to produce a table with two prices in a row, using siunitx to achieve a pleasant and consistent display of the numbers. Trying not to repeat the currency symbol in the data rows, I insert it as ...