Update latexdiff.yml
This commit is contained in:
30
.github/workflows/latexdiff.yml
vendored
30
.github/workflows/latexdiff.yml
vendored
@@ -63,18 +63,21 @@ jobs:
|
||||
- name: Generate diff.tex using latexdiff
|
||||
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: |
|
||||
@@ -84,17 +87,10 @@ jobs:
|
||||
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
|
||||
continue-on-error: true
|
||||
run: |
|
||||
xelatex -interaction=nonstopmode diff.tex
|
||||
xelatex -interaction=nonstopmode diff.tex
|
||||
|
||||
Reference in New Issue
Block a user