Download legacy/code/build_pdf.py from PureOne/AUREOLE-R-v3: direct link, hf CLI and curl.
- Browser
- Download file 753 Bytes
-
https://huggingface.co/PureOne/AUREOLE-R-v3/resolve/main/legacy/code/build_pdf.py
- Command line
-
hf download hf://PureOne/AUREOLE-R-v3/legacy/code/build_pdf.py
-
curl -L -o build_pdf.py https://huggingface.co/PureOne/AUREOLE-R-v3/resolve/main/legacy/code/build_pdf.py
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) | |