Commit 300c7574 authored by Vít Novotný's avatar Vít Novotný
Browse files

The `mu/sci` style file now redefines `@blocks@declaration`.

parent 2aaa81ca
Loading
Loading
Loading
Loading
+9 −2
Original line number Diff line number Diff line
@@ -52,11 +52,18 @@
%<*class>
\NeedsTeXFormat{LaTeX2e}
% Define `\thesis@version` and store it in the `VERSION.tex` file \fi
\def\thesis@version{2016/01/07 v0.3.31:2-dev fithesis3 MU thesis class}
\def\thesis@version{2016/01/13 v0.3.31:3-dev fithesis3 MU thesis class}
% {\newwrite\f\openout\f=VERSION\write\f{\thesis@version}\closeout\f}
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% \changes{v0.3.31:3}{2016/01/13}{The
%   \texttt{style/mu/fithesis-sci.sty} style file redefines
%   \cs{thesis@blocks}\texttt{\discretionary{@}{@}{@}declaration}
%   to include a formatted date and an author's signature field.
%   The locale file \texttt{style/mu/sci/czech.def} contains a new
%   string \cs{thesis@czech\discretionary{@}{@}{@}formattedDate}.
%   [VN]}
% \changes{v0.3.31:2}{2016/01/07}{All trailing \%s were removed.
%   Some of the inherited \textsf{fithesis2} code in the
%   \texttt{fithesis-1*.clo} and \texttt{style/mu/fithesis-base.sty}
+43 −6
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@
% This is the base file of the Czech locale.\iffalse
%<*base>
% \fi\begin{macrocode}
\ProvidesFile{fithesis/locale/fithesis-czech.def}[2016/01/07]
\ProvidesFile{fithesis/locale/fithesis-czech.def}[2016/01/13]
%    \end{macrocode}
% The locale file defines all the private macros mandated by the
% locale file interface.
@@ -29,6 +29,12 @@
  oficiálního podepsaného zadání práce.}
\gdef\thesis@czech@declaration{Text prohlášení ...}

% Časové údaje
\gdef\thesis@czech@spring{jaro}
\gdef\thesis@czech@fall{podzim}
\gdef\thesis@czech@semester{%
  \thesis@{czech@\thesis@season} \thesis@seasonYear}

% Různé
\gdef\thesis@czech@fieldTitle{Obor}
\gdef\thesis@czech@advisorTitle{Vedoucí práce}
@@ -38,10 +44,6 @@
\gdef\thesis@czech@thanksTitle{Poděkování}
\gdef\thesis@czech@declarationTitle{Prohlášení}
\gdef\thesis@czech@idTitle{ID}
\gdef\thesis@czech@spring{jaro}
\gdef\thesis@czech@fall{podzim}
\gdef\thesis@czech@semester{%
  \thesis@{czech@\thesis@season} \thesis@seasonYear}
\gdef\thesis@czech@typeName{%
  \ifx\thesis@type\thesis@bachelors
    Bakalářská práce%
@@ -296,7 +298,7 @@
% \iffalse
%<*mu/sci>
% \fi\begin{macrocode}
\ProvidesFile{fithesis/locale/mu/sci/fithesis-czech.def}[2015/06/26]
\ProvidesFile{fithesis/locale/mu/sci/fithesis-czech.def}[2016/01/12]

% Zástupné texty
\gdef\thesis@czech@facultyName{Přírodovědecká fakulta}
@@ -308,6 +310,41 @@
  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
\gdef\thesis@czech@bib@title{Bibliografický záznam}
+7 −5
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@
% This is the base file of the English locale.\iffalse
%<*base>
% \fi\begin{macrocode}
\ProvidesFile{fithesis/locale/fithesis-english.def}[2016/01/07]
\ProvidesFile{fithesis/locale/fithesis-english.def}[2016/01/13]
%    \end{macrocode}
% The locale file defines all the private macros mandated by the
% locale file interface.
@@ -18,6 +18,12 @@
% Csquotes style
\gdef\thesis@english@csquotesStyle{english}

% Time strings
\gdef\thesis@english@spring{Spring}
\gdef\thesis@english@fall{Fall}
\gdef\thesis@english@semester{%
  \thesis@{english@\thesis@season} \thesis@seasonYear}

% Miscellaneous
\gdef\thesis@english@fieldTitle{Field of study}
\gdef\thesis@english@advisorTitle{Advisor}
@@ -27,10 +33,6 @@
\gdef\thesis@english@thanksTitle{Acknowledgement}
\gdef\thesis@english@declarationTitle{Declaration}
\gdef\thesis@english@idTitle{ID}
\gdef\thesis@english@spring{Spring}
\gdef\thesis@english@fall{Fall}
\gdef\thesis@english@semester{%
  \thesis@{english@\thesis@season} \thesis@seasonYear}
\gdef\thesis@english@typeName{%
  \ifx\thesis@type\thesis@bachelors
    Bachelor's Thesis%
+7 −5
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@
% This is the base file of the Slovak locale.\iffalse
%<*base>
% \fi\begin{macrocode}
\ProvidesFile{fithesis/locale/fithesis-slovak.def}[2016/01/07]
\ProvidesFile{fithesis/locale/fithesis-slovak.def}[2016/01/13]
%    \end{macrocode}
% The locale file defines all the private macros mandated by the
% locale file interface.
@@ -29,6 +29,12 @@
  oficiálneho podpísaného zadania práce.}
\gdef\thesis@slovak@declaration{Text prehlásenie ...}

% Časové údaje
\gdef\thesis@slovak@spring{jar}
\gdef\thesis@slovak@fall{jeseň}
\gdef\thesis@slovak@semester{%
  \thesis@{slovak@\thesis@season} \thesis@seasonYear}

% Rôzne
\gdef\thesis@slovak@fieldTitle{Odbor}
\gdef\thesis@slovak@advisorTitle{Vedúci práce}
@@ -38,10 +44,6 @@
\gdef\thesis@slovak@thanksTitle{Poďakovanie}
\gdef\thesis@slovak@declarationTitle{Prehlásenie}
\gdef\thesis@slovak@idTitle{ID}
\gdef\thesis@slovak@spring{jar}
\gdef\thesis@slovak@fall{jeseň}
\gdef\thesis@slovak@semester{%
  \thesis@{slovak@\thesis@season} \thesis@seasonYear}
\gdef\thesis@slovak@typeName{%
  \ifx\thesis@type\thesis@bachelors
    Bakalárska práca%
+33 −1
Original line number Diff line number Diff line
@@ -6,7 +6,7 @@
% \url{http://www.sci.muni.cz/NW/predpisy/od/OD-2014-05.pdf}}.
%    \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{fithesis/style/mu/fithesis-sci}[2016/01/07]
\ProvidesPackage{fithesis/style/mu/fithesis-sci}[2016/01/12]
%    \end{macrocode}
% The file defines the color scheme of the respective faculty.
%    \begin{macrocode}
@@ -316,6 +316,38 @@
      \thesis@place\ \thesis@year}
  \end{alwayssingle}}
%    \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\DescribeMacro{\thesis@czech@bib@title}
%     |\thesis@czech@authorSignature| -- The label of the author's
%       signature field
%     |\thesis@czech@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@czech@formattedDate\hfill
    \begin{minipage}[t]{\@A}%
      \centering\rule{\@A}{1pt}\\
      \thesis@@{authorSignature}\par
    \end{minipage}}
  \end{alwayssingle}}
%    \end{macrocode}
% \end{macro}
% All blocks within the autolayout postamble that are not defined
% within this file are defined in the