Questions tagged [tables]

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

Filter by
Sorted by
Tagged with
2
votes
2answers
33 views

Colored tables with booktabs, makecell and cellspace

While experimenting with different table-packages, I realised, that each package basically stands for itself and often lacks in compatibility with other great packages. So I tried to create a table ...
0
votes
0answers
23 views

Why does the table gets added always in the beginning of the page [duplicate]

When I add a table: \begin{table} \begin{center} \begin{tabular}{ | m{2cm} | m{6cm}| m{7cm} | } \rowcolor{Gray} \hline Aspect & Angular & React \\ \hline Développeur & Google & ...
0
votes
1answer
45 views

A table with a sidebar

How can I make a similar table as the below image with a sidebar pointing to some rows is the table? My attempt to create something similar \documentclass[12pt]{article} \usepackage{color, colortbl} ...
0
votes
2answers
30 views

gap between toprule and vertical lines in tabular

In this MWE \documentclass[]{article} \usepackage{amsmath} \usepackage{booktabs}%added 8/16/2019 \setlength\heavyrulewidth{0.5ex} \begin{document} \small \begin{tabular}[c]{|p{1.5in}|p{...
0
votes
0answers
23 views

Using if in tables (spreadtab, tabu)

I was trying to build a document with a table which could change its rows depending on whether the customer needs to pay tax or not. I tried to go with http://handyfloss.net/2007.08/latex-programming-...
0
votes
0answers
17 views

Use a legend and references instead of a table header

I'm sure this is a common problem: Sometimes, the header of a table is way too big for the columns: You end up with a table that is either too high, too wide or just ugly to look at. Previously, I ...
0
votes
1answer
32 views

combining table* with p to have two columns and occupy the full page

I have a long latex file and it is mostly messing up because of a long wide table. Also, this is a two-column file while the table itself occupies both columns. Hence, I used table* instead of table. ...
0
votes
0answers
25 views

sidewaystable with long table - next page

I have a problem with my table. If I add more 4, 5 or 6 lines, cause error. \begin{sidewaystable} %TABELA INVERTIRA \definecolor{lightgray}{gray}{0.9} \rowcolors{1}{}{lightgray} \begin{xltabular}{\...
0
votes
1answer
42 views

How to adjust the font size and width of 'tabularx'?

Here is my code, some variable names are quite long: \usepackage{tabularx} \newcolumntype{b}{>{\hsize=0.9\hsize}X} \newcolumntype{s}{>{\hsize=0.8\hsize}X} \begin{table}[htbp] \begin{...
3
votes
0answers
31 views

inputting a big number of tables into LaTex

I am working on the project in LaTex that requires me to input a large number of tables produced in R via xtable packages. Let say I have already output a large number of tables (about 150 of them). ...
2
votes
2answers
51 views

How to make my word go to second row in table content using Tabularx?

How to make the words go to second line without being automatically put a '-'? For example: Example --> Ex- ample I had tried to adjust the table length, still cannot. I prefer to use tabularx I ...
1
vote
1answer
18 views

Tables are cut and the appendix header is in different page

As can be seen there the second table of the appendix is cut. In addition, the Appendix header is in the previous page. Here is the result: Here is the code I use: \documentclass[12pt]{article} \...
0
votes
2answers
21 views

Remove extra row at end of tabular when use \centering

I want to make a outlined table with some centered text (and images, but not shown in the example). This is an example code: \begin{tabular}{|p{16cm}|} \hline {\centering{my text}\...
0
votes
0answers
7 views

How to make vertical line cutting through rows below header to appear above row color [duplicate]

I want the vertical line between the two columns to appear above the color below header row. How can achieve that? Thanks \begin{table}[h!] \centering \mycaption[Shuaiba reservoir properties]...
1
vote
1answer
24 views

Proper format of an appendix

The following section, appendix and references \section{Conclusion} something \appendix \section{Appendix: My Title} my appendix \bibliographystyle{plain} \bibliography{bibs} have a layout like ...
2
votes
1answer
29 views

creating csv simple double header

I am trying to include to first two rows as headers. I would like to have the units - - m m m etc. on every page and another line below. I am not an advanced user of csvsimple, and I have not been ...
0
votes
1answer
34 views

Confusion Matrix misalignment

I'm trying to build a confusion matrix in Latex following the approach in: How to construct a confusion matrix in LaTeX? Instead of the text inside the boxes, I would like to have numbers (at the ...
0
votes
1answer
39 views

Fix errors for a specific table

I have a table with this MWE. \documentclass[a4paper,12pt]{article} \usepackage{amsmath,amssymb} \usepackage{booktabs,makecell} \begin{document} \begin{table}[htb] \captionsetup{justification=...
0
votes
0answers
19 views

Problem with [man, floatsintext]{apa6} and tables

I am working recently with LaTeX and now I have a problem which I do not solve. I want to include every table and every figure in my document text, but it does not work and shows the floats at the end ...
3
votes
1answer
43 views

table spacing between lines

I am having tables with variabes in column A and the results in two lines in column B. However, the numbers are too Close to each other (in my opinion) and it would probably look nicer if there would ...
2
votes
1answer
48 views

Table positioning, why need (\usepackage{float} \restylefloat{table})

I am quite new to Latex. I just want my table placed between my paragraph like a document in Office Words. However, I had tried several methods in Table Positioning in Overleaf All seemed not working....
2
votes
2answers
39 views

how to create a boxed table array

I'm trying to replicate the attached image. However, I'm not really sure what type of command or environment to use. I don't think its just a simple tabular or minipage environments. If someone can ...
0
votes
3answers
37 views

Misplaced omit error in table

I have been looking for an answer (in this site and others) for about three hours, commented out the vast majority of my code, and I still have no answer to my issue. I have a table which returns ...
0
votes
1answer
30 views

Debug: how to fix this “missing delimiter” error

I am using an example-code for my CV. The code here is really simple, I acctually didn't use any "\left", but still getting this error of "missing \right", along with the error "missing delimiter" and ...
0
votes
1answer
16 views

Split figure with graph and table

I'm trying to get an image of a function plot and a tabular environment to look somewhat decent, and having trouble. Here is the code snippet. \documentclass{article} \usepackage{graphicx} \begin{...
1
vote
1answer
38 views

Tables in IEEE journal

Here is the template I use for the following journal. I have problems with all the tables that are perfect in regular latex document. Here is the page with all the tables: Here is the packages I ...
1
vote
1answer
22 views

Positioning a single cell of a table

I want to put the "iii" in the middle of the cell. So I turn to the \multicolumn to modify a single cell. My initial code is \documentclass{article} \begin{document} \begin{tabular}{|r | l | p{5cm}...
4
votes
2answers
93 views

Can anybody explain why using \multicolumn changes the width of the four-column tabular environment?

The following example typesets five tabular environments. All five tabulars share the same definition, \begin{tabular} { | p{1.67cm} | p{1.67cm} | p{1.67cm} | p{8.0cm} |} However, the overall ...
6
votes
3answers
288 views

Annotating a table with arrows

I want to recreate the following table on latex Here is my MWE \documentclass{article} \usepackage{colortbl} \begin{document} \begin{table}[h] \begin{tabular}{|>{\columncolor[gray]{.8}}c|m{1cm}...
3
votes
3answers
138 views

Continuous vertical line using booktabs in tabularx table?

How can we draw a continuous vertical line using booktabs in table? What is the simplest method to maximise the width of a table? There are lots of methods, very confusing. \documentclass{article} \...
1
vote
2answers
37 views

Beamer: Colorize every second column of a table

I am trying to include a table in one of my beamer frames. I want every second column of this table to have a gray background. In my LaTeX-document, the following code worked: \definecolor{Gray}{...
4
votes
3answers
149 views

Multirow in tabularx?

Can we use multirow in tabularx? It seemed not working and recognized: \multirow{2}{*}{95\% Confidence Full code: \documentclass{article} \usepackage{makecell} % for bold in table using \small \...
2
votes
1answer
32 views

How to arrange tabular in alphabetical order

I have this code, which I want to arrange in alphabetical order: \section{Abbreviations} \doublespacing \begin{tabular}{p{4cm}p{12cm}} \textbf{AD} & Alzheimer's disease \\ \textbf{FAD} & ...
0
votes
0answers
23 views

rowcolor removes the vertical lines of the table

After compiling (using pdflatex) the following \documentclass[12pt]{amsart} \usepackage{amsmath,amsthm,amssymb,amsxtra,amsopn} \usepackage{xcolor} \usepackage{colortbl} \usepackage{etoolbox} \begin{...
3
votes
3answers
56 views

Table content alignment to centre using tabular

I wish to put the second and third columns in equal length and in center. \documentclass{article} \usepackage{booktabs} \begin{document} \begin{table}[!ht] %\begin{tabularx}{\textwidth}{@{}Y*{3}...
4
votes
4answers
195 views

How to vertically align the three columns of my table top, top, middle

I would like the formulae in the third column to be vertically aligned to the middle, i.e. the formulae should be vertically at the middle of the two lines of the descriptions. \documentclass{article}...
3
votes
2answers
46 views

How to adjust the table in Latex?

I am creating a table like this : \begin{table}[htbp] \begin{tabular}{|c|c|c|c|c|c|c|c|c|} \hline aaaaaaaaaaaaaaaaaaa & bbbbbbbbbbbbbbbbb & cccccccccccccccc & ddddddddddddd & ...
1
vote
2answers
82 views

How do you draw this cross-line reference table/diagram in LaTeX?

How do you draw this in LaTeX: My approach would be enumerate for the list and tabular(x) for the table, but I don't know how to make the crossing arrows across tabel cells (if possible at all)... ...
1
vote
1answer
29 views

Shrinking a cell including citation and using bullet points in tables

I have the following table and I want to modify two things: 1) Shrink the first column by possibly using two or more lines for the citation 2) Using bullet points for the last column content. \begin{...
1
vote
2answers
40 views

Grouping rows of a table with brackets (to shrink table size)

I have a table using rules from booktabs. However, I have vertical space constraints and don't want to use subcaption with their subtable. I also have horizontal space constraints, so the column for ...
1
vote
2answers
67 views

Overlaying drawings and annotations over tables and ordinary text

Okay, here's another one on tables (maybe we should do a series). So, we've got our tables grouped together nicely with braces (thanks to some great answers to an earlier question). Follow the link ...
0
votes
3answers
84 views

Tabularx and itemize missing item

when I do this : \begin{tabularx}{\textwidth}{|p{5cm}|p{5cm}|} \toprule \textbf{KPI} & \textbf{Description} \endhead \toprule \rowcolor{darkgrey} \textbf{The percentage of health and safety ...
2
votes
2answers
54 views

Table content alignment to left/right using tabularx

I had tried several methods, but still unable to get the correct alignment. I want the first column to left hand side, then others toward right hand side. \documentclass{article} \usepackage{...
1
vote
1answer
43 views

Missing $ inserted in a table for superscript

I get the error message of missing $ inserted in my table. \toprule ABS & \ 14,573.300^a & 3 & 4,857.767 & 40.297 & .000 \\ \midrule I had tried: \toprule ABS & \[14,573....
3
votes
2answers
70 views

Braces spanning multiple tables (whole tables, not rows or pages)

I've got a bunch of tables arranged like so: \documentclass{article} \begin{document} \begin{table} \begin{minipage}[c][1\totalheight][t]{0.45\textwidth}% \begin{center} \begin{tabular}{|c|c|c|c|c|c|...
4
votes
4answers
166 views

Independent table row spacing

I have created a fairly simple table using booktabs: \renewcommand{\arraystretch}{1.5} \begin{table}[h!] \centering \footnotesize \begin{tabular}{ p{5cm} | p{5cm} } \toprule \textbf{...
1
vote
1answer
45 views

Using booktabs with newcommand

I'm relatively new to defining commands and environments. I'm trying to make several tables (all of which follow a template), and thought that defining myself a new command would simplify the code. ...
0
votes
0answers
44 views

\makecell is not working in \tabular{*} s columns, in the l first column it works fine

See this please: \documentclass[11pt]{article} \usepackage[nopar]{lipsum} \setlength\parindent{0pt}% globally suppress indentation \usepackage[format=hang,labelfont=bf]{caption} \usepackage{fullpage} ...
1
vote
2answers
64 views

How to make the text fit into the cells of this table?

I'm trying to create a big table using Latex. The result must be something like this: but what I get it's something like this: \documentclass{article} \usepackage{tabularx} \usepackage{adjustbox} \...
2
votes
1answer
30 views

Help with coding this table

I have this table in word that I want to code to overleaf. I tried one, but the sentences were too long and it looked weird. I want it to be as long as the text is or maybe slightly less but not ...