File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Draft PDF and arXiv Package
2+ on : [push]
3+
4+ jobs :
5+ build-paper :
6+ runs-on : ubuntu-latest
7+ name : Build Paper and arXiv Package
8+ steps :
9+ - name : Checkout repository
10+ uses : actions/checkout@v4
11+
12+ - name : Install Pandoc and TeX Live
13+ # Added texlive-xetex for robust Unicode character support (like the Ω symbol)
14+ run : |
15+ sudo apt-get update
16+ sudo apt-get install -y pandoc texlive texlive-latex-extra texlive-fonts-recommended texlive-xetex zip
17+
18+ - name : Generate LaTeX, PDF, and arXiv Zip
19+ run : |
20+ cd paper
21+
22+ # 1. Generate the arXiv-compatible LaTeX file (.tex)
23+ pandoc paper.md -o paper.tex --standalone --citeproc --bibliography=paper.bib
24+
25+ # 2. Generate the viewable PDF file (.pdf) using XeLaTeX for Unicode support
26+ pandoc paper.md -o paper.pdf --standalone --citeproc --bibliography=paper.bib --pdf-engine=xelatex
27+
28+ # 3. Create the ZIP package for arXiv submission
29+ # Note: If your paper includes images, append their path here (e.g., zip arxiv_submission.zip paper.tex paper.bib ../pica/assets/Images)
30+ zip arxiv_submission.zip paper.tex paper.bib
31+
32+ - name : Upload PDF Artifact
33+ uses : actions/upload-artifact@v4
34+ with :
35+ name : paper-pdf
36+ path : paper/paper.pdf
37+
38+ - name : Upload arXiv Package Artifact
39+ uses : actions/upload-artifact@v4
40+ with :
41+ name : arxiv-package
42+ path : paper/arxiv_submission.zip
You can’t perform that action at this time.
0 commit comments