Easy breezy latex.
Spins up a latex docker image, monitors .tex files and builds on change.
- Download your overleaf source and extract it.
Pro-tip: sync your project with github and clone it instead!
- Run
localleaf project_folder project_folder/main_document.tex
If in doubt check the -h
elp.
$ localleaf -h
Easy breezy latex.
Spins up a latex docker image, monitors .tex files and builds on change.
Usage: localleaf [OPTIONS] PROJECT_DIR [MAIN_DOCUMENT]
-h Show this message and exit.
-e Latex engine [pdflatex] {latex,pdflatex,xelatex,lualatex}
-i Docker image. [loiccoyle/localleaf]
-c Commit changes on exit.
-o Don't monitor, build once and exit.
-p Set build files owner's to $USER:$USER on exit.
PROJECT_DIR Folder containing your project.
MAIN_DOCUMENT The main document of your project.
You only need docker
.
Clone this repo and add the script somewhere on your $PATH
.
git clone https://github.com/loiccoyle/localleaf
mv localleaf/localleaf ~/.local/bin/
Using your favourite AUR helper:
paru -S localleaf-git
- Add ci
- Add tests to ci
- Fix root permission on build files
- Double check commit on exit