From 3ba97917e7c0aa8197379b4ff9935c2fc7badcd6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?V=C3=ADt=20Novotn=C3=BD?= <witiko@mail.muni.cz>
Date: Mon, 15 May 2017 01:34:19 +0200
Subject: [PATCH] The style file for FSpS, MU now includes place, date, and
 signature field next to the declaration.

---
 locale/czech.dtx   | 68 ++++++++++++++++++++++------------------------
 locale/english.dtx | 33 ++++++++++++++++++++++
 locale/slovak.dtx  | 33 ++++++++++++++++++++++
 style/mu/fsps.dtx  | 32 ++++++++++++++++++++++
 style/mu/sci.dtx   |  3 +-
 5 files changed, 133 insertions(+), 36 deletions(-)

diff --git a/locale/czech.dtx b/locale/czech.dtx
index 708539d..a12760d 100644
--- a/locale/czech.dtx
+++ b/locale/czech.dtx
@@ -40,8 +40,41 @@
 \gdef\thesis@czech@fall{podzim}
 \gdef\thesis@czech@semester{%
   \thesis@{czech@\thesis@season} \thesis@seasonYear}
+\gdef\thesis@czech@formattedDate{{%
+  \thesis@day.
+  \newcount\@month\expandafter\@month\thesis@month\relax
+  \ifnum\@month=1%
+    ledna
+  \else\ifnum\@month=2%
+    Ăşnora
+  \else\ifnum\@month=3%
+    března
+  \else\ifnum\@month=4%
+    dubna
+  \else\ifnum\@month=5%
+    května
+  \else\ifnum\@month=6%
+    ÄŤervna
+  \else\ifnum\@month=7%
+    ÄŤervence
+  \else\ifnum\@month=8%
+    srpna
+  \else\ifnum\@month=9%
+    září
+  \else\ifnum\@month=10%
+    října
+  \else\ifnum\@month=11%
+    listopadu
+  \else\ifnum\@month=12%
+    prosince
+  \else
+    <<neznámý měsíc (\the\@month)>>
+  \fi\fi\fi\fi\fi\fi
+  \fi\fi\fi\fi\fi\fi
+  \thesis@year}}
 
 % Různé
+\gdef\thesis@czech@authorSignature{Podpis autora}
 \gdef\thesis@czech@fieldTitle{Obor}
 \gdef\thesis@czech@advisorTitle{Vedoucí práce}
 \gdef\thesis@czech@authorTitle{Autor}
@@ -369,41 +402,6 @@
   akuzativ} vypracoval\thesis@czech@gender@koncovka\ samo%
   statně s~využitím informačních zdrojů, které jsou v~práci
   citovány.}
-\gdef\thesis@czech@authorSignature{Podpis autora}
-
-% Časové údaje
-\gdef\thesis@czech@formattedDate{{%
-  \thesis@day.
-  \newcount\@month\expandafter\@month\thesis@month\relax
-  \ifnum\@month=1%
-    ledna
-  \else\ifnum\@month=2%
-    Ăşnora
-  \else\ifnum\@month=3%
-    března
-  \else\ifnum\@month=4%
-    dubna
-  \else\ifnum\@month=5%
-    května
-  \else\ifnum\@month=6%
-    ÄŤervna
-  \else\ifnum\@month=7%
-    ÄŤervence
-  \else\ifnum\@month=8%
-    srpna
-  \else\ifnum\@month=9%
-    září
-  \else\ifnum\@month=10%
-    října
-  \else\ifnum\@month=11%
-    listopadu
-  \else\ifnum\@month=12%
-    prosince
-  \else
-    <<neznámý měsíc (\the\@month)>>
-  \fi\fi\fi\fi\fi\fi
-  \fi\fi\fi\fi\fi\fi
-  \thesis@year}}
 
 % Bibliografický záznam
 \global\let\thesis@czech@bib@author\thesis@czech@authorTitle
diff --git a/locale/english.dtx b/locale/english.dtx
index 29e5cc1..5f29637 100644
--- a/locale/english.dtx
+++ b/locale/english.dtx
@@ -29,8 +29,41 @@
 \gdef\thesis@english@fall{Fall}
 \gdef\thesis@english@semester{%
   \thesis@{english@\thesis@season} \thesis@seasonYear}
+\gdef\thesis@english@formattedDate{{%
+  \thesis@day.
+  \newcount\@month\expandafter\@month\thesis@month\relax
+  \ifnum\@month=1%
+    January
+  \else\ifnum\@month=2%
+    February
+  \else\ifnum\@month=3%
+    March
+  \else\ifnum\@month=4%
+    April
+  \else\ifnum\@month=5%
+    May
+  \else\ifnum\@month=6%
+    June
+  \else\ifnum\@month=7%
+    July
+  \else\ifnum\@month=8%
+    August
+  \else\ifnum\@month=9%
+    September
+  \else\ifnum\@month=10%
+    October
+  \else\ifnum\@month=11%
+    November
+  \else\ifnum\@month=12%
+    December
+  \else
+    <<unknown month (\the\@month)>>
+  \fi\fi\fi\fi\fi\fi
+  \fi\fi\fi\fi\fi\fi
+  \thesis@year}}
 
 % Miscellaneous
