Theses, Books, Title pages ⇒ Appendix and Bibliography by Chapter & changing header
Appendix and Bibliography by Chapter & changing header
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!
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Appendix and Bibliography by Chapter & changing header
\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:
Code: Select all
\defbibheading{subchap}[\bibname]{%
\addsec{#1}}
\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

Appendix and Bibliography by Chapter & changing header
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.
Code: Select all
\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: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Appendix and Bibliography by Chapter & changing header
I haven't tested your example, no
\cite
s 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/ ... -citationsAppendix and Bibliography by Chapter & changing header
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.