3

I have downloaded the template from latextemplates.com. It has something called parts which I would like to use. However, I dont want e.g. the references to be inside of the last defined part. How do I stop latex from putting further chapters into the last part defined? What I mean is that I want the last chapters to not be inside of any part but just a normal chapter. So that they are not figureing in the part chapter list, but only as a chapter in the table of content.

The template has a page in the beginning of each part, where it lists the chapters inside of the part. However, in the last part it adds too much. An example can be seen here: Part description with too much content

I dont want it to list either the bibliography or the index here. Only in the table of content.

  • 1
    Don't worry about the \part business. The \part macro inserts a page break and generates a header, but that's it. There is no part environment to end. Moreover, any \part directives don't reset the chapter counter. If you look at line 349 (or so) of the template file (called main.tex), you'll see that a \chapter* directive is used to initiate the bibliography portion of the document, followed by \section* directives to head up the actual bibliographies (generated by \printbibliography). – Mico Sep 6 '15 at 13:29
  • @Mico The ownly problem is that the template has a part page, where it is listing what is included in the part. But it includes too much in the last part. You can see an example in the template pdf on page 13. – 7heViking Sep 6 '15 at 13:45
  • It's not easy to tell you what you should do, as you haven't presented any details about your document. If you really don't want the bibliography and the index to be listed under "Part II", you can always create a new, unnumbered part-level division called, say, "Back Matter", right? – Mico Sep 6 '15 at 13:54
  • @Mico Thanks for your effort. I don't have anything but the template right now. – 7heViking Sep 6 '15 at 13:56
  • 1
    i don't know that template, but some other "templates" (document classes?) provide a \backmatter feature which should do appropriate things to disconnect regular chapters and parts from such things as bibliographies and indexes. you might investigate that possibility. – barbara beeton Sep 6 '15 at 14:01
4

Assuming that you want the bibliography etc. in the main contents but not the local one (which is how I read the question, but now I'm not sure having read Mico's answer):

In structure.tex just before \makeatother add:

\newcommand*\mybackmatter{%
\startcontents
\phantomsection
\addcontentsline{toc}{part}{}%
\@endpart}

Then in main.tex, before the bibliography add:

\mybackmatter

main ToC

local ToC

  • @FireFly3000 Ah, OK. Good. I wasn't entirely clear ;). – cfr Sep 6 '15 at 17:06
  • Your interpretation of the OP's objective was much better than mine! – Mico Sep 6 '15 at 19:12
  • @Mico Maybe. Has to be a first time for everything ;). – cfr Sep 6 '15 at 19:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.