diff options
Diffstat (limited to 'Master/texmf-dist/source/latex/fithesis/fithesis.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/fithesis/fithesis.dtx | 106 |
1 files changed, 61 insertions, 45 deletions
diff --git a/Master/texmf-dist/source/latex/fithesis/fithesis.dtx b/Master/texmf-dist/source/latex/fithesis/fithesis.dtx index 8274c601e39..91e3b33c21c 100644 --- a/Master/texmf-dist/source/latex/fithesis/fithesis.dtx +++ b/Master/texmf-dist/source/latex/fithesis/fithesis.dtx @@ -52,15 +52,31 @@ %<*class> \NeedsTeXFormat{LaTeX2e} % Define `\thesis@version` and store it in the `VERSION.tex` file \fi -\def\thesis@version{2015/01/05 v0.3.30 fithesis3 MU thesis class} +\def\thesis@version{2016/01/13 v0.3.31 fithesis3 MU thesis class} % {\newwrite\f\openout\f=VERSION\write\f{\thesis@version}\closeout\f} % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % -% \changes{v0.3.30}{2015/01/05}{The \cs{thesis@seasonYear} macro +% \changes{v0.3.31:3}{2016/01/13}{The +% \texttt{style/mu/fithesis-sci.sty} style file redefines +% \cs{thesis@blocks}\texttt{\discretionary{@}{@}{@}declaration} +% to include a formatted date and an author's signature field. +% The locale file \texttt{style/mu/sci/czech.def} contains a new +% string \cs{thesis@czech\discretionary{@}{@}{@}formattedDate}. +% [VN]} +% \changes{v0.3.31:2}{2016/01/07}{All trailing \%s were removed. +% Some of the inherited \textsf{fithesis2} code in the +% \texttt{fithesis-1*.clo} and \texttt{style/mu/fithesis-base.sty} +% files was refactored and reformatted. Alternative +% templates for the Faculty of Science at the Masaryk University +% in Brno are now mentioned in the respective user guide. [VN]} +% \changes{v0.3.31:1}{2016/01/07}{The redefinition of \cs{appendix} +% from the \texttt{fithesis-1*.clo}, which broke the hyperref +% links to the appendices, were removed. [VN]} +% \changes{v0.3.30} {2016/01/05}{The \cs{thesis@seasonYear} macro % has been added, which, unlike \cs{thesis@year} takes into % account the fact that January and Fabruary of the year $n$ -% still belong to the fall semester of the year $n-1$.} +% still belong to the fall semester of the year $n-1$. [VN]} % \changes{v0.3.29:3}{2015/12/09}{The \texttt{table} class option % for the style files of the Masaryk University in Brno now loads % all the required packages and changes the table measurements @@ -404,9 +420,9 @@ % \begin{macrocode} \def\thesis@basepath{fithesis/} \define@key{thesis}{basePath}{% - \ifx\thesis@empty#1\thesis@empty% + \ifx\thesis@empty#1\thesis@empty \def\thesis@basepath{}% - \else% + \else \def\thesis@basepath{#1/}% \fi} % \end{macrocode} @@ -474,7 +490,7 @@ \else% /<path> -> /<path>/ #1#2#3#4/% \fi - \else% + \else \if#1.% \ifx#2\empty% . -> ./ ./% @@ -500,7 +516,7 @@ \else \thesis@basepath#1#2#3#4/% \fi - \fi% + \fi \fi} % \end{macrocode} % \end{macro} @@ -541,10 +557,10 @@ \define@key{thesis}{gender}{% \def\thesis@male{m}% \def\thesis@arg{#1}% - \ifx\thesis@male\thesis@arg% - \thesis@womanfalse% - \else% - \thesis@womantrue% + \ifx\thesis@male\thesis@arg + \thesis@womanfalse + \else + \thesis@womantrue \fi} % \end{macrocode} % \end{macro} @@ -569,7 +585,7 @@ % \begin{macrocode} \def\thesis@parseAuthor#1{% \def\thesis@author{#1}% - \def\thesis@author@head{\expandafter\expandafter\expandafter% + \def\thesis@author@head{\expandafter\expandafter\expandafter \@gobble\thesis@head#1 \relax}% \def\thesis@author@tail{\thesis@tail#1 \relax}} \thesis@def{author}% @@ -823,7 +839,7 @@ % \begin{macrocode} \def\thesis@locale{% % Babel / polyglossia detection - \ifx\languagename\undefined% + \ifx\languagename\undefined english\else\languagename\fi} \define@key{thesis}{locale}{% \def\thesis@locale{#1}} @@ -838,15 +854,15 @@ % or not the current locale is English. % \begin{macrocode} \def\ifthesis@english{ - \expandafter\def\expandafter\@english\expandafter{\string% + \expandafter\def\expandafter\@english\expandafter{\string \english}% - \expandafter\expandafter\expandafter\def\expandafter% - \expandafter\expandafter\@locale\expandafter\expandafter% + \expandafter\expandafter\expandafter\def\expandafter + \expandafter\expandafter\@locale\expandafter\expandafter \expandafter{\expandafter\string\csname\thesis@locale\endcsname}% - \expandafter\csname\expandafter i\expandafter f\ifx\@locale% - \@english% + \expandafter\csname\expandafter i\expandafter f\ifx\@locale + \@english true% - \else% + \else false% \fi\endcsname} % \end{macrocode} @@ -881,16 +897,16 @@ % stands for day. The \textit{date} is parsed and stored using % the \DescribeMacro{\thesis@parseDate}|\thesis@parseDate| % macro within the following macros: +% \DescribeMacro{\thesis@date} +% \DescribeMacro{\thesis@year} +% \DescribeMacro{\thesis@month} +% \DescribeMacro{\thesis@day} % \begin{multicols}{2} % \begin{itemize} -% \item\DescribeMacro{\thesis@date}|\thesis@date| -- The entire -% \textit{date} -% \item\DescribeMacro{\thesis@year}|\thesis@year| -- The -% \texttt{YYYY} of \textit{date} -% \item\DescribeMacro{\thesis@month}|\thesis@month| -- The -% \texttt{MM} of \textit{date} -% \item\DescribeMacro{\thesis@day}|\thesis@day| -- The -% \texttt{DD} of \textit{date} +% \item|\thesis@date| -- The entire \textit{date} +% \item|\thesis@year| -- The \texttt{YYYY} of \textit{date} +% \item|\thesis@month| -- The \texttt{MM} of \textit{date} +% \item|\thesis@day| -- The \texttt{DD} of \textit{date} % \end{itemize} % \end{multicols} % \begin{itemize} @@ -1144,10 +1160,10 @@ \define@key{thesis}{autoLayout}[true]{% \def\@true{true}% \def\@arg{#1}% - \ifx\@true\@arg% - \thesis@autotrue% - \else% - \thesis@autofalse% + \ifx\@true\@arg + \thesis@autotrue + \else + \thesis@autofalse \fi} % \end{macrocode} % \end{macro} ^^A The nested \ifthesis@auto macro definition @@ -1216,9 +1232,9 @@ \newif\ifthesis@loaded\thesis@loadedfalse \AtEndPreamble{\thesis@load} \def\thesis@load{% - \ifthesis@loaded\else% + \ifthesis@loaded\else \thesis@loadedtrue - \makeatletter% + \makeatletter % \end{macrocode} % First, the name of the main locale file is fully expanded and % loaded using the |\thesis@requireLocale| macro. If the user @@ -1334,11 +1350,11 @@ % named package files within the \TeX\ directory structure. % \begin{macrocode} \def\thesis@requireStyle#1{% - \ifthesis@style@inheritance% + \ifthesis@style@inheritance \thesis@requireIfExists{\thesis@stylepath fithesis-base}% - \thesis@requireIfExists{\thesis@stylepath\thesis@university% + \thesis@requireIfExists{\thesis@stylepath\thesis@university /fithesis-base} - \fi% + \fi \thesis@requireIfExists{\thesis@stylepath#1}} % \end{macrocode} % \end{macro}\begin{macro}{\thesis@requireLocale} @@ -1369,11 +1385,11 @@ % \begin{macrocode} \def\thesis@requireLocale#1{% % Ignore redundant requests - \expandafter\ifx\csname thesis@#1@required\endcsname\relax% + \expandafter\ifx\csname thesis@#1@required\endcsname\relax \expandafter\def\csname thesis@#1@required\endcsname{}% \@ifpackageloaded{polyglossia}{\setotherlanguage{#1}}{} \thesis@input{\thesis@localepath fithesis-#1.def}% - \ifthesis@locale@inheritance% + \ifthesis@locale@inheritance \thesis@input{\thesis@localepath\thesis@university/% fithesis-#1.def}% \thesis@input{\thesis@localepath\thesis@university/% @@ -1409,13 +1425,13 @@ % active characters and command sequences. % \begin{macrocode} \def\thesis@lower#1{{% - \let\ea\expandafter% + \let\ea\expandafter \ea\ea\ea\ea\ea\ea\ea\ea\ea\ea\ea\ea\ea\ea\ea\lowercase\ea\ea\ea \ea\ea\ea\ea\ea\ea\ea\ea\ea\ea\ea\ea{\ea\ea\ea\ea\ea\ea\ea\ea\ea \ea\ea\ea\ea\ea\ea\@gobble\ea\ea\ea\string\ea\csname\csname the% sis@#1\endcsname\endcsname}}} \def\thesis@upper#1{{% - \let\ea\expandafter% + \let\ea\expandafter \ea\ea\ea\ea\ea\ea\ea\ea\ea\ea\ea\ea\ea\ea\ea\uppercase\ea\ea\ea \ea\ea\ea\ea\ea\ea\ea\ea\ea\ea\ea\ea{\ea\ea\ea\ea\ea\ea\ea\ea\ea \ea\ea\ea\ea\ea\ea\@gobble\ea\ea\ea\string\ea\csname\csname the% @@ -1441,16 +1457,16 @@ % \begin{macrocode} \def\thesis@head#1 #2{% \ifx\relax#2% - \expandafter\@gobbletwo% - \else% + \expandafter\@gobbletwo + \else \ #1% - \fi% + \fi \thesis@head#2}% \def\thesis@tail#1 #2{% \ifx\relax#2% #1% - \expandafter\@gobbletwo% - \fi% + \expandafter\@gobbletwo + \fi \thesis@tail#2}% % \end{macrocode} % \subsection{General purpose macros} |