diff options
author | Karl Berry <karl@freefriends.org> | 2016-05-15 22:10:27 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2016-05-15 22:10:27 +0000 |
commit | 5f70b2c1fb388056ec31bb162ff177ff3b7b49fa (patch) | |
tree | 4d337e02bcc05abfa091a1d3131366031de2d9ba /Master/texmf-dist/tex/latex/fithesis/fithesis3.cls | |
parent | 09887668234cd2448c5c8272e5e16fcd538cbe39 (diff) |
fithesis (15may16)
git-svn-id: svn://tug.org/texlive/trunk@41162 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/fithesis/fithesis3.cls')
-rw-r--r-- | Master/texmf-dist/tex/latex/fithesis/fithesis3.cls | 40 |
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} }{% |