summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/classicthesis/FrontBackmatter/Bibliography.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/classicthesis/FrontBackmatter/Bibliography.tex')
-rw-r--r--Master/texmf-dist/doc/latex/classicthesis/FrontBackmatter/Bibliography.tex30
1 files changed, 22 insertions, 8 deletions
diff --git a/Master/texmf-dist/doc/latex/classicthesis/FrontBackmatter/Bibliography.tex b/Master/texmf-dist/doc/latex/classicthesis/FrontBackmatter/Bibliography.tex
index 13e34864a42..21bc38884cd 100644
--- a/Master/texmf-dist/doc/latex/classicthesis/FrontBackmatter/Bibliography.tex
+++ b/Master/texmf-dist/doc/latex/classicthesis/FrontBackmatter/Bibliography.tex
@@ -2,11 +2,25 @@
% Bibliography
%*******************************************************
% work-around to have small caps also here in the headline
-\manualmark
-\markboth{\spacedlowsmallcaps{\bibname}}{\spacedlowsmallcaps{\bibname}} % work-around to have small caps also
-%\phantomsection
-\refstepcounter{dummy}
-\addtocontents{toc}{\protect\vspace{\beforebibskip}} % to have the bib a bit from the rest in the toc
-\addcontentsline{toc}{chapter}{\tocEntry{\bibname}}
-\label{app:bibliography}
-\printbibliography
+% https://tex.stackexchange.com/questions/188126/wrong-header-in-bibliography-classicthesis
+% Thanks to Enrico Gregorio
+\defbibheading{bibintoc}[\bibname]{%
+ \phantomsection
+ \manualmark
+ \markboth{\spacedlowsmallcaps{#1}}{\spacedlowsmallcaps{#1}}%
+ \addtocontents{toc}{\protect\vspace{\beforebibskip}}%
+ \addcontentsline{toc}{chapter}{\tocEntry{#1}}%
+ \chapter*{#1}%
+}
+\printbibliography[heading=bibintoc]
+
+% Old version, will be removed later
+% work-around to have small caps also here in the headline
+%\manualmark
+%\markboth{\spacedlowsmallcaps{\bibname}}{\spacedlowsmallcaps{\bibname}} % work-around to have small caps also
+%\phantomsection
+%\refstepcounter{dummy}
+%\addtocontents{toc}{\protect\vspace{\beforebibskip}} % to have the bib a bit from the rest in the toc
+%\addcontentsline{toc}{chapter}{\tocEntry{\bibname}}
+%\label{app:bibliography}
+%\printbibliography