Dear George, yes, indeed, vim-latex greps through the tex-file for \labels, see ftplugin/latex-suite/outline.py. You could also try to change the logic to cope with tcolorbox's theorems.
Or, you try my version of vim-latex at https://github.com/gerw/vim-latex-suite. There, I changed the logic and vim-latex greps through the aux-file instead. This might work for you. (I will also try to backport that feature in the next time) Best regards, Gerd On 2016-06-20 21:38, George wrote: > Dear all, > I'm using tcolorbox <https://www.ctan.org/pkg/tcolorbox?lang=en> to > create coloured boxes for my theorems. Tcolorbox has its own way of > labelling theorems, which does not play well with the label completion > of vim-latex suite. > Here is an example to demonstrate. First I define a theorem environment > using tcolorbox, > as follows: > \newtcbtheorem[number within=section]% > {theorem} % \begin.. > {Theorem} % Title > {} % Style - default > {theo} % label prefix; cite as ``theo:yourlabel'' > Then, inside my document I can write: > \begin{theorem}{The title}{mylabel} > This is a theorem. > \end{theorem} > and I'll get a theorem inside a coloured box. Then I can cite that > theorem by > writing "\ref{theo:mylabel}". > The problem is that if I type "\ref{" and press F9, vim-latex will not > recognise > the label "theo:mylable", so it won't automplete. > Does by any chance vim-latex recognizes labels by grepping the document for > "\label{****}" and parsing what's inside? In that case I guess there's > no hope > but otherwise, Is there any way to work around that? > Thank you for your time, > George > > > ------------------------------------------------------------------------------ > What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic > patterns at an interface-level. Reveals which users, apps, and protocols are > consuming the most bandwidth. Provides multi-vendor support for NetFlow, > J-Flow, sFlow and other flows. Make informed decisions using capacity planning > reports. http://sdm.link/zohomanageengine > > > > _______________________________________________ > Vim-latex-devel mailing list > Vim-latex-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/vim-latex-devel > ------------------------------------------------------------------------------ What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic patterns at an interface-level. Reveals which users, apps, and protocols are consuming the most bandwidth. Provides multi-vendor support for NetFlow, J-Flow, sFlow and other flows. Make informed decisions using capacity planning reports. http://sdm.link/zohomanageengine _______________________________________________ Vim-latex-devel mailing list Vim-latex-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/vim-latex-devel