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

Parts should be shown in the TOC when toclevels is 0 #783

Closed
mojavelinux opened this issue Mar 23, 2017 · 2 comments
Closed

Parts should be shown in the TOC when toclevels is 0 #783

mojavelinux opened this issue Mar 23, 2017 · 2 comments
Assignees

Comments

@mojavelinux
Copy link
Member

When the toclevels attribute has the value 0, parts in a multi-part book should be shown in the TOC. This is consistent with the behavior of the HTML converter.

@mojavelinux mojavelinux added this to the v1.5.0.alpha.15 milestone Mar 23, 2017
@mojavelinux mojavelinux self-assigned this Mar 23, 2017
@mojavelinux
Copy link
Member Author

The idea of the toclevels attribute is that it's the highest toc level that is shown in the toc. A part is a level-0 section. Therefore, it makes sense that toclevels=0 enables only parts. This should be more clearly explained in the user manual.

@mojavelinux
Copy link
Member Author

I suppose we could support toclevels=-1 to disable all levels but still show the table of contents title and page.

@mojavelinux mojavelinux changed the title Parts should be show in the TOC when toclevels is 0 Parts should be shown in the TOC when toclevels is 0 Mar 26, 2017
mojavelinux added a commit to mojavelinux/asciidoctor-pdf that referenced this issue Apr 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant