Scripts that rebuild a Latex file and refresh PDF preview on a Mac. Allows edit of tex file to refresh in PDF to see live rendering.
Open Script Editor and create script called refresh-preview.scpt
tell application "Preview" to activate
tell application "WezTerm" to activate
Edit the Makefile to specify the tex file your editing.
Run the following in a terminal to get live rendering of your latex document.
./watch