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
|
options: --user root
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Install latexpand (Perl script)
|
||||||
|
run: |
|
||||||
|
tlmgr init-usertree
|
||||||
|
tlmgr install latexpand
|
||||||
|
|
||||||
- name: Checkout base branch
|
- name: Checkout base branch
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
@@ -30,34 +35,29 @@ jobs:
|
|||||||
ref: ${{ github.event.inputs.compare_branch }}
|
ref: ${{ github.event.inputs.compare_branch }}
|
||||||
path: compare
|
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
|
- name: Create output folder
|
||||||
run: mkdir -p diff_output
|
run: mkdir -p diff_output
|
||||||
|
|
||||||
- name: Flatten base/main.tex
|
- name: Flatten base/main.tex (with latexpand)
|
||||||
run: |
|
run: |
|
||||||
cd base/latex
|
cd base/latex
|
||||||
echo "📂 Listing files in base/latex:"
|
echo "📂 Listing files in base/latex:"
|
||||||
ls -R
|
ls -R
|
||||||
echo "🔄 Flattening base/latex/main.tex..."
|
echo "🔄 Flattening with latexpand..."
|
||||||
flatex main.tex ../../diff_output/base_flat.tex
|
latexpand --verbose --keep-comments --output=../../diff_output/base_flat.tex main.tex
|
||||||
echo "✅ base_flat.tex preview:"
|
echo "✅ Preview of base_flat.tex:"
|
||||||
head -n 50 ../../diff_output/base_flat.tex
|
head -n 50 ../../diff_output/base_flat.tex
|
||||||
|
|
||||||
- name: Flatten compare/main.tex
|
|
||||||
|
- name: Flatten compare/main.tex (with latexpand)
|
||||||
run: |
|
run: |
|
||||||
cd compare/latex
|
cd compare/latex
|
||||||
echo "📂 Listing files in compare/latex:"
|
echo "📂 Listing files in compare/latex:"
|
||||||
ls -R
|
ls -R
|
||||||
echo "🔄 Flattening compare/latex/main.tex..."
|
echo "🔄 Flattening with latexpand..."
|
||||||
flatex main.tex ../../diff_output/compare_flat.tex
|
latexpand --verbose --keep-comments --output=../../diff_output/compare_flat.tex main.tex
|
||||||
echo "✅ compare_flat.tex preview:"
|
echo "✅ Preview of compare_flat.tex:"
|
||||||
head -n 50 ../../diff_output/compare_flat.tex
|
head -n 50 ../../diff_output/compare_flat.tex
|
||||||
|
|
||||||
- name: Generate diff.tex using latexdiff
|
- name: Generate diff.tex using latexdiff
|
||||||
|
|||||||
Reference in New Issue
Block a user