LaTeX forum ⇒ Theses, Books, Title pagesAppendix and Bibliography by Chapter & changing header

Classicthesis, Bachelor and Master thesis, PhD, Doctoral degree
ld_2017
Posts: 3
Joined: Sun Feb 19, 2017 9:53 pm

Appendix and Bibliography by Chapter & changing header

Postby ld_2017 » Mon Mar 13, 2017 7:05 pm

Hi there,

I am using the masters-doctoral-thesis template and find it really helpful. Though, I have three issues where I would like (but do not manage) to change the template.

In particular, I would like to

(1) Add one appendix after each chapter and display it as a separate item “Appendix” in the table of contents without numbering it (similar to how the bibliography is generally displayed in the TOC).
Will I have to call the appendix in the main file or in the chapter? If I call it in the chapter with \appendix \section{Appendix}, it figures like a general (and numbered) chapter in the TOC.

(2) If possible, I would like to add a bibliography for each chapter, which displays only those references that are used within that specific chapter. (I am using bibtex and wonder whether this is possible.)
I have tried calling the bibliography at the end of each chapter, which prints a bibliography where I like it. Unfortunately it always prints all references used throughout all of my chapters and not only those references cited in the respective chapter.

(3) Is there a way to change the part of the header that cites the Chapter title? My titles are quite long and I would prefer to get only a part of my chapter title printed in the header.

Any help is very much appreciated.
Thank you!

Tags:

User avatar
Johannes_B
Site Moderator
Posts: 3450
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Mon Mar 13, 2017 7:17 pm

1. Don't use \appendix, better use \addsec{Appendix}.

2 . This was just covered in another forum thread
You just have to change the def of the subheading to the following:
  1. \defbibheading{subchap}[\bibname]{%
  2. \addsec{#1}}


3. \chapter[Wombats]{Wombats are so cool, cuddly and cute}
This will also set the shorter version (in square brackets) into the table of contents. Why? Table of contents and the headers are for orientation, the whole title isn't that important there.

By the way, completely wrong subforum :-)
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

ld_2017
Posts: 3
Joined: Sun Feb 19, 2017 9:53 pm

Postby ld_2017 » Mon Mar 13, 2017 8:19 pm

Hi Johannes,

Thanks a lot for the quick reply (and moving to the right subforum)
(1) and (3) work really well. Thanks for that
Point (2) unfortunately does not

This is in short what I do now, but it still prints twice the exact same bibliography for both chapters.

  1. \documentclass[11pt,english,onehalfspacing, nolistspacing, headsepline,]{MastersDoctoralThesis}
  2. \usepackage[backend=bibtex,style=authoryear,natbib=true]{biblatex}
  3. \makeatletter % It seems I need these three lines otherwise my bibliography will not compile
  4. \def\blx@maxline{77}
  5. \makeatother
  6. \addbibresource{references.bib}
  7. \defbibheading{subchap}[\bibname]{%
  8. \addsec{#1}}
  9.  
  10. \begin{document}
  11.  
  12. \include{Chapters/Introduction}
  13. \printbibliography[heading=subchap]
  14. \include{Chapters/Chapter1}
  15. \printbibliography[heading=subchap]
  16.  
  17. \end{document}

User avatar
Johannes_B
Site Moderator
Posts: 3450
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Mon Mar 13, 2017 8:40 pm

Please look at the other thread again, there is an additional option while loading biblatex.

I haven't tested your example, no \cites in it. Better to put the printbibliography within the chapter file. Though it really shouldn't matter much.

The blx@maxline stuff was/is a bug in biblatex. It will go away (for sure) if you are using the biber backend. You would need to reconfigure your editor to use biber, but it may be worth our while. http://tex.stackexchange.com/questions/ ... -citations
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

ld_2017
Posts: 3
Joined: Sun Feb 19, 2017 9:53 pm

Postby ld_2017 » Mon Mar 13, 2017 9:16 pm

Using the additional option refsection=chapter does not work for some reason.
In the end I might need to use biber indeed - though I have problems to bring biber to life.

Thanks a lot for your help! That is very much appreciated.


Return to “Theses, Books, Title pages”

Who is online

Users browsing this forum: No registered users and 3 guests