Skip to content

Commit 49ae51a

Browse files
fix(preprints): render LaTeX math in automated-review reports
Reviewers reading LaTeX papers emit inline/display math (e.g. $\Delta_{\cos} \in [0.02, 0.05]$); tex_escape was turning it into literal source. Now math spans ($...$, $$...$$, \(..\), \[..\]) pass through verbatim and compile as math (amsmath/amssymb added to the review preamble). Robustness: - Single-$ spans are guarded: a span containing a space-delimited prose word is kept literal, since reviewers sometimes quote a paper's UNBALANCED $ (which would otherwise pull a whole clause into math mode). - build_preprint_pdfs compiles with math, and retries once with math-as-text if a stray/paper-defined macro breaks lualatex — one bad expression never costs the whole report (fired once across the 60-preprint rebuild; all 60 built). Rebuilt all 60 preprints. Tests added for math passthrough + fallback. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent eb05f2a commit 49ae51a

65 files changed

Lines changed: 91 additions & 21 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)