summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/fithesis/fithesis3.cls
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/fithesis/fithesis3.cls')
-rw-r--r--Master/texmf-dist/tex/latex/fithesis/fithesis3.cls40
1 files changed, 22 insertions, 18 deletions
diff --git a/Master/texmf-dist/tex/latex/fithesis/fithesis3.cls b/Master/texmf-dist/tex/latex/fithesis/fithesis3.cls
index 26c0c6dc8b3..aacc189264f 100644
--- a/Master/texmf-dist/tex/latex/fithesis/fithesis3.cls
+++ b/Master/texmf-dist/tex/latex/fithesis/fithesis3.cls
@@ -54,7 +54,7 @@
\gdef\thesis@version@number{#1}
\gdef\thesis@version@date{#2}
\gdef\thesis@version{#2 #1 fithesis3 MU thesis class}}
-\thesis@versiondef{v0.3.37}{2016/04/12}}
+\thesis@versiondef{v0.3.38}{2016/05/15}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ProvidesClass{fithesis3}[\thesis@version]
@@ -315,6 +315,8 @@
\long\def\thesis@thanks{#1}}
\define@key{thesis}{assignment}{%
\def\thesis@assignmentFiles{#1}}
+\define@key{thesis}{bib}{%
+ \def\thesis@bibFiles{#1}}
\newif\ifthesis@auto\thesis@autotrue
\define@key{thesis}{autoLayout}[true]{%
\def\@true{true}%
@@ -339,7 +341,7 @@
\long\def\thesislong#1#2{%
\csname KV@thesis@#1\endcsname{#2}}
\newif\ifthesis@loaded\thesis@loadedfalse
-\AtEndPreamble{\thesisload}
+\BeforeBeginEnvironment{document}{\thesisload}
\def\thesis@load{\thesisload}
\def\thesisload{%
\ifthesis@loaded\else
@@ -348,26 +350,26 @@
\ifx\thesis@locale\empty\else
\edef\thesis@locale{\thesis@locale}
\thesis@requireLocale{\thesis@locale}
+ \fi
\ifluatex
\ltx@ifpackageloaded{babel}{}{
% See <article.gmane.org/gmane.comp.tex.luatex.user/5680>
\RequirePackage[base]{babel}}
\fi
- \ifx\languagename\empty\else
- \begingroup
- \edef\@doclocale{\languagename}%
- \ifx\@doclocale\thesis@locale
- \endgroup
- \AtBeginDocument{%
- \thesis@selectLocale{\thesis@locale}}%
- \else
- \endgroup
- \fi
- \fi
- \fi
\ifx\thesis@style\empty\else
\thesis@requireStyle{\thesis@style}
\fi
+ \ifx\languagename\empty\else
+ \begingroup
+ \edef\@doclocale{\languagename}%
+ \ifx\@doclocale\thesis@locale
+ \endgroup
+ \AtBeginDocument{%
+ \thesis@selectLocale{\thesis@locale}}%
+ \else
+ \endgroup
+ \fi
+ \fi
\thesis@require{hyperref}
\hypersetup{
unicode=true,
@@ -378,7 +380,9 @@
pdfcreator=\thesis@version}
\ifthesis@auto
\AtBeginDocument{\thesis@preamble}
- \AtEndDocument{\thesis@postamble}
+ \AtEndDocument{%
+ \thesis@postamble
+ \write\@auxout{\noexpand\gdef\noexpand\thesis@pages{\thepage}}}
\fi
\makeatother
\fi}
@@ -440,12 +444,12 @@
\expandafter\@gobbletwo
\fi
\thesis@tail#2}%
-\AtEndDocument{\write\@auxout{\noexpand\gdef\noexpand\thesis@pages{\thepage}}}
\ifx\thesis@pages\undefined\def\thesis@pages{??}\fi
-\AtEndPreamble{\thesis@require{csquotes}}
\def\thesis@selectLocale#1{%
\edef\thesis@locale{#1}%
- \csq@setstyle{\thesis@@{csquotesStyle}}%
+ \ltx@ifpackageloaded{csquotes}{%
+ \csq@setstyle{\thesis@@{csquotesStyle}}%
+ }{}%
\ltx@ifpackageloaded{polyglossia}{%
\selectlanguage{\thesis@locale}
}{%