Update latexdiff.yml

This commit is contained in:
Rifqi D. Panuluh
2025-06-04 13:34:44 +07:00
committed by GitHub
parent 8f51963d0f
commit b35944ee3e

View File

@@ -76,6 +76,28 @@ jobs:
- name: Copy thesis.cls to diff_output - name: Copy thesis.cls to diff_output
run: cp compare/latex/thesis.cls 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 - name: Compile diff.tex to PDF
working-directory: diff_output working-directory: diff_output
run: | run: |