Download scripts/build_pdf.py from PureOne/AUREOLE-R-v3: direct link, hf CLI and curl.
- Browser
- Download file 759 Bytes
-
https://huggingface.co/PureOne/AUREOLE-R-v3/resolve/main/scripts/build_pdf.py
- Command line
-
hf download hf://PureOne/AUREOLE-R-v3/scripts/build_pdf.py
-
curl -L -o build_pdf.py https://huggingface.co/PureOne/AUREOLE-R-v3/resolve/main/scripts/build_pdf.py
759 Bytes
| """Build the complete mathematical manuscript; requires 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_R_v3.0.0_Certified_Innovation_Rendering.pdf"] | |
| subprocess.run(cmd,cwd=ROOT,check=True) | |