Hacker News new | ask | show | jobs
by DyslexicAtheist 2253 days ago
pretty cool. I'm using a similar setup that allows a real-time preview of every change by means of the `entr`[1] command and gets triggered by saving the markdown.

  ls ./presentation.md |entr -c bash -c "pandoc --pdf-engine=xelatex --toc -N presentation.md -t beamer -o presentation.pdf; killall -HUP mupdf"
this would reload the pipeline and update the content of the pdf output. easy as 1-2-3 (no Makefile though which would be another step).

[1] https://www.systutorials.com/docs/linux/man/1-entr/