# How to prevent duplicated sections in taglist with vim-latex

The plugin yegappan/taglist and the plugin vim-latex are very nice to navigate within the table of content of a latex document. There is an issue however on my system section titles are duplicated. Example based on minimal latex.

If I disable the vim-latex plugin, the taglist appears without repetitions, but it has less details on figure and table references and it is missing some subsubsections.

• How to prevent duplicated section titles in the taglist pane?

Updated question:

• I'd like to keep only tags generated by vim-latex. How to disable definitions generated externally?
• Bonsoir Paul. I'm not quite sure how to fix this, however I think you should clarify the way you generate your tags, this might help others help you better. A link to the plugin would also be great. Is it this one? May 28 '20 at 15:53
• Does it change if you use \section instead of \section*? May 28 '20 at 17:18
• Maybe bring this up on the Issues page of both the respective projects? Surely they must have git repos? May 28 '20 at 19:16
• Since you're not building your tags a la mano, there's nothing much we can do, unless you've done something wrong with your config. If that could be the case, you can update your post with your config. May 28 '20 at 20:01
• @D.BenKnoble yes it also happens with \section. May 29 '20 at 7:03

I now use the vimtex plugin with the :VimtexTocOpen command to open a table of content for latex files.
See also :help vimtex-nf-tag-nav:
One may navigate by tags with the |CTRL-]| mapping, e.g. from \eqref{eq:example} to the corresponding \label{eq:example}. However, this requires that a tag file has been generated with |ctags|. I recommend that one uses the maintained version of ctags. In addition, I recommend that one uses a plugin that automatically generates the tag files as necessary, e.g. gutentags. See |vimtex-faq-tags| and |vimtex-faq-tags-bibtex| for concrete examples.