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.cls28
1 files changed, 20 insertions, 8 deletions
diff --git a/Master/texmf-dist/tex/latex/fithesis/fithesis3.cls b/Master/texmf-dist/tex/latex/fithesis/fithesis3.cls
index 107a9b1662c..a6af90032ee 100644
--- a/Master/texmf-dist/tex/latex/fithesis/fithesis3.cls
+++ b/Master/texmf-dist/tex/latex/fithesis/fithesis3.cls
@@ -50,7 +50,7 @@
%% The names of the source files used are shown above.
%%
\NeedsTeXFormat{LaTeX2e}
-\def\thesis@version{2015/11/30 v0.3.27 fithesis3 MU thesis class}
+\def\thesis@version{2015/12/03 v0.3.28 fithesis3 MU thesis class}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ProvidesClass{fithesis3}[\thesis@version]
@@ -333,7 +333,19 @@
\thesis@loadedtrue
\makeatletter%
\ifx\thesis@locale\empty\else
+ \edef\thesis@locale{\thesis@locale}
\thesis@requireLocale{\thesis@locale}
+ \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}
@@ -357,17 +369,17 @@
\ClassWarning{fithesis3}{File #1 doesn't exist}}}
\def\thesis@input#1{%
\thesis@exists{#1}{\input{#1}}}
-\def\thesis@require#1{%
- \@ifpackageloaded{#1}{}{\RequirePackage{#1}}}
-\def\thesis@requireWithOptions#1{\thesis@exists{#1.sty}{%
- \@ifpackageloaded{#1}{}{\RequirePackageWithOptions{#1}}}}
+\newcommand\thesis@require[2][]{%
+ \@ifpackageloaded{#2}{}{\RequirePackage[#1]{#2}}}
+\newcommand\thesis@requireIfExists[2][]{%
+ \thesis@exists{#2.sty}{\thesis@require[#1]{#2}}}
\def\thesis@requireStyle#1{%
\ifthesis@style@inheritance%
- \thesis@requireWithOptions{\thesis@stylepath fithesis-base}%
- \thesis@requireWithOptions{\thesis@stylepath\thesis@university%
+ \thesis@requireIfExists{\thesis@stylepath fithesis-base}%
+ \thesis@requireIfExists{\thesis@stylepath\thesis@university%
/fithesis-base}
\fi%
- \thesis@requireWithOptions{\thesis@stylepath#1}}
+ \thesis@requireIfExists{\thesis@stylepath#1}}
\def\thesis@requireLocale#1{%
% Ignore redundant requests
\expandafter\ifx\csname thesis@#1@required\endcsname\relax%