Skip to main content

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

Project description

nantex

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.0.tar.gz (5.9 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.0-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for nantex-0.1.0.tar.gz
Algorithm Hash digest
SHA256 299d02182d50568b9c8e6262c14ddbbb5da60c384068ba170ccfb451c4005292
MD5 3608433984b0a797e0eb6a487db79c3b
BLAKE2b-256 1dbbb65b93d6d1e2c5e89801f00d95c165bead5a861d36ce21b814f67db237d2

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for nantex-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 91e741e9979e1af3ec16fdef40b0ab6e201218460e56b4b9c285f226a7e8b7c1
MD5 f6d9bbc93016f59c7c19a7c73963fb7b
BLAKE2b-256 905ada07713c88bf9663309dc8255000ccb1c42caa0311d5c8e387371f51c4f0

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