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

0
votes
0answers
23 views

Verticle center alignment from the preamble

I am using pandoc, and it converts tables to a longtable without the ability to modify them. It converts: | table | header | |-------+--------| | 23 | 24 | | 13 | 14 | to ...
0
votes
1answer
19 views

Vertical alignment for subtables

I want to do vertical alignment of subtables. The following is a minimal example of the tables I have. \documentclass{article} \usepackage{multirow} \usepackage{subcaption} \begin{document} ...
1
vote
1answer
38 views

how to create a table where a column is text that wraps?

The basic tabular package seems oriented for short columns, not where text wraps. What to do when the third column in this case can be multiple lines of text that should wrap? \begin{tabular} ...
2
votes
2answers
40 views

Creating reusable table with one column's data different each time

I am attempting to write a design document that lists a number of requirements. Each section of the document then describes an entity that needs to fulfil those requirements, and I have decided the ...
0
votes
1answer
21 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} ...
1
vote
0answers
25 views

How to cross out few entries in table?

I want to create a table similar to one shown below. I know how to create a table using tabular environment but I don't know how to put these red horizontal lines that eliminate few of the entries ...
4
votes
2answers
66 views

4 tables in 1 sheet

I've 4 tables: \clearpage %Entropía de shift de bernoulli \begin{table} [ht] \centering \resizebox{10cm}{!}{ \begin{tabular}{ | l | l | l | l | l | l | l | l | l | l | l |p{2cm} |} ...
1
vote
3answers
46 views

How to use multirow?

I am trying to create this table on latex however I dont know how to use multi row.Here is my code \begin{center} \centering \begin{tabular}{ | l | l | l | l | l | } \hline & & ...
0
votes
2answers
58 views

Customized table

How can I create a table like the following? \begin {table}[H] \caption {Table Title} \label{tab:title} \begin{center} \begin{tabular}{|c|c|c|c|} \hline \multirow{2}{*}{A} & ...
1
vote
1answer
21 views

\renewcommand in tabular with \input

I have generated a bunch of files (exp1.tex-exp10.tex) for different experiments that define my variables by \renewcommand{\minabserror}{\SI{0.01}{\meter}~}% ...
1
vote
1answer
39 views

Fit a very wide table on the page

I am showing a comaprison in a table. As shown in the LaTeX code below, the information I specify in the second column, second row is a bit long. When I compile the code, that information in the table ...
4
votes
2answers
104 views

Using multi row and multi column for table

Using multi row and multi column, how can I generate the following table in latex? What I got so far: \documentclass{article} \usepackage{multirow} \begin{document} ...
2
votes
1answer
28 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 ...
0
votes
1answer
28 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} ...
2
votes
1answer
45 views

Transparent table cell color

I have a simple table \documentclass{article} \usepackage[table]{xcolor} \usepackage{adjustbox} \usepackage{booktabs} \begin{document} \begin{table} \rowcolors{2}{}{gray!10} \centering ...
0
votes
1answer
29 views

Need help converting table to longtable

How convert the following table to longtable with the same setting. I have problem with enumerate and correct size row and {tabular} not working in longtable \documentclass{article} ...
2
votes
2answers
48 views

Table: gaps in row color

I have the following table. \documentclass{article} \usepackage{lscape} \usepackage[table]{xcolor} \usepackage{tabu} \usepackage{makecell, multirow} \renewcommand\theadfont{\bfseries} ...
1
vote
0answers
29 views

Subsections not displaying in TOC despite \setcounter{tocdepth}{5}

I have a problem with my script, because the subsections aren't showing up at my TOC. What did I do wrong? \documentclass[a4paper,12pt]{scrbook} \usepackage[utf8]{inputenc} %Umlaute ...
2
votes
0answers
21 views

Fixed width table with variable width columns [duplicate]

What I'm trying to achieve is a fixed width (full width of the page or column) table with variable column widths. Here's what I've got: \usepackage{tabulary} % Table Environment ...
1
vote
2answers
39 views

Table Border remains open

I'm struggling with properly closing the border around the following table (column 2 & 3). I'm relatively inexperienced with LateX and my searches yielded little result. \begin{table}[h!] ...
2
votes
1answer
68 views

How to create a complex table in Latex

I've tried making a table like this, but I failed letting the text in the first column be centered. Here is my code, can anyone give me a hint? \documentclass[11pt,a4paper,oneside]{book} ...
3
votes
1answer
34 views

Making a thick vertical line in a table

I have a table that needs some edits. First, I would like a thick vertical line separating the first column from the remaining four columns. Second, I want "Percentage of base in organism's DNA" ...
2
votes
1answer
31 views

Place this enumeration in a table

I would like to put this in a table in a 2-column article with these lines as well as a caption except it should be the column width and it should have a caption at the bottom. \begin{quote} ...
1
vote
0answers
13 views

How to make figure captions lower case with the emulateapj.sty file?

