Skip to content

Conversation

@jfbu
Copy link
Contributor

@jfbu jfbu commented Jun 10, 2025

Tables using longtable can now contain nested tables inclusive of those rendered by tabulary, up to the suppression (done automatically) of the latter horizontal lines due to an upstream LaTeX bug (can not use \hline in a tabulary in a longtable). A longtable can never itself be nested, and will fall-back to tabular.

Formerly longtable would raise (in principle) an error if it contained any sort of nested table, but the detection of being a longtable was faulty if not specified as class option.

Relates #6838.
Fix #13646.

Tables using longtable can now contain nested tables inclusive of those
rendered by tabulary, up to the suppression of the latter horizontal
lines due to an upstream LaTeX bug.  A longtable can never itself be
nested, and will fall-back to tabular.

Formerly longtable would raise (in principle) an error if it contained
any sort of nested table, but the detection of being a longtable was
faulty if not specified as class option.

Relates sphinx-doc#6838.
@jfbu jfbu added this to the 8.3.0 milestone Jun 10, 2025
@jfbu jfbu merged commit d20d348 into sphinx-doc:master Jun 10, 2025
25 checks passed
@jfbu jfbu deleted the latex_tables branch June 10, 2025 16:04
jfbu added a commit to jfbu/sphinx that referenced this pull request Jun 10, 2025
The recently added to sphinx.writer.latex tests in get_table_colspec()
(of Table class) and depart_table() from LaTeXTranslator were giving
false positives on legit specs such as >{\RaggedRight}\X{1}{2} when
testing for presence of the R, L, C, J, or T specifiers.

Refers: sphinx-doc#13647.
jfbu added a commit to jfbu/sphinx that referenced this pull request Jun 10, 2025
The recently added to sphinx.writer.latex tests in get_table_colspec()
(of Table class) and depart_table() from LaTeXTranslator were giving
false positives on legit specs such as >{\RaggedRight}\X{1}{2} when
testing for presence of the R, L, C, J, or T specifiers.

Refers: sphinx-doc#13647.
jfbu added a commit to jfbu/sphinx that referenced this pull request Jun 30, 2025
jfbu added a commit that referenced this pull request Jun 30, 2025
Close #1327.  It was fixed as part of PR #13647.
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 12, 2025
@AA-Turner AA-Turner modified the milestones: 8.3.0, 9.0.0 Nov 25, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

LaTeX: longtable class forbids nested table but implicit longtable will allow it, and crash on PDF build

2 participants