Newer
Older
% \file{style/mu/fithesis-med.sty}
% \changes{v1.0.0}{2021/02/21}{File were renamed after
% breaking changes in package loading after PR 438 in \LaTeXe. [VN]}
% \changes{v1.0.0}{2021/03/19}{Updated urls to show the most recent
% requirements and recommendations used in preparation of the
% template. [TV]}
% This is the style file for the theses written at the Faculty of
% Medicine at the Masaryk University in Brno. It has been prepared
% in accordance with the formal requirements published at the
% website of the faculty \footnote {See \url{https://is.muni.cz/do/^^A
% med/uredni_deska/pravni_normy/smernice_dekana/2020/smernice_lf_mu^^A
% _2_2020_-_pokyny_k_formalnim_nalezitostem_zaverecnych_bakalarskyc^^A
% h/Smernice_LF_MU_2-2020_-_Pokyny_k_formalnim_nalezitostem_zaverec^^A
% nych_bakalarskych_a_diplomovych_praci_vypracovanych_na_Lekarske_f^^A
% akulte_MU.pdf}}.
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{fithesis/style/mu/fithesis-mu-med}[2021/02/26]
% The file defines the color scheme of the respective faculty. Note
% the the color definitions are in RGB, which makes the resulting
% files generally unsuitable for printing.
% \begin{macrocode}
links={HTML}{F58E76},
tableEmph={HTML}{FF9D85},
tableOdd={HTML}{FFF5F6},
tableEven={HTML}{FFDEDF}}
% \end{macrocode}
% The bibliography support is enabled. The |authoryear| citations
% are used and the bibliography is sorted by year, name, and title.
% \begin{macrocode}
\thesis@bibliography@setup{%
style=iso-authoryear,
sorting=ynt}
\thesis@bibliography@load
% \end{macrocode}
% The file loads the following packages:
% \begin{itemize}
% \item\textsf{tikz} -- Used for dimension arithmetic.
% \item\textsf{geometry} -- Allows for modifications of the type
% area dimensions.
% \item\textsf{setspace} -- Allows for line height modifications.
% \end{itemize}
% In addition to this, the type area width is set to
% 16\,cm in accordance with the formal requirements of the faculty.
% This leads to overfull lines and is against the good conscience
% of the author of this style.
% \changes{v1.0.0}{2021/03/22}{Added \textsf{xpatch} package to
% redefine layout of titlePage. [TV]}
% \begin{macrocode}
\thesis@require{tikz}
\thesis@require{geometry}
\thesis@require{setspace}
\geometry{top=25mm,bottom=20mm,left=25mm,right=25mm,includeheadfoot}
% \end{macrocode}
% \begin{macro}{\thesis@blocks@cover}
% The |\thesis@blocks@cover| macro typesets the thesis
% The \cs{bfseries} command switches to the sans serif typeface
% and to the secondary color in the style files of the Masaryk
% University in Brno, Czech Republic.}
% \begin{macrocode}
\def\thesis@blocks@cover{%
\ifthesis@cover@
\thesis@blocks@clear
\begin{alwayssingle}
\colorlet{thesis@color@secondary}{black}%
\thispagestyle{empty}
\begin{center}
{\sc\thesis@titlePage@LARGE\thesis@@{universityName}\\%
\thesis@titlePage@Large\thesis@@{facultyName}\\}
\vfill
{\bf\thesis@titlePage@Huge\thesis@@{typeName}}
\vfill
{\thesis@titlePage@large\thesis@place
\ \thesis@year\hfill\thesis@author}
\end{center}
\end{alwayssingle}
\fi}
% \changes{v0.3.49}{2018/02/11}{Removed an extraneous \cs{vskip} in
% the style files for the Masaryk University in Brno. [VN]}
% \changes{v1.0.0}{2021/02/26}{^^A
% The style files for the Faculty of Medicine
% at the Masaryk University in Brno
% no longer redefine the \cs{thesis@blocks@titlePage@footer}
% and \cs{thesis@blocks@titlePage@content} macros, which are no
% longer defined. [VN]}
% \changes{v1.0.0}{2021/03/22}{Added redefinition of the titlePage
% layout as per the faculty requirements. Department name and
% programme are in the upper part of the titlePage. [TV]}
% \begin{macrocode}
\xpatchcmd{\thesis@blocks@titlePage}
{{\sf\thesis@titlePage@large\thesis@@{advisorTitle}: \thesis@advisor}%
\par\vspace{0.75cm}%
\ifthesis@blocks@titlePage@department@
{\sf\thesis@titlePage@large\thesis@department@name}
\fi
\ifthesis@blocks@titlePage@programme@
\par\vspace{0.25cm}%
{\sf\thesis@titlePage@large\thesis@@{bib@programme}:
\thesis@programme}\par
\fi
\ifthesis@blocks@titlePage@field@
\par\vspace{0.25cm}%
{\sf\thesis@titlePage@large\thesis@@{fieldTitle}:
\thesis@field@name}%
\fi
\par\vfill
}
{}{}{}
\xpatchcmd{\thesis@blocks@titlePage}
{{\sf\thesis@titlePage@large\thesis@@upper{facultyName}}%
\par\vspace{1.75cm}%
}
{{\sf\thesis@titlePage@large\thesis@@upper{facultyName}}%
\par\vspace{0.75cm}%
{\sf\thesis@titlePage@large\thesis@programme}%
\par\vspace{0.25cm}%
{\sf\thesis@titlePage@large\thesis@department@name}
\par\vspace{1.75cm}%
}
{}{}
% \begin{macro}{\thesis@blocks@frontMatter}
% The |\thesis@blocks@frontMatter| macro sets up the style of the
% front matter of the thesis. The page numbering is arabic in
% accordance with the formal requirements and it is hidden. In case
% of double-sided typesetting, the geometry is altered according to
% the requirements of the faculty.
% \begin{macrocode}
\def\thesis@blocks@frontMatter{%
\thesis@blocks@clear
\newgeometry{top=25mm,bottom=20mm,left=35mm,
right=15mm, includeheadfoot}
\pagestyle{empty}
\parindent 1.5em
\setcounter{page}{1}
\pagenumbering{roman}}
% \end{macro}\begin{macro}{\thesis@blocks@mainMatter}
% The |\thesis@blocks@mainMatter| macro sets up the style
% of the main matter of the thesis. The leading is adjusted in
% accordance with the requirements of the faculty.
% \begin{macrocode}
\def\thesis@blocks@mainMatter{%
\thesis@blocks@clear
\newgeometry{top=25mm,bottom=20mm,left=35mm,
right=15mm, includeheadfoot}
\setcounter{page}{1}
\pagenumbering{arabic}
\pagestyle{thesisheadings}
\parindent 1.5em
\onehalfspacing}
% \end{macrocode}
% 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
% |\thesis@blocks@preamble| and |\thesis@blocks@postamble| macros.
%
% All blocks within the autolayout preamble and postamble that are
% not defined within this file are defined in the
% \texttt{style/mu/fithesis-base.sty} file.
\thesis@blocks@coverMatter
\thesis@blocks@cover
\thesis@blocks@frontMatter
\thesis@blocks@titlePage
\onehalfspacing
\thesis@blocks@clearRight
\thesis@blocks@abstract
\thesis@blocks@abstractEn
\thesis@blocks@keywords
\thesis@blocks@keywordsEn
\thesis@blocks@bibEntry
\thesis@blocks@declaration
\thesis@blocks@thanks
\thesis@blocks@tables}
\def\thesis@blocks@postamble{%
\thesis@blocks@bibliography}