Hi,

there is a bug in the vim-latex-1.8.23-20141116.812 <https://sourceforge.net/projects/vim-latex/files/snapshots/vim-latex-1.8.23-20141116.812-gitd0f31c9.tar.gz/download> snaphot of the LaTeX Suite preventing the autocompletion of labels in multi-document latex projects. I found the solution to this issue here:

    http://ubuntuforums.org/showthread.php?t=2139228

Labels in \input'ed documents are recognized only if the \input command starts at the beginning of the line in the master file, i.e. with a child file world_doc.tex

%%%%%%%%%%%%%%%%%%%%%%%%
% % % world_doc.tex
\section{World section} \label{world_label}
world!
%%%%%%%%%%%%%%%%%%%%%%%%

and a master file main.tex

%%%%%%%%%%%%%%%%%%%%%%%%
% % % main.tex:
\documentclass{scrartcl}

\begin{document}
\input{world_doc}      % no whitespace before input

\section{Hello}
    Hello, section \ref{<+PRESS F9 HERE+>}.
\end{document}
%%%%%%%%%%%%%%%%%%%%%%%%

pressing F9 in the marked place opens the __OUTLINE__ window with label "world_label" as expected, but when changing the file to

%%%%%%%%%%%%%%%%%%%%%%%%
% % % main.tex:
\documentclass{scrartcl}

\begin{document}
    \input{world_doc}      % added whitespace here

\section{Hello}
    Hello, section \ref{<+PRESS F9 HERE+>}.
\end{document}
%%%%%%%%%%%%%%%%%%%%%%%%

the __OUTLINE__ window will not display the label anymore. It this a known issue? Since it is desirable to have leading whitespace before commands to allow a visual structuring of the document, it would be great if this could be fixed. It took me quite some time to figure out where the problem lies, and I assume that others have the same issue.

Regards,
Felix Kuehnl

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Vim-latex-devel mailing list
Vim-latex-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vim-latex-devel

Reply via email to