I upload the things that migth be useful for someone, someday...
Find a file
Demircan 84536718ce Update autocompile.sh
fixed the issue of x11 not starting in full screen. and now it also make the title in the template the file name of the .tex file.
2026-09-28 11:28:12 +03:00
autocompile.sh Update autocompile.sh 2026-09-28 11:28:12 +03:00
README.md Update README.md 2026-09-04 11:47:15 +03:00

Useful_scripts_and_documents

I upload the things that migth be useful for someone, someday...

autocompile.sh

Auto-pulls, watches, and recompiles a .tex file with pdflatex on save (via inotifywait), opens the PDF in Evince, and auto-commits + pushes back to your git remote on exit (Ctrl+C).

Requirements

git, pdflatex, inotify-tools, evince, termux-x11, fluxbox, wmctrl or xdotool (Termux/Android setup).

Usage

./autocompile.sh yourfile.tex

If the file doesn't exist, a minimal template is created for you.

Notes

  • Requires a configured git remote (origin) with push access.
  • Network operations (pull/push) time out gracefully after 10s if offline.