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.cls125
1 files changed, 119 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/latex/fithesis/fithesis3.cls b/Master/texmf-dist/tex/latex/fithesis/fithesis3.cls
index bab6089754b..b501edaa330 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.44}{2017/05/18}}
+\thesis@versiondef{v0.3.46}{2017/06/02}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ProvidesClass{fithesis3}[\thesis@version]
@@ -327,18 +327,124 @@
\else
\thesis@autofalse
\fi}
+\ifx\thesis@pages@preamble\undefined
+ \def\thesis@pages@preamble{??}\fi
+\ifx\thesis@pages@postamble\undefined
+ \def\thesis@pages@postamble{??}\fi
\def\thesis@preamble{%
{\thesis@selectLocale{\thesis@locale}%
- \thesis@blocks@preamble\clearpage}
+ \thesis@blocks@preamble
+ \gdef\thesis@pages@preamble{\thepage}
+ \write\@auxout{\noexpand\gdef\noexpand
+ \thesis@pages@preamble{\thepage}}
+ \clearpage}
\thesis@blocks@mainMatter}
-\def\thesis@postamble{{%
- \thesis@selectLocale{\thesis@locale}%
+\let\thesis@blocks@preamble\relax
+\let\thesis@blocks@mainMatter\relax
+\def\thesis@postamble{%
+ \gdef\thesis@pages@postamble{\thepage}
+ \write\@auxout{\noexpand\gdef\noexpand
+ \thesis@pages@postamble{\thepage}}
+ {\thesis@selectLocale{\thesis@locale}%
\thesis@blocks@postamble}}
-\let\thesis@blocks@preamble\relax
\let\thesis@blocks@postamble\relax
-\let\thesis@blocks@mainMatter\relax
+\def\thesis@extra@KV@prefix{KV@thesis@extra@}
+\def\thesis@extra@XKV@fams{thesis@extra}
+\long\def\KV@thesis@extra#1{%
+ \long\def\XKV@s@tk@ys##1=##2=##3\@nil{%
+ \XKV@g@tkeyname##1=\@nil\XKV@tkey
+ \expandafter\KV@@sp@def\expandafter\XKV@tkey\expandafter{\XKV@tkey}%
+ \ifx\XKV@tkey\@empty
+ \XKV@toks{##2}%
+ \ifcat$\the\XKV@toks$\else
+ \XKV@err{no key specified for value `\the\XKV@toks'}%
+ \fi
+ \else
+ \@expandtwoargs\in@{,\XKV@tkey,}{,\XKV@na,}%
+ \ifin@\else
+ \XKV@knftrue
+ \KV@@sp@def\XKV@tempa{##2}%
+ \ifXKV@preset\XKV@s@tk@ys@{##3}\else
+ \ifXKV@pl
+ \XKV@for@eo\XKV@fams\XKV@tfam{%
+ \XKV@makehd\XKV@tfam
+ \XKV@s@tk@ys@{##3}%
+ }%
+ \else
+ \XKV@whilist\XKV@fams\XKV@tfam\ifXKV@knf\fi{%
+ \XKV@makehd\XKV@tfam
+ \XKV@s@tk@ys@{##3}%
+ }%
+ \fi
+ \fi
+ \ifXKV@knf
+ \ifXKV@inpox
+ \ifx\XKV@doxs\relax
+ \ifx\@currext\@clsextension\else
+ \let\CurrentOption\XKV@tkey\@unknownoptionerror
+ \fi
+ \else\XKV@doxs\fi
+ \else
+ \ifXKV@st
+ \XKV@addtolist@o\XKV@rm\CurrentOption
+ \else
+ \ifx\XKV@fams\thesis@extra@XKV@fams
+ \expandafter\long\expandafter\def\csname%
+ thesis@extra@\XKV@tkey\endcsname{##2}%
+ \else
+ \XKV@err{`\XKV@tkey' undefined in families
+ `\XKV@fams'}%
+ \fi
+ \fi
+ \fi
+ \else
+ \ifXKV@inpox\ifx\XKV@testclass\XKV@documentclass
+ \expandafter\XKV@useoption\expandafter{\CurrentOption}%
+ \fi\fi
+ \fi
+ \fi
+ \fi
+ }%
+ \setkeys{thesis@extra}{#1}%
+ \def\KV@prefix{KV@thesis@}}
+\long\def\KV@split#1=#2=#3\relax{%
+ \KV@@sp@def\@tempa{#1}%
+ \ifx\@tempa\@empty\else
+ \expandafter\let\expandafter\@tempc
+ \csname\KV@prefix\@tempa\endcsname
+ \ifx\@tempc\relax
+ \ifx\KV@prefix\thesis@extra@KV@prefix
+ \KV@@sp@def\@tempb{#2}%
+ \expandafter\let\csname thesis@extra@\@tempa\endcsname
+ \@tempb%
+ \else
+ \KV@errx
+ {\@tempa\space undefined}%
+ \fi
+ \else
+ \ifx\@empty#3\@empty
+ \KV@default
+ \else
+ \KV@@sp@def\@tempb{#2}%
+ \expandafter\@tempc\expandafter{\@tempb}\relax
+ \fi
+ \fi
+ \fi}
+\newcommand{\thesis@def@extra}[2][]{%
+ \expandafter\ifx\csname thesis@extra@#2\endcsname\relax
+ \def\thesis@placeholder@extra{<<extra@#2>>}%
+ \expandafter\let\csname thesis@placeholder@extra@#2\endcsname
+ \thesis@placeholder@extra
+ \def\thesis@arg{#1}%
+ \ifx\empty\thesis@arg
+ \expandafter\let\csname thesis@extra@#2\endcsname
+ \thesis@placeholder@extra
+ \else
+ \expandafter\def\csname thesis@extra@#2\endcsname{#1}%
+ \fi
+ \fi}
\long\def\thesislong#1#2{%
\csname KV@thesis@#1\endcsname{#2}}
\newif\ifthesis@loaded\thesis@loadedfalse
@@ -357,6 +463,13 @@
% See <article.gmane.org/gmane.comp.tex.luatex.user/5680>
\RequirePackage[base]{babel}}
\fi
+\ifthesis@english
+ \expandafter\expandafter\expandafter\let\expandafter\expandafter
+ \csname ifthesis@english\endcsname\csname iftrue\endcsname
+\else
+ \expandafter\expandafter\expandafter\let\expandafter\expandafter
+ \csname ifthesis@english\endcsname\csname iffalse\endcsname
+\fi
\ifx\thesis@style\empty\else
\thesis@requireStyle{\thesis@style}
\fi