[Top][All Lists]

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

[AUCTeX] How to use run texify from Auctex

From: Stefan Pofahl
Subject: [AUCTeX] How to use run texify from Auctex
Date: Wed, 24 Aug 2005 11:04:30 +0200

Hello CB,

here is a peace from my init.el (XEmacs .emacs-file):
;;;; ---- Begin of own Command Menu Entries entries: -----------------
;;; Put your first entry at the End of the list.
;; there are some more suggestion in my old init.el, see there
;; TeX-command-list is defined in tex.el
;; You have five arguments: 1.)name, 2.)command, 
;; 3.) The function which actually start the process.
;; Several such hooks has been defined, e.g. "TeX-run-discard" 
;; (see "tex-buf.el")
;; 4.) If the fourth element is non-nil, the user will get a chance 
;; to modify the expanded string.
;; 5.) The fifth element indicates in which mode(s) the command 
;; should be present in the Command menu.  Use t if it should be 
;; active in any mode. If it should only be present in some modes, 
;; specify a list with
;; the respective mode names.
;; So if you want to check a new entry in the menu change the fourth 
;; argument to "t"
;; The function "TeX-run-command" has the advantage, 
;; that it sends a message after run  
 (eval-after-load "tex"
      (add-to-list 'TeX-command-list
            (list "---- end-custom-menue ----------------------------" "")
      (add-to-list 'TeX-command-list
        (list "All Texify run-viewer"
         "texify --tex-opt=--src --run-viewer --clean %s.tex"
         'TeX-run-command nil t)
      (add-to-list 'TeX-command-list
        (list "Texify" "texify --tex-opt=--src --quiet %s.tex"
         'TeX-run-command nil t)
     (add-to-list 'TeX-command-list
        (list "Clean Dir" "del /q *.aux *.log %s.out %s.exa %s.ilg 
%s.idx %s.ind %s.lof %s.lot %s.toc %s.bbl %s.blg %s.dvi %s.pdf 
%s.rel TAGS .\\auto\\%s.el .\\auto\\ *.bak *.bix *~" 
         'TeX-run-discard nil nil) 
     (add-to-list 'TeX-command-list
        (list "---- start-custom-menue --------------------------" "")

See also:

Best regards,

Stefan Pofahl
Stefan Pofahl, 
privat: Ochsensteige 48, 89075 Ulm
Tel./Fax.: 0731 - 37 49 144

reply via email to

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