Stack Exchange Network

Stack Exchange network consists of 175 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
This site is currently in read-only mode; we'll return with full functionality soon. Follow @StackStatus or visit our status blog for more info.

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.

0
votes
1answer
17 views

Wrapping text in a cell in a table

Consider the following table \begin{table} \centering \caption{My caption} \label{my-label} \begin{tabular}{|p{2cm}|p{4.5cm}|p{1cm}|} \hline aaaaaaaaaaaaaaa (aaaaaa) & \url{...
-1
votes
1answer
35 views

Fit sideways table in latex on one page [duplicate]

I can not fit this sideways table on one page in latex can I ask for any advice? \begin{sidewaystable}[htbp] \centering \caption{Add caption} \begin{tabular}{lllrrrrrrrrrrrrr} & ...
1
vote
1answer
29 views

Space between \cline in table

I'm working on a table with underlined headings, where each heading spans over two columns. I'm trying to understand how to use the \extracolsep function to create space between the lines for every ...
1
vote
1answer
37 views

Definition before \multicolumn or the like?

Is it possible to have definitions take effect at the beginning of the first cell of a tabular row (using array.sty, if relevant), and still leave room for \multicolumn, \hline, etc.? The problem is, ...
2
votes
2answers
15 views

Align start of table text with main text

Consider this example \documentclass{article} \usepackage{lipsum} \begin{document} \noindent\lipsum[1][1-2] \noindent \begin{tabular}{ll} A & B \end{tabular} { \setlength{\tabcolsep}{0pt} \...
0
votes
0answers
27 views

Manually adding content to list of figures

So I'm supposed to make a command that manually applies label to a picture, using hypertarget and a counter, and then adds the one to list of figures. Note that the pictures I'm manipulating with, ...
4
votes
2answers
35 views

converting several comma-separated lists into a table, one column per list

I have been searching on here for information about comma separated lists, but the only info I have found is how to sort, or iterate over a single list, which isn't quite what I need. If there is a ...
1
vote
1answer
39 views

Need help in adding title to table

I am trying to name the table as shown in the image attached herewith but unable to succeed. Please help. Thanks. EDIT: \documentclass[a4paper,12pt]{book} \usepackage[a4paper, inner=1.5cm, outer=2....
3
votes
3answers
183 views

table going outside the page

Why this table goes outside the page: \documentclass[11pt,twoside,a4paper]{report} \usepackage{graphicx} \usepackage{makeidx} \usepackage{multirow} \usepackage{tikz} ...
0
votes
1answer
36 views

Make list of sentences in table break normally

My table is a mess! I have three columns (from left to right): Left: very simple, single words. Middle: a list of five options (there won't be more than five). Left: a list of events taking place. ...
1
vote
1answer
55 views

table creation with multiple column

I have to create a table similar to this: my problem is in creating the leftmost colum, My attempt is this: \begin{table} \begin{tabular}{|c|c|c|c|} \caption{\emph{{Assegnazione dei ...
3
votes
2answers
139 views

Table mislabeled as figure

I have an image and a table and they need to appear in the same page. The way I'm doing that right now is by wrapping them both in a figure. The problem I'm having is I'm trying to reference the table ...
1
vote
1answer
42 views

Formating tables

I am trying to produce a table within the document however it isn't working as it just comes up with an error saying \hline -> \noalign and I don't know what this means and all of the other ...
0
votes
0answers
27 views

Table taking full page LATEX

LATEX Code down below: \begin{table}[ht] \renewcommand\arraystretch{2.5}\arrayrulecolor{LightSteelBlue3} \captionsetup{singlelinecheck=false, font=blue, labelfont=sc, labelsep=quad} \caption{Timeline ...
0
votes
0answers
16 views

First sentence after figur/table not aligned [duplicate]

Im using a simple figure environment but at some times the first sentence after the image or table aren't aligned anymore. The text is off a few cm to the right. I modified my paragraph setting to be ...
3
votes
2answers
58 views

Complex table formatting

I've trying to format a fairly complex table. The layout is exactly as I want with bottom tables underneath the appropriate headings in the first table (P1 and P7). But the column widths aren't equal (...
4
votes
1answer
31 views

Creating a table more like a smart an instead of a normal list

That is what I have got so far, but it should look more like the picture above, but I am not sure how to code it. I have tried the forest package, but I am not really happy with the output, especially ...
2
votes
0answers
27 views

How to design table so that copied text from pdf in sorted by rows in text file?

I have a simple table with text: \documentclass[letterpaper,11pt]{article} \newcommand{\resumeSubheading}[4]{ \vspace{2pt} \begin{tabular*}{0.97\textwidth}[t]{l@{\extracolsep{\fill}}r} \...
2
votes
2answers
30 views

Outlining specific parts of array

I couldn't find this anywhere else. I have an array with a bunch of numbers in it, and I am very new to posting on this forum. This is from a template that I have to use for a document. Here's the ...
0
votes
1answer
44 views

big sideways table in latex

I'm trying to fit table in latex - best sideways on the one page: % Table generated by Excel2LaTeX from sheet 'List1' \begin{sidewaystable}[htbp] \centering \caption{Add caption} \begin{...
0
votes
0answers
23 views

Table and text over footer

When i try to put a table on the code below, text or the table gets over footer. And the text below that code does not appear on the next page. Does anyone knows how to correct it? Text before ...
4
votes
1answer
86 views

Create a Table with Luatex

i want to make make a template table with parameters. i found diffrent types of solutions but then i try to do some changes, it doesn't work anymore. i tried two diffrent ways: First way \...
1
vote
1answer
31 views

Vertical centering with multirow and tables

I am trying to figure something out that I can't find the answer to. I am trying to create a table where some cells in a row need to have multiple rows. I thought "multirow" would allow me to do ...
0
votes
1answer
30 views

How to create a table of six equally spaced columns in latex?

I am new to latex. The task of creating columns seems to be too complicated to do it in latex with all the different commands and packages available for creating a simple table of six equi-spaced ...
0
votes
1answer
45 views

Removing quotes in csvsimple

Before someone marks this as a duplicate question, I have read this answer, and it has not helped. I have a csv file: "headline","similarity" "Tesco directors in scandal","" "Tesco suspends three ...
4
votes
2answers
67 views

Multi-header column alignment with booktabs

After looking at multiple tex.stackexchange questions, I'm still having trouble getting the alignment of multiple columns right. Here's my code \documentclass[a4paper]{article} \usepackage[T1]{...
1
vote
0answers
29 views

Package “threeparttable”: What advantages does it provide? [closed]

In the past I have been using tabularx, caption and parnotes packages to design my tables. Now the user John Kormylo has mentioned the package threeparttable: What advantages does threeparttable ...
5
votes
2answers
423 views

Programmatically populating tables with probability data

I have the following template for a journal article featuring a basic table: The code looks something like this: \documentclass[jou,apacite]{apa6} \usepackage[utf8]{inputenc} \usepackage{amsmath} ...
0
votes
1answer
21 views

xcolor: setting/removing the space around the table columns throws an error

The following code works well: \documentclass{article} \usepackage[table]{xcolor} \begin{document} \rowcolors{2}{gray!25}{white} \begin{tabular}{cc} \rowcolor{gray!50} Table head & ...
5
votes
2answers
178 views

How to properly draw diagonal line while using multicolumn inside tabular environment?

\documentclass[a4paper]{article} \usepackage[cjk]{kotex} \usepackage{enumerate, float, pgf, tikz, circuitikz, multirow, tabularx, longtable, pdfpages, makecell, hyperref, array, siunitx, diagbox} %\...
2
votes
2answers
102 views

How to align top tables row?

I have this simple latex table, I want to align top rows(Day, Min Temp, Max Temp) top. How Can I do it ? \begin{tabular}{ | l | l | l | p{8cm} |} \hline Day & Min Temp & Max Temp &...
1
vote
1answer
47 views

Need to reduce width of table

Sorry maybe this question already answered. In latex i want to generate table and i'm new in table. I found some cool online tool https://www.tablesgenerator.com/latex_tables i draw my table now i ...
3
votes
2answers
62 views

How can I increase row vertical spacing in a table without affecting inner arrays?

The methods I am aware of for modifying vertical spacing in a table are \renewcommand{\arraystretch}{<length>} and \setlength{\extrarowheight}{<length>}. However, these commands affect the ...
2
votes
1answer
30 views

Table with colour cell without blank space in the corners

This code allows you to create a table in which the first two rows have colors. I want to create the same table but without the blanks that are left, right and middle of the cells, so that it stays ...
2
votes
1answer
20 views

Centering a single row with tabularx

I'm back with more table issues! I am trying to center the top row on the following table (the one that reads "Center This"). I have been trouble shooting a few solutions here on tex but can't seem ...
2
votes
1answer
29 views

“misplaced \omit” error when >{\centering} columns

First of all, I have looked at every other misplaced \omit... error question about tables I have found on this site and none of them quite relate to my situation. This is the closest I could find, ...
0
votes
2answers
21 views

Discontinuous table border line appearing while using tabular

I was trying to increase the thickness of the cell by giving extra space at the bottom of cell but that gives me discontinuos line at the table border. How can I get rid of this. Solution using only ...
2
votes
1answer
30 views

Equal Horizontal spacing using Tabu

I have made a table that looks as following by using Tabu package: \documentclass[a4paper, 10pt]{article} \usepackage{tabu} \usepackage{multicol} \usepackage{multirow} \usepackage{amsmath} \begin{...
2
votes
2answers
49 views

Long table inside the long table

Is there any possibility to fix the longtable inside the longtable, as per client requirement. Please suggest how to fix this. \documentclass{book} \usepackage{longtable} \begin{document} \begin{...
2
votes
1answer
38 views

Adjustwidth not working for shifting ltablex table to the left

I want to shift my table slightly to the left of the page (exceeding left text width boundary). After many googles I however keep having trouble and can't manage to get ˙\adjustwidth` to work: \...
2
votes
2answers
32 views

Align table content at different symbols

I want to align my table content at different symbols, e. g. = and \leq. Is this, how one would to it, or is there an easier way? Btw is there a difference between r@{$\;$}l and r@{ }l? \...
0
votes
0answers
17 views

Aligning numbers in table

when I run this code, the number beyond E[\pi] are slightly moved to the right, while the percentages are centered. Is there anyway to have both centered, while the numbers under E[\pi] are still ...
0
votes
1answer
44 views

Big tabular in latex

I have this big table and it can not fit in one page How do I put it horizontaly on page page? - or any another advice how to present this table \begin{table}[htbp] \centering \caption{Add ...
0
votes
1answer
94 views

How to format table title width and position

I am generating PDF documentation from rst files using sphinx, latex and latexpdf. The rst files include wide tables with long table titles using "csv-table". I would like the table title to print in ...
1
vote
1answer
28 views

How to reduce space between two columns under a multicolumn header [duplicate]

I want to make the number and percentage in the last column well aligned to the right in every row. Separating them into two columns is the solution that worked for me because the number and ...
0
votes
2answers
76 views

Design a complex structure table in latex

I am new in latex. Thus, I can design basic table, not this complex one given below(this one designed in MS Word): Please help me how to design the above table. Don't worry about the text. I just ...
0
votes
1answer
67 views

How can I make a table this way in latex?

How can I make a table this way in latex?
0
votes
2answers
38 views

How can I name multiple columns in a table?

\begin{table} \begin{center} \caption{Types of Aggregation} \label{table:my_label1} \begin{tabular}{|c |c| c| c|} \multicolumn{4}{c}{}{$\overbrace{\rule{12.5em}{0pt}}^{Spatial ...
0
votes
1answer
31 views

Table column data organization not correct - latex

I am new in latex. I have created a table. However, it is not what I expected. I expected it to be centered and well separated such as the following (this table is constructed in MS Word), \begin{...
0
votes
2answers
51 views

Passing an argument in a different way in a self-made environment

I want to pass an argument to a self-made tabular environment in the following format: \begin{customTabular}{|c|c|}{'@'} ...such that the second argument (here '@', WITHIN PARANTHESIS) is treated as ...