* latex emacs config for viewing pdf without auctex
@ 2009-04-04 18:19 Fdfdfd Fdfdfd
2009-04-04 23:00 ` pdfinn
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Fdfdfd Fdfdfd @ 2009-04-04 18:19 UTC (permalink / raw)
To: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 341 bytes --]
Hello,
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 ?
Thank you very -very- much for your help.
Anthony.
[-- Attachment #2: Type: text/html, Size: 558 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: latex emacs config for viewing pdf without auctex
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
[not found] ` <mailman.4627.1238886914.31690.help-gnu-emacs@gnu.org>
2 siblings, 0 replies; 4+ messages in thread
From: pdfinn @ 2009-04-04 23:00 UTC (permalink / raw)
To: Fdfdfd Fdfdfd; +Cc: help-gnu-emacs
Hello Anthony,
What operating system type are you running?
Peter
At Sat, 4 Apr 2009 18:19:53 +0000 (GMT),
Fdfdfd Fdfdfd wrote:
>
> [1 <text/plain; utf-8 (quoted-printable)>]
> Hello,
>
> 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 ?
>
> Thank you very -very- much for your help.
>
> Anthony.
>
>
>
> [2 <text/html; utf-8 (quoted-printable)>]
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: latex emacs config for viewing pdf without auctex
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
[not found] ` <mailman.4627.1238886914.31690.help-gnu-emacs@gnu.org>
2 siblings, 0 replies; 4+ messages in thread
From: Sven Bretfeld @ 2009-04-04 23:15 UTC (permalink / raw)
To: help-gnu-emacs
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/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: latex emacs config for viewing pdf without auctex
[not found] ` <mailman.4627.1238886914.31690.help-gnu-emacs@gnu.org>
@ 2009-04-05 5:14 ` B. T. Raven
0 siblings, 0 replies; 4+ messages in thread
From: B. T. Raven @ 2009-04-05 5:14 UTC (permalink / raw)
To: help-gnu-emacs
Sven Bretfeld wrote:
> 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
In the w32 Emacs build (using auctex) the last two lines of this
variable are:
("^pdf$" "." "xpdf -remote %s -raise %o %(outpage)")
("^html?$" "." "netscape %o"))
I changed the pdf line in Customize to read "start acrord32 %o" and this
raises Adobe Reader (8.0) if it's not running, and loads it with the
.pdf corresponding to the current .tex file, or if Adobe is running it
just opens the new .pdf. However, if a former version of the pdf is
already loaded then running C-c C-c trys to rebuild the .pdf and causes
a sharing violation. Is there someway to close that old .pdf in Adobe
Reader from Emacs?
Btw, changing netscape to firefox in the above causes an html file in
Emacs to be loaded into Firefox on C-c C-v
Ed
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-04-05 5:14 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
[not found] ` <mailman.4627.1238886914.31690.help-gnu-emacs@gnu.org>
2009-04-05 5:14 ` B. T. Raven
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.