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.

0
votes
1answer
9 views

Merging table rows instead of splitting them?

I have a table that looks like this: | COLUMN A | COLUMN B | COLUMN C | COLUMN D | |-------------------------------------------| | 0 | A | 100 | 150 | | 1 | B | ...
-1
votes
0answers
30 views

Chapter title and table in one page

I want to have title and table in one page but are coming in two pages. I want these to be in one page.
1
vote
1answer
28 views

How to use several colors in one row in latex table

I need to write very long table (128 rows x 64 columns), with different colors in a rows. Also it have to have "color in color" within one row, so it can be interpreted as one row consists of several ...
0
votes
1answer
25 views

IEEE Template. \cline error in table. Extra alignment tab has been changed to \cr

I had this table working with an IEEETemplate but now when I try to build it with an IET Template I get the error that you can see on the title .. could anybody help me? Thank very much for your time....
1
vote
1answer
37 views

Drawing a thick line through rows of a table to separate first column from second column

I have code for a table to be drawn. It is almost what I want. I am requesting three modifications to be made to it. I would like vertical lines, forming the left and right edges of the table, to be ...
1
vote
1answer
22 views

merged lines and columns in a part of a tabular

I want to do this tabular (by Excel) : But I have got some problems, especially with the merged cells This is the result : I have tried to create a tabular inside the original one but that doesn'...
3
votes
2answers
231 views

How to center the middle of a table to be in the center of the page?

I'd like to have the vertical rule in my {r|l} table to be horizontally aligned in the center of the page. So far, I've only managed to do \begin{center} \begin{tabular}{r|l} short & ...
0
votes
1answer
27 views

Table, Tikz picture in the left, text in the right: how to vertically align?

I would like a table with tikzpictures in the left column and explanatory notes in the right column. What can I do improve the vertical alignment of the row contents in the following example? ...
1
vote
0answers
52 views

Incompatibility of fix in latex3/latex2e in respect to (unmaintained) tabu package

