> Something like the following should work: > > (define-key TeX-mode-map (kbd "<f5>") > (lambda () > (interactive) > (let ((buf (current-buffer)) > (TeX-process-asynchronous nil)) > (save-buffer) > (TeX-command-menu "LaTeX") > (with-current-buffer buf > (TeX-command-menu "Clean")))))
Thanks Ralf for the code + explanation. Much obliged. > Are you aware that your documents can never have cross references or a > toc if you purge .aux and .toc immediately after each LaTeX run? > Hm. Good point... I think I'll define 2 shortcuts with different behaviour. At the moment I am learning and need the latex + clean more often as the learning materials are just some short snippets. cheers _______________________________________________ auctex mailing list [email protected] http://lists.gnu.org/mailman/listinfo/auctex
