From e1e4358dde5386429aa9f3e10258219bab352bb7 Mon Sep 17 00:00:00 2001
From: xvrabcov <xvrabcov@fi.muni.cz>
Date: Fri, 19 Mar 2021 11:51:18 +0100
Subject: [PATCH] Added macros for summary in econ.dtx and phil.dtx

---
 style/mu/econ.dtx | 22 ++++++++++++++++++++++
 style/mu/phil.dtx | 22 ++++++++++++++++++++++
 2 files changed, 44 insertions(+)

diff --git a/style/mu/econ.dtx b/style/mu/econ.dtx
index dacc030..a5b74f2 100644
--- a/style/mu/econ.dtx
+++ b/style/mu/econ.dtx
@@ -310,7 +310,26 @@
      \thesis@@{bib@year}:          & \thesis@year       \\
    \end{thesis@newtable@old}}}
 %    \end{macrocode}
+% \end{macro}\begin{macro}{\thesis@blocks@summary}
+% \changes{v1.0.0}{2021/03/11}{Macro for the summary was added. [TV]}
+% The |\thesis@blocks@summary| macro typesets the summary
+% for doctoral theses. If the thesis type is not doctoral, the
+% macro produces no output.
+%    \begin{macrocode}
+\thesis@def@extra[{
+  \thesis@placeholder@extra@summary
+}]{summary}
+
+\def\thesis@blocks@summary{%
+  \begin{alwayssingle}%
+    \thesis@blocks@clear
+    {\let\thesis@blocks@clear\relax
+    \chapter*{\thesis@@{summaryTitle}}}%
+    \noindent\thesis@extra@summary
+  \end{alwayssingle}}
+%    \end{macrocode}
 % \end{macro}
+%
 % Note that there is no direct support for the seminar paper and
 % thesis proposal types.  If you would like to change the contents
 % of the preamble and the postamble, you should modify the
@@ -338,8 +357,11 @@
 % All blocks within the autolayout postamble that are not defined
 % within this file are defined in the \texttt{style/mu/base.sty}
 % file.
+% \changes{v1.0.0}{2021/03/11}{Added conditional to include summary
+% in doctoral theses. [TV]}
 %    \begin{macrocode}
 \def\thesis@blocks@postamble{%
+  \ifx\thesis@doctoral\thesis@type\thesis@blocks@summary\else\fi
   \thesis@blocks@bibliography
   \thesis@blocks@tables}
 %    \end{macrocode}
diff --git a/style/mu/phil.dtx b/style/mu/phil.dtx
index 792b64d..68f7331 100644
--- a/style/mu/phil.dtx
+++ b/style/mu/phil.dtx
@@ -70,7 +70,26 @@
   {\thesis@titlePage@large\\[0.3in]
     {\bf\thesis@@{advisorTitle}:} \thesis@advisor}}
 %    \end{macrocode}
+% \end{macro}\begin{macro}{\thesis@blocks@summary}
+% \changes{v1.0.0}{2021/03/11}{Macro for the summary was added. [TV]}
+% The |\thesis@blocks@summary| macro typesets the summary
+% for doctoral theses. If the thesis type is not doctoral, the
+% macro produces no output.
+%    \begin{macrocode}
+\thesis@def@extra[{
+  \thesis@placeholder@extra@summary
+}]{summary}
+
+\def\thesis@blocks@summary{%
+  \begin{alwayssingle}%
+    \thesis@blocks@clear
+    {\let\thesis@blocks@clear\relax
+    \chapter*{\thesis@@{summaryTitle}}}%
+    \noindent\thesis@extra@summary
+    \end{alwayssingle}}
+%    \end{macrocode}
 % \end{macro}
+%
 % Note that there is no direct support for the seminar paper and
 % thesis proposal types.  If you would like to change the contents
 % of the preamble and the postamble, you should modify the
@@ -88,6 +107,8 @@
 %    \end{macrocode}
 % In KISK theses, the bibliographical entry, the abstract, and the
 % keywords will be included after the cover matter.
+% \changes{v1.0.0}{2021/03/11}{Added conditional to add summary for
+% doctoral theses. [TV]}
 %    \begin{macrocode}
     \ifx\thesis@department\thesis@departments@kisk
       \thesis@blocks@bibEntry
@@ -97,6 +118,7 @@
       \thesis@blocks@keywordsEn
     \fi
     \thesis@blocks@declaration
+    \ifx\thesis@doctoral\thesis@type\thesis@blocks@summary\else\fi
     \thesis@blocks@thanks
 %    \end{macrocode}
 % In KISK theses, the lists of tables and figures will be included
-- 
GitLab