From 12f033519c1af779ef49ed26d078943100dd55d9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?V=C3=ADt=20Novotn=C3=BD?= <witiko@mail.muni.cz>
Date: Wed, 24 May 2017 12:10:22 +0200
Subject: [PATCH] `\thesis@blocks@clear` only makes pagestyle `empty`, when
 clearing page.

---
 style/mu/base.dtx | 11 +++++++++--
 style/mu/sci.dtx  |  3 +--
 2 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/style/mu/base.dtx b/style/mu/base.dtx
index 4b86699..fb26af6 100644
--- a/style/mu/base.dtx
+++ b/style/mu/base.dtx
@@ -531,12 +531,19 @@
 % The |\thesis@blocks@clear| macro clears the current page.
 % It also clears the next left-hand (even-numbered) page, when
 % double-sided typesetting is enabled.
+% \changes{v0.3.45}{2017/05/24}{\cs{thesis@blocks@clear} now only
+%   sets the pagestyle to |empty|, when there is a left-hand
+%   (even-numbered) page to clear. [VN]}
+%    \begin{macrocode}
 % \begin{macrocode}
 \def\thesis@blocks@clear{%
   \ifthesis@twoside@
     \clearpage
-    \thispagestyle{empty}%
-    \cleardoublepage
+    \ifodd\value{page}\else%
+      \thispagestyle{empty}%
+      \hbox{}%
+      \newpage
+    \fi
   \else
     \newpage
   \fi}
diff --git a/style/mu/sci.dtx b/style/mu/sci.dtx
index cccdc4d..d215366 100644
--- a/style/mu/sci.dtx
+++ b/style/mu/sci.dtx
@@ -426,6 +426,7 @@
 % formal requirements of the faculty.
 %    \begin{macrocode}
 \def\thesis@blocks@frontMatter{%
+  \thesis@blocks@clear
   \pagestyle{empty}
   \parindent 1.5em
   \setcounter{page}{1}
@@ -452,7 +453,6 @@
   \ifthesis@cover@
     \thesis@blocks@clear
     \begin{alwayssingle}
-      \thispagestyle{empty}
       \begin{center}
       {\sc\thesis@titlePage@LARGE\thesis@czech@universityName\\%
           \thesis@titlePage@Large\thesis@czech@facultyName\\[0.3em]%
@@ -489,7 +489,6 @@
 \def\thesis@blocks@titlePage{%
   \thesis@blocks@clear
   \begin{alwayssingle}
-    \thispagestyle{empty}
     % The top of the page
     \begin{adjustwidth}{-12mm}{}
       \begin{minipage}{30mm}
-- 
GitLab