From b35944ee3e49ecee8525c229b2c4f23e2b02cbc2 Mon Sep 17 00:00:00 2001 From: "Rifqi D. Panuluh" <69516665+nuluh@users.noreply.github.com> Date: Wed, 4 Jun 2025 13:34:44 +0700 Subject: [PATCH] Update latexdiff.yml --- .github/workflows/latexdiff.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.github/workflows/latexdiff.yml b/.github/workflows/latexdiff.yml index 235e237..2021d08 100644 --- a/.github/workflows/latexdiff.yml +++ b/.github/workflows/latexdiff.yml @@ -76,6 +76,28 @@ jobs: - name: Copy thesis.cls to diff_output run: cp compare/latex/thesis.cls diff_output/ + - name: Override “\input{preamble/fonts}” in diff.tex + run: | + sed -i '/\\input{preamble\/fonts}/c\ + % — replaced by CI: use TeX Gyre fonts instead of Times New Roman/Arial \ + \setmainfont{TeX Gyre Termes} \ + \setsansfont{TeX Gyre Heros} \ + \setmonofont{TeX Gyre Cursor}\ + ' diff_output/diff.tex + + - name: Print preview of diff.tex (after font override) + run: | + echo "📄 Preview of diff_output/diff.tex after font override:" + head -n 50 diff_output/diff.tex + + - name: Compile diff.tex to PDF + working-directory: diff_output + continue-on-error: true + run: | + xelatex -interaction=nonstopmode diff.tex + xelatex -interaction=nonstopmode diff.tex + + - name: Compile diff.tex to PDF working-directory: diff_output run: |