auctex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [AUCTeX] Auctex - how to stop prompting for default command


From: Jeffrey Spencer
Subject: Re: [AUCTeX] Auctex - how to stop prompting for default command
Date: Wed, 17 Aug 2011 19:59:01 +1000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:5.0) Gecko/20110628 Thunderbird/5.0

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)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]