Open
Conversation
- tcolorbox: pre-define \tcb@use@autoparskip before raw TeX loading, since pgfkeys initialization may not complete and the \AtBeginDocument hook at tcolorbox.sty:1142 would call it undefined. - color: define \current@color, \default@color, and \reset@color with safe defaults. These DVI color macros were previously left undefined, causing errors in pgf/tikz color processing. - latex_constructs: support optional [label] argument in \AtBeginDocument and \AtEndDocument, matching the modern LaTeX hooks system (since 2020/10/01). Without this, the [label] leaked as literal text into the document output. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
In text/horizontal mode, wrap \hphantom argument digestion in restricted_horizontal mode (matching TeX's \hbox behavior) to prevent display math from leaking through the argument. This fixes cascading errors with complex TikZ library expansions (e.g. quantikz2). In math mode, preserve the current mode for correct font metrics. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR rescues arXiv:2508.15260v1 from a Fatal regression when using raw interpretation.
It ought to be the last PR for this iteration of improving the arXiv conversion regression guards.
Summary
fix
\hphantomdisplay math leak in text/horizontal modetcolorbox: pre-define
\tcb@use@autoparskipbefore raw TeX loading, since pgfkeys initialization may not complete and the\AtBeginDocumenthook at tcolorbox.sty would call it undefined.color: define
\current@color,\default@color, and\reset@colorwith safe defaults. These DVI color macros were previously left undefined, causing errors in pgf/tikz color processing.latex_constructs: support optional [label] argument in
\AtBeginDocumentand\AtEndDocument, matching the modern LaTeX hooks system (since 2020/10/01). Without this, the [label] leaked as literal text into the document output.Minimal test
Disclosure
Diagnostic and patch via Claude Opus 4.6 "heavy effort".
I have manually verified this patch recovers arXiv:2508.15260v1 out of regression status.
PR carried forward from the forked draft at dginev#12