This script wraps Evince to provide a command-line-friendly SyncTeX integration. It is based on Mortal/evince-synctex.
A Python 3 installation is required. To install the latest version, run the following command:
pip3 install --user https://github.com/efoerster/evince-synctex/archive/master.zip
evince-synctex PDF_FILE EDITOR_COMMAND
This command opens the specified file in Evince and executes the given editor command on a backwards search. A forward search can be performed by using the -f
flag:
evince-synctex -f LINE PDF_FILE EDITOR_COMMAND