An open API service indexing awesome lists of open source software.

https://github.com/lucananni93/livelatex

Live re-compilation of Latex projects
https://github.com/lucananni93/livelatex

latex latex-document latex-examples latex-package latex-pdf latex-template latexmk

Last synced: 25 days ago
JSON representation

Live re-compilation of Latex projects

Awesome Lists containing this project

README

          




Made with bash

# LiveLatex

Very simple bash script that re-compiles a `.tex` project automatically each time the file is modified.
The script takes as input the path of the Latex file, it checks if the file gets updated and automatically triggers the compilation of the PDF document (thorugh `xelatex`).

## Example
```
livelatex.sh path/to/latex.tex
```

## Installation
Clone this repository
```
git clone https://github.com/lucananni93/LiveLatex.git
```

Make the script an executable
```
cd LiveLatex
chmod +x livelatex.sh
```

Add the script to the `PATH` variable, to call it everywhere in your system
```
export PATH="$(pwd):${PATH}"
```

## Usage

```
Live re-compilation of Latex files
Usage: livelatex.sh [-w|--wait ] [-h|--help]
: Path to the .tex file to compile
-w, --wait: Time to wait before attempting refresh (in seconds) (default: '1')
-h, --help: Prints help
```