diff --git a/fithesis.dtx b/fithesis.dtx index d075cd3e66f4c6b88155b1edb24cf5cf9c442a81..df1432174575ea372224947ae659da6219c73cdc 100644 --- a/fithesis.dtx +++ b/fithesis.dtx @@ -1953,6 +1953,10 @@ % of the author's signature field % \item|\thesis@|\textit{locale}|@formattedDate| -- A formatted % date +% \changes{v1.0.0}{2021/02/26}{Lifted the \texttt{advisorSignature} +% string to the global locale file interface. [VN]} +% \item|\thesis@|\textit{locale}|@advisorSignature| -- The label +% of the author's signature field % \end{itemize} where \textit{locale} is the name of the locale. % % \def\file#1{\paragraph{The \texttt{#1} file}} diff --git a/locale/czech.dtx b/locale/czech.dtx index 884570b3e5a103add94655d0a107e02c61fdb28b..77ac621ad4a95c8bd43da425764805768ff98f9b 100644 --- a/locale/czech.dtx +++ b/locale/czech.dtx @@ -2,7 +2,7 @@ % This is the base file of the Czech locale.\iffalse %<*base> % \fi\begin{macrocode} -\ProvidesFile{fithesis/locale/fithesis-czech.def}[2017/07/09] +\ProvidesFile{fithesis/locale/fithesis-czech.def}[2021/02/26] % \end{macrocode} % The locale file defines all the private macros mandated by the % locale file interface. @@ -77,6 +77,11 @@ % RĹŻznĂ© \gdef\thesis@czech@authorSignature{% Podpis autor\ifthesis@woman ky\else a\fi} +% \end{macrocode} +% \changes{v1.0.0}{2021/02/26}{Lifted the \texttt{advisorSignature} +% string to the global locale file interface. [VN]} +% \begin{macrocode} +\gdef\thesis@czech@advisorSignature{Podpis vedoucĂho} \gdef\thesis@czech@fieldTitle{Obor} \gdef\thesis@czech@advisorTitle{VedoucĂ práce} \gdef\thesis@czech@authorTitle{Autor} @@ -347,15 +352,13 @@ % Informatics at the Masaryk University in Brno. % It replaces the \texttt{facultyName} placeholder with the % correct value and redefines the \texttt{declaration} string in -% accordance with the requirements of the faculty. The file also -% defines the \texttt{advisorSignature} string required by the -% |\thesis@blocks@titlePage| block defined within the -% \texttt{style/mu/\discretionary{}{}{}fithesis-fi.sty} -% style file. +% accordance with the requirements of the faculty. +% \changes{v1.0.0}{2021/02/26}{Lifted the \texttt{advisorSignature} +% string to the global locale file interface. [VN]} % \iffalse %<*mu/fi> % \fi\begin{macrocode} -\ProvidesFile{fithesis/locale/mu/fi/fithesis-czech.def}[2016/05/25] +\ProvidesFile{fithesis/locale/mu/fi/fithesis-czech.def}[2021/02/26] % ZástupnĂ© texty \gdef\thesis@czech@facultyName{Fakulta informatiky} @@ -377,7 +380,6 @@ s~uvedenĂm ĂşplnĂ©ho odkazu na pĹ™ĂslušnĂ˝ zdroj.} % OstatnĂ -\gdef\thesis@czech@advisorSignature{Podpis vedoucĂho} \gdef\thesis@czech@typeName@proposal{Teze disertaÄŤnĂ práce} \gdef\thesis@czech@typeName@akuzativ@proposal{Tezi disertaÄŤnĂ práce} % \end{macrocode}\iffalse diff --git a/locale/english.dtx b/locale/english.dtx index 17a49c7370bcf5050ce7dea365614f1fac1684bb..fb814347295697ce1f28df34d6a6afce046d2e71 100644 --- a/locale/english.dtx +++ b/locale/english.dtx @@ -2,7 +2,7 @@ % This is the base file of the English locale.\iffalse %<*base> % \fi\begin{macrocode} -\ProvidesFile{fithesis/locale/fithesis-english.def}[2017/09/08] +\ProvidesFile{fithesis/locale/fithesis-english.def}[2021/02/26] % \end{macrocode} % The locale file defines all the private macros mandated by the % locale file interface. @@ -65,6 +65,12 @@ % Miscellaneous \gdef\thesis@english@authorSignature{Author's signature} +% \end{macrocode} +% \changes{v1.0.0}{2021/02/26}{Lifted the \texttt{advisorSignature} +% string to the global locale file interface. [VN]} +% \begin{macrocode} +\gdef\thesis@english@advisorSignature{Signature of Thesis + \thesis@english@advisorTitle} \gdef\thesis@english@fieldTitle{Field of study} \gdef\thesis@english@advisorTitle{Advisor} \gdef\thesis@english@authorTitle{Author} @@ -291,15 +297,13 @@ % Informatics at the Masaryk University in Brno. It replaces the % \texttt{facultyName} placeholder with the correct value and % redefines the string in accordance with the requirements of the -% faculty. The file also defines the \texttt{advisorSignature} -% string required by the |\thesis@blocks@titlePage| block defined -% within the -% \texttt{style/mu/\discretionary{}{}{}fithesis-fi.sty} -% style file. +% faculty. +% \changes{v1.0.0}{2021/02/26}{Lifted the \texttt{advisorSignature} +% string to the global locale file interface. [VN]} % \iffalse %<*mu/fi> % \fi\begin{macrocode} -\ProvidesFile{fithesis/locale/mu/fi/fithesis-english.def}[2016/05/25] +\ProvidesFile{fithesis/locale/mu/fi/fithesis-english.def}[2021/02/26] % Placeholders \gdef\thesis@english@facultyName{Faculty of Informatics} @@ -317,8 +321,6 @@ \fi} % Others -\gdef\thesis@english@advisorSignature{Signature of Thesis - \thesis@english@advisorTitle} \gdef\thesis@english@typeName@proposal{Ph.D. Thesis Proposal} % \end{macrocode}\iffalse %</mu/fi> diff --git a/locale/slovak.dtx b/locale/slovak.dtx index 2a3f5c7aca59fcde7ced1c01528eec8e0f0f5054..b817a9beee0865906bbc1efef6d219aeae723b9e 100644 --- a/locale/slovak.dtx +++ b/locale/slovak.dtx @@ -2,7 +2,7 @@ % This is the base file of the Slovak locale.\iffalse %<*base> % \fi\begin{macrocode} -\ProvidesFile{fithesis/locale/fithesis-slovak.def}[2017/07/09] +\ProvidesFile{fithesis/locale/fithesis-slovak.def}[2021/02/26] % \end{macrocode} % The locale file defines all the private macros mandated by the % locale file interface. @@ -77,6 +77,11 @@ % RĂ´zne \gdef\thesis@slovak@authorSignature{% Podpis autor\ifthesis@woman ky\else a\fi} +% \end{macrocode} +% \changes{v1.0.0}{2021/02/26}{Lifted the \texttt{advisorSignature} +% string to the global locale file interface. [VN]} +% \begin{macrocode} +\gdef\thesis@slovak@advisorSignature{Podpis vedĂşceho} \gdef\thesis@slovak@fieldTitle{Odbor} \gdef\thesis@slovak@advisorTitle{VedĂşci práce} \gdef\thesis@slovak@authorTitle{Autor} @@ -355,15 +360,13 @@ % Informatics at the Masaryk University in Brno. It replaces the % \texttt{facultyName} placeholder with the correct value and % redefines the \texttt{declaration} string in accordance with the -% requirements of the faculty. The file also defines the -% \texttt{advisorSignature} string required by the -% |\thesis@blocks@titlePage| block defined within the -% \texttt{style/mu/\discretionary{}{}{}fithesis-fi.sty} -% style file. +% requirements of the faculty. +% \changes{v1.0.0}{2021/02/26}{Lifted the \texttt{advisorSignature} +% string to the global locale file interface. [VN]} % \iffalse %<*mu/fi> % \fi\begin{macrocode} -\ProvidesFile{fithesis/locale/mu/fi/fithesis-slovak.def}[2016/05/25] +\ProvidesFile{fithesis/locale/mu/fi/fithesis-slovak.def}[2021/02/26] % ZástupnĂ© texty \gdef\thesis@slovak@facultyName{Fakulta informatiky} @@ -385,7 +388,6 @@ s~uvedenĂm ĂşplnĂ©ho odkazu na prĂslušnĂ˝ zdroj.} % RĂ´zne -\gdef\thesis@slovak@advisorSignature{Podpis vedĂşceho} \gdef\thesis@slovak@typeName@proposal{TĂ©zy dizertaÄŤnej práce} \gdef\thesis@slovak@typeName@akuzativ@proposal{TĂ©zy dizertaÄŤnej práce} % \end{macrocode}\iffalse diff --git a/style/mu/base.dtx b/style/mu/base.dtx index 77c88a9a3acd6369258138ee1d8e0bfdcc3b713d..f4d00e458d13673e972600ff453e8b33a3b027da 100644 --- a/style/mu/base.dtx +++ b/style/mu/base.dtx @@ -798,6 +798,27 @@ {\thesis@titlePage@large\thesis@place, \thesis@@{semester}}} % \end{macrocode} % \end{macro} +% \begin{macro}{\thesis@blocks@advisorSignature} +% The |\thesis@blocks@advisorSignature| macro produces space for +% the thesis advisor's signature. +% \changes{v1.0.0}{2021/02/26}{^^A +% The \cs{thesis@blocks@advisorSignature} macro is now defined +% for styles of all faculties at the Masaryk University in Brno, +% not just for the Faculty of Informatics, and is automatically +% used in the \cs{thesis@blocks@titlePage} macro for rigorous +% theses and PhD thesis proposals. [VN]} +% \begin{macrocode} +\def\thesis@blocks@advisorSignature{% + \let\@A\relax\newlength{\@A} + \settowidth{\@A}{\thesis@@{advisorSignature}} + \setlength{\@A}{\@A+1cm} + \hfill\raisebox{-0.5em}{\parbox{\@A}{ + \centering + \rule{\@A}{1pt}\\ + \thesis@@{advisorSignature} + }}}% +% \end{macrocode} +% \end{macro} % \begin{macro}{\thesis@blocks@titlePage} % The |\thesis@blocks@titlePage| macro typesets the thesis % title page. @@ -879,7 +900,22 @@ {\sf\thesis@titlePage@large\thesis@@{fieldTitle}: \thesis@field@name}% \fi \par\vfill - {\sf\thesis@titlePage@large\thesis@place, \thesis@@{semester}}% + {\sf\thesis@titlePage@large\thesis@place, \thesis@@{semester}% +% \end{macrocode} +% If this is a rigorous thesis or a PhD thesis proposal, create +% space for the advisor's signature. +% \changes{v1.0.0}{2021/02/26}{^^A +% The \cs{thesis@blocks@advisorSignature} macro is now defined +% for styles of all faculties at the Masaryk University in Brno, +% not just for the Faculty of Informatics, and is automatically +% used in the \cs{thesis@blocks@titlePage} macro for rigorous +% theses and PhD thesis proposals. [VN]} +% \begin{macrocode} + \ifx\thesis@type\thesis@rigorous + \thesis@blocks@advisorSignature + \else\ifx\thesis@type\thesis@proposal + \thesis@blocks@advisorSignature + \fi\fi}% \end{center}% \end{alwayssingle}} % \end{macrocode} diff --git a/style/mu/fi.dtx b/style/mu/fi.dtx index 4d14dc45f0538c707157f2b6f8c9286c63a0814e..5fd3e7c3de6e2ea54ec537ca106ce33b953d0ae7 100644 --- a/style/mu/fi.dtx +++ b/style/mu/fi.dtx @@ -10,7 +10,7 @@ % \url{http://www.fi.muni.cz/docs/BP_DP_na_FI.pdf}.}. % \begin{macrocode} \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{fithesis/style/mu/fithesis-mu-fi}[2021/02/21] +\ProvidesPackage{fithesis/style/mu/fithesis-mu-fi}[2021/02/26] % \end{macrocode} % The file defines the color scheme of the respective faculty. Note % the the color definitions are in RGB, which makes the resulting @@ -40,51 +40,15 @@ \thesis@blocks@assignment@false \fi\fi % \end{macrocode} -% \begin{macro}{\thesis@blocks@titlePage} -% The style file redefines the cover and title page footers to -% include the thesis advisor's name and signature in case of a -% rigorous thesis. Along with the macros required by the -% locale file interface, the locale files need to define the -% following strings: -% \begin{itemize} -% \item\texttt{advisorSignature} -- The label of the advisor -% signature field typeset in the case of rigorous theses -% \end{itemize} -% \begin{macrocode} -\def\thesis@blocks@advisor{% - {\thesis@titlePage@large\\[0.3in] - {\bf\thesis@@{advisorTitle}:} \thesis@advisor}} -\def\thesis@blocks@titlePage@content{% - {\thesis@titlePage@Huge\bf\thesis@TeXtitle\par\vfil}\vskip 0.8in - {\thesis@titlePage@large\sc\thesis@@{typeName}\\[0.3in]} - {\thesis@titlePage@Large\bf\thesis@author} - % If this is a rigorous thesis or a PhD thesis proposal, - % typeset the name of the thesis advisor. - \ifx\thesis@type\thesis@rigorous - \thesis@blocks@advisor - \else\ifx\thesis@type\thesis@proposal - \thesis@blocks@advisor - \fi\fi}% -\def\thesis@blocks@advisorSignature{% - \let\@A\relax\newlength{\@A} - \settowidth{\@A}{\thesis@@{advisorSignature}} - \setlength{\@A}{\@A+1cm} - \hfill\raisebox{-0.5em}{\parbox{\@A}{ - \centering - \rule{\@A}{1pt}\\ - \thesis@@{advisorSignature} - }}}% -\def\thesis@blocks@titlePage@footer{% - {\thesis@titlePage@large\thesis@place, \thesis@@{semester} - % If this is a rigorous thesis or a PhD thesis proposal, - % create space for the advisor's signature. - \ifx\thesis@type\thesis@rigorous - \thesis@blocks@advisorSignature - \else\ifx\thesis@type\thesis@proposal - \thesis@blocks@advisorSignature - \fi\fi}} -% \end{macrocode} -% \end{macro}\begin{macro}{\thesis@blocks@declaration} +% \changes{v1.0.0}{2021/02/26}{^^A +% The \cs{thesis@blocks@advisorSignature} macro is now defined +% for styles of all faculties at the Masaryk University in Brno, +% not just for the Faculty of Informatics, and is automatically +% used in the \cs{thesis@blocks@titlePage} macro for rigorous +% theses and PhD thesis proposals. [VN]} +% \changes{v1.0.0}{2021/02/26}{Lifted the \texttt{advisorSignature} +% string to the global locale file interface. [VN]} +% \begin{macro}{\thesis@blocks@declaration} % The |\thesis@blocks@declaration| macro typesets the % declaration text. Compared to the definition within the % \texttt{style/mu/base.sty} file, this macro also