auctex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[AUCTeX] Re: redefining PDF viewer


From: Marcus Frings
Subject: [AUCTeX] Re: redefining PDF viewer
Date: Thu, 11 Nov 2010 10:58:01 +0100
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux)

* Luis Finotti <address@hidden> wrote:

>> > (setq TeX-view-program-list '(("Okular" "okular %o#src:%n%b")))

> My main source was this:
> http://web.archiveorange.com/archive/v/1gQRWjOonD7ETcBCBfaJ

> I found the %n %b from the xdvi options when running sources special.
> It seems that %n is the line of the cursor in the buffer and %b is the
> source file (.tex) which is in the buffer.

> In general, if file.pdf was made using synctex, doing "okular
> file.pdf#src:100file.tex" should open okular with the content from the
> 100-th line of file.tex appearing at the center of the screen.

Cool, thanks for the explanation!

> Anyway, I found how to keep a single version of okular running:

> ;; New method introduced in AUCTeX 11.86:
> (setq TeX-view-program-list '(("Okular" "okular --unique %o#src:%n%b")))
> (setq TeX-view-program-selection '((output-pdf "Okular")))

> The "--unique" does the trick!  (Found in the same source.)

Ah, this is excellent! I have also included this option into my
configuration and I see the difference. Indeed, it makes TeXing much
easier and more comfortable. :-) Thanks for your hints!

Best regards,
Marcus
-- 
"To call up a demon you must learn its name. Men dreamed that, once, but now it
is real in another way. You know that, Case. Your business is to learn the names
of programs, the long formal names, names the owners seek to conceal. True
names ..." - "A Turing code's not your name." - "Neuromancer", the boy said.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]