Update latexdiff.yml
This commit is contained in:
22
.github/workflows/latexdiff.yml
vendored
22
.github/workflows/latexdiff.yml
vendored
@@ -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: |
|
||||
|
||||
Reference in New Issue
Block a user