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/03/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 |authortitle| citations
% are used and the bibliography is sorted by year, name, and title.
% \begin{macrocode}
\thesis@bibliography@setup{%
sorting=ynt}
\thesis@bibliography@load
% \end{macrocode}
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
% The AMA citation style is defined using |authortitle| as the basis.
% The following code has been adapted from
% \url{https://tex.stackexchange.com/a/233423/70941}.
% \changes{v1.0.0}{2021/03/26}{^^A
% The Faculty of Medicine at the Masaryk University in Brno uses the
% AMA citation and reference style. [VN]}
% \begin{macrocode}
\DeclareNameAlias{sortname}{last-first}
\renewcommand*{\revsdnamepunct}{}
\DeclareFieldFormat[%
article,inbook,incollection,inproceedings,patent,thesis,unpublished]%
{title}{{#1\isdot}}
\renewbibmacro{in:}{}
\DeclareFieldFormat{pages}{#1}
\renewcommand*{\bibpagespunct}{\addcolon}
\DeclareFieldFormat{journaltitle}{#1\addperiod}
\DeclareFieldFormat{booktitle}{{#1}}
\DeclareFieldFormat{title}{{#1}}
\renewbibmacro*{journal+issuetitle}{%
\usebibmacro{journal}%
\setunit*{\addspace}%
\iffieldundef{series}
{}
{\newunit
\printfield{series}%
\setunit{\addspace}}%
\usebibmacro{issue+date}%
\setunit{\addsemicolon\addspace}%
\usebibmacro{volume+number+eid}%
\setunit{\addcolon\space}%
\usebibmacro{issue}%
\newunit%
}
\renewbibmacro*{issue+date}{\printfield{year}}
\renewcommand*{\finalnamedelim}{\multinamedelim}
% \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}
% \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]}
% \changes{v1.0.0}{2021/04/23}{^^A
% The style files of the Faculty of Medicine at the Masary University
% in Brno no longer redefine the \cs{thesis@blocks@cover} macro.
% \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.
% \changes{v1.0.0}{2021/03/22}{Reorganised the blocks to fit the
% faculty's requirements. [TV]}
\thesis@blocks@coverMatter
\thesis@blocks@cover
\thesis@blocks@frontMatter
\thesis@blocks@seal
\thesis@blocks@declaration
\thesis@blocks@abstract
\thesis@blocks@keywords
\thesis@blocks@abstractEn
\thesis@blocks@keywordsEn
\thesis@blocks@thanks
\thesis@blocks@tables}
\def\thesis@blocks@postamble{%
\thesis@blocks@bibliography}