## LaTeX forum ⇒ Theses, Books, Title pages ⇒ Appendix 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

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:

Johannes_B
Site Moderator
Posts: 3587
Joined: Thu Nov 01, 2012 4:08 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:
\defbibheading{subchap}[\bibname]{%    \addsec{#1}}

3. \chapter[Wombats]{Wombats are so cool, cuddly and cute}

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
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.

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

Johannes_B
Site Moderator
Posts: 3587
Joined: Thu Nov 01, 2012 4:08 pm

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
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.