Discussion:
[zathura] Synctex in 2.9
gi1242+zathura
2014-07-23 01:46:58 UTC
Permalink
Hi All,

This might very well be a bug in my setup, but I couldn't figure out
what's going on so I thought I would post for help.

1. With verion 0.2.7 (which I compiled myself), I have synctex
forward/backward search working perfectly.

2. Using 0.2.9 (from Debian/testing), I only have forward search
working, but not backward search. Namely, if I control click in a
PDF file, *nothing happens*. If I open the same PDF file in 0.2.7
and control click, then I get taken to my TeX source as expected.

For version 2.9 (actually zathura-0.2.9-2 from Debian/testing) I run it
under a chroot. I have libsynctex installed, and also the executable
synctex in my path.

Does anyone have any ideas?

Thanks in advance.

Best,

Gautam
--
Chemicals: Noxious substances from which modern foods are made.
Sebastian Ramacher
2014-07-23 07:18:57 UTC
Permalink
Hi
Post by gi1242+zathura
This might very well be a bug in my setup, but I couldn't figure out
what's going on so I thought I would post for help.
1. With verion 0.2.7 (which I compiled myself), I have synctex
forward/backward search working perfectly.
2. Using 0.2.9 (from Debian/testing), I only have forward search
working, but not backward search. Namely, if I control click in a
PDF file, *nothing happens*. If I open the same PDF file in 0.2.7
and control click, then I get taken to my TeX source as expected.
For version 2.9 (actually zathura-0.2.9-2 from Debian/testing) I run it
under a chroot. I have libsynctex installed, and also the executable
synctex in my path.
Does anyone have any ideas?
How do you invoke zathura? What happens if you try zathura -s -x "echo
%{linestr}". Does it print the line number if you control click?

Cheers
--
Sebastian Ramacher
gi1242+zathura
2014-07-23 15:12:29 UTC
Permalink
Post by Sebastian Ramacher
Post by gi1242+zathura
Does anyone have any ideas?
How do you invoke zathura? What happens if you try zathura -s -x "echo
%{linestr}". Does it print the line number if you control click?
Another colossal mistake on my part. Looks like the synctex options
aren't something you can put in the RC file, and are needed on command
line.

So I put

alias zathura='zathura -s -x "svim -G +%{line} %{input}"'

in my ~/.zshrc and forgot about it. When I wanted to load zathura-2.9
from testing (and not my own compiled version), I had to do

LD_LIBRARY_PATH= /usr/bin/zathura mixing.pdf

Great. My precious shell alias wasn't invoked and the synctex options
were gone! When I added them back, as above everything works.

Thanks again for your help!

GI

PS: Can I convert my blunder here to a desperate plea for a setting in
the RC file for all synctex options, instead of us having to resort
to command line options every time? Also, it might make life a
little easier for users if there was an option for --synctex-forward
to open a new window if the file isn't already being viewed.
(Admittedly this can easily be worked around by scripting.)

Regardless, I set up synctex and zathura to work with fvwm and vim
the way I like it a few months ago: Here's a how-to if anyone is
interested:

https://wiki.math.cmu.edu/iki/wiki/tips/20140310-zathura-fsearch.html
--
Don't drink and drive. You might hit a bump and spill your beer.
Sebastian Ramacher
2014-07-25 09:30:50 UTC
Permalink
Post by gi1242+zathura
PS: Can I convert my blunder here to a desperate plea for a setting in
the RC file for all synctex options, instead of us having to resort
to command line options every time?
I guess we should support that and make it possible to override it via the
command line option.
Post by gi1242+zathura
Also, it might make life a
little easier for users if there was an option for --synctex-forward
to open a new window if the file isn't already being viewed.
(Admittedly this can easily be worked around by scripting.)
We should probably do that, yes. Unfortunately this needs some more work, but
then we could finally implement support for opening files a specific locations
too.

Cheers
--
Sebastian Ramacher
Sebastian Ramacher
2014-07-26 14:16:37 UTC
Permalink
Post by Sebastian Ramacher
Post by gi1242+zathura
PS: Can I convert my blunder here to a desperate plea for a setting in
the RC file for all synctex options, instead of us having to resort
to command line options every time?
I guess we should support that and make it possible to override it via the
command line option.
Done.

Cheers
--
Sebastian Ramacher
gi1242+zathura
2014-07-29 02:05:00 UTC
Permalink
Post by Sebastian Ramacher
Post by gi1242+zathura
PS: Can I convert my blunder here to a desperate plea for a setting in
the RC file for all synctex options, instead of us having to resort
to command line options every time?
I guess we should support that and make it possible to override it via the
command line option.
Done.
Thanks a lot!!

GI
--
Laugh and the world laughs with you. Snore and you sleep alone.
Loading...