Discussion:
[AUCTeX] inverse source correlation with Okular
Tamas Papp
2017-03-17 13:59:24 UTC
Permalink
hi,

I am trying to set up AUCTeX (11.90.0) with Okular. If I understand
correctly, Ctrl-leftclick (or is it something else?) would raise Emacs
and move point to the relevant location, neither of which happens.

1. Relevant excerpts from init.el:

(setq TeX-view-program-selection
'(((output-dvi has-no-display-manager) "dvi2tty")
((output-dvi style-pstricks) "dvips and gv")
(output-dvi "xdvi")
(output-pdf "Okular")
(output-html "xdg-open")))

(TeX-PDF-mode t)

(TeX-source-correlate-mode t)

AUCTeX works fine and has been setup from ELPA.

2. Using okular 4:16.04.3-0ubuntu1 in Ubuntu. According to ps -fp, it
was called as

okular --unique test.pdf#src:80/tmp/test.tex

Forward correlation works perfectly (C-c C-v). test.synctex.gz is
created in the same directory. In Okular, the chosen editor is
Emacsclient, ie

emacsclient -a emacs --no-wait +%l %f

3. Replacing "Okular" with "PDF Tools" , the inverse correlation works fine.

"Zathura" also works fine, "Atril" doesn't, "Evince" does.

Any help debugging this would be appreciated.

Best,

Tamas
Mosè Giordano
2017-03-17 14:12:40 UTC
Permalink
Hi Tamas,
Post by Tamas Papp
hi,
I am trying to set up AUCTeX (11.90.0) with Okular. If I understand
correctly, Ctrl-leftclick (or is it something else?) would raise Emacs
and move point to the relevant location, neither of which happens.
In Okular it's Shift + click. You have also to setup the viewer: in
Okular go to Settings → Configure Okular → "Editor" tab → select
"Emacs client" in the dropdown "Editor" box. Does it work for you?

Bye,
Mosè
Tamas Papp
2017-03-17 14:23:54 UTC
Permalink
Hi Mosè,
Post by Mosè Giordano
In Okular it's Shift + click. You have also to setup the viewer: in
Okular go to Settings → Configure Okular → "Editor" tab → select
"Emacs client" in the dropdown "Editor" box. Does it work for you?
Thanks, shift + click works perfectly.

Best,

Tamas

Loading...