all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Christophe Jorssen <christophe.jorssen@libre.fr.invalid>
To: help-gnu-emacs@gnu.org
Subject: Re: A quick build 'function' for auctex
Date: 18 May 2008 17:43:22 GMT	[thread overview]
Message-ID: <48306aba$0$22286$426a74cc@news.free.fr> (raw)
In-Reply-To: 8c64dfc3-6170-471c-951e-75c86ce755f8@z72g2000hsb.googlegroups.com

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	other threads:[~2008-05-18 17:43 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-15 17:06 A quick build 'function' for auctex Christophe Jorssen
2008-05-15 18:37 ` harven
2008-05-18 17:43   ` Christophe Jorssen [this message]
2008-05-18 21:50     ` harven

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='48306aba$0$22286$426a74cc@news.free.fr' \
    --to=christophe.jorssen@libre.fr.invalid \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.