> Uwe Brauer <o...@mat.ucm.es> 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 mailing list auctex-devel@gnu.org https://lists.gnu.org/mailman/listinfo/auctex-devel