File size: 753 Bytes
9d6c005
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
"""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)