livetex 0.3.0

A TeX/LaTeX auto builder and server.
Documentation

livetex

A TeX/LaTeX auto builder and deployer.

Demonstration

a.webm

Usage Example

./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.

CLI Usage

Alternatives

I've discovered some other approaches to achieve automatic TeX compilation + PDF reloading.

Compilation

  • autotex

  • 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.