Update latexdiff.yml
This commit is contained in:
28
.github/workflows/latexdiff.yml
vendored
28
.github/workflows/latexdiff.yml
vendored
@@ -64,18 +64,21 @@ jobs:
|
||||
run: |
|
||||
latexdiff diff_output/base_flat.tex diff_output/compare_flat.tex > diff_output/diff.tex
|
||||
|
||||
- name: Upload flattened .tex and diff.tex early
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: latex-diff-tex
|
||||
path: |
|
||||
diff_output/base_flat.tex
|
||||
diff_output/compare_flat.tex
|
||||
diff_output/diff.tex
|
||||
|
||||
- name: Copy thesis.cls to diff_output
|
||||
run: cp compare/latex/thesis.cls diff_output/
|
||||
|
||||
- name: Copy chapter/img into diff_output
|
||||
run: |
|
||||
# Create the same chapter/img path inside diff_output
|
||||
mkdir -p diff_output/chapter/img
|
||||
# Copy all images from compare branch into diff_output
|
||||
cp -R compare/latex/chapter/img/* diff_output/chapter/img/
|
||||
|
||||
- name: Copy .bib files into diff_output
|
||||
run: |
|
||||
mkdir -p diff_output
|
||||
cp compare/latex/*.bib 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\n\\\setmainfont{TeX Gyre Termes}\n\\\setsansfont{TeX Gyre Heros}\n\\\setmonofont{TeX Gyre Cursor}" diff_output/diff.tex
|
||||
@@ -92,13 +95,6 @@ jobs:
|
||||
xelatex -interaction=nonstopmode diff.tex
|
||||
xelatex -interaction=nonstopmode diff.tex
|
||||
|
||||
|
||||
- name: Compile diff.tex to PDF
|
||||
working-directory: diff_output
|
||||
run: |
|
||||
xelatex -interaction=nonstopmode diff.tex
|
||||
xelatex -interaction=nonstopmode diff.tex
|
||||
|
||||
- name: Upload diff output files
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user