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