2

I have inverse search working great with single-file documents with Zathura. Unfortunately, things break down when I try to do inverse search when viewing a region of my document, or a buffer in the case of multifile documents.

AUCTeX compiles the desired region (C-c C-r) or buffer (C-c C-b) by copying it to a file called _region_.tex, along with the preamble of the main document. However, when I try to do inverse search on the resulting PDF, rather than getting sent to the original source file, I get sent to _region_.tex. I've been burned by accidentally editing that file instead of the desired source file, and then loosing those changes.

How can I get inverse search to work in this case? Here is the "View" command AUCTeX uses.

zathura --synctex-forward 482:0:source.tex -x "emacsclient +%{line} %{input}" _region_.pdf

I am using AUCTeX 12.1.2 under emacs 25.2.2.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.