From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Coenvh Newsgroups: gmane.emacs.help Subject: Re: emacs + auctex - opening output PDF inside emacs buffer Date: Tue, 4 May 2010 01:09:57 -0700 (PDT) Message-ID: <28444342.post@talk.nabble.com> References: <28435081.post@talk.nabble.com> <87tyqo7cke.fsf@telefonica.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1272960748 15107 80.91.229.12 (4 May 2010 08:12:28 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 4 May 2010 08:12:28 +0000 (UTC) To: Help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 04 10:12:27 2010 connect(): No such file or directory 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.69) (envelope-from ) id 1O9DEu-00089L-Pt for geh-help-gnu-emacs@m.gmane.org; Tue, 04 May 2010 10:12:25 +0200 Original-Received: from localhost ([127.0.0.1]:52332 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O9DEt-0001wb-VY for geh-help-gnu-emacs@m.gmane.org; Tue, 04 May 2010 04:12:24 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O9DCe-0000Wc-Kw for help-gnu-emacs@gnu.org; Tue, 04 May 2010 04:10:04 -0400 Original-Received: from [140.186.70.92] (port=36708 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O9DCa-0000V7-RA for Help-gnu-emacs@gnu.org; Tue, 04 May 2010 04:10:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O9DCY-0001gt-IS for Help-gnu-emacs@gnu.org; Tue, 04 May 2010 04:10:00 -0400 Original-Received: from kuber.nabble.com ([216.139.236.158]:47535) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O9DCY-0001gf-77 for Help-gnu-emacs@gnu.org; Tue, 04 May 2010 04:09:58 -0400 Original-Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1O9DCX-0003KP-RQ for Help-gnu-emacs@gnu.org; Tue, 04 May 2010 01:09:57 -0700 In-Reply-To: <87tyqo7cke.fsf@telefonica.net> X-Nabble-From: coenvanhasselt@gmail.com X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:72889 Archived-At: I got it to work except for one thing.=20 If I press C-c C-v, the PDF opens inside emacs. However, I would like the PDF to open in the second split-screen buffer, so that I can have the TeX code *beside* the PDF output. Currently the PDF opens in the same location as where my TeX code used to be. Any advise on how I can make the PDF output open next to the TeX code would be highly appreciated!! Thanks Coen =C3=93scar Fuentes wrote: >=20 > Coenvh writes: >=20 >> I am using Emacs 23 together with AUCtex on Ubuntu 9.10. >> >> When I generate the output PDF file using C-c C-c, the default suggested >> view command is "xdg-open test.pdf". A new window then opens with my PDF >> output file. >> >> I know Emacs can also open PDF inside a buffer.=20 >> >> Can somebody explain how I can setup Emacs that when I generate my Latex >> output using C-c C-c, the output automatically opens inside a second >> Emacs >> buffer (split screen) ? >> >> I have seen people do this, but I do not manage to figure out how. >=20 > Try starting the emacs server (M-x server-start or put (server-start) in > your .emacs) and confige AUCtex for using `emacsclient -n' instead of > `xdg-open'. The later can be achieved putting this on your .emacs: >=20 > (setq TeX-output-view-style > (cons (list "^pdf$" "." "emacsclient -n %o") > TeX-output-view-style)) >=20 >=20 >=20 >=20 >=20 --=20 View this message in context: http://old.nabble.com/emacs-%2B-auctex---open= ing-output-PDF-inside-emacs-buffer-tp28435081p28444342.html Sent from the Emacs - Help mailing list archive at Nabble.com.