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
- Host: GitHub
- URL: https://github.com/lucananni93/livelatex
- Owner: lucananni93
- Created: 2022-09-27T14:07:42.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-10-12T08:34:38.000Z (almost 3 years ago)
- Last Synced: 2025-03-05T15:12:46.920Z (7 months ago)
- Topics: latex, latex-document, latex-examples, latex-package, latex-pdf, latex-template, latexmk
- Language: Shell
- Homepage:
- Size: 1.98 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
```