Debian Codegraph @

texmf-dist/source/latex/fithesis/style/mu/med.dtx

raw
1 % \file{style/mu/fithesis-med.sty}
2 % \changes{v1.0.0}{2021/02/21}{Files were renamed after
3 % breaking changes in package loading after PR 438 in \LaTeXe. [VN]}
4 % \changes{v1.0.0}{2021/03/19}{Updated urls to show the most recent
5 % requirements and recommendations used in preparation of the
6 % template. [TV]}
7 % This is the style file for the theses written at the Faculty of
8 % Medicine at the Masaryk University in Brno. It has been prepared
9 % in accordance with the formal requirements published at the
10 % website of the faculty \footnote {See \url{https://is.muni.cz/do/^^A
11 % med/uredni_deska/pravni_normy/smernice_dekana/2020/smernice_lf_mu^^A
12 % _2_2020_-_pokyny_k_formalnim_nalezitostem_zaverecnych_bakalarskyc^^A
13 % h/Smernice_LF_MU_2-2020_-_Pokyny_k_formalnim_nalezitostem_zaverec^^A
14 % nych_bakalarskych_a_diplomovych_praci_vypracovanych_na_Lekarske_f^^A
15 % akulte_MU.pdf}}.
16 % \begin{macrocode}
17 \NeedsTeXFormat{LaTeX2e}
18 \ProvidesPackage{fithesis/style/mu/fithesis-mu-med}[2024/03/06]
19 % \end{macrocode}
20 % The file defines the color scheme of the respective faculty. Note
21 % the the color definitions are in RGB, which makes the resulting
22 % files generally unsuitable for printing.
23 % \begin{macrocode}
24 \thesis@color@setup{
25 links={HTML}{F58E76},
26 tableEmph={HTML}{FF9D85},
27 tableOdd={HTML}{FFF5F6},
28 tableEven={HTML}{FFDEDF}}
29 % \end{macrocode}
30 % The bibliography support is enabled. The |authortitle| citations
31 % are used and the bibliography is sorted by year, name, and title.
32 % \begin{macrocode}
33 \thesis@bibliography@setup{%
34 style=authortitle,
35 sorting=ynt}
36 \thesis@bibliography@load
37 % \end{macrocode}
38 % The AMA citation style is defined using |authortitle| as the basis.
39 % The following code has been adapted from
40 % \url{https://tex.stackexchange.com/a/233423/70941}.
41 % \changes{v1.0.0}{2021/03/26}{^^A
42 % The Faculty of Medicine at the Masaryk University in Brno uses the
43 % AMA citation and reference style. [VN]}
44 % \begin{macrocode}
45 \ifthesis@bibliography@loaded@
46 \DeclareNameAlias{sortname}{last-first}
47 \renewcommand*{\revsdnamepunct}{}
48 \DeclareFieldFormat[%
49 article,inbook,incollection,inproceedings,patent,thesis,unpublished]%
50 {title}{{#1\isdot}}
51 \renewbibmacro{in:}{}
52 \DeclareFieldFormat{pages}{#1}
53 \renewcommand*{\bibpagespunct}{\addcolon}
54 \DeclareFieldFormat{journaltitle}{#1\addperiod}
55 \DeclareFieldFormat{booktitle}{{#1}}
56 \DeclareFieldFormat{title}{{#1}}
57 \renewbibmacro*{journal+issuetitle}{%
58 \usebibmacro{journal}%
59 \setunit*{\addspace}%
60 \iffieldundef{series}
61 {}
62 {\newunit
63 \printfield{series}%
64 \setunit{\addspace}}%
65 \usebibmacro{issue+date}%
66 \setunit{\addsemicolon\addspace}%
67 \usebibmacro{volume+number+eid}%
68 \setunit{\addcolon\space}%
69 \usebibmacro{issue}%
70 \newunit%
71 }
72 \renewbibmacro*{issue+date}{\printfield{year}}
73 \renewcommand*{\finalnamedelim}{\multinamedelim}
74 \fi
75 % \end{macrocode}
76 % The file loads the following packages:
77 % \begin{itemize}
78 % \item\textsf{tikz} -- Used for dimension arithmetic.
79 % \item\textsf{geometry} -- Allows for modifications of the type
80 % area dimensions.
81 % \item\textsf{setspace} -- Allows for line height modifications.
82 % \end{itemize}
83 % In addition to this, the type area width is set to
84 % 16\,cm in accordance with the formal requirements of the faculty.
85 % This leads to overfull lines and is against the good conscience
86 % of the author of this style.
87 % \begin{macrocode}
88 \thesis@require{tikz}
89 \thesis@require{geometry}
90 \thesis@require{setspace}
91 \geometry{top=25mm,bottom=20mm,left=25mm,right=25mm,includeheadfoot}
92 % \end{macrocode}
93 % The style file configures the upper part of the title page headers
94 % to include the the name of the department and the study programme
95 % which are by default in the bottom part of the title page. Upon failure
96 % of the \textit{xpatchcmd}, \cs{thesis@xpatchError} is called.
97 % \changes{v0.3.49}{2018/02/11}{Removed an extraneous \cs{vskip} in
98 % the style files for the Masaryk University in Brno. [VN]}
99 % \changes{v1.0.0}{2021/02/26}{^^A
100 % The style files for the Faculty of Medicine
101 % at the Masaryk University in Brno
102 % no longer redefine the \cs{thesis@blocks@titlePage@footer}
103 % and \cs{thesis@blocks@titlePage@content} macros, which are no
104 % longer defined. [VN]}
105 % \changes{v1.0.0}{2021/03/22}{Added redefinition of the titlePage
106 % layout as per the faculty requirements. Department name and
107 % programme are in the upper part of the titlePage. [TV]}
108 % \changes{v1.0.0}{2021/04/23}{^^A
109 % The style files of the Faculty of Medicine at the Masary University
110 % in Brno no longer redefine the \cs{thesis@blocks@cover} macro.
111 % [TV]}
112 % \changes{v1.0.0}{2021/05/06}{Added conditional redefinition for the
113 % study field. [TV]}
114 % \begin{macrocode}
115 % \changes{v1.1.1}{2024/03/06}{Updated the study field redefinition to
116 % match the base definition. [TV]}
117 \thesis@blocks@titlePage@field@false
118
119 \thesis@xpatch\thesis@blocks@titlePage{%
120 {\sf\thesis@titlePage@large\thesis@@{advisorTitle}: \thesis@advisor\par}%
121 \vspace{0.75cm}%
122 \ifthesis@blocks@titlePage@department@
123 {\sf\thesis@titlePage@large\thesis@department@name\par}%
124 \fi
125 \ifthesis@blocks@titlePage@programme@
126 \vspace{0.25cm}%
127 {\sf\thesis@titlePage@large\thesis@@{bib@programme}:
128 \thesis@programme\par}%
129 \fi
130 \ifthesis@blocks@titlePage@field@
131 \ifx\thesis@field\empty\else
132 \vspace{0.25cm}%
133 {\sf\thesis@titlePage@large\thesis@@{fieldTitle}:
134 \thesis@field@name\par}%
135 \fi
136 \fi
137 \vfill
138 }{}
139
140 \thesis@xpatch\thesis@blocks@titlePage{%
141 {\sf\thesis@titlePage@large\thesis@@upper{facultyName}\par}%
142 \vfill
143 }{%
144 {\sf\thesis@titlePage@large\thesis@@upper{facultyName}\par}%
145 \vspace{0.5cm}%
146 {\sf\thesis@titlePage@large\thesis@programme\par}%
147 \vspace{0.25cm}%
148 {\sf\thesis@titlePage@large\thesis@department@name\par}%
149 \vspace{1cm}%
150 }
151 % \end{macrocode}
152 % \begin{macro}{\thesis@blocks@frontMatter}
153 % The |\thesis@blocks@frontMatter| macro sets up the style of the
154 % front matter of the thesis. The page numbering is arabic in
155 % accordance with the formal requirements and it is hidden. In case
156 % of double-sided typesetting, the geometry is altered according to
157 % the requirements of the faculty.
158 % \begin{macrocode}
159 \def\thesis@blocks@frontMatter{%
160 \thesis@blocks@clear
161 \newgeometry{top=25mm,bottom=20mm,left=35mm,
162 right=15mm, includeheadfoot}
163 \pagestyle{empty}
164 \parindent 1.5em
165 \setcounter{page}{1}
166 \pagenumbering{arabic}}
167 % \end{macrocode}
168 % \end{macro}\begin{macro}{\thesis@blocks@mainMatter}
169 % The |\thesis@blocks@mainMatter| macro sets up the style
170 % of the main matter of the thesis. The leading is adjusted in
171 % accordance with the requirements of the faculty. The page
172 % numbering doesn't reset at the beginning of the main thesis in
173 % accordance with the formal requirements of the faculty.
174 % \changes{v1.0.1}{2021/07/18}{^^A
175 % Display page numbers for the Faculty of Medicine starting with
176 % the declaration. [VN]}
177 % \begin{macrocode}
178 \def\thesis@blocks@mainMatter{%
179 \thesis@blocks@clear
180 \newgeometry{top=25mm,bottom=20mm,left=35mm,
181 right=15mm, includeheadfoot}
182 \pagestyle{thesisheadings}
183 \parindent 1.5em
184 \onehalfspacing}
185 % \end{macrocode}
186 % \end{macro}
187 % Note that there is no direct support for the seminar paper and
188 % thesis proposal types. If you would like to change the contents
189 % of the preamble and the postamble, you should modify the
190 % |\thesis@blocks@preamble| and |\thesis@blocks@postamble| macros.
191 %
192 % All blocks within the autolayout preamble and postamble that are
193 % not defined within this file are defined in the
194 % \texttt{style/mu/fithesis-base.sty} file.
195 % \changes{v1.0.0}{2021/03/22}{Reorganised the blocks to fit the
196 % faculty's requirements. [TV]}
197 % \changes{v1.0.0}{2021/04/24}{^^A
198 % Change \cs{thesis@facultyLogo},
199 % \cs{thesis@blocks@facultyLogo@monochrome}, and
200 % \cs{thesis@blocks@facultyLogo@color} to use the new logotype
201 % of the Masaryk University in Brno in the correct size and
202 % localization. Add \cs{thesis@blocks@seal}. [VN]}
203 % \begin{macrocode}
204 \def\thesis@blocks@preamble{%
205 \thesis@blocks@coverMatter
206 \thesis@blocks@cover
207 \thesis@blocks@frontMatter
208 \thesis@blocks@titlePage
209 \thesis@blocks@seal
210 % \end{macrocode}
211 % \changes{v1.0.1}{2021/07/18}{^^A
212 % Display page numbers for the Faculty of Medicine starting with
213 % the declaration. [VN]}
214 % \begin{macrocode}
215 \thesis@blocks@clear
216 \pagestyle{plain}
217 \setcounter{page}{1}
218 \thesis@blocks@declaration
219 \thesis@blocks@clear
220 \thesis@blocks@abstract
221 \thesis@blocks@keywords
222 \thesis@blocks@clear
223 \thesis@blocks@abstractEn
224 \thesis@blocks@keywordsEn
225 \thesis@blocks@thanks
226 \thesis@blocks@tables}
227 \def\thesis@blocks@postamble{%
228 \thesis@blocks@bibliography}
229 % \end{macrocode}