From f570d6d5fc347d9d0e6a137227e7303b00db5875 Mon Sep 17 00:00:00 2001
From: xvrabcov <xvrabcov@fi.muni.cz>
Date: Mon, 22 Mar 2021 21:48:10 +0100
Subject: [PATCH] Added redefinition for law and med titlePage

---
 style/mu/law.dtx | 38 ++++++++++++++++++++++++++++++++++++++
 style/mu/med.dtx | 38 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 76 insertions(+)

diff --git a/style/mu/law.dtx b/style/mu/law.dtx
index ddfd4c8..3fe9d1d 100644
--- a/style/mu/law.dtx
+++ b/style/mu/law.dtx
@@ -35,7 +35,10 @@
 %    \end{macrocode}
 % Each footnote is uniquely numbered across the entire document as
 % per the formal requirements of the faculty.
+% \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{chngcntr}
 \counterwithout{footnote}{chapter}
 %    \end{macrocode}
@@ -53,6 +56,41 @@
     \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
+%   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
diff --git a/style/mu/med.dtx b/style/mu/med.dtx
index d790540..09cdd5e 100644
--- a/style/mu/med.dtx
+++ b/style/mu/med.dtx
@@ -46,10 +46,13 @@
 % 16\,cm in accordance with the formal requirements of the faculty.
 % This leads to overfull lines and is against the good conscience
 % of the author of this style.
+% \changes{v1.0.0}{2021/03/22}{Added \textsf{regexpatch} package to
+%   redefine layout of titlePage. [TV]}
 %    \begin{macrocode}
 \thesis@require{tikz}
 \thesis@require{geometry}
 \thesis@require{setspace}
+	\thesis@require{regexpatch}
 \geometry{top=25mm,bottom=20mm,left=25mm,right=25mm,includeheadfoot}
 %    \end{macrocode}
 % \begin{macro}{\thesis@blocks@cover}
@@ -87,6 +90,41 @@
 %   no longer redefine the \cs{thesis@blocks@titlePage@footer}
 %   and \cs{thesis@blocks@titlePage@content} macros, which are no
 %   longer defined. [VN]}
+% \changes{v1.0.0}{2021/03/22}{Added redefinition of the titlePage
+%   layout as per the faculty requirements. Department name and
+%   programme 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@programme}%
+   \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 in
-- 
GitLab