From 8dbb448b3217b283f1ef5cbf8a70de9cd77ff70d Mon Sep 17 00:00:00 2001 From: "Rifqi D. Panuluh" <69516665+nuluh@users.noreply.github.com> Date: Tue, 3 Jun 2025 18:00:43 +0700 Subject: [PATCH] Update latexdiff.yml --- .github/workflows/latexdiff.yml | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/latexdiff.yml b/.github/workflows/latexdiff.yml index 8c7c088..e850868 100644 --- a/.github/workflows/latexdiff.yml +++ b/.github/workflows/latexdiff.yml @@ -18,6 +18,11 @@ jobs: options: --user root steps: + - name: Install latexpand (Perl script) + run: | + tlmgr init-usertree + tlmgr install latexpand + - name: Checkout base branch uses: actions/checkout@v4 with: @@ -30,34 +35,29 @@ jobs: ref: ${{ github.event.inputs.compare_branch }} path: compare - - name: Install flatex (in a virtualenv) - run: | - python3 -m venv /tmp/latex-venv - . /tmp/latex-venv/bin/activate - pip install flatex - ln -s /tmp/latex-venv/bin/flatex /usr/local/bin/flatex - name: Create output folder run: mkdir -p diff_output - - name: Flatten base/main.tex + - name: Flatten base/main.tex (with latexpand) run: | cd base/latex echo "📂 Listing files in base/latex:" ls -R - echo "🔄 Flattening base/latex/main.tex..." - flatex main.tex ../../diff_output/base_flat.tex - echo "✅ base_flat.tex preview:" + echo "🔄 Flattening with latexpand..." + latexpand --verbose --keep-comments --output=../../diff_output/base_flat.tex main.tex + echo "✅ Preview of base_flat.tex:" head -n 50 ../../diff_output/base_flat.tex - - name: Flatten compare/main.tex + + - name: Flatten compare/main.tex (with latexpand) run: | cd compare/latex echo "📂 Listing files in compare/latex:" ls -R - echo "🔄 Flattening compare/latex/main.tex..." - flatex main.tex ../../diff_output/compare_flat.tex - echo "✅ compare_flat.tex preview:" + echo "🔄 Flattening with latexpand..." + latexpand --verbose --keep-comments --output=../../diff_output/compare_flat.tex main.tex + echo "✅ Preview of compare_flat.tex:" head -n 50 ../../diff_output/compare_flat.tex - name: Generate diff.tex using latexdiff