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
0
votes
1answer
55 views

How to create table with booktabs package?

I would like to create the following tables with the booktabs package but I am not quite sure how to do that and Any help is greatly appreciated!
0
votes
0answers
12 views

Table rotating as landscape by sidewaystable

I am writing the thesis and i have a problem with a long table which is not possible to write it horizontally and i need to rotate it to write as landscape. This is the main table in paper format: ...
0
votes
0answers
27 views

How do draw inside a table

I'd like to reproduce such a table with variable lengths of lines and columns, and also with some pictures inside. It seems to be a mix between Tikz and tabular, but I don't know how to do such a ...
0
votes
1answer
45 views

Need help with tables (beginner)

I'd like to convert this table (cf picture) in LaTeX but I can't find on google how to properly create new cases. Can anyone help me please?
0
votes
0answers
12 views

Wrong numbering of table with multiple tabular environments

When there are multiple longtabu environments in a talbe, the numbering of table will be wrong. See the MWE below. \documentclass{article} \usepackage{caption} \usepackage{subcaption} \usepackage{...
0
votes
3answers
28 views

how to adjust vertical line distance in tabular form using math mode

in my code, the vertical distance is too low and formulas seem to converge. How I can avoid this? \begin{table}[h] \captionsetup{singlelinecheck = false, justification=justified} \caption{Seçilmiş ...
0
votes
0answers
19 views

Using old style numerals in a specific coulmn of a table (lmodern)

In this example both my attempts to use a specific macro in column specifications of a table failed. The macro should automatically convert all numbers encountered in text to their \oldstylenums{} ...
2
votes
1answer
25 views

How to add recursive rows to a table, until they reach the end of the page in ConTeXt?

I have a table in ConTeXt like this: \starttext \chapter{This is a title} \bTABLE \bTABLEhead \bTR \bTD a \eTD \bTD b \eTD \bTD c \eTD \eTR \eTABLEhead \bTABLEbody ...
0
votes
1answer
24 views

Rotate an input table without rotating page

I get an input file table1.tex which contains a table (i.e. table1.tex starts with \begin{table} ... \{table}) I would like to print this table in landscape mode, but without rotating the page. I ...
0
votes
1answer
66 views

Inserting a table with photos in each cell [on hold]

I would like to insert a table in each cell in overleaf, like the following:
4
votes
4answers
100 views

Multicolumn in table not centered

I have some issues with the usage of \multicolumn. As can be seen on the screenshot below, the words 'Classical' and 'Squared' are correctly aligned in the centre of the column. The word 'Exponential' ...
2
votes
1answer
90 views

Is text-width tabular possible?

\documentclass{article} \usepackage{tabularx} \def\dotfill#1{\cleaders\hbox to #1{.}\hfill} \newcommand\dotline[2][.5em]{\leavevmode\hbox to #2{\dotfill{#1}\hfil}} \begin{document} \begin{tabularx}{...
-2
votes
1answer
38 views

make a table fit into the page [duplicate]

\documentclass[sigconf]{acmart} \usepackage{algorithmic} \usepackage{algorithm} \usepackage{booktabs, makecell, multirow, tabularx} \newcommand\mytab[1]{\begin{tabular}[t]{@{}c@{}} #1 \end{tabular}} \...
2
votes
1answer
123 views

pgfplotstabel - create table with time column

I try to create a table with a column for date and time from a file data.txt. I can create a diagram but when I type \pgfplotstabletypeset for a table following error occurs: ! Package pgfplots ...
1
vote
1answer
30 views

\cline in combination with \multirow not the same thickness as \cline without \multirow

I have the following table: \begin{table}[h] \caption{\label{tab:}Model 1 - Model output} \centering \begin{tabular}{l|c|c|c|c|c|c|c} \hline & coefficient & Std. Error & t-value &...
60
votes
4answers
526k views

Tabular: title above and caption below?

I have a table that I would like to put the Title above and a caption below. Intuitively (though I know how troublesome intuition can be in something like LaTeX), I should be able to do as below: \...
0
votes
0answers
10 views

Longtable - Top alignment with itemize [duplicate]

I created a table, see MWE \documentclass[a4]{article} \usepackage{array} \usepackage{longtable} \usepackage{enumitem} \newcommand\myhline[1]{\noalign{\hrule height #1}} \begin{document} \begin{...
1
vote
1answer
40 views

Is it possible to redirect unbalanced braces (`{` and `}`) into a tabular column?

This question is a follow up to my previous question: Is it possible to use > and < to pipe opening and closing braces on each side of a cell's content? To be more specific, what I want is to ...
2
votes
1answer
48 views

>{\kern-\tabcolsep} does not work in p-columns

If you colourise a row in a table, @{} does not remove the colour from the side bearings, as demonstrated in below figure. To remove the colour, you may direct a kern into the table column using >{...
2
votes
2answers
44 views

How to add a table description to a longtable?

I am very new to Latex and really need help. I am trying to format a longtable such that under the caption I can insert a description of the table. I tried with \multicolumn, but then the first column ...
1
vote
1answer
32 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 ...
5
votes
3answers
67 views

Align rightarrow in table

I am trying to align the right arrows in my table. Can anyone tell me how to do that? Preferably keeping the structure of my table. (see example below) \documentclass[a4paper, 12pt]{article} \...
2
votes
2answers
44 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
1answer
38 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
1answer
49 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
0answers
24 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
2answers
32 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
24 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-...
18
votes
2answers
2k views

vspace before itemize in a Table cell, tabular vs longtable

In the following MWE, one sees the difference between tabular and longtable, with respect to the vertical space before an itemize, inside a cell : \documentclass[12pt]{article} \usepackage{longtable,...
2
votes
2answers
52 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
50 views

Conflict between main.tex and input child.tex

When I run child.tex, then table created with right formatting. When I run main.tex, with \input{child.tex}, then table in child.tex created with wrong formatting. child.tex code from: Error: Not in ...
0
votes
1answer
72 views

How to position (use H to place here) table and figures in elsevier cas latex template?

I am using elsevier cas single column latex template and want to position figures and tables using H option, but I get error "Kernel/Key unknown" and "The module does not have a key called cas/tbl/H ...
0
votes
0answers
26 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
44 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{...
4
votes
2answers
139 views

Clear rowcolor at midrule

I'm trying to make my tables look nicer by default. What I'm looking to do is fill every row between a toprule and a midrow. The next row after a toprow can be easily filled by appending \rowcolor{...
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). ...
0
votes
1answer
106 views

Enumerate affecting text break across pages

I am having problems with text breaking across pages in my document. From the picture, you can see that 'Section 2.2.2' is positioned poorly. The problem seems to be due to the contents of Table 3. ...
6
votes
3answers
296 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}...
0
votes
2answers
22 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}\...
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
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
25 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
72 views

Prevent table rows from being split across pages

I have a twocolumn document with a very long supertabular table. Within the table, I have "subsections" that I want clumped together; not split over multiple pages. For this example, each "subsection"...
2
votes
1answer
31 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
31 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
52 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
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 ...
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 ...
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 ...
2
votes
1answer
50 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....