Download scripts/_run2.sh from m-rui001/physics-typst-corpus: direct link, hf CLI and curl.
- Browser
- Download file 683 Bytes
-
https://huggingface.co/datasets/m-rui001/physics-typst-corpus/resolve/main/scripts/_run2.sh
- Command line
-
hf download hf://datasets/m-rui001/physics-typst-corpus/scripts/_run2.sh
-
curl -L -o _run2.sh https://huggingface.co/datasets/m-rui001/physics-typst-corpus/resolve/main/scripts/_run2.sh
683 Bytes
| cd /e/phys || exit 1 | |
| export PYTHONIOENCODING=utf-8 | |
| LOG=/tmp/conv4.log | |
| : > $LOG | |
| for p in 2310.12110 2311.07931; do | |
| echo "=== $p start $(date +%H:%M:%S)" >> $LOG | |
| python scripts/convert.py papers/$p >> $LOG 2>&1 | |
| echo "=== $p convert done $(date +%H:%M:%S)" >> $LOG | |
| python scripts/apply_cols.py $p >> $LOG 2>&1 || true | |
| typst compile --no-pdf-tags --root E:/phys papers/$p/main.typ papers/$p/build/ov.pdf >> $LOG 2>&1 | |
| echo "=== $p pages: $(pdfinfo papers/$p/build/ov.pdf 2>/dev/null | grep Pages) holes: $(grep -c 'text(\[\])' papers/$p/main.typ) cites: $(grep -o '@[A-Za-z]' papers/$p/main.typ | wc -l)" >> $LOG | |
| done | |
| echo "=== ALL DONE $(date +%H:%M:%S)" >> $LOG | |