From c9671157e5d09c65b03bf534851849795f8a51ee Mon Sep 17 00:00:00 2001 From: xvrabcov <xvrabcov@fi.muni.cz> Date: Mon, 22 Mar 2021 22:44:19 +0100 Subject: [PATCH] Added redefinition of titlePage for law --- style/mu/law.dtx | 40 +++++++++++++++++++++++++++++++++++++--- 1 file changed, 37 insertions(+), 3 deletions(-) diff --git a/style/mu/law.dtx b/style/mu/law.dtx index c7a3d49..4efe0b2 100644 --- a/style/mu/law.dtx +++ b/style/mu/law.dtx @@ -38,7 +38,7 @@ % \changes{v1.0.0}{2021/03/22}{Added \textsf{regexpatch} package to % redefine the layout of titlePage. [TV]} % \begin{macrocode} - \thesis@require{regexpatch} +\thesis@require{xpatch} \thesis@require{chngcntr} \counterwithout{footnote}{chapter} % \end{macrocode} @@ -56,9 +56,43 @@ \thesis@titlePage@large\thesis@department@name\\\vskip 2em}} \let\thesis@blocks@titlePage@header=\thesis@blocks@cover@header % \end{macrocode} -% \changes{v1.0.0}{2021/03/22}{Added redefinition of titlePage -% layout, as per the faculty requirements the department and +% \changes{v1.0.0}{2021/03/22}{Added redefinition of the titlePage +% layout as per the faculty requirements. Department name and % field are in the upper part of the titlePage. [TV]} +% \begin{macrocode} +\xpatchcmd{\thesis@blocks@titlePage} +{{\sf\thesis@titlePage@large\thesis@@{advisorTitle}: \thesis@advisor}% + \par\vspace{0.75cm}% + \ifthesis@blocks@titlePage@department@ + {\sf\thesis@titlePage@large\thesis@department@name} + \fi + \ifthesis@blocks@titlePage@programme@ + \par\vspace{0.25cm}% + {\sf\thesis@titlePage@large\thesis@@{bib@programme}: + \thesis@programme}\par + \fi + \ifthesis@blocks@titlePage@field@ + \par\vspace{0.25cm}% + {\sf\thesis@titlePage@large\thesis@@{fieldTitle}: + \thesis@field@name}% + \fi + \par\vfill +} +{}{}{} + +\xpatchcmd{\thesis@blocks@titlePage} +{{\sf\thesis@titlePage@large\thesis@@upper{facultyName}}% + \par\vspace{1.75cm}% +} +{{\sf\thesis@titlePage@large\thesis@@upper{facultyName}}% + \par\vspace{0.75cm}% + {\sf\thesis@titlePage@large\thesis@field}% + \par\vspace{0.25cm}% + {\sf\thesis@titlePage@large\thesis@department@name} + \par\vspace{1.75cm}% +} +{}{} +% \end{macrocode} % \begin{macro}{\thesis@blocks@frontMatter} % The |\thesis@blocks@frontMatter| macro sets up the style % of the front matter of the thesis. The page numbering is arabic -- GitLab