Build an arXiv submission zip from LaTeX source — copies tex, bib, sty, figures into a flat archive, fixes paths, verifies compilation via Docker + TeX Live. Portable across projects.
Package a LaTeX paper into a self-contained zip ready for arXiv upload. Copies source files, rewrites \graphicspath for the flat zip structure, and optionally verifies compilation via Docker + TeX Live.
Portable: Copy this entire directory to any project. Only your content (.tex, .bib, figures) is external.
build-arxiv-submission/
skill.md # This file
scripts/
build.sh # Bash build script
build.ps1 # PowerShell build script
texlive/texlive:latest# Bash (Git Bash / Linux / macOS)
bash <skill-dir>/scripts/build.sh <input.tex> [output.zip]
# PowerShell
powershell <skill-dir>/scripts/build.ps1 -TexFile <input.tex> [-OutputZip <output.zip>]
Replace <skill-dir> with the path to this skill directory in your project.
\graphicspath and \bibliography from the .tex file to discover dependencies.sty files used via \usepackage that exist in the tex directory or project.tex, .bib, .sty, and all figures into a temp staging directory\graphicspath to {figures/} (flat zip-relative path)paper.tex # main source (graphicspath rewritten)
references.bib # bibliography (auto-detected from \bibliography{})
neurips_2024.sty # style files (auto-detected from \usepackage{})
figures/ # all files from the original graphicspath directory
fig1.png
...
.pdf, .png, .jpg (pdflatex)