Execute a command when file changes

For my blog posts I create svg images with LaTeX. Every time I change the .tex file I want to execute a command which generates first a .pdf from the .tex and then a .svg from the .pdf. Basically these are two very simple commands.

I noticed that the Hugo live server reacts on file changes. Is there a possibility to say to Hugo “If a .tex file changes then execute the following commands”?

No. You will need to use another file watcher, incron perhaps.

1 Like

Ok, thank you. I already have another file watcher. I just wanted to combine it somehow.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.