A general-purpose, arXiv-ready LaTeX template using the
arxiv.sty preprint style.
- Copy this directory to your new project.
- Edit
metadata.tex(title, authors). - Edit
sections/abstract.texand the section stubs insections/. - Add citations to
references.bib. - Build:
make. Output:build/main.pdf.
main.tex entry point — wires everything together
metadata.tex title, authors, date
preamble/ modular preamble (loaded via preamble/preamble.tex)
preamble.tex master loader
fonts.tex inputenc, fontenc, lmodern, microtype
math.tex amsmath, amssymb, amsthm
graphics.tex graphicx, \graphicspath, float
tables.tex booktabs, tabularx, longtable, L{} colspec, \thead
bibliography.tex natbib backend
hyperref.tex hyperref + cleveref (load last)
styles/ vendored package assets
arxiv.sty arxiv preprint style
orcid.pdf orcid logo used by arxiv.sty
sections/ one .tex per logical section
abstract.tex abstract + keywords
introduction.tex
related-work.tex
methods.tex
results.tex
discussion.tex
figures/ figures (resolved via \graphicspath)
references.bib BibTeX bibliography
Makefile build + arxiv-submission targets
.latexmkrc pdflatex + bibtex config (output to build/)
| Command | What it does |
|---|---|
make |
Compile main.tex to build/main.pdf via latexmk. |
make clean |
Remove all build artifacts. |
make arxiv |
Build, then bundle a self-contained arxiv-submission.tar.gz ready to upload to arXiv. |
make arxiv produces arxiv-submission.tar.gz containing all sources, the
vendored styles/, figures, and the precompiled .bbl. arXiv's autocompiler
runs pdflatex only (no BibTeX unless the .bbl is absent), so shipping the
.bbl guarantees identical output.
Compatibility: pdflatex + natbib + bibtex with vendored arxiv.sty
works on every TeX Live version arXiv supports.
Drop a new file in preamble/ (e.g. preamble/algorithms.tex) and add an
\input{preamble/algorithms} line to preamble/preamble.tex. Keep
hyperref.tex last.
Numbered style by default (unsrtnat). For author-year, change natbib
options in preamble/bibliography.tex to [round] and \bibliographystyle
in main.tex to plainnat or apalike. Use \citep{key} for parenthetical
and \citet{key} for textual citations.