In the github issue: Longtable change breaks 'X' column specification (https://github.com/latex3/latex2e/issues/111) the problem of the incompatibility of a necessary bug fix in latex3/latex2e is ...
2
votes
1answer
34 views

Tabular: Good shaping but uncorrect number of columns

I'm trying to create a tabular with a given shaping. But I'm not able to change the number of column and keep the shaping as the same time. There is an image of the "expected" tabular (made by Excel)...
0
votes
0answers
36 views

text table in beamer - making it more readable [on hold]

I am trying to create a literature summary review in a table within document class beamer. The table below is not finished yet, but as you can imagine it will be a terrible ugly one. What can i do to ...
0
votes
1answer
20 views

Center alignment of text with one row

Please I wanna aligne the text of the row, I added center element for the text but it's not well centered, do I have to add it somewhere else or there's an other element that help me solve this little ...
0
votes
1answer
25 views

literature review table in beamer

i am trying to create something like this - a literature summary review. I am quite new to latex and struggle quite a bit with tables. How can i create something similiar to the example? My table has ...
1
vote
1answer
21 views

horizontal line in table does not cover full width

Below I have the code to create a table in latex, but the horizontal dashed line is not drawn over the full width of the table. \begin{table}[H] \caption{Aggregated sales data of all products} % ...
2
votes
2answers
40 views

Center tabular in align

I'm trying to place a tabular containing some values for x and y inside an align statement. \begin{align*} 0 &= 0 \\ \begin{tabular} {|c|c|c|} %table content \end{tabular} \\ ...
1
vote
0answers
13 views

table cell colored with multirow lets text disapear behind next colored cell

I stumbled over something i do not know how to solve. I don't even know about layers in latex but is seams like my text is disapearing behind a colored cell beneth it and that because i use a ...
0
votes
0answers
29 views

TeXstudio wrong indentation after certain environments

I have the impression that Texstudio struggles to indent text following the end of a list (in code, works fine when built of course). Here's what I get with auto-indentation: \documentclass{article} \...
9
votes
1answer
151 views

tabularx inside tcolorbox not centered properly

I am trying to put a tabularx inside a tcolorbox but it's not centered properly, it's shifted slightly to the right. Here is the code I am using. I am using figure environment for the caption. Is ...
0
votes
0answers
20 views

Give column its own row if a cell is longer than a given amount

My document was originally composed with monospace unicode output from a Python terminal. The original layout used blank spaces to align results into columns. I specified the width (in characters) of ...
2
votes
1answer
57 views

How to use longtable in latex?

I have a really long table and it does not fit the page. So, I want it to span on several pages. When I google about my issue, I came accross longtable. However, it seems like longtable do not support ...
1
vote
2answers
49 views

Image side by side with table keeps on not working

Good morning, I would like to put the picture on the left of the table, all horizontally. When I try this solution it doesn't work. What changes is the picture and table are aligned with left margin ...
-3
votes
3answers
94 views

Create table question [on hold]

I would like to create a table like the one I show in the image but I'm a bit lost. Let's see if someone can help me. Thank you.
0
votes
0answers
12 views

Caption Error even it is outside of tabular [duplicate]

\begin{table}[h!] %\centering \begin{center}%\caption{table}{Caption text goes here} \begin{tabular}{| l | p{6.7cm}| p{5.7cm}| p{4cm} | } \toprule Function ...
2
votes
2answers
54 views

Enumerated List with multiple levels within Table

Good morning everybody, I tried to build up a multi level enumeration within a table. The items shall be something like an row identifier in the 1 column (see attached example). Writing Items in the ...
2
votes
1answer
77 views

LTSpice - PGF/TikZ

I am a newcomer to LaTeX and came across PGF/TikZ by chance. Currently I try to draw the function graphs f(x) in PGF/TikZ, but with no success. Can anyone help me to read the data file from LTSpice ...
1
vote
1answer
42 views

Trouble transferring code snippets (table)

My latex knowledge is poor. I am trying to transfer this code snippet: \documentclass{article} %\documentclass[leqno]{uicthesi} \usepackage{amsmath} \usepackage[initials]{amsrefs} \usepackage[...
4
votes
1answer
62 views

Workaround for tabularx inside environment when using csquotes

I need an environment that presents data in a table. The number of right-most columns shall be adjusted at compile-time, and the first column is dynamic width. For this reason I am using \usepackage{...
0
votes
0answers
30 views

image side by side with table [duplicate]

Good morning, I would like to put the picture on the left of the table, all horizontally. When I try this solution it doesn't work. What changes is the picture and table are aligned with left margin ...
1
vote
2answers
43 views

Horizontal centering in tabularx cells

This is my current code: \newcolumntype{b}{X} \newcolumntype{m}{>{\hsize=.5\hsize}X} \newcolumntype{s}{>{\hsize=.2\hsize}X} \begin{table} \caption{Summary of the Most Common BCI Control ...
0
votes
2answers
28 views

Vertically-centre content of a Table

I can't figure out why some of the cells of this table are not correctly centered. Attached the source code. Thanks! \begin{table}[] \centering \caption{My caption} \label{my-label} \...
1
vote
1answer
17 views

Vertical lines connecting in latex tables - agujournal2018 cls

I am using the agujournal2018 cls files (available here). To make it easier while I am drafting, I want lines in tables. How can I make the vertical lines and horizontal lines connect in tables? I ...
0
votes
0answers
25 views

Problems aligning table in 2-column format from journal template

I am having a lot of trouble aligning a table (see attachment) in a single column of a 2-column format from a template provided by the MBE journal: https://academic.oup.com/mbe/pages/...
2
votes
1answer
41 views

Bold entries in table with S column type

Inspired by the following post \bfseries and alignment in table, I want to create a table where some of the entries are highlighted in bold, and further, the numbers should be aligned on the dot. I ...
1
vote
0answers
20 views

Single-column table at the top of the first column of a double-column Latex document

I am writing my paper using Bioinformatics Latex template. I want to insert a single-column table at the top of the first column of this double-column document, but a huge blank is shown in the second ...
1
vote
1answer
28 views

Compilation problem

sorry, but I'm new to latex. I do not understand why this latex does not compile in PDF ... Can somebody help me please thank you in advance \documentclass[11pt, a4paper, twoside, openright]{book} \...
1
vote
1answer
37 views

wrap text beside longtable

i have a question about longtables. Is it possible to get a text wrapped around a (right-situated) longtable? I am using the longtable package and this is my code: \begin{longtable}[r]{| r | r | r ...
0
votes
0answers
44 views

Can anybody help me to solve this error in Latex? [closed]

\begin{table}[H] \caption{Equal outage: $D_{s1}^*$ that provides $P_{out,1}^{FD} = P_{out,2}^{FD}$ for distinct alpha ($d = 0.5$)} \centering \begin{tabular}{|c|c|c|c|c|c|c|c|c|} \hline \...
2
votes
2answers
37 views

Unexpected indent in multicolumn of a tabular table

When I use multicolumn in a tabular table, the text is always indented compared to the other rows where no multicolumn is defined. How can I solve this? \documentclass{article} \usepackage{multicol}...
1
vote
0answers
15 views

How do I display only certain rows in a table using pgfplotstable?

I have a table, read from a file, and I would like to display only rows which have a specific value in a given column. The specific value is a string (e.g. Agricultural). I am able to do it using the ...
1
vote
1answer
36 views

How do I “unlink” the rows in one column from the rows in another column?

MWE \documentclass{article} \usepackage{multirow} \pagestyle{empty} \usepackage[left=1.25in, top=1in, right=0.85in, bottom=1in]{geometry} \usepackage[thinlines]{easytable} \begin{document} \begin{...
2
votes
1answer
45 views

Table - equation inside a multirow

I would like to introduce 3 labelled equations inside a table. One of the equations goes inside a multirow. It should look like this: I tried the following code and I get an error. When the equation ...
0
votes
0answers
21 views

Landscape, multipage, threeparttable hellhole

firstly apologies for the untidiness of the code that is below, there is a lot of unnecessary things in there but kept them in just in case of any possible conflicts . Essentially I'm having a problem ...
0
votes
1answer
18 views

Two different tables with different labels being referenced by the same number [duplicate]

I have two different tables, with two different labels: \label{lab1} and \label{lab2}. The tables were generated in the tables generator site and I am using Overleaf. When I reference these two tables,...
2
votes
1answer
30 views

Make table notes as wide as `\textwidth` while preserving table's own width

I use the threeparttable package to make tables, for the following reasons: It allows me to conveniently make table notes that may refer to specific text in the table; The table notes are tightly ...
0
votes
0answers
32 views

Scale/adjust landscape table

I can't fit my landscape table in my portrait page. If I use the \resizebox{\textwidth}{!} function it will be too small like this. If I don't use the function, it will be too big (over the border), ...
4
votes
1answer
63 views

\newcolumntype with optional argument

With the array package we can define a new column specifier that can be used in a tabular environment (e.g. \newcolumntype{A}[{>{\centering \arraybackslash}m{2cm}}). It is even allowed to define a ...
2
votes
2answers
30 views

Nested newenvironment definitions, within a table

I'm trying to define two environments, one to be used inside the other. The first is a section in a CV, the second a subsection (cvitem). The latter holds an unordered list (commented for now, to ...
0
votes
1answer
29 views

Table that is obviously small enough cannot fit same page as chapter

Edit: I have included all packages from my document as well (I know there are too many. As I still am a beginner in Latex, I add every new package when I try something found on the forums). I have a ...
0
votes
1answer
27 views

How to make a larger difference between two columns?

I want to make a larger width of the selected box between two columns. \begin{table}[H] \centering \begin{tabularx}{\columnwidth}{@{}XXX@{}} \toprule \textbf{Parameter} & Description &...
1
vote
1answer
48 views

Vertical lines will not connect completely

The vertical line between 8 and comment will are not completely connected top. \begin{table}[H] \centering \begin{tabular}{|c|c|c|c|c|c|c|c|c|c|c|} \hline \multirow{2}{*}{No.} & \multirow{2}{*}{...