Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

Hot answers tagged

18

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 ...


14

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: ;; Okular (setq TeX-view-program-list '(("Okular" "okular --unique %u"))) (add-hook 'LaTeX-mode-hook ...


11

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 ...


6

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 ...


5

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. Good luck! 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 ...


5

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 → ...


5

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


4

focus=width is exactly the correct option. For me it works nicely with ConTeXt from TL2017 and the Evince fork Atril. \setupinteraction [state=start, focus=width] \starttext \completecontent \chapter{Chapter one} \dorecurse{5}{ \input ward \input tufte \input ward \input knuth \input weisman } \section{Something specific} \input ward \...


3

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 ...


3

It seems there's no easy way to do this, yet. Modifying Scripts 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 ...


2

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 ...


2

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 eval `dbus-launch` export DBUS_SESSION_BUS_ADDRESS from terminal before starting emacs. Or modify it to .xinitrc I use TexLive 2011, AucTex from CVS, emacs 24....


2

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 ...


2

Adding the following to the .vimrc fixes it: let g:Tex_ViewRule_pdf='evince 2>/dev/null' This redirects evince's error stream to the "black hole" device file.


2

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"))) (if wmctrl (start-process "wmctrl" nil wmctrl "-R" (frame-parameter nil 'name))))) ;; This raises the frame when using Evince. (add-hook 'TeX-source-correlate-...


1

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 : https://gist.github.com/vext01/16df5bd48019d451e078 Your insight is right. First, you ought to compile your pdf with synctex enabled (I imagine vim-latex does this automatically). Then, zathura has ...


1

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 ...


1

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 ...


1

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" : [ // Linux "okular" ], 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 ...


1

How about LaTeXTools, backward and forward search works great for me. (Ubuntu - Texlive - Sublime Text 3 - Evince)


1

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: http://www.tug.org/...


1

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.


1

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, ...


Only top voted, non community-wiki answers of a minimum length are eligible