From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Sven Bretfeld" Newsgroups: gmane.emacs.help Subject: Re: latex emacs config for viewing pdf without auctex Date: 5 Apr 2009 01:15:10 +0200 Message-ID: <87y6ugyps1.fsf@gmx.ch> References: <334306.69525.qm@web28215.mail.ukl.yahoo.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1238886945 25757 80.91.229.12 (4 Apr 2009 23:15:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 4 Apr 2009 23:15:45 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Apr 05 01:17:03 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LqF6l-0006QO-5D for geh-help-gnu-emacs@m.gmane.org; Sun, 05 Apr 2009 01:17:03 +0200 Original-Received: from localhost ([127.0.0.1]:57119 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LqF5M-0004fB-VJ for geh-help-gnu-emacs@m.gmane.org; Sat, 04 Apr 2009 19:15:37 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LqF4y-0004eq-B1 for help-gnu-emacs@gnu.org; Sat, 04 Apr 2009 19:15:12 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LqF4t-0004dj-80 for help-gnu-emacs@gnu.org; Sat, 04 Apr 2009 19:15:11 -0400 Original-Received: from [199.232.76.173] (port=47879 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LqF4s-0004dP-Lq for help-gnu-emacs@gnu.org; Sat, 04 Apr 2009 19:15:06 -0400 Original-Received: from mx2.rz.ruhr-uni-bochum.de ([134.147.64.30]:53803) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1LqF4r-0001NN-Vh for help-gnu-emacs@gnu.org; Sat, 04 Apr 2009 19:15:06 -0400 X-Queued: (qmail 11277 invoked from network); 4 Apr 2009 23:15:03 -0000 Original-Received: from c2-3-4.rz.ruhr-uni-bochum.de (134.147.64.5) by mx2.rz.ruhr-uni-bochum.de with SMTP; 4 Apr 2009 23:15:03 -0000 X-Queued: (qmail 7463 invoked by uid 281); 4 Apr 2009 23:15:03 -0000 X-Qmailscanner: from 88.153.153.24 (0axIjN0NPR8sYtbntEgSvg==@88.153.153.24) by c2-3-4.rz.ruhr-uni-bochum.de (envelope-from , uid 80) with qmail-scanner-2.01 (sophie: 3.05/2.82/4.37. Clear:RC:1(88.153.153.24):. Processed in 0.030802 secs); 04 Apr 2009 23:15:03 -0000 Original-Received: from ip-88-153-153-24.unitymediagroup.de (HELO kamaloka) (0axIjN0NPR8sYtbntEgSvg==@88.153.153.24) by c2-3-4.rz.ruhr-uni-bochum.de with (DHE-RSA-AES128-SHA encrypted) SMTP; 4 Apr 2009 23:15:02 -0000 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)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:63479 Archived-At: Fdfdfd Fdfdfd 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 --=20 Sven Bretfeld \ CEntrum f=C3=BCr CERES \ REligionswissenschaftliche ________\_Studien__________________ Ruhr-Universit=C3=A4t Bochum Universit=C3=A4tsstra=C3=9Fe 150 D-44780 Bochum http://www.ruhr-uni-bochum.de/relwiss/