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.0.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.0-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

Details for the file notations_cli-0.1.0.tar.gz.

File metadata

  • Download URL: notations_cli-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 6fe99d9c55d0d89ba788c71e4d09a8ad52c9eb8729265fb1c42c69c9e8728a7c
MD5 53cc322f72ce8283f33139e47f51ea92
BLAKE2b-256 42f657e53043e39b61233e54568b9e9668892d4cdb85bb50e6ba4f6d4f7e3f5e

See more details on using hashes here.

Provenance

The following attestation bundles were made for notations_cli-0.1.0.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.0-py3-none-any.whl.

File metadata

  • Download URL: notations_cli-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f03bd88d3e2ae2037ecbbbe5140ed4be85e8ad56082b2d88d0897ada2901ffd8
MD5 7193526dd549c0274c96e3a7e26064fd
BLAKE2b-256 86e2e4cd4a3ac6bb3d78130d6d800e027d20b2bb425d8b1e78e4ffdde810955d

See more details on using hashes here.

Provenance

The following attestation bundles were made for notations_cli-0.1.0-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