Skip to content

v1.5.1 - #31

Merged
Paebbels merged 2 commits into
mainfrom
dev
Sep 16, 2026
Merged

Paebbels merged 2 commits into
mainfrom
dev

Conversation

@pytooling-claude

Copy link
Copy Markdown

Bug Fixes

  • Two Unicode characters were mapped to themselves. pytooling.sty defined

    \newunicodechar{≤}{\ensuremath{≤}}  % \le
    \newunicodechar{≥}{\ensuremath{≥}}  % \ge

    newunicodechar makes the character active, so each expansion re-inserted it: a document containing U+2264 or U+2265 ended in TeX capacity exceeded, sorry [input stack size=10000] instead of a PDF. They are mapped to \le and \ge now, which the trailing comments already named.

    The other 82 mappings are unaffected - they replace the character with a command (\dots, \leftarrow, …) or wrap it in \emoji, which typesets it through \emojifont rather than re-reading it as an active character.

Others

  • Found in a Sphinx PDF build of pyTooling/Actions, whose documentation contains U+2264 twelve times. Verified with MiKTeX 26.5 installed from this repository's own recipe: that document now builds to 275 pages.

Related Issues and Pull-Requests

claude-code and others added 2 commits September 16, 2026 21:02
'newunicodechar' makes a character active, so its replacement text is expanded
again. U+2264 and U+2265 replaced themselves:

    \newunicodechar{≤}{\ensuremath{≤}}  % \le
    \newunicodechar{≥}{\ensuremath{≥}}  % \ge

Each expansion re-inserts the active character, which ends in
"TeX capacity exceeded, sorry [input stack size=10000]". The trailing comments
name what was meant - '\le' and '\ge' - and they are used now.

The other 82 mappings are not affected: they replace the character with a
command ('\dots', '\leftarrow', ...) or wrap it in '\emoji', which typesets it
through '\emojifont' rather than re-reading it as an active character. MiKTeX's
own 'example/lualatex/document.tex' uses such icons and builds.

Found in a Sphinx PDF build of 'pyTooling/Actions', whose documentation
contains U+2264 twelve times.

Co-Authored-By: Patrick Lehmann <Paebbels@gmail.com>
@pytooling-claude pytooling-claude Bot added Problem Report Something isn't as expected. Processor: LuaLaTeX LaTeX Processor LuaLaTeX (with unicode support). Release Plan Unicode Related to Unicode support. labels Sep 16, 2026
@Paebbels
Paebbels merged commit 6540b76 into main Sep 16, 2026
9 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Problem Report Something isn't as expected. Processor: LuaLaTeX LaTeX Processor LuaLaTeX (with unicode support). Release Plan Unicode Related to Unicode support.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants