SublimeText / LaTeXTools

LaTeX plugin for Sublime Text
https://latextools.readthedocs.io/
2k stars 364 forks source link

recursive multi-file referencing not working #343

Open trbedwards opened 10 years ago

trbedwards commented 10 years ago

When I have "% !TEX root = main.tex" at the top of my .tex file, it will only allow me to autocomplete \ref{} if the label is in main.tex, NOT if it's in a file included by main.tex.

For example, if have this in my main.tex:

\section{Introduction}
\label{sec:intro}
\input introduction.tex

And this in my introduction.tex:

\subsection{Background}
\label{sec:background}

Then in a separate file, buffer.tex:

% !TEX root = main.tex

Then in buffer.tex, if I type \ref{, it will autocomplete for "sec:intro" but not "sec:background".

Thanks, Tom

motatoes commented 10 years ago

Are you still facing this problem? I can't reproduce it - it works fine on my machine

ig0774 commented 7 years ago

Looking at this briefly, \input introduction.tex looks somewhat wrong to me. LaTeXTools (at least) only supports \input{introduction.tex}.