Skip to content

markov-root/latex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LaTeX Template

A general-purpose, arXiv-ready LaTeX template using the arxiv.sty preprint style.

Quick start

  1. Copy this directory to your new project.
  2. Edit metadata.tex (title, authors).
  3. Edit sections/abstract.tex and the section stubs in sections/.
  4. Add citations to references.bib.
  5. Build: make. Output: build/main.pdf.

Layout

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/)

Building

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.

arXiv submission

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.

Adding a preamble module

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.

Citations

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.

About

latex base structure

Resources

License

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors