Skip to content

Commit

Permalink
Update pdf.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
zhimin-z authored Jul 15, 2024
1 parent 17e0549 commit 77a26b3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/pdf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:

# Install pandoc and xelatex
- name: Install dependencies
run: sudo apt-get install -y pandoc texlive-xetex
run: sudo apt-get update && sudo apt-get install -y pandoc texlive-xetex

# Create directory for PDFs
- name: Create PDF directory
Expand All @@ -29,9 +29,9 @@ jobs:
- name: Concatenate markdown files
run: find . -name "*.md" -exec cat {} + > combined.md

# Convert the concatenated markdown to PDF using xelatex
# Convert the concatenated markdown to PDF using xelatex and custom template
- name: Convert markdown to PDF
run: pandoc combined.md -o pdfs/combined.pdf --pdf-engine=xelatex
run: pandoc combined.md -o pdfs/combined.pdf --pdf-engine=xelatex --template=template.tex

# Upload the PDF artifact
- uses: actions/upload-artifact@v3
Expand Down

0 comments on commit 77a26b3

Please sign in to comment.