Extract notation tables from arXiv papers using LLMs
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file notations_cli-0.1.1.tar.gz.
File metadata
- Download URL: notations_cli-0.1.1.tar.gz
- Upload date:
- Size: 831.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9258336537ed88148974ce23f48644e63c6930e474748836e73943e52e31820e
|
|
| MD5 |
4ca5e784ae1d1accaab9ccb1173d16ed
|
|
| BLAKE2b-256 |
c67f160677e019d4de9677e4dd6956f4a556f04b5a0005d0ec6c1807950d4a02
|
Provenance
The following attestation bundles were made for notations_cli-0.1.1.tar.gz:
Publisher:
publish.yml on takashiishida/notations-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
notations_cli-0.1.1.tar.gz -
Subject digest:
9258336537ed88148974ce23f48644e63c6930e474748836e73943e52e31820e - Sigstore transparency entry: 1059486812
- Sigstore integration time:
-
Permalink:
takashiishida/notations-cli@164b3dfa5afebf15f53b0eb190f238cf50f18af6 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/takashiishida
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@164b3dfa5afebf15f53b0eb190f238cf50f18af6 -
Trigger Event:
release
-
Statement type:
File details
Details for the file notations_cli-0.1.1-py3-none-any.whl.
File metadata
- Download URL: notations_cli-0.1.1-py3-none-any.whl
- Upload date:
- Size: 11.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b623eb048d4581fd8913268026c44c04214b0cc38fc3d04075843447c5e11392
|
|
| MD5 |
fbeb1d4b0654879ab72e34a6ac17d0e1
|
|
| BLAKE2b-256 |
080afd8da4ea467a81bd5374a74f7392d09e4bcd724b76c57467e6bb382d83e5
|
Provenance
The following attestation bundles were made for notations_cli-0.1.1-py3-none-any.whl:
Publisher:
publish.yml on takashiishida/notations-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
notations_cli-0.1.1-py3-none-any.whl -
Subject digest:
b623eb048d4581fd8913268026c44c04214b0cc38fc3d04075843447c5e11392 - Sigstore transparency entry: 1059486818
- Sigstore integration time:
-
Permalink:
takashiishida/notations-cli@164b3dfa5afebf15f53b0eb190f238cf50f18af6 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/takashiishida
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@164b3dfa5afebf15f53b0eb190f238cf50f18af6 -
Trigger Event:
release
-
Statement type: