all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: harven <harven@free.fr>
To: help-gnu-emacs@gnu.org
Subject: Re: A quick build 'function' for auctex
Date: Thu, 15 May 2008 11:37:01 -0700 (PDT)	[thread overview]
Message-ID: <8c64dfc3-6170-471c-951e-75c86ce755f8@z72g2000hsb.googlegroups.com> (raw)
In-Reply-To: 482c6d9f$0$2002$426a74cc@news.free.fr

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)

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	other threads:[~2008-05-15 18:37 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 [this message]
2008-05-18 17:43   ` Christophe Jorssen
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=8c64dfc3-6170-471c-951e-75c86ce755f8@z72g2000hsb.googlegroups.com \
    --to=harven@free.fr \
    --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.