TransWikia.com

How to prevent duplicated sections in taglist with vim-latex

Vi and Vim Asked by Paul Rougieux on December 14, 2021

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.

enter image description here

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?

Update with additional information:

Updated question:

  • I’d like to keep only tags generated by vim-latex. How to disable definitions generated externally?

One Answer

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.

Answered by Paul Rougieux on December 14, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP