Thanks for that!! I first run doall command once so it opens up okular (have forward and inverse search going). Then, I use latexmk -pvc -pdf master.tex.

My .latexmkrc file contains (in home directory):
$pdf_previewer = "start evince %O %S";
$pdf_update_method = 1;
#$pdf_update_command = "evince %O %S";
$pdflatex = "pdflatex -interaction=nonstopmode -synctex=4";
#$pdflatex = "pdflatex  -synctex=4";

Then it just autoupdates whenever hitting C-x C-s. If you set -synctex=4 in the latexmk as done and keep the one in emacs to synctex=1. The synctex will still work properly in okular and emacs for forward and inverse search. Then if there are errors/warnings I might run "Doall" command for debugging. Now that it's set to a keyboard shortcut it's not much different then C-x C-s with latexmk running I guess.

Cheers,
Jeff

On 08/17/2011 07:22 PM, Ivan Andrus wrote:
(define-key LaTeX-mode-map (read-kbd-macro "C-c C-?")
  (lambda ()
    (interactive)
    (TeX-save-document (TeX-master-file))
    (TeX-command "Doall" 'TeX-master-file -1)))

_______________________________________________
auctex mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/auctex

Reply via email to