Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TOC has weird behavior with paragraphs #2080

Closed
Schmiddiii opened this issue Jun 26, 2021 · 4 comments
Closed

TOC has weird behavior with paragraphs #2080

Schmiddiii opened this issue Jun 26, 2021 · 4 comments

Comments

@Schmiddiii
Copy link

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.

@lervag
Copy link
Owner

lervag commented Jun 27, 2021

Thanks, I can confirm the problem and will look into it.

lervag added a commit that referenced this issue Jul 24, 2021
@lervag
Copy link
Owner

lervag commented Jul 24, 2021

I believe this is fixed now, please test.

@lervag lervag closed this as completed Jul 24, 2021
@Schmiddiii
Copy link
Author

Can confirm that this is working now. Thank you.

@lervag
Copy link
Owner

lervag commented Jul 25, 2021

Glad to hear it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants