Hongyi Zhao <[email protected]> writes:
> I tried the following configuration:
>
> ;; Update PDF buffers after successful LaTeX runs
> (add-hook 'TeX-after-compilation-finished-hook
> #'TeX-revert-document-buffer)
>
> But it seems that only after I switched to or put the cursor in the
> pdf-tools' buffer/window, the updated content will be seen in the pdf
> file. I mean, when I stay in the tex source buffer/window, even the
> generated pdf file has been updated, I still won't see this update.
Can you please try:
(add-hook 'TeX-after-compilation-finished-functions
#'TeX-revert-document-buffer)
and report back if it works? This might be a typo in the manual.
Best, Arash