This repository provides a modern LaTeX template for academic paper writing with an automated build system and comprehensive writing guidelines.
# Build the main PDF (this is the only command needed unless you are fiddling with figures)
make pdf
# Convert SVG figures to PDF (when needed)
make pdf-figures
# Continuous compilation (watches for changes)
make cont
# Generate diff against previous version
make diff
# Clean auxiliary files
make cleanThis repository follows comprehensive writing guidelines documented in misc/writing_with_erick.md. Key principles include:
- One sentence per line in TeX files for easy reorganization and clean diffs
- Write complete introduction first to ensure proper motivation
- Use understatement over overstatement - substantial advances speak for themselves
- Make direct statements with parenthetical figure references
- Follow hierarchical revision: section → paragraph → sentence → word level
When writing a response to reviewers, continue to edit the main.tex.
We will have a separate response file: either Markdown or TeX.
See Bill Noble's Ten simple rules for writing a response to reviewers for excellent advice.
main.tex- Main document (always the most up-to-date file)main.bib- Bibliographyprep-figures/- Source SVG figuresfigures/- Generated PDF figures (commit these)versions/v1.tex- Previous version for diff generation
The repository uses latexmk with a Makefile wrapper for common tasks:
make pdf- Build main PDF documentmake pdf-figures- Convert SVG figures to PDF using Inkscapemake cont- Continuous compilation mode (watches for file changes)make diff- Generate comparison PDF againstversions/v1.texmake clean- Remove auxiliary files (keep PDFs)make cleanall- Remove all generated files including PDFs
The repository automatically builds PDFs on every push and pull request. You can:
- View compiled PDFs: Go to the Actions tab in GitHub
- Download artifacts: Click on any workflow run and download the
paper-pdfartifact - No local LaTeX needed: Collaborators can review PDFs without installing LaTeX
PDFs are timestamped with format {repo-name}_{YYYY-MM-DD@HH-MM}.pdf in Pacific timezone (e.g., [email protected]).
The CI uses a pre-built Docker container for fast, reliable builds.
- Edit
main.texand other source files - Run
make pdf-figuresif you've added/modified SVG figures - Run
make pdfto build locally - Commit changes (including any new PDF figures)
- Push to GitHub - PDF will be automatically built and available in Actions tab
Local development:
- LaTeX distribution (TeX Live, MikTeX, etc.)
latexmkcommandlatexdifffor document comparisoninkscape(only if you are mucking with SVG figures)
- All compiled files are ignored via
.gitignore - Commit PDF figures to the repository
- Use
%EMor similar initials to mark reviewer comments in TeX files