Skip to main content

LaTeX-to-PDF CLI with browser live preview — no local LaTeX install needed

Project description

nantex

PyPI version Python License: MIT

LaTeX-to-PDF live preview in your browser — no local LaTeX install needed.

Write .tex, save, see the result. That's it.

How it works

nantex watches your .tex file, compiles it via the latex-on-http public API, and serves the result through a local HTTP server with automatic browser refresh via Server-Sent Events. No Overleaf tab switching. No Skim install. Just your editor and a browser.

Install

# via uv (recommended)
uv tool install nantex

# zero-install run
uvx nantex main.tex

# via pip
pip install nantex

Usage

nantex main.tex                      # watch mode, opens http://localhost:7474
nantex main.tex --once               # compile once and exit
nantex main.tex --port 8080          # custom port
nantex main.tex --compiler xelatex  # use xelatex instead of pdflatex
nantex main.tex --output ~/out.pdf  # custom output path
nantex main.tex --api https://...   # self-hosted latex-on-http instance

Flags

Flag Default Description
--compiler pdflatex LaTeX compiler (pdflatex, xelatex, lualatex)
--api https://latex.ytotech.com/builds/sync Compile API endpoint
--output <file>.pdf Output PDF path
--port 7474 Preview server port
--once off Compile once and exit (no watch loop)

Privacy

Your .tex file content is sent to the configured API endpoint on every compile. For sensitive documents, run a self-hosted latex-on-http instance and point --api at it.

Limitations

  • Single-file only — \input{} / \include{} is not supported in v1.
  • Requires internet access to the compile API (or a self-hosted instance).

Publishing

uv build
uv publish  # set UV_PUBLISH_TOKEN or use OIDC Trusted Publisher

License

MIT

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

nantex-0.1.2.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

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

nantex-0.1.2-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file nantex-0.1.2.tar.gz.

File metadata

  • Download URL: nantex-0.1.2.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.15 {"installer":{"name":"uv","version":"0.11.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for nantex-0.1.2.tar.gz
Algorithm Hash digest
SHA256 9b2f4283f8bf76caf1589fbf56c2ef74d6eb500c05582884509eca36b0d720a8
MD5 b8b1fe81a4c88ee3e95a8f048e75f205
BLAKE2b-256 b3ead5e144b62ffa57c46db635963ad915f4eefbd60a63e3256c356b9b7aa6d7

See more details on using hashes here.

File details

Details for the file nantex-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: nantex-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.15 {"installer":{"name":"uv","version":"0.11.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for nantex-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 10e907c65151a2b7fdbed724211c1cb1166c64d4f27ac38f42a3130b8fb0953d
MD5 eeb37c58e4ca589a209269a6d4d6f026
BLAKE2b-256 fce65adfb0dd524e3814e80c378894d98a63b719e62a62ee47dd9f33b6381fb3

See more details on using hashes here.

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