From c0f177e8421962cc28da7fcb5c893f8cc1f4048c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?V=C3=ADt=20Novotn=C3=BD?= <witiko@mail.muni.cz>
Date: Tue, 23 May 2017 23:08:43 +0200
Subject: [PATCH] =?UTF-8?q?Finished=20`abstractonsinglepage`=20in=20`mu/fi?=
 =?UTF-8?q?thesis-sci.sty`.=20The=20patch=20was=20submitted=20by=20Juraj?=
 =?UTF-8?q?=20P=C3=A1lenik.?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 style/mu/sci.dtx | 17 +++++++++++++----
 1 file changed, 13 insertions(+), 4 deletions(-)

diff --git a/style/mu/sci.dtx b/style/mu/sci.dtx
index 03047a8..1e1d2c7 100644
--- a/style/mu/sci.dtx
+++ b/style/mu/sci.dtx
@@ -31,7 +31,7 @@
 %   to be typeset on a single page as opposed to being spread
 %   across several pages.
 % \end{itemize}
-% \changes{v0.3.45}{2017/05/21}{Defined the
+% \changes{v0.3.45}{2017/05/23}{Defined the
 %   \texttt{abstractonsinglepage} option in
 %   \texttt{style/mu/fithesis-sci.sty}. The patch was submitted by
 %   Juraj Pálenik. [VN]}
@@ -511,9 +511,18 @@
       \thesis@blocks@bibEntryCs
       \thesis@blocks@bibEntry
       \thesis@blocks@bibEntryEn
-      \thesis@blocks@abstractCs
-      \thesis@blocks@abstract
-      \thesis@blocks@abstractEn
+      \ifthesis@abstractonsinglepage@
+        \begingroup
+          \thesis@blocks@clear
+          \let\cleardoublepage\relax
+          \let\clearpage\relax
+      \fi
+          \thesis@blocks@abstractCz
+          \thesis@blocks@abstract
+          \thesis@blocks@abstractEn}
+      \ifthesis@abstractonsinglepage@
+        \endgroup
+      \fi
     \thesis@blocks@assignment
     {\thesis@selectLocale{czech}%
     \thesis@blocks@thanks
-- 
GitLab