{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
1answer
67 views

How can I use multicolumn or multirow in a tabular using the array package global formatting technique?

Awhile ago, @robintw asked a practical question: Make first row of table all bold It uses the array package to cleverly inject formatting code to the header row columns. Clever Table Row Formatting ...
2
votes
0answers
29 views

etoolbox: problem with the last row in an table automated

I want to automate a long table as follows \documentclass{article} \usepackage{etoolbox} \newcounter{test} \newcounter{count} \begin{document} \begin{tabular}{|c|c|}\hline \whileboolexpr{test ...
13
votes
2answers
42k views

How to center the table in Latex

I have got a simple code to generate table in Latex. \begin{tabular}{ | c | c | c | } \hline symbol & value & unit \\ \hline $z Na$ & 11 & - \\ \hline $z F$ ...
2
votes
2answers
48 views

Images not spaced properly

I'm placing images into a table, but they aren't lining up vertically, even though they are the same height. A complete example is: \documentclass{llncs} \usepackage{amsmath} \usepackage{array} ...
0
votes
0answers
8 views

Insert a picture of a table and refer to it as a table [duplicate]

I have a picture of a table in my document. I want the label to be for a table, and the numbering should also be for a table. How is this done?
0
votes
0answers
17 views

landscape table in horizontally oriented page

I'd like to insert a table in landscape form but I'd like page's orientation to remain horizontal. In the page, there would be only the section's title and the table. I've got them but in separate ...
2
votes
2answers
42 views

Table with wide headers and thin right aligned column text but entered with headers

I need some help creating a table with the following properties: Wide(er) headings Thin(er) text in columns Column contents should be right aligned Column contents should be centred with the column ...
2
votes
2answers
34 views

Rotate all but one table header

I want to rotate all table headers, except the one to the top left. The attached MWE does the job, but there is some space there that is caused by the one header that is not rotated. How can I avoid ...
1
vote
1answer
24 views

How to make table table references capture section and begin each section?

I would like to have table labels refer the section that they are in in addition to the order. For example, in Appendix A, the first table is A1 and in Appendix B it is B1 (rather than table 1 and 2 ...
0
votes
0answers
11 views

Conditional formatting of tables [duplicate]

I would like to format a row like shown in the screenshot taken from excel: The cells are color shaded based on how big a fraction of the column is represented by the cell. Is there an easy way to ...
0
votes
1answer
41 views

How to set arial font only in the table

I have a table. Latex code is given below. I want to set the font of this table arial - only this table not the entire document. How do I set this? \begin{sidewaystable} \small ...
1
vote
1answer
330 views

Centering vertically in table cell with other rotated cells

I would like to center the Available Expression, Very Busy Expression... Live Variables cells. The following code aligns the quoted cells only on the bottom of the cell itself: is there a way to ...
1
vote
1answer
38 views

Creating a Payoff Matrix Using LaTeX Tabular Environment

I'm trying to use my limited knowledge of LaTeX to create a payoff matrix by hand. Here's my first try: \begin{tabular}{cc|c|c|} & & Player $Y$ & \\ ...
1
vote
0answers
23 views

Table is flushed to next page despite ample room on current page

I tried inserting a table below some text. The issue is, it seemed to have shifted the table to the next page although there is ample room for it to fit in the page with text. This is what I ...
0
votes
0answers
19 views

Positioning and fitting a long table in landscape in thesis

This code has lot of errors, probably it does not have the right usepackages in the .tex file . I just need to fit it in landscape mode in one page. Also There should be bold separation between the ...
2
votes
2answers
94 views

How to modify the table command to make it perfect

I am trying to insert my table to the left column of a two columns paper. I want my table looks like this format: The following is my command, the table I create looks ugly! Can anyone give me a ...
0
votes
1answer
10 views

problem adding additional column under multicolumn option in table [duplicate]

First part of the question: I have a table \begin{document} \begin{tabular}{|*9{c|}}\hline A & \multicolumn{2}{c|}{B} & \multicolumn{2}{c|}{C} & \multicolumn{2}{c|}{D} & ...
1
vote
1answer
60 views

Display uncertainty in table using pgfplotstable, read value from file

I have a text file with 2 columns. The first column is the principal value and the second column is the uncertainty. How to read and display them together in a single column in a table using ...
0
votes
1answer
16 views

Table columns out of sync in tabularx

I asked a very similar question yesterday that I thought I would be able to abstract into this problem but I can't. Here's an image of the table : Here's the code : \documentclass{article} ...
1
vote
1answer
20 views

Trouble putting text on a new page after a table

I have several large tables in my thesis that I want to isolate on a page by themselves as only two lines of text can fit underneath them. I have tried the \newpage and the \pagebreak commands, even ...
3
votes
2answers
31 views

Table cells are out of line / sync with each other, itemize

I'm trying to have a tabular section that has bullet points next to it. There might be a better way to go about this, but currently it seems as though the cells are out of sync (though this might be ...
11
votes
3answers
27k views

Footnote in tabular environment

It seems as if footnotes would have only a problem with the table environment but in my minimal example non of those answers Footnotes in Tabulars? Footnote in table seem to work for the tabular ...
0
votes
1answer
89 views

Fixed column width ruins alignment of table row using Lyx

I am having the worst luck with a table I am trying to create. The problem occurs when I want to have multiple lines in a column, I use the trick posted on here (and I think Lyx's wiki) and set a ...
1
vote
1answer
23 views

Vertically aligning fixed height tables

I'm trying to create a table with fixed height and width cells, which I have accomplished through other posts, but now the content inside my cells seems to begin at the halfway mark. As of now, the ...
3
votes
1answer
43 views

converting a table to png using standalone

I am using standalone to convert a table to PNG. I have followed the following example. I got the output in PNG as well, please see the attached. However, when I view it with any of the image viewers ...
0
votes
1answer
20 views

Can not wrap text into table [duplicate]

I am using EasyThesis template to write my thesis. I use a file where it contains all the packages I am using. That file contains: \usepackage{fixltx2e} \usepackage[utf8x]{inputenc} % for writing ...
1
vote
1answer
35 views

Formatting a table to take a paragraph nicely

I am formatting something at the moment and there's a table which is pretty strained. There's a lot of information in it and I think that it would look better in a similar format to the modern CV ...
2
votes
2answers
140 views

why is the first column of the tabular environment not in alignment with the rest?

I would like to make a simple answer sheet that fits the width of an A4 paper. To make some space between the columns, I specify the width of each coloumn so that I can write answer key later on for ...
1
vote
1answer
106 views

using references inside a table

I am trying to analyse my bibliography in a Tabular way, to obtain the following output: for this, I use the following piece of code \documentclass{article} \usepackage{mathtools} ...
0
votes
1answer
39 views

Make a linewidth table with booktabs

How do I create a table with booktabs which is \linewidth? I tried different approaches among others to use tabularx environment or to put everything in a table environment but that did not change ...
2
votes
1answer
26 views

\multirow in the tabular environment

How to make vertically centered the text in a multirow in the tabular environment? If I type \documentclass[11pt]{amsart} \usepackage{multirow} \begin{document} \begin{tabular}{ | p{1cm} | ...
2
votes
1answer
43 views

Text in table cell not wrapped after using fix width

I'm trying to make a text wrapped in a cell. I read that I can use p{width} if I want to make the text wrapped. The cell width change following the width that I set, but the text still not wrapped. ...
1
vote
1answer
45 views

Scale column of a table in percentage of \textwidth

If I make different tables on one page, it doesn't always look as good as I wanted. The biggest problem is that some tables are wider then other. Therefore I would like to control the columns of a ...
1
vote
0answers
23 views

How do I adjust landscape tables in this journal template?

I am trying to design landscape tables within a journal template (jfm.cls). Here is an example table: There are two issues with this table: The journal automatically adds a toprule and ...
2
votes
1answer
37 views

Table lines (vertical/horizontal) not meeting up

First of all, I tried searching Tex.SX for this, and didn't find an answer, but did find lots of people saying not to use vertical lines. That part, for me, is not up for discussion, as I must fit in ...
0
votes
0answers
27 views

Table + caption in landscape on same side as section header

I am working on my master thesis, and I would like to add two tables as an appendix. There will be a header on the first page ("Appendix"), and I would like the two tables to be in landscape, along ...
0
votes
1answer
50 views

How to add full page table in two column style?

here is my table code : % Please add the following required packages to your document preamble: % \usepackage{multirow} % \usepackage[table,xcdraw]{xcolor} % If you use beamer only pass ...
2
votes
3answers
63 views

How to fit a table with long header cells in “S”-type columns?

Well fit tables in LaTeX is hard for me, and I don't know if there is a manual with good practices about it. I need to create a table with S columns contending numbers, but the header of those columns ...
4
votes
2answers
49 views

My table seems to be too wide for a page. How do I adjust it

\begin{table}[ht!] \centering \caption{Implementation of Volt/VAR Control and CVR.} \begin{tabular}{|l|l|l|l|} \hline Step & Description & Phase & Benefit \\ \hline \multirow{5}{*}{1} ...
1
vote
0answers
20 views

code working well in \document{article} fails in {revtex4} when dealing with a table [closed]

The .tex file with a table in it works well in \documentclass{article} or \documentclass{ctexart}, but fails in \documentclass{\revtex4}. \documentclass[twocolumn,amsmath,amssymb]{revtex4} ...
1
vote
0answers
22 views

Insert table with fixed width

I want to insert a table into my article. The following code can work. \begin{table} \centering \caption{Table 1 Normal function table} \begin{tabular}{|c|c|c|c|} \hline & $x<0$ & ...
2
votes
1answer
67 views

Siunitx adding the \cdot and \chemfig to get extra top space in a tabular

i am having a problem compiling, i get an error of missing $ and { also } when i use \si....... [siunitx package] ----> I tried the \sisetup... but it gives me an error, may be it has conflicts with ...
4
votes
2answers
104 views

Plot file could not be opened

The following code is from the "gallery of examples in the manual - PGFPlots". \documentclass{article} \usepackage{pgfplots} \pgfplotsset{compat=newest} \pagestyle{empty} \begin{document} ...
6
votes
1answer
9k views

Combining multirow and multicolumn

When combining multirow and multicolumn in the same cell of a table I am getting extra vertical lines: \documentclass[plain]{article} \usepackage{multirow} \pagestyle{empty} \begin{document} ...
6
votes
1answer
72 views

Center-set column headers in siunitx S columns

I'm using the siunitx package to automatically put thousand separators in all my tabular environments. It works fine, but not if you have a column header. This seemingly innocuous MWE fails to ...
0
votes
1answer
35 views

Import tables into master latex file (like graphics).

I am working with R and Latex and using R to generate a series of tables that I am exporting as a unique latex script each (e.g. it exports the table formatted for latex in a new script). I would like ...
2
votes
1answer
34 views

Table with the same column width

This is a table where is shown an exercise on long division. The grid needs to look like a notebook. I have one problem with column width in the table, depending on the character shown, the column ...
1
vote
1answer
40 views

How to fix and keep the table in the page?

\begin{table}[ht] \centering %\footnotesize %\tabcolsep %\arraycolsep %\node (table) [inner sep=0pt]{ %\footnotesize \caption{Potential of nanotechnology applications in petroleum industry} ...
0
votes
1answer
63 views

Problem with tabular

It's my first time utilizing latex, and I can’t get rid of this problem. im doing an article with two columns, using \begin{multicols}{2} but the problem, is that when I put a table with ...
0
votes
0answers
29 views

misplaced \omit with \multicolumn

Having typed \begin{tabular}{|l|l|} \hline \multicolumn{2}{|c|}{toto} \\ \hline a & b \\ \hline \end{tabular} I have as error \omit \multicolumn{2}{|c|}{toto} Having read ...