Luis Finotti <[email protected]> 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


_______________________________________________
auctex mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/auctex

Reply via email to