I combined some of the links mentioned here, you will find the links in the source comments. This code supports:
Forward search (Emacs to Evince, via C-c C-v)
Backward/Inverse search (Evince to Emacs, via C-Mouse-1, that is Ctrl + "Left Click" in Evince)
Path names with spaces
Multifile setups (TeX files requested by Evince will be opened if they aren't ...
What are you using? (Linux, Windows, Mac)
If you're using Linux, then Okular's probably the easiest PDF viewer to set-up synctex forward/backward search with emacs. Once you've installed Okular, you can add the following code to your .emacs config file:
(setq TeX-view-program-list '(("Okular" "okular --unique %u")))
(add-hook 'LaTeX-mode-hook ...
This is a viewer issue. Adobe Reader, Skim and Preview all pick up the first column, as you would expect. I can only reproduce the issue with old versions of Evince and Okular. I don't have a recent version of either of these viewers, but @Christian Hupfer and @gpoo have tested more up to date versions of Okular and Evince and found that they both work. For ...
There are several options to get 3d asy viewable in other viewers than Acrobat reader
(without interactive 3d feature). The options -noprc and -render=<num> have to be specified.
The command asy -f pdf -noprc -render=0 results in vector output
(there are some limitations, esp. when transparency is used to draw surfaces)
and the other way is, for ...
I posted a workaround for your problem here.
I'll paste the relevant part here for your convenience and just in case anyone else has the same problem.
I had to add a couple of lines in order to make it work.
Initially, I was getting the error:
Symbol's value as variable is void: TeX-view-program-list
Then I added the following line between ...
You can tell auctex use absolute path by changing the LaTeX command. First, you need an updated version of auctex, as Richard Hansen points out. I've installed the CVS version, but I think it should be enough updating tex.el(c).
Then, go to the "Customize AUCTex" menu:
LaTeX → Customize AUCTeX → Extend this Menu
LaTeX → Customize AUCTeX → TeX Command → ...
I had a similar problem. Launch Sublime Text from a terminal, and then see the output/error message in the terminal when you ctrl+click. In my case, the problem was that I was using a symbolic link named sublime while the script expected a binary named sublime-text. Once I changed my symbolic link to
focus=width is exactly the correct option. For me it works nicely with ConTeXt from TL2017 and the Evince fork Atril.
According to the pdfcomment author, this problem was due to Evince not following the PDF Reference on annotations. Evince seems to have a problem with the zero width that pdfcomment specifies for its annotations.
See also bug 685334 (Fixed on June, 2015 and available since Evince 3.18).
A workaround could be to directly use the \pdfannot command. I use ...
It seems there's no easy way to do this, yet.
Download files. (They are from Benjamin Kellermann, originally posted to Ubuntuusers on March 2011, based on an older version of the Gedit Synctex Plugin by Jose Aliste.)
Extract them, e.g. to your desktop.
Rename the file evince to evince-synctex. (To be sure that this file will be started ...
This was supposed to be a comment to Victor's answer, but I do not have enough reputation points. Also, I can confirm forward and inverse search using his answer, with the modification below.
Inserting the line (setq TeX-view-program-list '()) deletes the references to other viewers you may have configured (dvi viewers for example).
Possible work around is ...
In case someone is not running an DE(gnome/kde etc.), emacs might throw the following error, when using the above script from victor
D-Bus error: "No connection to bus", :session
Then just run
from terminal before starting emacs. Or modify it to .xinitrc
I use TexLive 2011, AucTex from CVS, emacs 24....
Revision 83 of http://www.emacswiki.org/emacs/AUCTeX#toc19 contains a fix for newer versions of Evince which makes it work for me. Note that it only gives you backward search.
To make it work you need to put the following code in your .emacs then you use it by Ctrl+left clicking in Evince to get to the corresponding line in AUCTeX. I have made some very ...
Add the following code, taken from https://lists.gnu.org/archive/html/bug-auctex/2013-04/msg00004.html, to your .emacs
(defun raise-client-frame ()
(let ((wmctrl (executable-find "wmctrl")))
(start-process "wmctrl" nil wmctrl "-R" (frame-parameter nil 'name)))))
;; This raises the frame when using Evince.
Can't tell how vim-latex's preview work, but setup forward and backward search in vim can be done with little configuration using zathura, based on this gist :
Your insight is right. First, you ought to compile your pdf with synctex enabled (I imagine vim-latex does this automatically).
Then, zathura has ...
Answering to myself :
As pointed out by giordano, the problem of handling non-ASCII characters in paths has been addressed in AUCTeX 11.88. It is not totally fixed (a message appears telling that and are the same file), but this is now functional.
(Note to Debian users : You'll have to get this from unstable : jessie is frozen).
The problem I had with ...
You need to (i) tell Emacs what is your document viewer, and then (ii) configure the document viewer to collaborate with Emacs to use the inverse search, that is, Ctrl+left click.
I don't think that Evince offers configuration option directly. I prefer more to work with Okular than Evince. The following post describes how to activate the forwards and ...
The following set-up also works for Latexing.
First, use Okular to display the pdf. For this, move okular up in the pdf_viewer_order setting of Latexing. For example,
"pdf_viewer_order" : [
At this point the Latexing: Open PDF command should open okular with the right pdf. Now change the options in okular to use sublime as the ...
Synctex enables forward/reverse sync with either DVI or PDF. My understanding is that in principle it is output-format-agnostic: it relies on an additional file, .synctex.gz, to collect sync information. So, in principle, one could write a PS viewer that supports it. However, as far as I know, none are currently available. See here:
Apparently TeX Live 2011 changed the format of the synctex file, and AUCTeX had to be changed accordingly: email discussion, commit email with link to patch.
Note that it still doesn't work if there are symlinks involved.
On some Linux distributions there might be a problem of TeX Live version.
For instance pdflatex supplied with TeX Live 2007 (which is by default shipped with Fedora 16) do not support synctex. This breaks down the inverse/forward search between emacs/auctex and evince.
It is recommended to check the defualt available version of TeX Live and, if necessary, ...