how to tell AucTeX to use a Makefile
  Home FAQ Contact Sign in
gnu.emacs.help only
 
Advanced search
POPULAR GROUPS

more...

gnu.emacs.help Profile…
 Up
how to tell AucTeX to use a Makefile         


Author: Jonas
Date: Aug 16, 2008 03:52

Hi:

for writting Latex-code I use Emacs and Auctex. Since I have a nice
Makefile it would be great to use it and bind it to the shortcut C-c C-
c. What do I have to write into my .emac file?

Cheers.
Jonas
2 Comments
Re: how to tell AucTeX to use a Makefile         


Author: Patrick Drechsler
Date: Aug 16, 2008 07:19

Jonas googlemail.com> writes:
> for writting Latex-code I use Emacs and Auctex. Since I have a nice
> Makefile it would be great to use it and bind it to the shortcut C-c C-
> c. What do I have to write into my .emac file?

; At the end of the tex file, this will also find the correct make file

;; %%%%%% Local Variables:
;; %%%%%% TeX-command-default: "Make"
;; %%%%%% mode: latex
;; %%%%%% TeX-master: "masterfile"
;; %%%%%% End:

; This adds Make to the tex command list.
(eval-after-load "tex"
'(add-to-list 'TeX-command-list '("Make" "make" TeX-run-command nil t)))

HTH

Patrick
no comments
Re: how to tell AucTeX to use a Makefile         


Author: Jonas
Date: Sep 12, 2008 17:14

On 16 Aug., 16:19, Patrick Drechsler wrote:
> Jonas googlemail.com> writes:
>> for writting Latex-code I use Emacs and Auctex. Since I have a nice
>> Makefile it would be great to use it and bind it to the shortcut C-c C-
>> c. What do I have to write into my .emac file?
>
> ; At the end of the tex file, this will also find the correct make file
>
> ;; %%%%%% Local Variables:
> ;; %%%%%% TeX-command-default: "Make"
> ;; %%%%%% mode: latex
> ;; %%%%%% TeX-master: "masterfile"
> ;; %%%%%% End:
>
> ; This adds Make to the tex command list.
> (eval-after-load "tex"
>   '(add-to-list 'TeX-command-list '("Make" "make" TeX-run-command nil t)))
>
> HTH
> ...
Show full article (0.74Kb)
no comments