Skip to content

Commit dfbadbf

Browse files
2 parents d5b7e1f + cd753a2 commit dfbadbf

1 file changed

Lines changed: 42 additions & 0 deletions

File tree

.github/workflows/arXiv.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
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

0 commit comments

Comments
 (0)