[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[AUCTeX] Re: redefining PDF viewer
From: |
Tassilo Horn |
Subject: |
[AUCTeX] Re: redefining PDF viewer |
Date: |
Thu, 11 Nov 2010 15:05:29 +0100 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) |
Luis Finotti <address@hidden> writes:
Hi Luis,
> But does it work for you? I did not work for me. 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.)
Yeah, I've found that, too. So till now I had this:
--8<---------------cut here---------------start------------->8---
(setq TeX-view-program-list
'(("Okular"
("okular --unique"
(mode-io-correlate " -p %(outpage)")
" %o"))))
--8<---------------cut here---------------end--------------->8---
but the --unique and the -p option don't work correctly when used at the
same time. The unique instance of okular never switches pages. See the
bug report at https://bugs.kde.org/show_bug.cgi?id=254917.
But using your approach, I've refined the definition to add the #src
stuff only when `TeX-source-correlate-mode' is active.
--8<---------------cut here---------------start------------->8---
(setq TeX-view-program-list
'(("Okular"
("okular --unique %o"
(mode-io-correlate "#src:%n%b")))))
--8<---------------cut here---------------end--------------->8---
Works brilliant! Thanks!
BTW: How did you find out about the foo.pdf#src: syntax?
Bye,
Tassilo