[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [AUCTeX-devel] reftex-select-toggle-follow for master and slave file
From: |
Uwe Brauer |
Subject: |
Re: [AUCTeX-devel] reftex-select-toggle-follow for master and slave files |
Date: |
Thu, 24 Nov 2016 12:51:51 +0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) |
> Uwe Brauer <address@hidden> writes:
> You're welcome. I have a question, though. Let's say you have 3 files
> like these:
> \documentclass[12pt]{article} % This is main.tex
> \usepackage{subfiles}
> \begin{document}
> \subfile{section1.tex}
> \subfile{section2.tex}
> \end{document}
> %%% Local Variables:
> %%% mode: latex
> %%% TeX-master: t
> %%% End:
> \documentclass[main]{subfiles} % This is section1.tex
> \begin{document}
> \begin{equation}
> \label{eq:section1:1}
> \int f dx =0
> \end{equation}
> \end{document}
> %%% Local Variables:
> %%% mode: latex
> %%% TeX-master: "main"
> %%% End:
> \documentclass[main]{subfiles} % This is section2.tex
> \begin{document}
> \begin{equation}
> \label{eq:section2:1}
> \sum \alpha_k=0
> \end{equation}
> \end{document}
> %%% Local Variables:
> %%% mode: latex
> %%% TeX-master: "main"
> %%% End:
> If you restart Emacs and open main.tex *only*, you have access to all
> labels defined in the subfiles? I don't get anything when I open
> main.tex and hit `C-c )' (RefTeX enabled).
If reftex-revisit-to-follow is set to t, then I do see these labels,
if it is nil, then only if these files have been already opened.
> The reason I'm asking is that I have implemented such a feature for
> `ltxtable.el' where you have labels in other tex files and include them
> with \LTXtable{<width>}{filename.tex} and had to go through more hassle.
> Maybe you can help me here.
Gladly, but although I use reftex a lot, I find the code quite difficult
to understand. I would recommend as a starting point to set
reftex-revisit-to-follow to t
Uwe
- [AUCTeX-devel] reftex-select-toggle-follow for master and slave files, Uwe Brauer, 2016/11/22
- Re: [AUCTeX-devel] reftex-select-toggle-follow for master and slave files, Arash Esbati, 2016/11/23
- Re: [AUCTeX-devel] reftex-select-toggle-follow for master and slave files, Uwe Brauer, 2016/11/23
- Re: [AUCTeX-devel] reftex-select-toggle-follow for master and slave files, Arash Esbati, 2016/11/24
- Re: [AUCTeX-devel] reftex-select-toggle-follow for master and slave files,
Uwe Brauer <=
- Re: [AUCTeX-devel] reftex-select-toggle-follow for master and slave files, Arash Esbati, 2016/11/24
- Re: [AUCTeX-devel] reftex-select-toggle-follow for master and slave files, Uwe Brauer, 2016/11/24
- Re: [AUCTeX-devel] reftex-select-toggle-follow for master and slave files, Uwe Brauer, 2016/11/24
- Re: [AUCTeX-devel] reftex-select-toggle-follow for master and slave files, Arash Esbati, 2016/11/24
- Re: [AUCTeX-devel] reftex-select-toggle-follow for master and slave files, Uwe Brauer, 2016/11/25
- Re: [AUCTeX-devel] reftex-select-toggle-follow for master and slave files, Arash Esbati, 2016/11/25
- Re: [AUCTeX-devel] reftex-select-toggle-follow for master and slave files, Uwe Brauer, 2016/11/25