Skip to content
This repository has been archived by the owner on Aug 14, 2022. It is now read-only.

SyncTeX for Evince #162

Closed
edwinksl opened this issue Jan 15, 2016 · 11 comments
Closed

SyncTeX for Evince #162

edwinksl opened this issue Jan 15, 2016 · 11 comments

Comments

@edwinksl
Copy link

I am trying to make SyncTeX work for the Evince PDF viewer. I have set the Custom PDF Viewer Path to /usr/bin/evince and was hoping that SyncTeX would work out of the box but this isn't the case. Any tips for making SyncTex play well with Evince?

@yitzchak
Copy link
Collaborator

yitzchak commented Sep 3, 2016

In order to enable SyncTeX with Evince we will probably need to have an opener class specifically for Evince. Currently, SyncTeX support in Evince works with gedit and can work with vim by using evince_dbus.py which is supplied as a sample by gedit.

What do you think @thomasjo? Evince is the default viewer in Gnome 3 and hence my usual viewer, so I can certainly put it on my long term todo list, but supporting it will most likely result in a dbus dependency.

@thomasjo
Copy link
Owner

thomasjo commented Sep 4, 2016

I definitely see the benefit of adding this. My only concern is adding in a lot of additional complexity just to support a PDF viewer for a subset of users. If we can keep it fairly straight-forward, yet robust, then we should add support for Evince.

@yitzchak
Copy link
Collaborator

This feature has been added and should be in the next release.

@cbrnr
Copy link

cbrnr commented Oct 24, 2016

How do I trigger forward and backward search? I can't seem to figure it out, neither Ctrl+click in Evince nor Ctrl+Alt+S in Atom is working...

@yitzchak
Copy link
Collaborator

@cbrnr xdg-open is the fallback opener which will use Evince but not support SyncTeX. Trying putting the path to Evince in the settings. If that does not work, please open a new issue since this issue was to add support for Evince.

@cbrnr
Copy link

cbrnr commented Oct 25, 2016

@yitzchak according to the Wiki, Evince should support both forward and backward search. Evince is opening fine with the default settings, but I can't seem to figure out how fw/bw search works...

@yitzchak
Copy link
Collaborator

@cbrnr You correct, Evince supports both forward and backward search. In order for it work xdg-open cannot be used. The setting 'Evince Path` activates Evince. You also need SyncTeX turned on.

@cbrnr
Copy link

cbrnr commented Oct 25, 2016

Yes, I have all of this set up correctly, but searching doesn't work. Are there any settings I need to change in Evince?

@yitzchak
Copy link
Collaborator

What are the other settings in atom-latex set to? Output directory, etc.

@cbrnr
Copy link

cbrnr commented Oct 25, 2016

I think I left all settings at their defaults. Shell escape is enabled, and so is SyncTeX. The output directory is blank, move result to source directory is enabled. Evince path is blank, i.e. set to the default.

Evince is opening automatically after I build the document, but I don't know how to sync. I tried right-clicking in Atom and selecting "LaTeX Sync", but this doesn't do anything. I tried ctrl-clicking in Evince, and this doesn't do anything either. I even activated the gedit SyncTeX plugin, but I don't think this is necessary (or is it?).

@yitzchak
Copy link
Collaborator

@cbrnr I've moved this issue over to #279.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants