LaTeX: allow more cases of table nesting, fix #13646 by jfbu · Pull Request #13647 · sphinx-doc/sphinx (original) (raw)

@jfbu

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 added this to the 8.3.0 milestone

Jun 10, 2025

@jfbu

@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

@jfbu

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

@jfbu

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 jfbu mentioned this pull request

Jun 10, 2025

@jfbu jfbu mentioned this pull request

Jun 30, 2025

jfbu added a commit to jfbu/sphinx that referenced this pull request

Jun 30, 2025

@jfbu

@jfbu jfbu mentioned this pull request

Jun 30, 2025

jfbu added a commit that referenced this pull request

Jun 30, 2025

@jfbu

@github-actions github-actions bot locked as resolved and limited conversation to collaborators

Jul 12, 2025

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})