Download scripts/_tmp_cites.py from m-rui001/physics-typst-corpus: direct link, hf CLI and curl.
- Browser
- Download file 271 Bytes
-
https://huggingface.co/datasets/m-rui001/physics-typst-corpus/resolve/main/scripts/_tmp_cites.py
- Command line
-
hf download hf://datasets/m-rui001/physics-typst-corpus/scripts/_tmp_cites.py
-
curl -L -o _tmp_cites.py https://huggingface.co/datasets/m-rui001/physics-typst-corpus/resolve/main/scripts/_tmp_cites.py
271 Bytes
| import re, sys | |
| s = open(r"E:\phys\papers\2203.02139\src\DoubleBeta.tex", encoding="utf-8", errors="replace").read() | |
| lines = s.split("\n") | |
| for i in (234, 236, 240, 303, 309, 311): | |
| l = lines[i-1] | |
| print(i, [m.group(1) for m in re.finditer(r"\\cite\{([^}]*)\}", l)]) | |