From 6f6cd356a2cefdf257c88b67a61691b49a619803 Mon Sep 17 00:00:00 2001 From: Worker Agent Date: Thu, 4 Jun 2026 19:41:43 -0500 Subject: [PATCH] fix: stable build with nomenclature, graphicx, 3-pass compilation --- Makefile | 10 +++++----- preamble.tex | 5 +++++ 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index f1b64f7..4cfd423 100644 --- a/Makefile +++ b/Makefile @@ -8,14 +8,14 @@ BIBTEX = bibtex .PHONY: all quick clean view distclean -## all: Full build (pdflatex -> bibtex if needed -> pdflatex x2) +## all: Full build with nomenclature indexing and 3-pass pdflatex 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; \ + @if [ -f $(TARGET).nlo ]; then \ + makeindex -s nomencl.ist -o $(TARGET).nls $(TARGET).nlo; \ fi + $(TEX) -interaction=nonstopmode $(TARGET).tex + $(TEX) -interaction=nonstopmode $(TARGET).tex ## quick: Single pdflatex pass for rapid iteration quick: diff --git a/preamble.tex b/preamble.tex index fcd04e4..1173ea5 100644 --- a/preamble.tex +++ b/preamble.tex @@ -41,6 +41,11 @@ % --------------------------------------------------------------------------- \usepackage{booktabs} +% --------------------------------------------------------------------------- +% Graphics +% --------------------------------------------------------------------------- +\usepackage{graphicx} + % --------------------------------------------------------------------------- % TikZ % ---------------------------------------------------------------------------