What problem does it solve?
Retrieve arXiv LaTeX source bundles, extract structured sections/equations/references, and attach parsing-ready outputs to Zotero items. Use this whenever a user needs better-than-PDF full text for preprints, equation fidelity, or reproducible section-level extraction.
Core Features & Use Cases
- Download source bundle: GET https://arxiv.org/e-print/{arxiv_id}
- Typical response: gzip tarball containing
.tex, figures, and bibliography files.
- Pair metadata when needed: https://export.arxiv.org/api/query?id_list={arxiv_id}.
- Find main TeX file via \documentclass and \begin{document}.
- Extract section titles, equation blocks, and bibliography entries.
- Save parsed artifacts as a Zotero note/attachment summary and keep source provenance (arxiv_id, version, fetch date).
Guardrails
- Respect arXiv automation guidance: use a descriptive User-Agent.
- Keep request rate conservative (about 1 req/s; do not exceed published limits).
- Retain raw archive hash/version where possible for reproducibility.
Output template
{
"arxiv_id": "string",
"source_version": "v1|v2|unknown",
"main_tex": "path or null",
"sections": ["string"],
"equation_count": 0,
"reference_count": 0,
"zotero_actions": [
"create_note",
"attach_parsed_summary"
]
}
Quick Start
Attach a Zotero item with an arXiv ID or URL and request the LaTeX-source extraction to obtain structured sections, equations, and references.