Skip to content

Packs / latex-and-papers-public

arxiv-submission

Package a paper for arXiv: flatten inputs, remove all comments, include the .bbl, only used figures, size checks, tar.gz.

Install

logicpacks pack use latex-and-papers-public/arxiv-submission
get_pack latex-and-papers-public/arxiv-submission

The second line is the MCP tool call for the LogicPacks connector (Claude Code, Codex, Claude.ai and others). The first run of a pack someone else wrote asks for your yes.

Keys it needs (names only)

None.

Playbooks included

  • Spec: spec/SPEC.md (goal, steps, edge cases, don’ts)
  • Routes: local
  • Checks: 3 in outcome/checks.yaml
  • Code: arxiv_pack.py
  • Tools: python3, tectonic, tar

Usage, last 8 weeks

New: no recorded use yet.

Purpose (from spec/SPEC.md)

Goal

An arXiv-ready source tarball that compiles on arXiv and exposes no comments.

Steps

  1. Compile locally first (compile-latex) with --keep-intermediates so the .bbl exists.
  2. python3 code/arxiv_pack.py paper/ out/arxiv.tar.gz --main main.tex --bbl build/main.bbl.
  3. Upload on arxiv.org/submit, pick the category, check the arXiv-generated PDF page by page.

Edge cases

  • arXiv shows the source: comments are public unless removed.
  • Use the same TeX Live year as arXiv if a package breaks.

Don'ts

  • Don't send anything to co-authors, editors or journals; Waleed sends. Prepare files and open them for him.
  • Don't change numbers in a paper without the script/run that produced them.
  • Don't leave internal comments, server paths or chat quotes in a copy that leaves us.