Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

2
votes
1answer
57 views

my toprule and bottomrule width are different?

I may have change something before at the macro level by accident with some code I got online. How could I set it back? Now I am facing this problem where when I put: \setlength\heavyrulewidth{0.14em}...
0
votes
2answers
39 views

How to fit a content in a column of LaTeX table?

I am trying to create a table in LaTeX. However content of my column is exceeding the width and intruding in the other column. Please help me to solve this problem. Code is pasted below.Screenshot of ...
1
vote
1answer
27 views

Problem with Decimal Aligning on Outreg2 regression table

Guys anyone can figure out whatt's wrong here? I got this table from outreg2 stata and did some edit based on clemen's answer from this post. Thanks! \documentclass[]{article} \usepackage{amsfonts} \...
1
vote
3answers
106 views

How to improve this table?

I'm looking for ideas to improve the layout of the following table. Is there a better way to separate ABC Metrics and XYZ Metrics (other than using separate table for each metric)? Should I convert ...
1
vote
2answers
69 views

Both horizontal and vertical centering in tabularx?

How to set a width of columns to be centered in vertical direction? Or in vertical and horizontal direction and the cells bellow as well? Thank you \documentclass[12pt,a4paper]{report} \usepackage{...
2
votes
1answer
48 views

Two tables side by side without losing caption

I am trying to do two tables side by side. I have also benefited from the following thread, followed this answer and a couple of others. Two tables side by side with minipage My code is the ...
-1
votes
1answer
59 views

Creating a very complicated long table

I want to create a complicated long table as in the figure below. I want to create it as a long table so that the heading of the table goes to a new page. The complicity is due to the merge of row and ...
1
vote
2answers
42 views

simple latex table using tabularx--error?

I wanna create a simple LaTeX table. Since I have created a more complex table using tabularx, I decided to just cut and paste the codes. But why the error? Thx for any help^^ \documentclass[]{...
2
votes
1answer
40 views

How to place 2 aligned equations next to a single graph in a table?

I want to make a table with two columns: on the left side, I want to put 2 aligned equations on the right side, I want to put a graph. In the following MCVE, the 2 equations are on the left side ...
10
votes
3answers
282 views

How to get symbols on the lines of a table

I want to generate a table like this with latex. Can you help? I can write a normal table as below, but have no idea how to create those symbols on the lines. \begin{table}[htbp] \centering \caption{...
8
votes
5answers
268 views

Test of integers? Or, round the number if the first two decimal numbers are sufficiently close to 0 or 1?

The following is a MWE, which explains my intention. \documentclass{article} \usepackage{tikz} \usetikzlibrary{math} \begin{document} \tikzmath{ \integer = 4/2; \decimal = 5/3; \integerB=1/3*3; } $\...
1
vote
1answer
33 views

Align different operators in table

I like to align table cells on the \pm with "D{;}{\pm}{1}", but this looks ugly if I have cells without a \pm. In the following example case A and B would be data that I measured, while case C is a ...
0
votes
1answer
23 views

insert a array (e.g. a stencil) inside an array (e.g. a tabular)

I would like to insert a array (e.g. a stencil) inside an array (e.g. a tabular), in a cell next to the formula. Is there a way to do it? \documentclass[a4paper, 12pt]{book} \usepackage{amssymb, ...
0
votes
2answers
49 views

illegal pream-token (D)

What is the mistake here? Thank you \documentclass[12pt,a0paper]{report} \usepackage{booktabs, makecell,amsmath, graphicx} \usepackage{multirow} \begin{document} \begin{table}{llllllllll} \begin{...
10
votes
1answer
179 views

Improving alignment of signed fractions in table

I would like to find a way to better align signed fractions in a table. Take the following example: \documentclass{article} \usepackage{amsmath} \usepackage{booktabs} \begin{document} \begin{table}...
0
votes
1answer
47 views

How to modify the following code to add 3 adjcent lines to the left of the generated code?

I made this lines in tkiz to make 3 adjacent parallel lines \node (A) at (-8.5,+1){}; \node (B) at (-8.5,-15){}; \draw[-] (A)--(B); \node[right=-10.3 of A] (b) (...
2
votes
1answer
34 views

Problem with condition in a table by using counters

I'm trying to make a conditional dynamic table that uses counter for comparison but i got a irrational error, Please see the following code: % !TEX TS-program = xelatex \documentclass[hidelinks]{...
3
votes
2answers
95 views

Issues with longtable environment

I have used this site with no problems to generate fast Latex code for small and medium size tables: https://www.tablesgenerator.com/ This time I'm trying to build a very long table which needs more ...
2
votes
1answer
32 views

Form: How to put Form-Fields perfectly into multicolumn-cells?

I have a follow-up question about: Form: How to put Form-Fields perfectly into table cells? If I use a multicolumn, the calculation method breaks down again. What do I have to do differently? \...
0
votes
1answer
25 views

Add content under right side of tabular environment

In the skills section of my CV/Resume, I would like to add content to the right side of the tabular and keep it under the first line and organised. As can be seen in the image, I would like to have '...
5
votes
2answers
85 views

Colour only the text in a tabularx environment

Edit: This question is related to this one: How to change only the color of numbers (and not units) with numprint? I tried the solution given here, but it enlarges the line spacing of the table as ...
0
votes
1answer
33 views

Help on creating a table

I need your help please on creating a table as shown in the following picture. I can create a basic table but I am having problem with the subcells in the middle of it. I will fill this table with ...
0
votes
1answer
113 views

table - textwidth

How to set table on the whole width of table. I thought with \textwidth. I would like a table with width \textwidth, 3 cols, ccl alignment of cols and width of cols about: first col 0,25\textwidth,...
0
votes
0answers
66 views

Error when include caption in table

I have encountered an error when including caption in table using AIP-cp. When I withdraw the caption, LaTeX runs smoothly. However whenever I include caption (above \begin{tabular} or below \end{...
0
votes
1answer
32 views

Cellcolor creates too wide coloured field in table without internal cell margins

Summary: can I get a table with narrow columns (about 5 mm), a normally sized capital letter in some cells and some of the cells coloured (filled by a pattern would also work)? Full question: I'm ...
4
votes
3answers
90 views

/Update/ How could I make the caption of table upright?

I would like to make the caption of my table upright, rather than italic. Here is what I am coding now: Update: Add preamble (only including some packages related to this question) and remove some ...
-1
votes
3answers
89 views

Need a program to create this table please (urgent) [duplicate]

Need a program to create this table please (urgent)
7
votes
3answers
313 views

How to get raggedright in tabular*?

I want to make a table with three columns of paragraphs, each in raggedright. I can only make it work for the first two columns. If I try to add >{\raggedright}, as in the commented-out line ...
3
votes
1answer
61 views

table - delete the line under table

How to delete this line please? Thank you. \documentclass[12pt,a4paper]{report} \setlength\textwidth{145mm} \setlength\textheight{247mm} \setlength\oddsidemargin{15mm} \setlength\evensidemargin{15mm} ...
6
votes
4answers
305 views

How to put “+” and “x” after \hline in tabular, and reducing space?

I want to write "+" and "x" after \hline, and I want reducing the space between number and number. From this become This is my code \documentclass[a4paper,12pt,oneside]{letter} \usepackage[left=2....
1
vote
1answer
52 views

How to make columns right aligned in a wide table

I'm grateful for the advice I got from this community before on how to make columns right aligned in wide tables. But now I cannot domesticate the following table that has 15 columns and some of which ...
0
votes
1answer
52 views

How to have multicolumn with each cell being multiple rows with everything centered

I am trying to achieve this: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut vitae accumsan ligula. Aenean vel condimentum magna. Aenean in nisi sed sem semper molestie. Donec ac pulvinar ...
4
votes
2answers
88 views

Center a title inside a table

my problem is about this code: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[spanish]{babel} \usepackage{array} \newcolumntype{L}{>{\raggedright\arraybackslash}p{.4\linewidth}} \...
4
votes
1answer
72 views

Increase the space between text and the horizontal line in a table

I have a problem with my table. Here's my code: \documentclass{article} \usepackage{eurosym} \usepackage{enumerate} \usepackage{fancyhdr} \usepackage[utf8]{inputenc} \usepackage{graphicx} \usepackage[...
1
vote
1answer
43 views

Multicolumn in table

What is wrong with multicolumn please? There are 8 cells, aren't? \documentclass[12pt, a4paper]{report} \usepackage[textwidth=145mm, textheight=247mm, nohead, showframe]{geometry} \let\openright=\...
0
votes
2answers
59 views

Table - centering

How to center data in table when the first cell is split to two rows with \\. Other values are printing to the second rows. I tried multirow, but it doesn't work. \documentclass[12pt,a4paper]{report} ...
1
vote
0answers
295 views

“Use of \@startpbox doesn't match its definition.” Error on a Table [duplicate]

I am getting the following error during compilation "Use of @startpbox doesn't match its definition." for all my tables in tabular and tabularx environment. The relevant portions of my document ...
1
vote
1answer
114 views

error in tex file generated by stata tabout command

\documentclass[]{scrartcl} \usepackage{booktabs} \usepackage{tabularx} \usepackage{rotating} \begin{document} \begin{sidewaystable}[h!] \footnotesize \newcolumntype{Y}{>{\raggedleft\...
3
votes
3answers
121 views

Aligning Tables and TiKz Pictures Vertically

I have the following codes. I want to pull the tables to the top of the page so that tables and the tikz picture are aligned vertically at top of the page (as shown in the figure). I need your help in ...
3
votes
1answer
55 views

How to add \hline after the last row of every pages

\documentclass{article} \usepackage{lipsum} \usepackage{cals} \usepackage[latin]{babel} \showboxbreadth=100 \showboxdepth=100 \makeatletter \let\oldDispatch=\cals@row@dispatch \newbox\rowBefore \...
3
votes
2answers
49 views

Multicolumn cell use all space available

How can I make the text to use the space available on the last 3 columns of the first row? I can keep increase the value until it is there but should be a dynamic way to get the available width, isn't ...
2
votes
1answer
83 views

Change font size to fit text in column width

I'm trying to create a table with equal width for all columns however if some word needs more space the column width will change. Is it possible to autofit "biiggwwoorrdd" reducing the font size? ...
1
vote
1answer
51 views

How can I fit a table in a two column article?

I am new to latex. I used this site to create a table for my latex document. However, I need the table be spanned over the second column of the document. How can I do this? Thank you. \begin{table}[...
-1
votes
2answers
83 views

partitioned matrix with row and column label

how can I create the following matrix with the array environment? I don't have an idea What I have got is this $$ \left[ \begin{array}{c|c|c|c} \Pf_{AA} & \Pf_{AB} & \mathbf{0} & \...
1
vote
1answer
75 views

How to create this table in Latex

I am looking to making this table in Latex but am having trouble figuring out the code. Any help would be greatly appreciated!
1
vote
2answers
63 views

Importing CSV as Long Table Not Working

I tried implementing the solution found here with multiple columns, but it is not working for me. It is just replicating the third column three times. What am I doing wrong? I know I wouldn't need a ...
2
votes
1answer
76 views

Table - consequential lines

How to change this table to the line left continue (1. column can be left align) and how to make a space in cell with CFF? Is it possible to center text in cells vertically? Thank you \documentclass[...
1
vote
1answer
39 views

footnotesize in tables

How to write footnote in tables please? I would like to give [1] in cell, which is link to text below the table. Thank you \documentclass{article} \usepackage{array} \usepackage{makecell, multirow, ...
3
votes
1answer
31 views

Trouble with table using multirow and multicolumn

I have a table with multirow and multicolumn in a document. This compiles fine on Fedora but has trouble compiling on Ubuntu. Fedora and Ubuntu have different versions of pdflatex. My MWE is as below: ...
2
votes
1answer
44 views

Put a vertical arrow on the one column table

I made a simple table with one column and I want to imitate the pseudocode. My code is like this: \begin{table}[!h] \caption{Algorithm for CNN Architecture} \label{tab:fonts} \centering \begin{...