Skip to content

Commit 7908dfd

Browse files
pwt-cdclaude
andcommitted
🔧 Fix LaTeX minted package requirements
- Add python3-pygments system dependency for syntax highlighting - Add -shell-escape flag to pdflatex commands for minted package - Resolve LaTeX errors: 'Package minted Error: You must have pygmentize installed' - Resolve LaTeX errors: 'You must invoke LaTeX with the -shell-escape flag' - Fix both build-dev-docs.yml and build-deploy.yml workflows - This should resolve PDF table of contents and navigation issues 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent d363236 commit 7908dfd

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/build-deploy.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ jobs:
5555
sudo apt-get update
5656
sudo apt-get install -y \
5757
python3-pip \
58+
python3-pygments \
5859
texlive-latex-base \
5960
texlive-latex-recommended \
6061
texlive-latex-extra \
@@ -178,7 +179,7 @@ jobs:
178179
# Try LaTeX build first
179180
if [ -f "boost-spec.tex" ]; then
180181
echo "🔧 Building PDF from LaTeX..."
181-
pdflatex -interaction=nonstopmode boost-spec.tex || echo "LaTeX build failed, trying Pandoc..."
182+
pdflatex -shell-escape -interaction=nonstopmode boost-spec.tex || echo "LaTeX build failed, trying Pandoc..."
182183
fi
183184
184185
# Fallback to Pandoc HTML->PDF conversion

.github/workflows/build-dev-docs.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ jobs:
4949
sudo apt-get update
5050
sudo apt-get install -y \
5151
python3-pip \
52+
python3-pygments \
5253
texlive-latex-base \
5354
texlive-latex-recommended \
5455
texlive-latex-extra \
@@ -141,8 +142,8 @@ jobs:
141142
142143
# Try LaTeX build first
143144
if [ -f "boost-spec.tex" ]; then
144-
echo "🔧 Attempting LaTeX PDF build..."
145-
pdflatex -interaction=nonstopmode boost-spec.tex || true
145+
echo "🔧 Attempting LaTeX PDF build with shell-escape..."
146+
pdflatex -shell-escape -interaction=nonstopmode boost-spec.tex || true
146147
147148
# Check if PDF was actually generated (ignore LaTeX warnings)
148149
if [ -f "boost-spec.pdf" ]; then

0 commit comments

Comments
 (0)