AUREOLE-R-v3 / legacy /code /build_pdf.py
PureOne's picture
AUREOLE-R 3.0.0-hf.1: standalone public research release
9d6c005 verified
Raw
History Blame Contribute Delete
753 Bytes
"""Build the mathematical manuscript using Pandoc and XeLaTeX."""
from pathlib import Path
import subprocess
root=Path(__file__).resolve().parents[1]
cmd=["pandoc","MANUSCRIPT.md","--from=markdown+tex_math_dollars+raw_tex",
"--standalone","--toc","--toc-depth=2","--pdf-engine=xelatex",
"-V","documentclass=article","-V","fontsize=10pt",
"-V","geometry:margin=0.78in","-V","mainfont=Latin Modern Roman",
"-V","sansfont=Latin Modern Sans","-V","monofont=DejaVu Sans Mono",
"-V","colorlinks=true","-V","linkcolor=AureoleTeal",
"-V","urlcolor=AureoleTeal","-V","toccolor=AureoleInk",
"--include-in-header=pdf_style.tex",
"-o","AUREOLE_Unified_Latent_World_Model_v1.0.0.pdf"]
subprocess.run(cmd,cwd=root,check=True)