all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Sven Bretfeld" <sven.bretfeld@gmx.ch>
To: help-gnu-emacs@gnu.org
Subject: Re: latex emacs config for viewing pdf without auctex
Date: 5 Apr 2009 01:15:10 +0200	[thread overview]
Message-ID: <87y6ugyps1.fsf@gmx.ch> (raw)
In-Reply-To: <334306.69525.qm@web28215.mail.ukl.yahoo.com> (Fdfdfd Fdfdfd's message of "Sat, 4 Apr 2009 18:19:53 +0000 (GMT)")

Fdfdfd Fdfdfd <landau82@yahoo.fr> writes:

> I've searching for a long time but didn't find out how to bind the
> key sequence C-c C-v
> with adobe acrobat pdf reader (C-c C-c launches pdflatex) instead of
> the default dvi viewer.
>
> So the question is what do I need to put in my .emacs file to do the
> job ?

It's a little more complex than a simple keybinding. Launch the
following command:

M-x customize-variable RET TeX-output-view-style RET

In the block starting with the line:

INS DEL Extension: ^pdf$

replace the value of the Command-line with:

acroread %o

That's the command for starting Acrobat Reader under Linux. If you are
under Windows or Mac the command might be different, I don't know.

Anyway, you don't have to hit C-c C-v to view your output. C-c C-c
automatically suggests to start the viewer if you haven't changed your
tex-file after the last LaTeX run. All you ever need is C-c C-c. You can
toggle between creating a dvi or a pdf output (i.e. a latex run or a
pdflatex run) by hitting C-c C-t C-p. The view-style will also change
automatically.

Hope it helps

Sven
-- 
Sven Bretfeld
      \ CEntrum für
CERES  \ REligionswissenschaftliche
________\_Studien__________________
Ruhr-Universität Bochum
Universitätsstraße 150
D-44780 Bochum
http://www.ruhr-uni-bochum.de/relwiss/




  parent reply	other threads:[~2009-04-04 23:15 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-04 18:19 latex emacs config for viewing pdf without auctex Fdfdfd Fdfdfd
2009-04-04 23:00 ` pdfinn
2009-04-04 23:15 ` Sven Bretfeld [this message]
     [not found] ` <mailman.4627.1238886914.31690.help-gnu-emacs@gnu.org>
2009-04-05  5:14   ` B. T. Raven

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=87y6ugyps1.fsf@gmx.ch \
    --to=sven.bretfeld@gmx.ch \
    --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.