Skip to main content

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.

0 votes
0 answers
27 views

Undefined control sequence in syi and acr files [closed]

I have a weird issue where I am experiencing the error "Undefined control sequence", but not in my LaTeX document, but rather in the generated syi and acr files. Here's the exact error and ...
vatbub's user avatar
  • 125
6 votes
3 answers
183 views

Table split into two parts but not vertically aligned

I have a long but narrow table that I would like to fit onto one page by splitting it into two parts side-by-side but still under the same table environment. I have somewhat achieved this using two ...
katiecat0196's user avatar
6 votes
3 answers
304 views

Toprule, bottomrule and midrule for tables

My following Latex code generated the table as shown in the image. I want the top, bottom and midrule to extend until the margin. Since I use resize option, the table is resized but not the rules. ...
Neuling's user avatar
  • 171
2 votes
0 answers
84 views

Less white space in `n` columns table

Based in the question: Less white space in last column of table and the corresponding answer (by @egreg and comments by @davidcarlisle) I wanted to extend it to a more flexible version for n columns ...
albert's user avatar
  • 1,455
1 vote
1 answer
67 views

Less white space in last column of table

When having a text like \documentclass[twoside]{book} \usepackage{ifthen} \usepackage{xltabular} \newenvironment{DoxyEnumFields}[2][]{% \par% \ifthenelse{\equal{#1}{2}}% {\xltabular[l]{...
albert's user avatar
  • 1,455
1 vote
0 answers
21 views

Tabularx column type X not working with revtex document class [duplicate]

Below is a minimal example that shows the problem. I get an error if I try to use the tabularx environment with column type X together with revtex. If I change the column type to c, or the document ...
J_mu's user avatar
  • 41
0 votes
0 answers
30 views

Compatibility between tabularx and supertabular broken

The glossaries package uses the supertabular package to provide the style=super option. It seems that the latest update of the latex-tools (Patch level 1 2025-06-01), which contains tabularx, broke ...
DRoc's user avatar
  • 51
2 votes
1 answer
42 views

File ended while scanning use of \TX@get@body

I have the problem: \documentclass[twoside]{book} \usepackage{tabularx} \newenvironment{DoxyTableNested}[1]{% \begin{tabularx}{\linewidth}{|*{#1}{>{\raggedright\arraybackslash}X|}}% }{% \end{...
albert's user avatar
  • 1,455
4 votes
4 answers
124 views

How to stretch a table to \textwidth with tabular* and siunitx S-columns without white gaps in row colors?

I have a problem with tabular* I want to stretch the table to to \textwidth AND I need to use the S colums of siunitx package. I need it, because I want to align the numbers at the decimal separators (...
thinksolid's user avatar
1 vote
0 answers
35 views

Cannot use tabularx in REVTeX with TexLive 2025 [duplicate]

I cannot use tabularx in REVTeX with TexLive 2025 (Windows) at all; it gives error: 10: Extra \or. \end{tabularx}. Not with any compiler. I use another documentclass like article then it works. I use ...
Juan's user avatar
  • 111
4 votes
3 answers
126 views

Vertically center align texts in table

I have tried to center-align (vertically) the texts in the following way: \documentclass[a4paper,12pt]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{geometry} \geometry{...
raf's user avatar
  • 1,051
3 votes
4 answers
167 views

Wrong spacing between cline and text in following row

I need to typeset a table with two features: Some of the hlines are thicker than others. Some of the hlines are not spanning over all columns. The tabular has 6 columns and the hlines with regular ...
Photon's user avatar
  • 379
0 votes
1 answer
40 views

Is it possible to fit a table to page height and fit a column to hfill the page width at the same time?

I need to create a calendar which consists of a table listing various dates. The table should ideally fill the page in height and width. One of the columns can vary and thus make the table fit the ...
Photon's user avatar
  • 379
7 votes
3 answers
177 views

Table with tabularx and multicolumn, unable to get correct cell widths

I'm trying to create a table which spans the entire page and where each row can have either one, two or three cells (each cell should have equal width.) I tried to use tabuarx with column type X and ...
mlidal's user avatar
  • 173
5 votes
4 answers
191 views

Rotated multirow text not centered in table

I'm trying to replicate the next table: And I end up with this code: \documentclass{article} \usepackage{graphicx} \usepackage{tabularx} \usepackage{multicol} \usepackage{multirow} \usepackage{...
Ilyan Alexey Cortés Miranda's user avatar

15 30 50 per page
1
2 3 4 5
157