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

Uploaded Python 3

File details

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

File metadata

  • Download URL: nantex-0.1.1.tar.gz
  • Upload date:
  • Size: 5.9 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.1.tar.gz
Algorithm Hash digest
SHA256 b9ba35a985a453ab78c38ed811cabfd53b846a7c37cf9448853e583038e0a1c2
MD5 c950961c9550b54d52d68b4b9c2d8329
BLAKE2b-256 5c30d17b4f3ba82e32876d0ba749ea597df6eca57fdc1a73727c355ae233e8fa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nantex-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 7.7 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9159083a44df0f07a8488a6012d9b747761aa770875071a59f79168b14bb8153
MD5 cbe2d6529cdd8aea384a80643dec6c98
BLAKE2b-256 8c649441aa0008a1d24b2b00a0f8dc04c2e782fcbafe5ccb8685edba63f73481

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