Honor \catcode`\@ assignments
Class files often set the @ catcode directly instead of calling \makeatletter. Recognise \catcode assignments in the canonicalisation pass for the @ target: the target may be written with a backtick, bare, or as a code point, the value must be numeric (11 letter, 12 other) or \active, and the assignment is consumed and updates the same state \makeatletter toggles. Assignments for other characters are left untouched so nothing is silently dropped. A preview test sets \catcode`\@=11, defines and uses \@foo, and checks "bar" with no warnings and no leaked assignment.
This commit is contained in:
1 parent
b056b11ba9
commit
34d54d91a4
3 files changed
+102
-5
No files matched your search
@@ -49,7 +49,7 @@ floats (`\floatsep`, `\textfloatsep`, `\intextsep`, `\topfraction`,
|
||||
absolute limits, splitting), marks, Rust output hook, multi-page PDF, and the
|
||||
route-D service endpoints (`/api/route-d/preview|pdf|edit`, project preview and
|
||||
PDF opt-in with `?engine=route-d`; flat `/preview` and project previews now
|
||||
prefer route-D with a v1 fallback). 996 workspace tests are green and no oracle
|
||||
prefer route-D with a v1 fallback). 997 workspace tests are green and no oracle
|
||||
fixture is ignored. Preview JSON also carries a `warnings` array naming
|
||||
environments route-D cannot lay out and control words that survived layout, so
|
||||
unsupported source is reported instead of being silently typeset.
|
||||
|
||||
Reference in new issue
Block a user