{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
57 views

Error in setting proper dimensions for table

Here is my effort to generate this table. I wanted to know why I get an error? error is "undefined the sequence". Alternatively, any better format is welcome to tabulate following sample data. \...
3
votes
1answer
71 views

tikz in table with right colored arrows and xshift and y shift

I have the following code as can be seen below the images. The output I have now is like the first image below. I want the output to be as in the image below with blue and red arrows in the middle. ...
4
votes
3answers
65 views

Can't change longtable width for middle column

When I specify the width by \begin{longtable}p{xcm} For example, here is my code \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{longtable} \begin{document} \newpage \begin{...
4
votes
3answers
111 views

Centering Two Tables side by side

I would like to present two tables side by side, however the positioning is not as I would like: How can I center the captions below the tables and center both tables on the page? Compiling ...
4
votes
1answer
50 views

how to resize the columns of a table?

I have used a table in my document. this is a part of the code : \documentclass[a4paper]{article} \usepackage{tabu} \usepackage{longtable} \usepackage[table]{xcolor} \usepackage{ltablex} \...
2
votes
1answer
62 views

The table in the center of a cell align

How to achieve this alignment? Instead: \documentclass{article} \usepackage{array, tabu} \begin{document} \begin{table}[h] \begin{tabu} to 1.0\textwidth { |X[c]|X[c]| } \hline $ N_{1} $ & $ (0: ...
1
vote
1answer
23 views

Table caption not left aligned in revtex

I am currently writing an APS article and use: \documentclass[% reprint, amsmath,amssymb, aps,nofootinbib, ]{revtex4-1} % \usepackage{graphicx} \usepackage{dcolumn} \usepackage{bm} \...
4
votes
2answers
55 views

Rules across specific columns

I would like to create a table like which looks like this: I'm unable to insert the lines for headings properly still. Here is the code: \documentclass[10pt,conference]{IEEEtran} \begin{document} ...
5
votes
2answers
134 views

How to draw a down arrow inside a table?

I want to draw a \downarrow (or any arrow) inside my table. The table is as shown in the one below: And I want to to be more like this: And this is the code I have: $\rotatebox[origin=c]{90}{}%...
-2
votes
0answers
42 views

hi all I a new learner to the latex. Help me plz to code this diagram in the latex [duplicate]

I have done this but how to proceed further I am not getting share1: $x_1$ - \hspace{1cm}$f_1(x_1)$\hspace{1cm}\ldots\hspace{1cm}$f_i(x_1)$ \hspace{1cm}\ldots\hspace{1cm}$f_{last}(x_1)$ share2: $...
1
vote
3answers
151 views

Latex Table goes outside page width

A mimimal working example of what I am facing right now: \begin{table} \centering \begin{tabular}{|c|c|c|c|c|c|c|} \hline \multicolumn{1}{p{2cm}}{\centering Mass ($h^{-1}\;M_{\odot}$)} & \...
1
vote
1answer
36 views

Table of contents title and author appear

I'm having a problem with the table of contents, the title and the author appear in it and I can't manage to remove them. \documentclass{llncs} \pagestyle{plain} \usepackage[utf8]{inputenc} \...
6
votes
2answers
48 views

Precision setting lost when postprocessing rows

I want to generate a formatted table from a CSV file: with every other row in a different color using 4 digits precision for numbers Right now I can't seem to have both. Here's an example code to ...
8
votes
2answers
64 views

Creating left (only) curly braces in tabular environment

I have found the code below that almost does what I want. But since I do not understand it, I do not know how to alter it to my purposes. The code below generates a brace on the right side of a ...
1
vote
1answer
28 views

Replacing text in table via overlay causes table to move: beamer

I am using beamer and trying to change a word in a table via overlays. So, "constant" should appear on some slides and "non-constant" should appear on other slides---both in the same box. (This same ...
0
votes
1answer
65 views

How would I go about creating the following tables?

I would like to know how to create such tables in latex. Thank you!!
2
votes
2answers
54 views

Tabular: Couple dimensions of one tabular to another tabular

tabular sets column widths to the widest element across all rows. Is it possible to set two or more separate tabulars to consider each other's column widths and pick the largest of the them? For ...
3
votes
1answer
71 views

multicolumn table with a legend in latex

I'm not very experienced in drawing tables in latex, but for this paper I have no choice. Please forgive me, if this is a stupid question. So, here's my preamble: \documentclass[a4paper, 12pt]{...
2
votes
1answer
57 views

filled circle in table field

At the moment I am using beamer and have a table in a frame: Everything works fine except that where I put this color filled circle the table breaks apart but I want to have the circle just within the ...
2
votes
2answers
35 views

Alignment in table depends on length of header

When I delete the header "General variables used in the header" in the code (or any long text), the two columns overlap like this: Current output: Current code: \documentclass[12pt,twoside]{book} ...
1
vote
2answers
47 views

Table going beyond the page width

Why this table expands beyond the page? \begin{table} \caption{Class distribution in the succeeding partitions from $ A_{1} $ and $ A_{2} $} \label{table:ClassDistribution} \newcolumntype{R}{>{\...
6
votes
1answer
70 views

Improper alignment in tabular environment when using xcolor table option

I came across weird behavior when loading xcolor=table option that affects the proper alignement in the tabular environment. The output of this MWE \documentclass{beamer} \usepackage{siunitx,...
17
votes
2answers
439 views

Why is & special outside of tabular environments?

Consider the following m(non-)we: \documentclass{standalone} \begin{document} Foo & Bar \end{document} The build will fail with ! Misplaced alignment tab character &. while it will ...
3
votes
2answers
41 views

Drawing separated dashed/filled rectangles (sub-tables) within a tabular environment

Please, I need to draw a table that looks exactly like the following one Thickness is not important here, but rather the grouping and shading of symbols in rectangular sub-tables within the main ...
2
votes
1answer
37 views

Problem by merging columns in the table's heading

I am trying to create two tables: one with two columns and the other one with three columns, in both cases the first row should be one cell merged over all columns. Besides, the content of this first ...
0
votes
0answers
26 views

Tabular Cell Vertical Centering: \hline

I find that \hline skews vertical centering. What can be done such that cells are symmetrical when using hlines between rows.
0
votes
1answer
17 views

The entries in a table do not wrap in a table's cell

I have the following code: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[table]{xcolor} \setlength{\arrayrulewidth}{0.5mm} \setlength{\tabcolsep}{18pt} \...
1
vote
1answer
37 views

Table Errors - Misplaced \noalign, Misplaced \omit, extra alignment tabs

I am very new to latex, and as I'm nearing the end of my first thesis, due to submission in two days I'm placing the results which have finally been extracted after several attempts over the past few ...
0
votes
0answers
21 views

Table Notes in Sub-table

I want to add table notes in sub-table similar to the one shown below. Any help/suggestion would be much appreciated!
4
votes
1answer
40 views

Decimal alignment in a table with tabular and multicolumn

I have made a table in my document and the everything looks quite good to me. The issue is that when numbers with mixed signs appear in a column they are not aligned. \documentclass{article} \...
4
votes
2answers
82 views

How to create a table with fixed-width cells and use cellcolor and multicolumn to create time bars? Or: How to substitute ganttbar with tabular?

Failing to combine a gantt chart with a table I now try to avoid the gantt chart by just using a tabular environment. However I like to keep some neat features of the pgfgantt-package and I'm facing ...
2
votes
1answer
48 views

Tables with reference to R objects in sweave / latex

I'm using knitr/R-sweave to produce a pdf-document wit LaTeX-code. I want to make a table with some numbers produced by some R calculations in the R-code-chuck above this table. When I usually want to ...
1
vote
1answer
38 views

LaTeX Error: Illegal character in array arg. : Table parameter “m{'width'}”

! LaTeX Error: Illegal character in array arg. \begin{center} \begin{tabular}{ | m{'1cm'} | m{'1cm'}| m{'1cm'} | } \hline cell1 dummy text dummy text dummy text& cell2 & cell3 \\ \hline ...
0
votes
1answer
33 views

Vertically centered multirow with automatically wrapped multilined cells

I have the following code for a table. \documentclass{article} \usepackage{tabularx} \usepackage{makecell, multirow} \renewcommand\theadfont{\bfseries} \begin{document} \begin{tabularx}{\...
1
vote
1answer
48 views

latex table to continue on the same page

I need to generate a latex table using data from a csv file. The table has only two columns with about 500 rows. I would like to make best use of the space and continue the table on the same page, ...
0
votes
0answers
22 views

Creating own Column Type with vertical and horizontal centering

I have following Code to create a custom ColumnType: \newcolumntype{K}[1]{>{\centering\arraybackslash}p{#1}} %Own ColumType that is centered But my problem is I need additional to the ...
2
votes
0answers
51 views

Error “Undefined control sequence” [duplicate]

I need help. I'm building a table but I always get this error. Here's my code: % Table generated by Excel2LaTeX from sheet 'Sheet1' \documentclass{article} \usepackage{booktabs} \usepackage{graphicx} ...
0
votes
0answers
19 views

Beginning Table immediately after Reference section

I am attempting to include a table after the Reference section so that the table appear after the word reference and that they are on the same page. However, with the code below, the table appear ...
3
votes
0answers
62 views

Remove most bottom space of tabular (or tikz-picture?)

I'm trying to add a table-like structure left of a ganttchart. It appeared to me that labeling every bar with its own tabular of fixed column-width would be the easiest and I got quite close to what I ...
2
votes
2answers
27 views

Question marks in a reference to a table?

I have this code and when I compile (even several times) some question marks appear on the pdf in the place where the reference should be. Actually if we perform an Augmented Dickey-Fuller test on ...
1
vote
1answer
18 views

Landscape longtable pagenumber rotation works only for 1 page!

Assume I want to draw a multi-page landscape table. Also I want to rotate the pagenumber to landscape. I figured out the following MWE for this, however as you can see, it rotates only the pagenumber ...
2
votes
1answer
47 views

Text boxes that cover several pages

I am trying to faithfully reproduce the first section of the standard UK Police Witness Statement Form, known as an MG11. I am having difficulties lining up the boxes for the front page with the box ...
4
votes
2answers
46 views

How to merge the contents of the table cell without using multirow and multicolumn?

\documentclass{article} \usepackage{graphicx} \begin{document} \begin{table} \renewcommand{\arraystretch}{1.2} \centering \setlength\tabcolsep{0.5em} \scalebox{0.84} { \begin{tabular}{|l|l|l|} \hline ...
1
vote
0answers
10 views

Properly indenting new lines in caption [duplicate]

I'm trying to get a caption with manual line breaks, where the next lines indent on the left with the first one. By default the next lines are not indented at all, so I tried using a tabular ...
0
votes
0answers
27 views

how to create long table with multirows?

I'm new with latex and I'm trying to use this table which is long and divided into multiple pages. but I failed to add multirows and multicolumns to make it look like this table this is my code ...
0
votes
0answers
13 views

footnotemark equivalent for tablefootnote

There is an option to mark the same cross reference in footnote using footnotemark. Can I do the same for tablefootnote? MWE: \documentclass{article} \usepackage{tablefootnote} \begin{document} ...
1
vote
1answer
35 views

Troubling making a 4 digit addition formatted in columns

Hey I've been using LaTeX for about an hour, no experience in CS. Can anyone help me with this? \arrayrulecolor{} \[ \begin{array}{*4r} & & &8\\ & & &8\\ &...
3
votes
1answer
56 views

Overfull \vbox caused by multirow and multiline text

I have read this question, but i just can not explain why exactly overfull happens in my case, so i ask for help. First of all, two boxes in spanned cells (that ones with rotated text) produces 4 bad ...
3
votes
0answers
59 views

How to draw a table with shared cells?

Starting from such a table: \documentclass{article} \begin{document} \begin{table} \begin{tabular}{|l|c|c|} \hline & Property 2 & Not property 2 \\ \hline Property 1 & ...
6
votes
3answers
135 views

How to only show text?

I have a document for a student research project and want to know how many pages content without figures, listings and tables i have. My university does differentiate between content and figures,... ...