help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: A quick build 'function' for auctex


From: harven
Subject: Re: A quick build 'function' for auctex
Date: Thu, 15 May 2008 11:37:01 -0700 (PDT)
User-agent: G2/1.0

On May 15, 7:06 pm, Christophe Jorssen
<address@hidden>

The following should prevent emacs from querying for a save
before compilation:
(setq TeX-save-query nil)

I don't know what is evince. Anyway, for modern versions of
auctex (11.85), the viewers used
for preview are contained in the list TeX-output-view-style.
Probably evince is not supported by default, xpdf is the default on
my box. Here is how to add a new entry to the list. Put the following
in your init-file.

(add-hook 'TeX-mode-hook (lambda ()
      (add-to-list 'TeX-output-view-style
          '("^.pdf$" "." "put-here-the-viewer-command arg"))))

Your viewer command take a few arguments (e.g. the placeholder for the
name of the file).  These must
be added using the format specifiers. You may want to try
%s or %d for the value of arg, depending on your viewer.
These arg are explained in the documentation of the TeX-expand-list
variable. You can see this doc by typing while in
tex-mode      C-h v TeX-expand-list.

Also, the following should prevent emacs from asking for the
viewer to use.

(add-hook 'TeX-mode-hook (lambda ()
           (add-to-list 'TeX-command-list
                '("View" "%V" TeX-run-discard nil t))))


reply via email to

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