Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ artifacts/*.npy
artifacts/*.db
logs/*.log
reports/*.pdf
reports/*.html

# Keep .gitkeep files
!.gitkeep
Expand All @@ -80,4 +81,3 @@ optuna_study.db
*.bak
*_OLD.*
README_OLD.md

15 changes: 12 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -117,13 +117,22 @@ manuscript:
@echo "Rendering manuscript if pandoc is installed..."
$(PYTHON) scripts/05_number_manuscript_lines.py
@if command -v pandoc >/dev/null 2>&1; then \
ENGINE=""; \
if command -v xelatex >/dev/null 2>&1; then \
ENGINE="xelatex"; \
elif command -v tectonic >/dev/null 2>&1; then \
ENGINE="tectonic"; \
fi; \
if [ -z "$$ENGINE" ]; then \
echo "pandoc is installed, but no PDF engine found. Install xelatex or tectonic."; \
exit 1; \
fi; \
mkdir -p reports; \
pandoc docs/publication/ARTICLE_DRAFT.md \
--number-sections \
--pdf-engine=xelatex \
--pdf-engine=$$ENGINE \
-V geometry:margin=1in \
-o reports/manuscript_publication_repair.pdf; \
echo "Rendered reports/manuscript_publication_repair.pdf"; \
echo "Rendered reports/manuscript_publication_repair.pdf using $$ENGINE"; \
else \
echo "pandoc is not installed; manuscript source is docs/publication/ARTICLE_DRAFT.md"; \
fi
Expand Down
Loading