{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
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} ...
2
votes
1answer
60 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
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} ...
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
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), ...
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
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
27 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
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 ...
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
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 ...
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}} \\ & ...
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
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
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} ...
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) ...
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} ...
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
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 ...
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} ...
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 ...
1
vote
1answer
34 views

How to colour a cell and keep the contents in maths-mode?

I am trying to colour certain table cells in some siunitx S columns. The cell colour change with xcolor/colortbl works, but it seems to also change the cell contents to text-mode, which has ...
0
votes
0answers
23 views

\underset error message within my regression table

I am new to LaTeX. I am asking a question regarding a regression table. I am trying place some standard errors below some coefficients. In order to do this I have use the following within my ...
3
votes
2answers
102 views

Baseline of a cell with a rule is messed up because of \color

I have a table (tabulary) in which some cells are only filled with a rule. This rule is 1ex thick and I want that the bottom of the rule matchs the baseline (of all cells of the row). I've found that ...
1
vote
1answer
26 views

Creation of Specific Table

I have some trouble creating the a table in my LateX document, do you have any suggestions on how to do it? I have the following table but I need to have a "Value" and "Relative Error" header like in ...
1
vote
1answer
33 views

Increasing font size makes coloring of last table column incomplete

My table is aligned to the left by using \hskip-1.50cm. When I increase the font size from 10pt to 12pt, the table's layout shifts to the right and understandably so. The alternating rowcolors do not ...
1
vote
0answers
23 views

Referencing to inputted table

I have many tables generated automatically in separated tex files which i input in my main document using \input{table1} \input{table2} ... Is it possible to refer to this table by using its name or ...
1
vote
1answer
40 views

Curly brackets catching many lines in tables

I have the following table \begin{center} \begin{tabular}{ |p{3cm}||p{3cm}|p{3cm}| \hline \multicolumn{3}{|c|}{Bosonic spectrum of type IIA and IIB theories} \\ \hline Sector& IIA & ...
2
votes
1answer
44 views

numbers too long to fit in a column

Hi I have the following code \documentclass[12pt,a4paper,twoside]{report} \setlength{\textwidth}{16cm} \setlength{\oddsidemargin}{0pt} \setlength{\evensidemargin}{0pt} ...
1
vote
1answer
36 views

Create inferior triangular matrix without extra vertical lines

I want to create an inferior triangular matrix like shown in the picture below. My attempt was the following: \documentclass[a4]{article} \usepackage[utf8]{inputenc} \begin{document} ...
1
vote
1answer
64 views

3x3 Normal Form Payoff Matrix in LaTeX Tabular Environment

~Disclaimer~ This question is a generalization of this question to the 3x3 case. I would like the same format as the top example in the answer to the above question; That is, "Player 1" on the left, ...