all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* emacs + auctex - opening output PDF inside emacs buffer
@ 2010-05-03 13:17 Coenvh
  2010-05-04  0:09 ` Óscar Fuentes
  2010-05-04 14:43 ` Erik Iverson
  0 siblings, 2 replies; 5+ messages in thread
From: Coenvh @ 2010-05-03 13:17 UTC (permalink / raw)
  To: Help-gnu-emacs


Hi,

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. 

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.

Thanks!

Coen
-- 
View this message in context: http://old.nabble.com/emacs-%2B-auctex---opening-output-PDF-inside-emacs-buffer-tp28435081p28435081.html
Sent from the Emacs - Help mailing list archive at Nabble.com.





^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: emacs + auctex - opening output PDF inside emacs buffer
  2010-05-03 13:17 emacs + auctex - opening output PDF inside emacs buffer Coenvh
@ 2010-05-04  0:09 ` Óscar Fuentes
  2010-05-04  8:09   ` Coenvh
  2010-05-04 14:43 ` Erik Iverson
  1 sibling, 1 reply; 5+ messages in thread
From: Óscar Fuentes @ 2010-05-04  0:09 UTC (permalink / raw)
  To: help-gnu-emacs; +Cc: Coenvh

Coenvh <coenvanhasselt@gmail.com> writes:

> 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. 
>
> 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.

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:

(setq TeX-output-view-style
      (cons (list "^pdf$" "." "emacsclient -n %o")
            TeX-output-view-style))





^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: emacs + auctex - opening output PDF inside emacs buffer
  2010-05-04  0:09 ` Óscar Fuentes
@ 2010-05-04  8:09   ` Coenvh
  2010-05-04 13:50     ` Óscar Fuentes
  0 siblings, 1 reply; 5+ messages in thread
From: Coenvh @ 2010-05-04  8:09 UTC (permalink / raw)
  To: Help-gnu-emacs


I got it to work except for one thing. 

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


Óscar Fuentes wrote:
> 
> Coenvh <coenvanhasselt@gmail.com> writes:
> 
>> 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. 
>>
>> 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.
> 
> 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:
> 
> (setq TeX-output-view-style
>       (cons (list "^pdf$" "." "emacsclient -n %o")
>             TeX-output-view-style))
> 
> 
> 
> 
> 

-- 
View this message in context: http://old.nabble.com/emacs-%2B-auctex---opening-output-PDF-inside-emacs-buffer-tp28435081p28444342.html
Sent from the Emacs - Help mailing list archive at Nabble.com.





^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: emacs + auctex - opening output PDF inside emacs buffer
  2010-05-04  8:09   ` Coenvh
@ 2010-05-04 13:50     ` Óscar Fuentes
  0 siblings, 0 replies; 5+ messages in thread
From: Óscar Fuentes @ 2010-05-04 13:50 UTC (permalink / raw)
  To: help-gnu-emacs; +Cc: Coenvh

Coenvh <coenvanhasselt@gmail.com> writes:

> I got it to work except for one thing. 
>
> 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!!

Try using this setting for TeX-output-view-style:

(setq TeX-output-view-style
      (cons (list "^pdf$" "."
		  "emacsclient -n -e '(find-file-other-window \"%o\")'")
            TeX-output-view-style))






^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: emacs + auctex - opening output PDF inside emacs buffer
  2010-05-03 13:17 emacs + auctex - opening output PDF inside emacs buffer Coenvh
  2010-05-04  0:09 ` Óscar Fuentes
@ 2010-05-04 14:43 ` Erik Iverson
  1 sibling, 0 replies; 5+ messages in thread
From: Erik Iverson @ 2010-05-04 14:43 UTC (permalink / raw)
  To: Coenvh; +Cc: Help-gnu-emacs



Coenvh wrote:
> Hi,
> 
> 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. 
> 
> 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.
> 
> Thanks!
> 
> Coen

See this blog post of mine for a slightly different approach, where the 
viewing step is updated automatically:


http://blogisticreflections.wordpress.com/2009/10/03/using-doc-view-with-auto-revert-to-view-latex-pdf-output-in-emacs/




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-05-04 14:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-03 13:17 emacs + auctex - opening output PDF inside emacs buffer Coenvh
2010-05-04  0:09 ` Óscar Fuentes
2010-05-04  8:09   ` Coenvh
2010-05-04 13:50     ` Óscar Fuentes
2010-05-04 14:43 ` Erik Iverson

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.