You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that sometimes vimtex's table of content (TOC) contains empty entries. The issue arises with multi-line section titles like these:
\section{% This is a really long section title which is hard-wrapped after 80 characters or so to keep the source code readable
}
When opening the TOC using \lt, the corresponding section number will be displayed, but the rest of the line stays blank. The comment symbol % following the opening brace does not seem to make any difference.
Thanks for your help!
Steps to reproduce
I can't attach the tex file, here is the content of, minimal.vim:
\documentclass{article}
\begin{document}
\section{% This is a really long section title which is hard-wrapped after 80 characters or so to keep the source code readable
}
\end{document}
Steps:
Compile
Open the TOC, by default this is done with \lt.
Expected behavior
Expected behaviour would be to display the full title or the first n non-whitespace characters.
Actual behavior
When opening the TOC using \lt, the corresponding section number will be displayed, but the rest of the line stays blank.
(Like in this particular case, where I thought it should work already. Turned out I was right and that I somehow messed something up a couple of years ago. So it was a quick fix.)
Description
Hi,
I noticed that sometimes vimtex's table of content (TOC) contains empty entries. The issue arises with multi-line section titles like these:
When opening the TOC using
\lt
, the corresponding section number will be displayed, but the rest of the line stays blank. The comment symbol%
following the opening brace does not seem to make any difference.Thanks for your help!
Steps to reproduce
I can't attach the tex file, here is the content of,
minimal.vim
:Steps:
\lt
.Expected behavior
Expected behaviour would be to display the full title or the first n non-whitespace characters.
Actual behavior
When opening the TOC using
\lt
, the corresponding section number will be displayed, but the rest of the line stays blank.Do you use a latexmkrc file?
no
VimtexInfo
The text was updated successfully, but these errors were encountered: