PDF Tools – How to Make MuPDF Automatically Refresh Document

evincepdf

Upon opening a pdf in evince and then making a change to that document (recompiling it in LaTeX), evince will automatically refresh to the latest version of the document.

mupdf however does not do this: it keeps showing the version I originally opened.
The latest version can be loaded with the r command, but is there a way to make mupdf behave like evince in that respect?
The manual doesn’t mention this.

Best Answer

Poke mupdf with a HUP signal after the document changes (e.g. after recompiling it, or use entr or something to note the filesystem change)

pkill -HUP mupdf

or with more complication one might write an open-or-signal-mupdf script.

Related Question