When using the emualtepj.sty style file for papers (http://hea-www.harvard.edu/~alexey/emulateapj/emulateapj.cls), the table captions appear in small caps letters. \documentclass{emulateapj} ...
3
votes
1answer
38 views

How to mix multicolumns?

I want to create a table, that is composed of 4 columns, but at the top I want to have just one whole row with a text, then underneath it two columns, then under each of two columns, another two ...
1
vote
0answers
16 views

Centering the last column [duplicate]

I have a problem centering the last column's cells. All columns are correctly centered except the last one! \begin{minipage}[b]{.5\textwidth} \centering \caption{Group assessment} %POS ...
0
votes
2answers
29 views

How to span or expand a a table

How can I expand a table like the one in the picture? I tried the following code: \begin{tabularx}{\textwidth}{x x} \hline \textsf{Australia} & \textsf{OECD} \\ \hline \rowcolor{gray!40} ...
0
votes
0answers
27 views

Page break incorrect with sideways table

I'm having difficulty with a sidewaystable: after the section heading it will leave a whole page blank after having a separate page with the table. How can I get it on the same page? ...
1
vote
1answer
73 views

How to mimic cards generated by passwordcard.org?

Assuming we have generated contents of card (i.e. excluding top header row and left indexing column) , for eg. with some pseudo-random generator script. How to render such to mimic the look of one ...
3
votes
2answers
43 views

Minipage for table in IEEE not extending to full coloumn

I am using a minipage to contain a table in the IEEE class. The problem is that the table does not extend to the whole column and somewhat appears short. Here is a reproducible example: ...
1
vote
1answer
38 views

Create table for each CSV file in a directory

Assume I have a directory which has a dynamic number of files match a certain pattern (e.g. tabledata0.csv, tabledata1.csv). Now I want to create automatically create tables out of it. Sometimes it is ...
1
vote
1answer
37 views

\cr extra alignment!

When I use the code below to create a table written in Persian, it gives me the following error: Extra alignment tab has been changed to \cr. <recently read> \endtemplate code: ...
0
votes
0answers
32 views

Single column table, spanning multiple pages, on two column document

As the title says, I would like to create a single column table, that spans multiple pages, on a two column document. On top of that, the table uses multicolumns. Below is my MWE: ...
1
vote
2answers
30 views

Issues with table formatting and merging cells

I'm having issues formatting a table with certain merged cells. This is the code I have so far: \begin{table}[h] \caption{Results} \label{table_example} \begin{center} \begin{tabular}{ | ...
0
votes
1answer
20 views

Centered tabular column, with narrow columns?

I'm trying to make a table in which most columns have the same width, and text in them is centered. However, the columns are very narrow, and the typical answer (make a new column type using ...
3
votes
1answer
36 views

Creating a Requirements Traceability Matrix

I am having some trouble creating a traceability matrix similar to the image shown below. How would I be able to create: Rotated column headings Heading row height different to the other rows any ...
1
vote
1answer
12 views

Cross-referencing within table with set numbers

I need to reference in table cell to another cell in another table. In both cells should be exhibited a number - the same number (once as a plain text inserted by me and once as a cross reference). ...
12
votes
4answers
458 views

How do diacritical marks impact centering and overshooting?

I am creating a table containing several foreign names with diacritical marks in them, and it seems to me that they ruin the vertical alignment, as they are too close to the top horizontal line. How ...
1
vote
0answers
23 views

Fix spacing of a chemfig in tabular environnement

I have a tabularcontaining several chemical formulas and unfortunately, even though the text is spaced correctly the molecules touch the border like this: Code : \subsubsection{Groupes} ...
3
votes
1answer
51 views

Why can't wrapfig indent tabular* and can it be done?

An MWE showing the behaviour of wrapfig next to a list of short tables below. \documentclass{article} \usepackage[]{wrapfig} \usepackage[]{booktabs} \usepackage[]{blindtext} ...
1
vote
0answers
19 views

Hyperlink and text fail to wrap in a table

Here is the code: \usepackage{hyperref} \begin{tabular}{ |p{4cm}|p{4cm}|p{4cm}|} \hline \textbf{Table} & \textbf{Info} & \textbf{Link}\\ \hline \texttt{sampsamp\_samp\_samp.sampsamp} & ...
0
votes
0answers
18 views

Text formatting of document, without altering in-table text

I wish to change the font size/spacing of my text for my whole document, but keep the table text format the same as the LaTeX default. When I try implement change to the text, the same happens to the ...
1
vote
1answer
27 views

FontAwesome in the Tabular environment

I am not able to compile my latex document when I put a fontawesome command in a tabular environment. This is a snippet for reproducing the error \documentclass{article} \usepackage[utf8]{inputenc} ...
1
vote
1answer
17 views

Incompatibility with align and table option in xcolor?

Let's see this MWE, painfully reduced from an institution template. It chokes on the align environment, unless I comment out the table option in the xcolor package. I would like to understand why... ...
2
votes
3answers
63 views

Center tabular env around middle column?

I have a tabular environment with three columns aligned as {rcl} such that text in the middle column is centered internally within the column. I want the whole table to be positioned in the page such ...
1
vote
1answer
32 views

Round numbers in a latex table with special character header

I am trying to round numbers in the following table. \begin{table}[H] \centering \begin{tabular} {c| cccc} T(sample size) & $\theta_0$ & $\theta_1$ & $\theta_2$ & $\theta_3$ \\ ...
5
votes
3answers
94 views

Automatically resize tabular to avoid it being pushed to next page

Context My document has one title phrase and one table containing texts. I would like to have them both on one page. The table's content may change (sometimes more or less 2-or-3-lines-texts ...
1
vote
1answer
43 views

Place tables in the middle of the page

I have two tables, table1 and table 2. I want table 1 in the middle of page 1, table 2 in the middle of page 2. First, I tried, \begin{table}[htbp] \input{table1} \end{table} ...
2
votes
2answers
55 views

how to make a normal width of the cells,when some of them are normal and all other is too wide?

i tried to make table that looks like this: I wrote this: But i did something wrong and the result was What did i do wrong (or didn't) and how i can fix it? \usepackage{extsizes} ...
0
votes
2answers
41 views

Complex table with \multicolumn

The layout that I need to implement inside Latex is this (made with M.word) I tried to make this layout Here is my Code: \begin{tabular}{ |p{2cm}||p{12cm}| } \hline \multicolumn{2}{|c|}{Lorem ipsum ...