| Crates.io | livetex |
| lib.rs | livetex |
| version | 0.3.0 |
| created_at | 2025-01-12 13:13:38.492742+00 |
| updated_at | 2025-01-13 11:10:39.318839+00 |
| description | A TeX/LaTeX auto builder and server. |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1513217 |
| size | 49,690 |
A TeX/LaTeX auto builder and deployer.
./livetex -r ~/latex -a 0.0.0.0:8000 -c xelatex --output-format=pdf --halt-on-error
After running the command above, PDF preview is available at http://localhost:8000/<tex-filename> (e.g. http://localhost:8000/foo.tex).
And, everytime the file ~/latex/*.tex changes, the webpage will reload automatically.
A live integrated server that compiles TeX and serve its PDF automatically on source changes
Usage: livetex [OPTIONS] --root <ROOT>
Options:
-a, --addr <ADDR>
Server address [default: 0.0.0.0:8080]
-r, --root <ROOT>
Root directory to serve
-c, --build-command <BUILD_COMMAND>...
Command to build a TeX file. This argument should be present last
-h, --help
Print help
I've discovered some other approaches to achieve automatic TeX compilation + PDF reloading.
Compilation
latexmk
latexmk -pdf -pvc -pdflatex='xelatex --halt-on-error' a.tex
Previewing
However, none of them reflect compilation error on the PDF previewing side (they just remain unchanged), which is what I want to achieve.