[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [AUCTeX] Forward and inverse search with Emacs 24.1, Auctex 11.86 an
Re: [AUCTeX] Forward and inverse search with Emacs 24.1, Auctex 11.86 and Okular
Thu, 21 Jun 2012 13:48:52 +0200
Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.1.50 (gnu/linux)
* AW <address@hidden> wrote:
> for curiosity I installed Emacs 24.1, but kept AUCTeX 11.86, all and
> everything under openSuse 12.1, but with new KDE 4.8.4
> Forward search (C-c C-v) opens Okular, but on the page displayed last
> time and
> not where I'm no in my document, and backward search (shift + right
> click) in
> Okular does not do anything.
> Hey, is there somewhere a canonical howto make it work? I tried so
> things, but much may be outdated.
Forward search is a little bit tricky at the moment with AUCTeX and
okular (with backward search I have never had any problems) due to a
current incompatibility between AUCTeX, synctex and okular, but
nevertheless this quick-fix (which I took from the okular bug tracker)
works for me since various months:
;; Quick-Fix BEGIN
(defun Okular-make-url ()
(expand-file-name (funcall file (TeX-output-extension) t)
;; Quick-Fix END
("okular --unique %u")))) ;; <<-- This is part of the quick-fix.
;; If all is in sync again, one can
;; hopefully use the regular method
;; from the next line again.
;; ("okular --unique %o" (mode-io-correlate "#src:%n%b")))))
(setq TeX-view-program-selection '((output-pdf "Okular")))
"SCHEISSE! Zwotes Schraubengeräusch in 76°. Kommt schnell näher!"