Skip to main content

Extract notation tables from arXiv papers using LLMs

Project description

notations-cli

Tests PyPI Downloads License

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

notations_cli-0.1.1.tar.gz (831.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

notations_cli-0.1.1-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

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

Hashes for notations_cli-0.1.1.tar.gz
Algorithm Hash digest
SHA256 9258336537ed88148974ce23f48644e63c6930e474748836e73943e52e31820e
MD5 4ca5e784ae1d1accaab9ccb1173d16ed
BLAKE2b-256 c67f160677e019d4de9677e4dd6956f4a556f04b5a0005d0ec6c1807950d4a02

See more details on using hashes here.

Provenance

The following attestation bundles were made for notations_cli-0.1.1.tar.gz:

Publisher: publish.yml on takashiishida/notations-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for notations_cli-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b623eb048d4581fd8913268026c44c04214b0cc38fc3d04075843447c5e11392
MD5 fbeb1d4b0654879ab72e34a6ac17d0e1
BLAKE2b-256 080afd8da4ea467a81bd5374a74f7392d09e4bcd724b76c57467e6bb382d83e5

See more details on using hashes here.

Provenance

The following attestation bundles were made for notations_cli-0.1.1-py3-none-any.whl:

Publisher: publish.yml on takashiishida/notations-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page