From 04546f8c358a25658cb143d1211e934f0da0472c Mon Sep 17 00:00:00 2001 From: "Rifqi D. Panuluh" <69516665+nuluh@users.noreply.github.com> Date: Tue, 3 Jun 2025 14:20:23 +0700 Subject: [PATCH] Update latexdiff.yml ensures that all \include{} or \input{} paths (which are relative to main.tex) resolve correctly --- .github/workflows/latexdiff.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/latexdiff.yml b/.github/workflows/latexdiff.yml index 8b18607..29dc259 100644 --- a/.github/workflows/latexdiff.yml +++ b/.github/workflows/latexdiff.yml @@ -44,13 +44,15 @@ jobs: - name: Flatten base/main.tex run: | - flatex base/latex/main.tex > diff_output/base_flat.tex + cd base/latex + flatex main.tex > ../../../diff_output/base_flat.tex - name: Flatten compare/main.tex run: | - flatex compare/latex/main.tex > diff_output/compare_flat.tex + cd compare/latex + flatex main.tex > ../../../diff_output/compare_flat.tex - - name: Generate diff.tex + - name: Generate diff.tex using latexdiff run: | latexdiff diff_output/base_flat.tex diff_output/compare_flat.tex > diff_output/diff.tex @@ -65,4 +67,3 @@ jobs: with: name: latex-diff-output path: diff_output/ -