Sunday, August 23, 2009

Re: tags for LaTeX

On Tue, Aug 11, 2009 at 1:38 PM, Robert Lamar<lamarmeister@gmail.com> wrote:

> To top it all off, it seems on the surface that tag names may only
> contain alpha(numeric?) characters, so I cannot create tags which will
> link from expressions like \include{chap-intro.inc} (which would
> hopefully open chap-intro.inc.tex).

I just checked in a change to the SVN version of ctags to support the
\include tag.
I have also expanded what it will use as a tag including the - and .
for you example above.

If you use this with the taglist Vim plugin then you would need to add
the following to your .vimrc:
" Tex language
let g:tlist_tex_settings =
'tex;c:chapters;s:sections;u:subsections;b:subsubsections;p:parts;P:paragraphs;G:subparagraphs;i:includes'

This will generate the tags in the taglist plugin.
Then clicking on it will take you to the tag with the include.
From there you can just hit "gf" - goto file.

That should open the file for you.
It doesn't need to be part of the Latex suite or part of ctags.

Dave

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

No comments: