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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nantex-0.1.3.tar.gz.
File metadata
- Download URL: nantex-0.1.3.tar.gz
- Upload date:
- Size: 12.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c81f7c52f6297d578331e7165e50f054865eecf41ed7d88b437bb708e8a08c15
|
|
| MD5 |
5c753ac6090ad7e4f896bc7f87c2f9da
|
|
| BLAKE2b-256 |
f35bd16ae18457f0dac412ab62ebafbf4f03f49602250e34d3a9878810ef8bd7
|
File details
Details for the file nantex-0.1.3-py3-none-any.whl.
File metadata
- Download URL: nantex-0.1.3-py3-none-any.whl
- Upload date:
- Size: 16.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d1cb64776e89056c398ae6a188be7975ac0883009b21f1ead44b3c1827dd0ce1
|
|
| MD5 |
6c6671bdb82d2c0cbf949452812bdb1a
|
|
| BLAKE2b-256 |
43313c471787bcb77fe9590ee6b5e7bf25bec69564abb726d787c6b8a78422bf
|