From a1fd62698816446755048a192bf917d5e524b4ea Mon Sep 17 00:00:00 2001 From: tannevaled Date: Tue, 1 Sep 2026 16:29:24 +0200 Subject: [PATCH] engine: take go-tex/math v0.24.0 so \char no longer drops a formula MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit v0.24.0 teaches the math layer the \char primitive, the top structural math-drop cause by document count (11 papers). With it, formulas that used \char — commonly \char`\^ from macro expansion — typeset instead of being dropped whole. End-to-end on the corpus: dropped-equation counts fall on the affected papers (2311.07618 1→0, 2402.05579 3→2, 2404.10839 14→13, 2408.07548 2→1) with no regression; the full engine suite stays green. Co-Authored-By: Claude Opus 4.8 --- go.mod | 2 +- go.sum | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/go.mod b/go.mod index 9a5d7b2..242093f 100644 --- a/go.mod +++ b/go.mod @@ -7,7 +7,7 @@ require github.com/go-opentype/opentype v0.12.0 require ( github.com/go-gfx/gfx v0.18.0 github.com/go-pdfkit/pdfkit v0.6.0 - github.com/go-tex/math v0.23.0 + github.com/go-tex/math v0.24.0 golang.org/x/text v0.41.0 ) diff --git a/go.sum b/go.sum index cb810a0..6242e06 100644 --- a/go.sum +++ b/go.sum @@ -34,6 +34,8 @@ github.com/go-richdoc/richdoc v0.2.0 h1:z9cLox9MoInZL6fIlweMzgDT/VqgnB2ZucSIEaRF github.com/go-richdoc/richdoc v0.2.0/go.mod h1:aCX8ulqg5CoKqSWgWeEWul1Oj0d2VxQeaQNI0+jsm7c= github.com/go-tex/math v0.23.0 h1:sKVAT5PCip2OqahCCEI5egEeCYNHs9Dbn504rJ6z6Qk= github.com/go-tex/math v0.23.0/go.mod h1:SaB8XOWZXooetm1elSfY0UHwPbyhbditTZxbGoCzjXE= +github.com/go-tex/math v0.24.0 h1:mAyIKGtYrLc1zKnyHKo7mdnucts1ryeglEsfECjnop0= +github.com/go-tex/math v0.24.0/go.mod h1:SaB8XOWZXooetm1elSfY0UHwPbyhbditTZxbGoCzjXE= github.com/go-tex/texmf v0.5.0 h1:O3r0WxAIGYLZAMuYBZzfprOf+2V8s4RqXyUoHJ/wcfA= github.com/go-tex/texmf v0.5.0/go.mod h1:nZtEGwpAGkhH6U1hRGG9ilccZbJhMSK2Xk2omIWdq+k= github.com/go-typeset/bidi v0.3.0 h1:4fjGjejvjE2LzLNzY4si8PkVO321NcsKIiANhWT3jF4=