Repository navigation
compiler: \pagestyle, \thispagestyle and \pagenumbering are accepted in the preamble (#321) - #322
Merged
Merged
Conversation
…in the preamble (GH#321) The remainder of #258's ranked finding 11. Probe min2-pagestyle declares \pagestyle{empty} in the preamble, and the compiler rejected it with "\pagestyle is not supported in the document preamble". The three commands already had body arms that are honest no-ops (there is no header or footer rendering yet), but those arms came after the `_ if has_document && !in_body => unsupported_preamble` catch-all. They now sit with the other preamble-or-body arms (\numberwithin, \sisetup, \graphicspath), unchanged. tests/preamble_page_commands.rs: all four preamble spellings report nothing and lay out identically to a preamble without them, and the committed min2-pagestyle probe compiles with no errors. Both tests fail against main's parser.rs and pass with this change. Implementation-Agent: daniel-vpclaude (Claude Code, Claude Pro plan) Commit-Executor: daniel-vpclaude, direct git (Cursor-limit fallback) Co-authored-by: d-q222 <[email protected]> Claude-Session: https://claude.ai/code/session_012iWhnaQddU1UTMh6ZssGBJ
This was referenced Sep 14, 2026
d-q222
added a commit
that referenced
this pull request
Sep 14, 2026
d-q222
added a commit
that referenced
this pull request
Sep 14, 2026
) and \pagestyle family (#322) parser arms parser.rs conflict: #322 added the pagestyle/thispagestyle/pagenumbering arms where this branch (carrying #276's commit) added allowdisplaybreaks; kept both. Regenerated supported-LaTeX artefacts and synced the Mac copy. Claude-Session: https://claude.ai/code/session_012c9XLkHjePPGBuarrmE2mz
This was referenced Sep 14, 2026
compiler: accept
hyperref and \hypersetup, and break URLs the way url.sty does (rebase of #385)
#388
Merged
This was referenced Sep 14, 2026
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.
Closes #321, the unowned remainder of #258 ranked finding 11 (probe
min2-pagestyle). Lanedaniel-vpclaude(Claude Pro), announced on #2 first.Cause: the three commands' body arms, honest no-ops since there's no header or footer rendering, sat after the
_ if has_document && !in_body => unsupported_preamblecatch-all. So\pagestyle{empty}in the preamble, where documents usually put it, was an error.Fix: move the arms, unchanged, next to the other preamble-or-body arms (
\numberwithin,\sisetup,\graphicspath).Evidence
tests/preamble_page_commands.rs: all four preamble spellings report nothing and lay out identically to a bare preamble; the committedmin2-pagestyleprobe compiles with no errors. Both fail against main'sparser.rsand pass with this change.cargo test --no-fail-fastfor the compiler: green.Rest of rank 11:
\lstset→ #261;\hypersetup→ #131;\small/\bfseriesin a preamble macro already work on main;\baselinestretch→ #292.🤖 Generated with Claude Code
https://claude.ai/code/session_012iWhnaQddU1UTMh6ZssGBJ