[Vim-latex-devel] Bug: ref completion in muli-file documents not working correctly
Brought to you by:
srinathava,
tmaas
From: Felix K. <fe...@bi...> - 2016-02-24 15:05:20
|
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 |