Debian Codegraph @

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

raw
1 % \file{style/mu/fithesis-fsps.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 % Sports Studies at the Masaryk University in Brno. It has been
9 % prepared in accordance with the formal requirements published at
10 % the website of the faculty\footnote{See \url{https://is.muni.cz/^^A
11 % auth/do/fsps/fak_predpisy/smernice-dekana/2020-03_Smernice_pokyn^^A
12 % y_vypracovani_ZP_bc-mgr-rig.pdf}}.
13 % \begin{macrocode}
14 \NeedsTeXFormat{LaTeX2e}
15 \ProvidesPackage{fithesis/style/mu/fithesis-mu-fsps}[2024/03/06]
16 % \end{macrocode}
17 % The file defines the color scheme of the respective faculty. Note
18 % the the color definitions are in RGB, which makes the resulting
19 % files generally unsuitable for printing.
20 % \begin{macrocode}
21 \thesis@color@setup{
22 links={HTML}{93BCF5},
23 tableEmph={HTML}{A8BDE3},
24 tableOdd={HTML}{EBEFF5},
25 tableEven={HTML}{D1DAEB}}
26 % \end{macrocode}
27 % The bibliography support is enabled. The |iso-authoryear| citations
28 % are used and the bibliography is sorted by name, title, and year.
29 % \begin{macrocode}
30 \thesis@bibliography@setup{
31 style=iso-authoryear,
32 sorting=nyt}
33 \thesis@bibliography@load
34 % \end{macrocode}
35 % The file loads the following packages:
36 % \begin{itemize}
37 % \item\textsf{tikz} -- Used for dimension arithmetic.
38 % \item\textsf{geometry} -- Allows for modifications of the type
39 % area dimensions.
40 % \item\textsf{setspace} -- Allows for line height modifications.
41 % \end{itemize}
42 % In addition to this, the type area width is set to
43 % 14\,cm in accordance with the formal requirements of the faculty.
44 % \begin{macrocode}
45 \thesis@require{tikz}
46 \thesis@require{geometry}
47 \thesis@require{setspace}
48 \geometry{top=30mm,bottom=30mm,left=40mm,right=30mm,includeheadfoot}
49 % \end{macrocode}
50 % The paragraph indentation is 1.25\,cm as per the requirements of the faculty.
51 % \begin{macrocode}
52 \setlength{\parindent}{1.25cm}
53 % \end{macrocode}
54 % \changes{v0.3.49}{2018/02/11}{Removed an extraneous \cs{vskip} in
55 % the style files for the Masaryk University in Brno. [VN]}
56 % \changes{v1.0.0}{2021/02/26}{^^A
57 % The style files for the Faculty of Sports Studies
58 % at the Masaryk University in Brno no longer
59 % redefine the \cs{thesis@blocks@titlePage@footer} macro, which
60 % is no longer defined. [VN]}
61 % \begin{macro}{\thesis@blocks@bibEntry@pagetotal}
62 % The |\thesis@blocks@bibEntry@pageTotal| macro typeset the total number of
63 % pages in the thesis in the format required by the bibliographic entry.
64 % The format is just the total number of pages, as mandated by the formal
65 % requirements of the faculty.
66 % \changes{v1.1.1}{2024/03/06}{Add the \cs{thesis@blocks@bibEntry@pagetotal}
67 % command for the Masaryk University in Brno. [TV, VN]}
68 % \begin{macrocode}
69 \def\thesis@blocks@bibEntry@pagetotal{\thesis@pages}
70 % \end{macrocode}
71 % \end{macro}\begin{macro}{\thesis@blocks@frontMatter}
72 % The |\thesis@blocks@frontMatter| macro sets up the style of the
73 % front matter of the thesis. The leading is adjusted in
74 % accordance with the requirements of the faculty.
75 % \changes{v1.0.1}{2021/07/18}{^^A
76 % Display page numbers for the Faculty of Sports Studies starting
77 % with the table of contents. [VN]}
78 % \begin{macrocode}
79 \def\thesis@blocks@frontMatter{%
80 \thesis@blocks@clear
81 \pagestyle{empty}
82 \parindent 1.5em
83 \setcounter{page}{1}
84 \pagenumbering{arabic}
85 \onehalfspacing}
86 % \end{macrocode}
87 % \end{macro}\begin{macro}{\thesis@blocks@mainMatter}
88 % The |\thesis@blocks@mainMatter| macro sets up the style
89 % of the main matter of the thesis. The leading is adjusted in
90 % accordance with the requirements of the faculty. The page
91 % numbering doesn't reset at the beginning of the main thesis in
92 % accordance with the formal requirements of the faculty.
93 % \changes{v1.0.1}{2021/07/18}{^^A
94 % Display page numbers for the Faculty of Sports Studies starting
95 % with the table of contents. [VN]}
96 % \begin{macrocode}
97 \def\thesis@blocks@mainMatter{%
98 \thesis@blocks@clear
99 \pagestyle{thesisheadings}
100 \parindent 1.5em
101 \onehalfspacing}
102 % \end{macrocode}
103 % \end{macro}\begin{macro}{\thesis@blocks@bibliography}
104 % The |\thesis@blocks@bibliography| macro typesets the
105 % bibliography. The leading is adjusted in accordance
106 % with the requirements of the faculty.
107 % \begin{macrocode}
108 \def\thesis@blocks@bibliography{%
109 \ifthesis@bibliography@loaded@
110 \ifthesis@bibliography@included@\else
111 \singlespacing
112 \thesis@blocks@clear
113 {\emergencystretch=3em%
114 \printbibliography[heading=bibintoc]}%
115 \fi
116 \fi}
117 % \end{macrocode}
118 % \end{macro}\begin{macro}{\thesis@blocks@declaration}
119 % The |\thesis@blocks@declaration| macro typesets the declaration
120 % text. Unlike the generic |\thesis@blocks@declaration| macro from
121 % the \texttt{style/mu/fithesis-sci.sty} file, this definition
122 % includes the date and a blank line for the author's signature, as
123 % per the requirements of the faculty.
124 %
125 % Along with the macros required by the locale file interface, the
126 % locale files need to define the following macros:
127 % \begin{itemize}
128 % \item|\thesis@|\textit{locale}|@authorSignature| -- The
129 % label of the author's signature field
130 % \item|\thesis@|\textit{locale}|@formattedDate| -- A
131 % formatted date
132 % \end{itemize}
133 % \begin{macrocode}
134 \def\thesis@blocks@declaration{%
135 \thesis@blocks@clear
136 \begin{alwayssingle}%
137 \chapter*{\thesis@@{declarationTitle}}%
138 \thesis@declaration
139 \vskip 2cm%
140 {\let\@A\relax\newlength{\@A}
141 \settowidth{\@A}{\thesis@@{authorSignature}}
142 \setlength{\@A}{\@A+1cm}
143 \noindent\thesis@place, \thesis@@{formattedDate}\hfill
144 \begin{minipage}[t]{\@A}%
145 \centering\rule{\@A}{1pt}\\
146 \thesis@@{authorSignature}\par
147 \end{minipage}}
148 \end{alwayssingle}}
149 % \end{macrocode}
150 % \end{macro}
151 % Note that there is no direct support for the seminar paper and
152 % thesis proposal types. If you would like to change the contents
153 % of the preamble and the postamble, you should modify the
154 % |\thesis@blocks@preamble| and |\thesis@blocks@postamble| macros.
155 %
156 % All blocks within the autolayout preamble and postamble that are
157 % not defined within this file are defined in the
158 % \texttt{style/mu/fithesis-base.sty} file.
159 % \changes{v1.0.0}{2021/03/22}{Reorganised the blocks to fit the
160 % faculty's requirements. [TV]}
161 % \changes{v1.0.0}{2021/04/24}{^^A
162 % Change \cs{thesis@facultyLogo},
163 % \cs{thesis@blocks@facultyLogo@monochrome}, and
164 % \cs{thesis@blocks@facultyLogo@color} to use the new logotype
165 % of the Masaryk University in Brno in the correct size and
166 % localization. Add \cs{thesis@blocks@seal}. [VN]}
167 % \begin{macrocode}
168 \def\thesis@blocks@preamble{%
169 \thesis@blocks@coverMatter
170 \thesis@blocks@cover
171 \thesis@blocks@frontMatter
172 \thesis@blocks@titlePage
173 \thesis@blocks@seal
174 \thesis@blocks@bibEntry
175 \thesis@blocks@abstract
176 \thesis@blocks@bibEntryEn
177 \thesis@blocks@abstractEn
178 \thesis@blocks@thanks
179 % \end{macrocode}
180 % \changes{v1.0.1}{2021/07/18}{^^A
181 % Display page numbers for the Faculty of Sports Studies starting
182 % with the table of contents. [VN]}
183 % \begin{macrocode}
184 \thesis@blocks@clear
185 \pagestyle{plain}
186 \thesis@blocks@tables}
187 \def\thesis@blocks@postamble{%
188 \thesis@blocks@bibliography}
189 % \end{macrocode}