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: Christophe Jorssen
Subject: Re: A quick build 'function' for auctex
Date: 18 May 2008 17:43:22 GMT
User-agent: Pan/0.132 (Waxed in Black)

Thanks harven for your reply.

Le Thu, 15 May 2008 11:37:01 -0700, harven a écrit/wrote :

> On May 15, 7:06 pm, Christophe Jorssen
> <christophe.jors...@libre.fr.invalid>
> 
> The following should prevent emacs from querying for a save before
> compilation:
> (setq TeX-save-query nil)

ok. So I assume that a C-c C-c runs a test on the value of TeX-save-query?

> 
> 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.

evince is the default 'universal' viewver in ubuntu.
 
> (add-hook 'TeX-mode-hook (lambda ()
>       (add-to-list 'TeX-output-view-style
>           '("^.pdf$" "." "put-here-the-viewer-command arg"))))

One question: frequently I find lambda() in .emacs customization. What 
does it mean? 

> 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.

Thanks for this tip.

> 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))))

ok. By the way, is there a pdf version where all the descriptions (given 
by C-h v) variables defined by auctex are available ?

Thanks again

-- 
Christophe


reply via email to

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