Skip to content

TOC has weird behavior with paragraphs #2080

@Schmiddiii

Description

@Schmiddiii

Issue

In a document with paragraphs the TOC looks weird.

Minimal configuration:

set nocompatible
let &runtimepath  = '~/.config/nvim/plugged/vimtex,' . &runtimepath
let &runtimepath .= ',~/.config/nvim/plugged/vimtex/after'
filetype plugin indent on
syntax enable

Minimal document:

\documentclass{minimal}
\begin{document}

\section*{Sec}

\subsection*{Ssec}

\paragraph*{Par}

\section*{Sec2}

\subsection*{Ssec2}

\end{document}

Commands/Input

Open the table of contents on the provided document.

Observed Behaviour

The TOC only shows Sec and Ssec when opening.
When typing + to increase the depth, Par, Sec2 and Ssec2 show up, but are greyed out.

When deleting the paragraph, everything behaves as i would expect.

Expected Behaviour

All sections and paragraphs visible on the start and not grayed out.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions