summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/fithesis/style/mu/fithesis-base.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/fithesis/style/mu/fithesis-base.sty')
-rw-r--r--Master/texmf-dist/tex/latex/fithesis/style/mu/fithesis-base.sty62
1 files changed, 61 insertions, 1 deletions
diff --git a/Master/texmf-dist/tex/latex/fithesis/style/mu/fithesis-base.sty b/Master/texmf-dist/tex/latex/fithesis/style/mu/fithesis-base.sty
index 7204eb72455..ccb1c020c46 100644
--- a/Master/texmf-dist/tex/latex/fithesis/style/mu/fithesis-base.sty
+++ b/Master/texmf-dist/tex/latex/fithesis/style/mu/fithesis-base.sty
@@ -49,7 +49,7 @@
%%
%% The names of the source files used are shown above.
%%
-\ProvidesPackage{fithesis/style/mu/fithesis-base}[2016/04/12]
+\ProvidesPackage{fithesis/style/mu/fithesis-base}[2016/04/18]
\NeedsTeXFormat{LaTeX2e}
\DeclareOption{10pt}{\def\thesis@ptsize{0}}
\DeclareOption{11pt}{\def\thesis@ptsize{1}}
@@ -157,6 +157,59 @@
{\endthesis@newtable@oldtabu}
\fi
\fi
+\newif\ifthesis@bibliography@
+\thesis@bibliography@false
+\ifx\thesis@bibFiles\undefined\else
+ {\edef\@bibList{\thesis@bibFiles}%
+ \ifx\@bibList\empty\else
+ \global\thesis@bibliography@true
+ \fi}
+\fi
+\def\thesis@bibliography@setup#1{%
+ \setkeys{thesis@bibliography}{#1}}
+\define@key{thesis@bibliography}{style}{%
+ \ifx\thesis@bibliography@style\undefined
+ \def\thesis@bibliography@style{#1}%
+ \fi}
+\define@key{thesis@bibliography}{sorting}{%
+ \ifx\thesis@bibliography@sorting\undefined
+ \def\thesis@bibliography@sorting{#1}%
+ \fi}
+\newif\ifthesis@bibliography@loaded@
+ \thesis@bibliography@loaded@false
+\newif\ifthesis@bibliography@included@
+ \thesis@bibliography@included@false
+\def\thesis@bibliography@load{%
+ \ifthesis@bibliography@
+ \ifthesis@bibliography@loaded@\else
+ \thesis@bibliography@loaded@true
+ % Load csquotes and BibLaTeX.
+ \thesis@require{csquotes}
+ \thesis@bibliography@setup{
+ style = iso-numeric,
+ sorting = none}
+ \thesis@require[
+ backend=biber,
+ style=\thesis@bibliography@style,
+ sorting=\thesis@bibliography@sorting,
+ autolang=other,
+ sortlocale=auto]{biblatex}
+ % Load the bibliography databases.
+ {\edef\@bibList{\thesis@bibFiles}%
+ \def\@inject##1,{%
+ \def\@args{##1}\def\@relax{\relax}%
+ \ifx\@args\@relax\else
+ % Trim leading spaces.
+ \edef\@trimmed{\romannumeral-`\.##1}%
+ \addbibresource\@trimmed
+ \expandafter\@inject\fi}%
+ \expandafter\@inject\@bibList,\relax,}%
+ \let\thesis@printbibliography@old\printbibliography
+ \def\printbibliography{%
+ \global\thesis@bibliography@included@true
+ \thesis@printbibliography@old}
+ \fi
+ \fi}
\thesis@require{hyperref}
\hypersetup{pdfborderstyle={/S/U/W 1}} % Less obtrusive borders
\widowpenalty 10000
@@ -405,6 +458,13 @@
\thesis@pages\ \thesis@@{bib@pages}.
\thesis@@{advisorTitle}: \thesis@advisor
\thesis@blocks@clearRight}
+\def\thesis@blocks@bibliography{%
+ \ifthesis@bibliography@loaded@
+ \ifthesis@bibliography@included@\else
+ \thesis@blocks@clear
+ \printbibliography[heading=bibintoc]%
+ \fi
+ \fi}
\setcounter{tocdepth}{2}
\setcounter{secnumdepth}{2}