10

MuPDF doesn't support automatic reloading. How do I use it as a document previewer for latexmk1?

1: Example call: latexmk -pdf -pvc doc.tex

Blender
  • 666

2 Answers2

11

You have to specify $pdf_update_method = 2 in the configuration file, which tells latexmk to send a SIGHUP signal to the process when a change is detected:

$pdf_update_method = 2;
$pdf_previewer = 'mupdf';
Blender
  • 666
3
  1. Configure latexmk for your user in the file ~/.config/latexmk/latexmkrc (per the XDG specification) containing $pdf_previewer = "mupdf".
  2. Specify the configuration's path:
latexmk -pdf -pvc -r ~/.config/latexmk/latexmkrc doc.tex

The default location for a user's configuration latexmk is either ~/.latexmkrc or ~/latexmkrc.