+\gdef\thesis@english@authorSignature{Author's signature}
 \gdef\thesis@english@fieldTitle{Field of study}
 \gdef\thesis@english@advisorTitle{Advisor}
 \gdef\thesis@english@authorTitle{Author}
diff --git a/locale/slovak.dtx b/locale/slovak.dtx
index 3f70868..30c3c89 100644
--- a/locale/slovak.dtx
+++ b/locale/slovak.dtx
@@ -40,8 +40,41 @@
 \gdef\thesis@slovak@fall{jeseň}
 \gdef\thesis@slovak@semester{%
   \thesis@{slovak@\thesis@season} \thesis@seasonYear}
+\gdef\thesis@slovak@formattedDate{{%
+  \thesis@day.
+  \newcount\@month\expandafter\@month\thesis@month\relax
+  \ifnum\@month=1%
+    januára
+  \else\ifnum\@month=2%
+    februára
+  \else\ifnum\@month=3%
+    marca
+  \else\ifnum\@month=4%
+    aprĂ­la
+  \else\ifnum\@month=5%
+    mája
+  \else\ifnum\@month=6%
+    jĂşna
+  \else\ifnum\@month=7%
+    jĂşla
+  \else\ifnum\@month=8%
+    augusta
+  \else\ifnum\@month=9%
+    septembra
+  \else\ifnum\@month=10%
+    oktĂłbra
+  \else\ifnum\@month=11%
+    novembra
+  \else\ifnum\@month=12%
+    decembra
+  \else
+    <<neznámy mesiac (\the\@month)>>
+  \fi\fi\fi\fi\fi\fi
+  \fi\fi\fi\fi\fi\fi
+  \thesis@year}}
 
 % RĂ´zne
+\gdef\thesis@slovak@authorSignature{Podpis autora}
 \gdef\thesis@slovak@fieldTitle{Odbor}
 \gdef\thesis@slovak@advisorTitle{Vedúci práce}
 \gdef\thesis@slovak@authorTitle{Autor}
diff --git a/style/mu/fsps.dtx b/style/mu/fsps.dtx
index 8702c0f..a6c6ddf 100644
--- a/style/mu/fsps.dtx
+++ b/style/mu/fsps.dtx
@@ -114,6 +114,38 @@
     \fi
   \fi}
 %    \end{macrocode}
+% \end{macro}\begin{macro}{\thesis@blocks@declaration}
+% The |\thesis@blocks@declaration| macro typesets the declaration
+% text. Unlike the generic |\thesis@blocks@declaration| macro from
+% the \texttt{style/mu/fithesis-sci.sty} file, this definition
+% includes the date and a blank line for the author's signature, as
+% per the requirements of the faculty.
+%
+% Along with the macros required by the locale file interface, the
+% locale files need to define the following macros:
+% \begin{itemize}
+%   \item|\thesis@|\textit{locale}|@authorSignature| -- The
+%     label of the author's signature field
+%   \item|\thesis@|\textit{locale}|@formattedDate| -- A
+%     formatted date
+% \end{itemize}
+%    \begin{macrocode}
+\def\thesis@blocks@declaration{%
+  \thesis@blocks@clear
+  \begin{alwayssingle}%
+    \chapter*{\thesis@@{declarationTitle}}%
+    \thesis@declaration
+    \vskip 2cm%
+    {\let\@A\relax\newlength{\@A}
+      \settowidth{\@A}{\thesis@@{authorSignature}}
+      \setlength{\@A}{\@A+1cm}
+    \noindent\thesis@place, \thesis@@{formattedDate}\hfill
+    \begin{minipage}[t]{\@A}%
+      \centering\rule{\@A}{1pt}\\
+      \thesis@@{authorSignature}\par
+    \end{minipage}}
+  \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
diff --git a/style/mu/sci.dtx b/style/mu/sci.dtx
index 2ecd4da..1b79501 100644
--- a/style/mu/sci.dtx
+++ b/style/mu/sci.dtx
@@ -341,9 +341,10 @@
 % Along with the macros required by the locale file interface, the
 % locale files need to define the following macros:
 % \begin{itemize}
-%   \item\DescribeMacro{\thesis@czech@bib@title}
+%   \item\DescribeMacro{\thesis@czech@authorSignature}
 %     |\thesis@czech@authorSignature| -- The label of the author's
 %       signature field
+%   \item\DescribeMacro{\thesis@czech@formattedDate}
 %     |\thesis@czech@formattedDate| -- A formatted date
 % \end{itemize}
 %    \begin{macrocode}
-- 
GitLab