Skip to content

[backport] Fix cross-referenced longtable PDF failure with endfloat - #14743

Open
cderv wants to merge 2 commits into
v1.10from
backport/14741-longtable-group
Open

[backport] Fix cross-referenced longtable PDF failure with endfloat#14743
cderv wants to merge 2 commits into
v1.10from
backport/14741-longtable-group

Conversation

@cderv

@cderv cderv commented Jul 31, 2026

Copy link
Copy Markdown
Member

Important

Backport of #14742 to the 1.10 release line.

Cherry-pick of the #14741 fix: Quarto drops the { ... } group Pandoc wraps around a captionless cross-referenceable longtable, which was breaking endfloat with \DeclareDelayedFloatFlavor*{longtable}{table}. See #14742 for the full analysis.

cderv added 2 commits July 31, 2026 16:13
Pandoc 3.8.1+ wraps a captionless longtable in a brace group scoping \def\LTcaptype{none}. Quarto supplies its own \caption and drops that definition, leaving the group pointless - and it breaks packages that move the environment out of the text flow, notably endfloat's \DeclareDelayedFloatFlavor*{longtable}{table}. Drop the braces with the definition, guarded to only touch Pandoc's own wrapper. Backport of the fix landing on main.
@posit-snyk-bot

posit-snyk-bot commented Jul 31, 2026

Copy link
Copy Markdown
Collaborator

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants