Bug 352544 - Synctex (syncing between LaTeX documents and Okular) doesn't work inQt5 Kate
Summary: Synctex (syncing between LaTeX documents and Okular) doesn't work inQt5 Kate
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: PDF backend (show other bugs)
Version: 0.23.0
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-11 07:42 UTC by Michael D
Modified: 2021-03-12 12:03 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael D 2015-09-11 07:42:18 UTC
Synctex used to work with Kate Qt4 (KDE4) but it's broken or not implemented in Kate Qt5, e.g. version 15.08.0. Is it broken or not implemented in the port?

It still works between a Qt4 editor like Kile and Okular. It looks like it works between the Qt5 editor TeXstudio, but I can't say for certain because whenever I try to sync (by holding shift and clicking a location in the pdf in Okular), TeXstudio crashes, but at least focus switches to TeXstudio indicating that it wants to sync. Nothing at all happens with Kate.

I am using the default command given in Okular for Editor -> Kate in the settings.

Reproducible: Always

Steps to Reproduce:
1. Compile a pdf using pdflatex -synctex=1 a .tex document
2. Open the generated pdf in Okular with the editor set to Kate
3. Try to sync from Okular to Kate by holding the Shift key and left-clicking somewhere in the pdf in Okular

Actual Results:  
Nothing happens

Expected Results:  
One is taken to the line in Kate that matches the clicked-on line in Okular
Comment 1 Frederic Tronel 2015-09-12 12:02:44 UTC
The bug is due to the fact that the option "--use" has been removed from kate.
In okular, select settings menu -> configure Okular -> Editor
In the editor options, change the setting from "kate" to "custom text editor",
and set the command to "kate --line %l --column %c" (instead of "kate --use --line %l --column %c").

Synchronization between PDF and Kate will work again.
The bug should be assigned to okular.
Comment 2 kulam.fm 2015-09-13 10:14:46 UTC
I dont know if it's related but on my station on
-Debian Sid  + gnome3 
-approximately arround 25th August 2015
Backward search with Okular configured for gvim :
"gvim --servername GVIM --remote +%l %f"
was working perfectly

Now, after several "sudo apt-get update && sudo apt-get upgrade"

Shift + mouse left click => nothing happens
neither with other configuration kile, kate, emacs...

my system :

uname -srvmo
Linux 4.1.0-2-amd64 #1 SMP Debian 4.1.6-1 (2015-08-23) x86_64 GNU/Linux

okular --version
Qt: 4.8.7
KDE Development Platform: 4.14.10
Okular: 0.23.0

pdf backend : 0.6.5
Comment 3 Frederic Tronel 2015-09-13 10:32:47 UTC
It works very well on my system (Debian unstable).

apt-cache show okular
Package: okular
Version: 4:15.08.0-1

Changing the editor command to "gvim --servername GVIM --remote +%l %f"
and right clicking on a Latex document (compiled with synctex of course) results
in gvim being launched on the correct Latex file.

Frederic
Comment 4 kulam.fm 2015-09-13 10:34:26 UTC
thanks for your reply... could it be related with my version of okular and recent upgrade of qt5 packages ?
Comment 5 kulam.fm 2015-09-13 11:18:11 UTC
to be more precise : 

Package: okular
Version: 4:15.08.0-1
Installed-Size: 3892
Maintainer: Debian/Kubuntu Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Architecture: amd64
Provides: pdf-viewer, postscript-viewer
Depends: libokularcore6 (= 4:15.08.0-1), kde-runtime (>> 4:4.10), libc6 (>= 2.14), libfreetype6 (>= 2.2.1), libjpeg62-turbo (>= 1.3.1), libkactivities6 (>= 4:4.11), libkdecore5 (>= 4:4.14), libkdeui5 (>= 4:4.14), libkexiv2-11 (>= 4:4.5.90), libkio5 (>= 4:4.14), libkparts4 (>= 4:4.14), libkprintutils4 (>= 4:4.14), libkpty4 (>= 4:4.14), libphonon4 (>= 4:4.6.0really4.3.80), libpoppler-qt4-4 (>= 0.22.1), libqca2 (>= 2.0.2), libqimageblitz4 (>= 1:0.0.4), libqmobipocket1 (>= 4:4.11.80), libqt4-dbus (>= 4:4.6.1), libqt4-declarative (>= 4:4.7.0~rc1), libqt4-svg (>= 4:4.5.3), libqt4-xml (>= 4:4.5.3), libqtcore4 (>= 4:4.8.0), libqtgui4 (>= 4:4.8.0), libsolid4 (>= 4:4.14), libspectre1 (>= 0.2.3), libstdc++6 (>= 4.1.1), phonon, zlib1g (>= 1:1.1.4)
Comment 6 Frederic Tronel 2015-09-13 11:48:31 UTC
I have exactly the same package installed here and it works with gvim.

You should try to launch okular in a console and check any message that could appear in the console when
you left click (+shift) on a Latex document.

Frederic
Comment 7 Michael D 2015-09-13 11:56:04 UTC
Frederic, thanks a lot. That worked like a charm.

I've tried to reassign it to okular by just choosing it in the dropdown menu, but if that doesn't work, perhaps you can help me out with that.
Comment 8 Frederic Tronel 2015-09-13 12:06:33 UTC
I have fill
Comment 9 Frederic Tronel 2015-09-13 12:08:06 UTC
I have filled a bug report for okular (with a patch).
https://bugs.kde.org/show_bug.cgi?id=352657
Comment 10 Michael D 2015-09-13 12:10:15 UTC
Frederic, thanks very much. You've been very helpful indeed!
Comment 11 Justin Zobel 2021-03-09 23:59:24 UTC
Thank you for the bug report.

As this report hasn't seen any changes in 5 years or more, we ask if you can please confirm that the issue still persists.

If this bug is no longer persisting or relevant please change the status to resolved.