mirror of
https://github.com/jihe520/MathModelAgent.git
synced 2026-10-02 02:44:56 +08:00
Both English Typst templates hardcoded the total page count as "4" in the page header, producing impossible headers like "Page 5 of 4" for any paper longer than 4 pages (i.e. every real submission). - en/mcm: total-pages now evaluates counter(page).final() minus the two front-matter pages (summary sheet + title page), matching the existing physical-page offset used for the current page number - en/default: total-pages now evaluates counter(page).final() directly Verified: both templates compile cleanly with typst 0.14 and produce consistent "Page N of N" headers on the final page. Co-authored-by: Alumin-Hydro <alumin@users.noreply.github.com>