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

Bibliography and Alphabetical Index rendering in TOC #34

Closed
petobens opened this issue Jul 19, 2014 · 3 comments
Closed

Bibliography and Alphabetical Index rendering in TOC #34

petobens opened this issue Jul 19, 2014 · 3 comments

Comments

@petobens
Copy link

Consider the following MWE:

\documentclass{book}
\begin{document}
\frontmatter
  \tableofcontents
  \chapter{Preface}
\mainmatter
  \chapter{First chapter}
  \chapter{Second chapter}
  \chapter{Third chapter}
\backmatter
  \printbibliography
  \printindex
\end{document}

The \printbibliography and \printindex commands will respectively generate a bibliography and an alphabetical index that generally refers to the whole document and not just to the last chapter (Third Chapter in the example). However with the current TOC the "Bibliography" and "Alphabetical Index" are shown as a part or subset of the last chapter (and hence folded within it). I think they should be shown as independent entries (the same way that the "Preamble" and "Table of Contents" are shown)

screenshot-19-07-2014_13-51-53
screenshot-19-07-2014_13-51-58

@lervag
Copy link
Owner

lervag commented Jul 20, 2014

I think my latest commits should fix this. Please test.

@petobens
Copy link
Author

Thank you! Works great.

@lervag
Copy link
Owner

lervag commented Jul 20, 2014

Great!

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