As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [tabularx]

{tabularx} is a package that defines an environment tabularx, an extension of tabular which has an additional column designator, X, which creates a paragraph-like column whose width automatically expands so that the declared width of the environment is filled.

Filter by
Sorted by
Tagged with
0 votes
0 answers
17 views

How to allow page break in listliketab (with description style)?

I am getting struggled with missing page breaks in long texts in listliketab. This is my mwe: % !TeX program = lualatex \documentclass[ ngerman ]{scrartcl} \RequirePackage{luatex85} \usepackage{babel} ...
Björn Engel's user avatar
1 vote
0 answers
7 views

itemize environment in tabularx with \hsize adjustment doesn't fill the whole width [duplicate]

I wanted to have a small itemize environment for tabulars, with small spaces to the top and bottom. I found a good example, but not fully understand the mbox setting: \newenvironment{tabitem}{ \...
dendrit's user avatar
  • 11
2 votes
1 answer
29 views

tex4ebook: How to get colored text in tables

Extending the question here, is there also a way to get a colored text in a tabularx environment? Here is an MWE: \documentclass[12pt]{book} \usepackage{tabularx} \usepackage{xcolor} \newenvironment{...
Jack's user avatar
  • 304
0 votes
1 answer
45 views

tabularx counts expl3 more than once but LaTeX2 doesn't?

I know that tabularx runs more than once and leads to calculations being incorrect since some calculations are done more than once. I have LaTeX2 code with counters that works great in the tabularx ...
mrCarnivore's user avatar
3 votes
1 answer
67 views

column widths when using multicolumn

Any suggestion to improve the column widths using multicolumn, and adding headers (see desired table style ) Here my code, output, and desired Table style \documentclass{article} \usepackage[margin=...
HAITHEM's user avatar
  • 389
1 vote
2 answers
90 views

Minimizing Extra Spaces in Exam Headers and possible improvements

I am an educator in mathematics and prefer using LaTeX for typesetting documents. However, the dean of our faculty provided us with a Word version for creating exam headers. I tried to convert it to ...
Student's user avatar
  • 1,054
1 vote
2 answers
39 views

How to get wrapping in tables while using Siunitx?

Like the title suggests, I'd like to use the S[table-format = xyz] form in my tables, while having the longer headers be wrapped. \documentclass{article} \usepackage{siunitx} \usepackage{booktabs} \...
m0n74g3's user avatar
  • 65
0 votes
1 answer
33 views

Simplifying the Creation of Commented Ordered and Unordered Lists in LaTeX

I am currently trying to simplify the process of creating commented ordered and unordered lists in LaTeX. I have a method that achieves the desired visual result, but the syntax seems overly complex. ...
Joseph's user avatar
  • 123
3 votes
2 answers
61 views

Out of border tabularx with merged cells

My table got our-of-border once I merged cells. How can I wrap the text in the merged cells? My Code \documentclass[a4paper]{article} \usepackage{booktabs,tabularx,multirow} \begin{document} ...
OOzy Pal's user avatar
  • 1,467
1 vote
0 answers
22 views

Buggy interaction of itemize environment, tabularx package and exam document class

When combining tabularx with the exam class, I have a problem that the question numbering and number of marks for questions is sometimes suppressed when using itemize. I've created a minimal ...
Steve Kroon's user avatar
5 votes
3 answers
240 views

font color does not work in front of S column of `siunitx`

Given is a table with factors from x1 to x1000000000 then x0.1 and x0.01 in the fourth column. The S column of siunitx takes care of the alignment. Unexpectedly, however, the font color no longer ...
Michael.H's user avatar
  • 107
1 vote
3 answers
57 views

How to draw \hline which does not cross a cell gotten by merged ones?

\begin{center} \begin{tabular}{ |c|c|c|c| } \hline col1 & col2 & col3 \\ \hline \multirow{3}{4em}{Multiple row} & cell2 & cell3 \\ & cell5 & cell6 \...
Koshchiy's user avatar
0 votes
1 answer
42 views

Numbering of Equations in Tabulars and Tabularrays

I tried to list some equations in a table. I found a working solution here and here for use with tabular (like the first in the MWE below). However, if I try the same with tabularray, the numbers get ...
axtimhaus's user avatar
0 votes
2 answers
41 views

Automatically expand height of multirow cells second row to fit content

I want to create the table below without having to manually calculate where row breaks fall or how many lines a row heading will occupy (and of course without the blinking green lines :-P). Let me ...
Fredrik P's user avatar
  • 1,026
-1 votes
1 answer
97 views

Problem with longtblr not breaking inside tabular

As you may have noticed in this post, I am having trouble adjusting tblr to fit the page width. Zarko suggested that it might be a bug and recommended using tabularx instead. I tried placing the ...
hana's user avatar
  • 739
1 vote
1 answer
45 views

Issue with table in ieeetran

I'm writing a paper in ieeetran format, and one of my tables was too long. I tried to break it using xtabular, but there are gaps underneath each part that I cannot fill with text (as seen in the pic) ...
Konstantinos Voulgaridis's user avatar
0 votes
0 answers
13 views

Adding certain number of rows at once with a short code

I know how to add an amount of columns with a shortcut below; \begin{table}[t] \centerline{ \begin{tabularx}{1.25\linewidth}{|c|*{12}{X|}} \hline \# & JAN & FEB & MARCH & APRIL & ...
Karel Capek's user avatar
2 votes
3 answers
239 views

Table Cell colors have white gaps between them

I'm trying to set up a table for some results I got for some experiments. I was trying to recreate this table in my latex document (not exactly, but the general look of it). I'm 99% on the way there, ...
Tomas Premoli Muniagurria's user avatar
0 votes
0 answers
46 views

How to handle calculations in tabularx?

I try to create an invoice letter with automatic calculations of the invoice sum. Using tabular everything works. With tabularx the counters do work correctly but the calculations do not. I understand ...
mrCarnivore's user avatar
1 vote
1 answer
71 views

Adjusting tabularx to textwidth

\begin{center} \begin{tabularx}{\textwidth} {X||XXXXXXXX} Dokument & WM & Geschäft & Sieg & Adidas & feiert & Europa & Macron & Wahlsieg\\ \hline \hline ...
Eliza's user avatar
  • 11
1 vote
2 answers
48 views

Alignment error in table / tabularx environment

The following example \documentclass{article} \usepackage{tabularx} \usepackage{multirow} \begin{document} \begin{table} \begin{tabularx}{\columnwidth}{|X|X|} \hline \multicolumn{3}{|l|}{...
Yahalnaut's user avatar
0 votes
1 answer
58 views

How do I add two rows that say T^2 l and delta T^2 l without messing up the formatting [closed]

This is what I currently have: \documentclass{article} \usepackage{geometry} \usepackage{tabularray} \UseTblrLibrary{booktabs, siunitx} \begin{document} \begin{table}[h!] \...
Neal Batra's user avatar
3 votes
2 answers
365 views

How do I make this table better looking?

Everything is very squished together, does anybody have any suggestions on what I can do? Here is my code for the table: \begin{table}[h!] \centering \begin{tabular}{|c|c|c|c|c|c|c|c|c|} \hline \...
Neal Batra's user avatar
1 vote
0 answers
36 views

How to let a table note go to the next page after a tabularx?

I have a tabularx table which is followed by a \floatfoot{...} (from the package floatrow) which contains some notes. My table is fitted on one page but I want the note in the \floatfoot{...} to go to ...
Sina Seyfi's user avatar
0 votes
1 answer
18 views

Row vertical alignment using tabularx

I am using the tabularx package to customize my tables. I try to define newcolumn type "C" and "Y". As I am using arraybackslash, the bold 'titles' of my table are aligned quite ...
JardaFait's user avatar
  • 3,722
4 votes
2 answers
139 views

Table doesnt match the size of the page

I have a long table in Word so I have used a website to convert this table so it can be put in LaTeX. I want my table to be displayed like this: However, in LaTeX it ended up looking like this: Here'...
Lajibolala's user avatar
2 votes
1 answer
38 views

Macro Inspected with \show Command Isn't Properly Evaluated

I'm building a class which can read a CSV file and output an invoice document using datatool and tabularx. % file "invoice.cls" ... \newcommand \invoice{ % load invoice table database \...
Isaiah Rondeau's user avatar
0 votes
1 answer
37 views

Manually typed table of contents with two columns

I'm trying to write a customized table of contents, let's say one with three values per row, and displayed in two columns, like this: I understand the best option would be to use tabular to have the ...
Raphael's user avatar
  • 534
3 votes
5 answers
199 views

Auto alignment parentheses in LaTeX tabular

I'm trying to create a table contains coordinate information, however the output is messy because some coordinates have fractions and negative signs. Is there any way to format it to achieve better ...
秦诗文's user avatar
1 vote
2 answers
44 views

Tabularx table where every row has multicolumn alignment issues without adding an extra line

I am trying to create a table in tex where each row is made up of some combination of merged cells. When I generate the table it looks great as long as I add an extra row: However I do not want the ...
Xan Tolbert's user avatar
0 votes
1 answer
52 views

How to have a long and wide table stretch over multiple pages? [duplicate]

I have a big table generated from Stata software. I am trying to fit width of the table and have the table to stretch over multiple pages. I assume we can shrink the width a little bit to fit the ...
nyorker's user avatar
0 votes
0 answers
58 views

CAS class does not generate PDF. Gives error undefine control sequence?

\documentclass[a4paper,fleqn]{cas-sc} \usepackage{booktabs,siunitx} \sisetup{detect-all} \usepackage{hyperref} %\usepackage{cite} \usepackage{amsmath} \usepackage{amssymb,amsthm} %\usepackage[numbers]{...
Ghulam Hafeez's user avatar
0 votes
0 answers
27 views

\newenvironment does not work with \tabularx [duplicate]

I tried creating a new environment for creating a table. It does work with tabular: \documentclass{scrlttr2} \usepackage{tabularx} \newenvironment{testenvironment}[1][]{\begin{tabular}{l}}{\end{...
mrCarnivore's user avatar
3 votes
1 answer
125 views

Problem with table - \tabular vs \tabularx

This table can't compile (pdflatex) with \tabular, but it can with \tabularx \begin{table}[h] \centering \caption{Comparison of two-sided market definitions} \label{tab:two-sided market ...
enrico223's user avatar
0 votes
0 answers
40 views

Wrong enumation of tables (only odd numbers)

Example: \documentclass[]{article} \usepackage{hhline,booktabs} \usepackage{tabularx} \usepackage{ltablex} \begin{document} \begin{table} \caption{My Table 1} \label{tab:mytable1} \begin{tabularx}{\...
S-Man's user avatar
  • 275
0 votes
2 answers
75 views

Vertical space between table rows

I'm trying to increase the space between the rows of the tabularx table. The following code works fine and does what I want: \begin{tabularx}{5ex}{X} text \\[2ex] x \end{tabularx} However, if ...
Alexey Ismagilov's user avatar
4 votes
3 answers
217 views

LNCS: Large table in sidewaystable

Working with the llncs document class and wanted to place a large table sideways. Code: \documentclass[runningheads]{llncs} \usepackage{graphicx} % Required for inserting images \usepackage{tabularx} \...
Amina Umar's user avatar
2 votes
1 answer
44 views

Text not vertically aligned in tabularx cell

I've run into a problem that I can't seem to find a solution to. I am using the package tabularx since I work with small pages. My table has a mix of figures and text, and I would like the column to ...
Juju's user avatar
  • 41
2 votes
2 answers
23 views

IEEEtran: How do I align the text in the table

I work with the IEEEtran.cls class. I need a way format my table with contains few columns but with longer texts in some columns. MWE: \documentclass[conference]{IEEEtran} \IEEEoverridecommandlockouts ...
yarinya's user avatar
  • 23
2 votes
4 answers
49 views

Caption of Table Clipping with table itself

I'm getting started in LaTeX right now and have an issue with the caption of my table. I'm using TabularX and the caption is clipping with the table itself. Could you maybe help me? Thank you! I'm ...
soosenbinder's user avatar
2 votes
1 answer
58 views

Perfectly align top of cells in tabularx

With the following code : \documentclass[a4paper,twocolumn]{article} \usepackage{xskak,adjustbox} \usepackage{lipsum} \usepackage{tabularx} \usepackage{parskip} \begin{document} \lipsum[5] \...
halogenr's user avatar
  • 125
1 vote
1 answer
52 views

Displaying Equations in Specific Tabularx Environment

I want to get rid of that huge blank space between the displayed equation and "converges to q". I am using a tabularx environment and hence I have to insert an enter (\\) after the displayed ...
Vue's user avatar
  • 155
1 vote
1 answer
50 views

TabularX - Cell content exiting

I am trying to fix my vertical table, the age values are exiting the cell. \begin{landscape} \begin{tabularx}{\linewidth}{|>{\hsize=1.5\hsize}X|*{12}{>{\hsize=0.75\hsize}X|}} \hline & \...
syriancoffee's user avatar
1 vote
1 answer
58 views

\\ for tabularx in macro

I try to define a new environment using tabularx. I understand that tabularx is not a real environment. Here is a minimal example of what I am trying to do. \documentclass[]{article} \usepackage{...
InfiniteLooper's user avatar
1 vote
0 answers
31 views

Extra alignment tab has been changed to \cr (tabular, table) [duplicate]

When I add a column to the first table that has no error message, I will get an error message for the second one. "Extra alignment tab has been changed to \cr." What is wrong with the ...
Questioner's user avatar
2 votes
1 answer
37 views

Enumerate within a multicolumn cell using tabularx

I would like to add a subitem with an indent to an item inside a table. I have shown a working example. As you can see, the subitem overlaps with the horizontal line of the following cell. The sub ...
vaish's user avatar
  • 21
2 votes
1 answer
73 views

Latex tabularx columns not equally spaced

I dont' understand why my columns Y are not equally spaced : \documentclass{article} \usepackage{graphicx} \usepackage{tabularx} \usepackage{multirow} \usepackage{geometry} \geometry{ a4paper, ...
Mo0nKizz's user avatar
1 vote
1 answer
26 views

Extra spacing with \onslide in table in Beamer

I want to use \onslide to gradually uncover the contents of a table in Beamer. But this creates extra spacing beween the lines. Consider this code, which contains two tables on one slide: \...
oz1cz's user avatar
  • 1,546
1 vote
1 answer
27 views

Tabbing text next to equations in a tabularx environment

I want to add aligned text after equations in a tabularx environment. I found methods using align or alignat but it seems impossible inside a table. This is my current situation : \documentclass{...
Vue's user avatar
  • 155
3 votes
1 answer
121 views

How to make the width of the columns in the table equal?

I want to be able to reproduce this table exactly: This is my Tex: \documentclass{article} \usepackage{amsmath} \usepackage{makecell} \usepackage{siunitx} \begin{document} \begin{tabular}{ccccc} ...
Zhao Dazhuang's user avatar

1
2 3 4 5
44