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
2answers
47 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
16 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
33 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} \...
12
votes
2answers
192 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
22 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
71 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
54 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
96 views

Create table question [closed]

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
64 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
81 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
50 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
66 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
31 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
45 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 ...
1
vote
2answers
36 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
19 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
29 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
50 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
25 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
29 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
45 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 ...
2
votes
2answers
41 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
27 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
38 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
49 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
38 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
20 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
36 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
42 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), ...
5
votes
1answer
88 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
31 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
31 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
32 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
61 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}{*}{...
3
votes
1answer
63 views

Prevent table from going out of the page

Hi I am having an issue when trying to create tables that are twofold: (1) The contents of the second columns keep going out of the page even when I try to create line breaks. (Preferably I would ...
0
votes
1answer
50 views

LaTeX Table - How to draw cells with multiple rows?

I am trying to create a table similar to the one that can be seen below. In the Description column (4th column) one can see that the text takes multiple rows whilst in the Procedure column (5th column)...
0
votes
1answer
22 views

Can't locate error in latex table

\begin{table}[ht] \centering \adjustbox{max width=1\textwidth}{ \small \begin{tabular}{c|c|*{7}{c|}} \multicolumn{2}{c}{} & \multicolumn{7}{c}{Variance ($\sigma^{2}$)} \tabularnewline \...
0
votes
0answers
40 views

Using \newcolumntype definition together with colortbl package

I just upgraded my Miktex distribution and I am not able to compile my MNWE example (see below) \documentclass{article} \usepackage{array} % tex.stackexchange.com/questions/12703 \...
0
votes
1answer
47 views

Self-defined table template

When I write the template below, where: the first parameter has been designed for optional headers: the second has been designed to pass to tabularx. I get the following error: Forbidden control ...
4
votes
2answers
82 views

How can I adjust the table caption left/right align with a table?

This is an example picture. I want to make my table like that. Here what I am doing. \documentclass{svjour3} \usepackage{tabularx} \captionsetup{labelfont=bf, justification=raggedleft, ...
3
votes
2answers
56 views

Problems with wide table with two bold rows

I am currently writing my Master Thesis in Latex and I have a wide table, which it's in landscape mode. Also, in the Table, there is two rows which are entirely in bold: the header row and last row. I ...
0
votes
1answer
34 views

add horizontal space like TAB [duplicate]

I have two words separate by space in each line I can have a tabular environment with two cell but I'm wondering if is there (in latex) a command like the tabin every word processor. TIA Renato
2
votes
3answers
237 views

Multicolumn (Tables) trouble

I am trying to get my table working for last couple of days. But I couldnt fix the problem. The way I want my table to look like is below (figure 1). With my following code \begin{table}[p] \begin{...
1
vote
1answer
38 views

Text exceeding table limit vertically

I'm writing a table but in some rows the text exceeds vertically the limit. How can I fix it? thanks. That is my code: \documentclass[a4paper,12pt]{article}[12pt] \usepackage{amsbsy} \usepackage{...
1
vote
1answer
21 views

Unable to get fillable empty text fields in hyperref forms inside tabular environment with XeTeX

I need to get fillable text fields inside tabular environment and since I use other language scripts other than English I need to compile my document using XeTeX engine. The nearest post to this ...
8
votes
1answer
91 views

Table Formatting using siunitx

I am trying to make a table with four columns: three of the columns are to be center aligned, and one is to be aligned by decimal places ( using S[table-format=3.2]). Here is my code: \documentclass{...
4
votes
3answers
71 views

Automatic amount table columns and column numbers

I'm looking for a way to create a command with which Latex can automatically generate a table with a given amount of columns, and automatically fills in the column numbers as headers. I'm looking ...
1
vote
2answers
93 views

Overfull \hbox (3.8889pt too wide) detected

my code: what's wrong guys? \documentclass{article} \usepackage[letterpaper,margin=1in]{geometry} \setlength{\pdfpagewidth}{8.5in} \setlength{\pdfpageheight}{11in} \usepackage[english]{babel} \...
0
votes
0answers
15 views

topf- and botf-equivalent (in tabout-stata) for outreg2

I am wondering if there is a topf- and botf-equivalent (used in tabout-stata) for outreg2? What I wanna do is tell stata to insert some TeX code into the top and bottom of file when it outputs the ...