infra: LaTeX preamble, theorem environments, tcolorbox, build system

This commit is contained in:
Worker Agent
2026-06-04 15:17:48 -05:00
parent 5453da4fbb
commit 4d69c898cd
2 changed files with 221 additions and 0 deletions

37
Makefile Normal file
View File

@@ -0,0 +1,37 @@
# =============================================================================
# Makefile — Differential Equations Handbook
# =============================================================================
TARGET = main
TEX = pdflatex
BIBTEX = bibtex
.PHONY: all quick clean view distclean
## all: Full build (pdflatex -> bibtex if needed -> pdflatex x2)
all:
$(TEX) -interaction=nonstopmode $(TARGET).tex
@if [ -f $(TARGET).blg ] || grep -ql '\\bibliography\|\\bibliographystyle' $(TARGET).tex; then \
$(BIBTEX) $(TARGET); \
$(TEX) -interaction=nonstopmode $(TARGET).tex; \
$(TEX) -interaction=nonstopmode $(TARGET).tex; \
fi
## quick: Single pdflatex pass for rapid iteration
quick:
$(TEX) -interaction=nonstopmode $(TARGET).tex
## clean: Remove all auxiliary files
clean:
rm -f $(TARGET).aux $(TARGET).log $(TARGET).out $(TARGET).toc \
$(TARGET).lof $(TARGET).lot $(TARGET).nls $(TARGET).nlo \
$(TARGET).vrb $(TARGET).synctex.gz $(TARGET).fls $(TARGET).out \
$(TARGET).blg $(TARGET).bbl $(TARGET).run.xml
## view: Open the resulting PDF
view:
xdg-open $(TARGET).pdf
## distclean: Clean + remove PDF
distclean: clean
rm -f $(TARGET).pdf