A generic template system for creating comprehensive academic primers on any topic
Introduction, Theory, Key Topic, Mathematical, Empirical, and Validation sections with placeholder markers
Proofs, Derivations, Data Catalog, and Exercises - complete academic structure
Line chart, bar chart, scatter plot, heatmap, time series, distribution, flowchart
Figure integration, citation validation, DOI resolution, overflow checking
Predefined notation for probability, optimization, derivatives, vectors, matrices
elsarticle class, publication-ready PDF with ~44 pages
Academic_Primer_Framework/ ├── justfile # Build commands ├── figures/ # YOUR FIGURES │ ├── _shared/ │ │ ├── colors.py # Color palette (8 colors) │ │ └── styles.py # Matplotlib rcParams │ └── 01_example_chart/ │ └── chart.py -> chart.pdf ├── figures_template/ # 7 TEMPLATES ├── paper/ │ ├── main.tex # Your document │ ├── main_template.tex # TEMPLATE │ ├── preamble.tex # DO NOT MODIFY │ ├── notation.tex # DO NOT MODIFY │ ├── sections/ # 6 sections (01-06) │ ├── sections_template/ # TEMPLATES │ ├── appendices/ # 4 appendices (A-D) │ └── appendices_template/ # TEMPLATES ├── scripts/ # Verification └── tools/ # Hallucination prevention
All templates use [UPPERCASE_PLACEHOLDER] markers:
| Section | Purpose | Pages |
|---|---|---|
| 01_introduction | Motivation, literature, contributions | ~3 |
| 02_theory | Definitions, theorems, methods | ~5 |
| 03_key_topic | Core novel contribution | ~6 |
| 04_mathematical | Proofs, convergence, analysis | ~5 |
| 05_empirical | Data, experiments, results | ~5 |
| 06_validation | Testing, diagnostics, guidelines | ~4 |
Core Principle: One figure = One folder = One chart.pdf
| Section | Min Figures |
|---|---|
| 01_introduction | 1 |
| 02_theory | 2 |
| 03_key_topic | 3 |
| 04_mathematical | 2 |
| 05_empirical | 3 |
| 06_validation | 2 |
| Total | 13 |
| Constraint | Requirement |
|---|---|
| Figures | One chart.py per folder, one chart.pdf per script |
| Figure size | (10, 6) standard aspect ratio |
| LaTeX | Zero overflow warnings |
| Content | All [PLACEHOLDER] markers replaced |
| Integration | Minimum 13 figures referenced |
| Problem | Solution |
|---|---|
| "Missing figure" error | Run python figures/XX_name/chart.py |
| "Undefined citation" | Add entry to references.bib, run just build |
| "Overfull hbox" | Reduce figure width (0.65), shorten text |
| Figure not showing | Check path matches folder name (case-sensitive) |
| LaTeX fails | Run just clean && just build |