auctex
[Top][All Lists]
Advanced

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

[AUCTeX] AUCTeX and latexmk


From: Angelo Graziosi
Subject: [AUCTeX] AUCTeX and latexmk
Date: Tue, 30 Dec 2008 10:37:34 +0100
User-agent: Thunderbird 2.0.0.18 (Windows/20081105)

Following [1] and [2], I have applied this path to my .emacs file:

------------------------------------
--- .emacs23.1  2008-08-16 22:40:14.000000000 +0200
+++ .emacs23    2008-12-30 10:07:07.000000000 +0100
@@ -203,6 +203,26 @@
        (cons '("^ ?In file \\(.+\\):\\([0-9]+\\)" 1 2)
           compilation-error-regexp-alist)))

+
+;; Integrate latexmk into auctex
+;; Ref.:
+;; http://www.mail-archive.com/auctex%40gnu.org/msg01325.html
+;; http://www.mail-archive.com/auctex%40gnu.org/msg01327.html
+;;
+(eval-after-load "tex"
+  '(add-to-list 'TeX-expand-list
+                '("%(-pdf)" (lambda ()
+                              (if (and (not TeX-Omega-mode)
+                                       (or TeX-PDF-mode
+                                           TeX-DVI-via-PDFTeX))
+                                  "-pdf"
+                                "")))))
+(eval-after-load "tex"
+  '(add-to-list 'TeX-command-list
+               '("All" "latexmk %(-pdf) %t" TeX-run-TeX nil
+                 (latex-mode doctex-mode)
+                 :help "Run latexmk")))
+
 ;; cc-mode (the mode you're in when editing C, C++, and Objective C files)
 ;; Tell cc-mode not to check for old-style (K&R) function declarations.
 ;; This speeds up indenting a lot.
------------------------------------

but when I click the 'Run latex' button, it still runs the 'latex'
command (or 'pdflatex', if PDF mode is enable), not 'latexmk' as I was
hoping. (I have restarted Emacs...)

What have I missed?

I am running latest trunk of Emacs 23 and a recent CVS (20081129) of AUCTeX.


Thanks,
   Angelo.

---
[1] http://www.mail-archive.com/auctex%40gnu.org/msg01325.html
[2] http://www.mail-archive.com/auctex%40gnu.org/msg01327.html




reply via email to

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