notations-cli
Extract notation tables from arXiv papers using LLMs.
Installation
pip install notations-cli
Or with uv:
uv add notations-cli
Usage
# From arXiv ID
notations 2006.11239
# From arXiv URL
notations https://arxiv.org/abs/2006.11239
# From local .tex files
notations /path/to/tex/folder
# With options
notations 2006.11239 --model gpt-5.2-2025-12-11 --provider openai
notations 2006.11239 --model anthropic/claude-sonnet-4.5 --provider openrouter
notations 2006.11239 --output my_paper # custom base name → .json/.html/.md
notations 2006.11239 --terminal # also print table to terminal
notations 2006.11239 --no-comments # strip LaTeX comments first
notations 2006.11239 --no-expand-macros # disable macro expansion
notations 2006.11239 --no-filter-body # keep all extracted notations
# Re-render from existing JSON (no LLM call)
notations 2006_11239_notations.json
notations 2006_11239_notations.json -t # also print to terminal
By default, LaTeX macro definitions (\newcommand, etc.) are expanded inline before processing. Use --no-expand-macros to disable this.
Notations are also filtered by default to only include symbols that appear in the document body (\begin{document}...\end{document}), removing artifacts from preamble-only macro definitions. Use --no-filter-body to disable this.
Configuration
Set your API key as an environment variable:
# For OpenAI
export OPENAI_API_KEY=...
# For OpenRouter
export OPENROUTER_API_KEY=...
Output
Generates a self-contained HTML file with:
- Paper metadata (title, authors, arXiv link)
- Searchable notation table
- LaTeX rendering via KaTeX
Development
git clone https://github.com/takashiishida/notations-cli.git
cd notations-cli
uv sync
uv run pytest
Release files for notations-cli 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| notations_cli-0.1.1.tar.gz | 831.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| notations_cli-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 843.2 kB
Release files / notations_cli-0.1.1.tar.gz
| Download URL | notations_cli-0.1.1.tar.gz |
|---|---|
| Size | 831.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9258336537ed88148974ce23f48644e63c6930e474748836e73943e52e31820e
|
|
BLAKE2b-256 checksum How to use checksums |
c67f160677e019d4de9677e4dd6956f4a556f04b5a0005d0ec6c1807950d4a02
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 8, 2026.
Transparency logRelease files / notations_cli-0.1.1-py3-none-any.whl
| Download URL | notations_cli-0.1.1-py3-none-any.whl |
|---|---|
| Size | 11.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b623eb048d4581fd8913268026c44c04214b0cc38fc3d04075843447c5e11392
|
|
BLAKE2b-256 checksum How to use checksums |
080afd8da4ea467a81bd5374a74f7392d09e4bcd724b76c57467e6bb382d83e5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 8, 2026.
Transparency log