auctex-devel
[Top][All Lists]

## [AUCTeX-devel] reftex-select-toggle-follow for master and slave files

 From: Uwe Brauer Subject: [AUCTeX-devel] reftex-select-toggle-follow for master and slave files Date: Tue, 22 Nov 2016 20:58:04 +0000 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

Hi

Reftex now support subfiles, so the following observation also applied
for master and slave files, via the \include command.

reftex-select-toggle-follow  is a very useful function and works well
for all references, when used from the master file
\documentclass[12pt]{article}
\usepackage{subfiles}
\begin{document}
\subfile{section1.tex}
\subfile{section2.tex}
\end{document}

It also works well for references in a *one slave* file: section1.tex
\documentclass[main]{subfiles}
\begin{document}
$$\label{eq:section1:1} \int f dx =0$$
\end{document}

That is when called in that file it displays all references in *this*
file section1.tex

However the function does not work when it is called in section1.tex but
the reference is in the second section file: section2.tex

\documentclass[main]{subfiles}
\begin{document}
$$\label{eq:section2:1} \sum \alpha_k=0$$
\end{document}

Any possibility to implement such a feature?

Thanks and regards

Uwe Brauer