In auctex
I can run a command only on a certain region to speed up compiling.
This works great, however if then I use the backward search to jump from the .pdf
to the .tex
source code, it opens the temporary _region_.tex
file instead of my real tex file chapter2.tex
.
I did search on the internet and in the auctex documentation, but did not find a hint how to set this up correctly.
Some hints about the configuration
LaTeX master file with included chapters
I'm using a master file (let's call it main.tex
and then include a source file for each chapter with e. g.
\include{chapter2}
Region.tex file and corresponding log file
My _region_.tex
file contains the following line directly after \begin{document)
\message{ !name(chapter2.tex) !offset(927) }
which I think should be used for exactly this purpose.
The _region_.log
file contains a line, which refers to the master file, not the chapter:
**\input _region_.tex
(./_region_.tex !name(main.tex)
PDF viewer sync settings
In the preferences of Skim.app
(the pdf viewer) I'm using the following configuration:
- command:
emascsclient
- arguments:
--no-wait +%line "%file"
System and software versions
I'm using MacOS X 10.6 and TeXLive 2014, AUCTeX 11.88
.
My pdf viewer is Skim.app
and my source editor is Aquamacs.app
(Version 3.2)
(I've updated to Aquamacs 3.2 which uses AUCTeX 11.88, but I still have the same problem)
evince
, but Skim.app onMacOS X
C-h v AUCTeX-version
, but you'd know if you were using the development version of AUCTeX, you'd have compiled it by yourself;-)