Debian Codegraph @

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

raw
1 % \file{style/mu/fithesis-econ.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 % This is the style file for the theses written at the Faculty of
5 % Economics and Administration at the Masaryk University in Brno.
6 % It has been prepared in accordance with the formal requirements
7 % \changes{v0.3.46}{2017/06/02}{The documentation now points to the
8 % 2/2017 dean's directive for the Faculty of Economics and
9 % Administration, Masaryk University, Brno. [VN]}
10 % \changes{v1.0.0}{2021/03/19}{Updated urls to show the most recent
11 % requirements and recommendations used in preparation of the
12 % template. [TV]}
13 % \changes{v1.1.0}{2022/04/19}{Updated urls to show the most recent
14 % requirements and recommendations used in preparation of the
15 % template. [VN]}
16 % published at the website of the faculty\footnote{See \url{https:^^A
17 % //is.muni.cz/auth/do/econ/uredni_deska/predpisy_ESF/smernice/sme^^A
18 % rnice/smernice_dekana/prehled/2019/smernice_c_9_2019_o_tvorbe_od^^A
19 % evzdavani_zverejnovani_a_hodnoceni_bc_zaverecnych_a/SmerniceDeka^^A
20 % na2019_c.9__2_FINALk_vydani.pdf} and \url{https://is.muni.cz/aut^^A
21 % h/do/econ/uredni_deska/predpisy_ESF/smernice/smernice_dekana/104^^A
22 % 768134/}}.
23 % \begin{macrocode}
24 \NeedsTeXFormat{LaTeX2e}
25 \ProvidesPackage{fithesis/style/mu/fithesis-mu-econ}[2024/03/06]
26 % \end{macrocode}
27 % The file defines the color scheme of the respective faculty. Note
28 % the the color definitions are in RGB, which makes the resulting
29 % files generally unsuitable for printing.
30 % \begin{macrocode}
31 \thesis@color@setup{
32 links={HTML}{F27995},
33 tableEmph={HTML}{E8B88B},
34 tableOdd={HTML}{F5ECEB},
35 tableEven={HTML}{EBD8D5}}
36 % \end{macrocode}
37 % The bibliography support is enabled. The |iso-authoryear| citations
38 % are used and the bibliography is sorted by name, title, and year.
39 % \begin{macrocode}
40 \thesis@bibliography@setup{
41 style=iso-authoryear,
42 sorting=nty}
43 \thesis@bibliography@load
44 % \end{macrocode}
45 % The file loads the following packages:
46 % \begin{itemize}
47 % \item\textsf{tikz} -- Used for dimension arithmetic.
48 % \item\textsf{geometry} -- Allows for modifications of the type
49 % area dimensions.
50 % \item\textsf{array} -- Enables |<{decl.}| and |>{decl.}|
51 % declarations in table preambles.
52 % \end{itemize}
53 % In addition to this, the type area width is set to
54 % 16\,cm in accordance with the formal requirements of the faculty.
55 % This leads to overfull lines and is against the good conscience
56 % of the author of this style.
57 % \begin{macrocode}
58 \thesis@require{tikz}
59 \thesis@require{geometry}
60 \thesis@require{array}
61 \geometry{top=25mm,bottom=20mm,left=25mm,right=25mm,includeheadfoot}
62 % \end{macrocode}
63 % \changes{v0.3.47}{2017/07/09}{Enabled the inclusion of the
64 % scanned assignment inside the digital version of the document
65 % in \texttt{style/mu/fithesis-econ.sty} in accordance with the
66 % formal requirements of the faculty. The patch was submitted by
67 % Jana Ratajská. [VN]}
68 % Enable the inclusion of the scanned assignment inside the digital
69 % version of the document.
70 % \begin{macrocode}
71 \thesis@blocks@assignment@hideIfDigital@false
72 % \end{macrocode}
73 % \changes{v0.3.49}{2018/02/11}{Removed an extraneous \cs{vskip} in
74 % the style files for the Masaryk University in Brno. [VN]}
75 % \changes{v1.0.0}{2021/02/26}{^^A
76 % The style files for the Faculty of Economics and Administration
77 % at the Masaryk University in Brno
78 % no longer redefine the \cs{thesis@blocks@titlePage@footer}
79 % and \cs{thesis@blocks@titlePage@content} macros, which are no
80 % longer defined. [VN]}
81 % \changes{v1.0.0}{2021/04/23}{^^A
82 % The style files for the Faculty of Economics and Administration
83 % no longer redefine the \cs{thesis@blocks@cover}. [TV]}
84 % \changes{v1.0.0}{2021/05/06}{Added redefinition of the conditional
85 % to exclude the study field from the title page. [TV]}
86 % \begin{macrocode}
87 \thesis@blocks@titlePage@field@false
88 % \end{macrocode}
89 % \begin{macro}{\thesis@blocks@bibEntry@pagetotal}
90 % The |\thesis@blocks@bibEntry@pageTotal| macro typeset the total number of
91 % pages in the thesis in the format required by the bibliographic entry.
92 % The format is just the total number of pages, as mandated by the formal
93 % requirements of the faculty.
94 % \changes{v1.1.1}{2024/03/06}{Add the \cs{thesis@blocks@bibEntry@pagetotal}
95 % command for the Masaryk University in Brno. [TV, VN]}
96 % \begin{macrocode}
97 \def\thesis@blocks@bibEntry@pagetotal{\thesis@pages}
98 % \end{macrocode}
99 % \end{macro}\begin{macro}{\thesis@blocks@cover}
100 % The |\thesis@blocks@cover| macro typesets the cover page. Compared
101 % to the definition within the \texttt{style/mu/base.sty} file, this
102 % macro does not include the title of the thesis, and typesets the
103 % name of the author at the bottom of the page.
104 % \changes{v1.1.0}{2022/08/17}{^^A
105 % Typeset thesis title on cover and title pages in sans serif typeface. [VN]}
106 % \begin{macrocode}
107 \thesis@xpatch\thesis@blocks@cover{%
108 \vfill
109 \begingroup
110 \thesis@colorbold@true
111 {\sffamily\bfseries\thesis@titlePage@Huge\thesis@TeXtitle\par}%
112 \endgroup
113 \vspace{1.5cm}%
114 {\sf\thesis@titlePage@Large\thesis@@{typeName}\par}%
115 \vspace{1.5cm}%
116 {\sf\thesis@titlePage@LARGE\thesis@upper{author}\par}%
117 \vfill\vfill\vfill\vfill
118 {\sf\thesis@titlePage@large\thesis@place, \thesis@@{semester}\par}%
119 }{%
120 \vfill
121 {\bf\thesis@titlePage@Huge\thesis@@{typeName}\par}%
122 \vfill
123 {\sf\thesis@titlePage@large\thesis@place
124 \ \sf\thesis@year\hfill\thesis@author\par}%
125 }
126 % \end{macrocode}
127 % \end{macro}
128 % \begin{macro}{\thesis@blocks@frontMatter}
129 % The |\thesis@blocks@frontMatter| macro sets up the style
130 % of the front matter of the thesis. The page numbering is arabic
131 % as per the formal requirements and it is hidden. In case of
132 % double-sided typesetting, the geometry is altered according to
133 % the requirements of the faculty.
134 % \begin{macrocode}
135 \def\thesis@blocks@frontMatter{%
136 \thesis@blocks@clear
137 \newgeometry{top=25mm,bottom=20mm,left=35mm,
138 right=15mm, includeheadfoot}
139 \pagestyle{empty}
140 \parindent 1.5em
141 \setcounter{page}{1}
142 \pagenumbering{arabic}}
143 % \end{macrocode}
144 % \end{macro}\begin{macro}{\thesis@blocks@mainMatter}
145 % The |\thesis@blocks@mainMatter| macro sets up the style
146 % of the main matter of the thesis. The page numbering doesn't
147 % reset at the beginning of the main matter as per the formal
148 % requirements.
149 % \begin{macrocode}
150 \def\thesis@blocks@mainMatter{%
151 \thesis@blocks@clear
152 \newgeometry{top=25mm,bottom=20mm,left=35mm,
153 right=15mm, includeheadfoot}
154 \pagestyle{thesisheadings}
155 \parindent 1.5em\relax}
156 % \end{macrocode}
157 % \end{macro}\begin{macro}{\thesis@blocks@tables}
158 % The |\thesis@blocks@tables| macro optionally typesets the
159 % |\listoftables| and |\listoffigures|.
160 % \begin{macrocode}
161 \def\thesis@blocks@tables{%
162 \thesis@blocks@lot
163 \thesis@blocks@lof}
164 % \end{macrocode}
165 % \end{macro}
166 % If the |nolot| and |nolof| options haven't been specified, the
167 % |\thesis@blocks@lot| and |\thesis@blocks@lof| macros are
168 % redefined to create an entry in the table of contents.
169 % \begin{macrocode}
170 \ifx\thesis@blocks@lot\relax\else
171 \def\thesis@blocks@lot{%
172 \thesis@blocks@clear
173 \phantomsection
174 \addcontentsline{toc}{chapter}{\listtablename}%
175 \listoftables}
176 \fi
177
178 \ifx\thesis@blocks@lof\relax\else
179 \def\thesis@blocks@lof{%
180 \thesis@blocks@clear
181 \phantomsection
182 \addcontentsline{toc}{chapter}{\listfigurename}%
183 \listoffigures}
184 \fi
185 % \end{macrocode}
186 % \begin{macro}{\thesis@blocks@declaration}
187 % The |\thesis@blocks@declaration| macro typesets the declaration
188 % text. Unlike the generic |\thesis@blocks@declaration| macro from
189 % the \texttt{style/mu/fithesis-sci.sty} file, this definition
190 % includes the date and a blank line for the author's signature, as
191 % per the requirements of the faculty.
192 % \changes{v0.3.46}{2017/06/02}{Redefined
193 % \cs{thesis@blocks@declaration} in
194 % \texttt{style/mu/fithesis-econ.sty} in accordance with the
195 % example documents. The patch was submitted by Jana Ratajská.
196 % [VN]}
197 % \begin{macrocode}
198 \def\thesis@blocks@declaration{%
199 \begin{alwayssingle}%
200 \thesis@blocks@clear
201 \leavevmode\vfill
202 % Start the new chapter without clearing any page.
203 {\let\thesis@blocks@clear\relax
204 \chapter*{\thesis@@{declarationTitle}}}%
205 \thesis@declaration
206 \vskip 2cm%
207 {\let\@A\relax\newlength{\@A}
208 \settowidth{\@A}{\thesis@@{authorSignature}}
209 \setlength{\@A}{\@A+1cm}
210 \noindent\thesis@place, \thesis@@{formattedDate}\hfill
211 \begin{minipage}[t]{\@A}%
212 \centering\rule{\@A}{1pt}\\
213 \thesis@@{authorSignature}\par
214 \end{minipage}}
215 \end{alwayssingle}}
216 % \end{macrocode}
217 % \end{macro}
218 % \changes{v0.3.46}{2017/06/02}{Redefined
219 % \cs{thesis@blocks@abstract}, \cs{thesis@blocks@abstractEn},
220 % \cs{thesis@blocks@keywords}, and \cs{thesis@blocks@keywordsEn}
221 % in \texttt{style/mu/fithesis-econ.sty} in accordance with the
222 % example documents. The patch was submitted by Jana Ratajská.
223 % [VN]}
224 % \changes{v1.0.0}{2021/03/11}{Macros for abstract and abstractEn
225 % were moved to \texttt{base.dtx}. [TV]}
226 % The |\thesis@blocks@abstract| macro typesets the
227 % abstract. This definition typesets the abstract on the same page.
228 % \begin{macro}{\thesis@blocks@keywords}
229 % The |\thesis@blocks@keywords| macro typesets the keywords. This
230 % definition typesets the keywords on the same page.
231 % \begin{macrocode}
232 \def\thesis@blocks@keywords{%
233 \begin{alwayssingle}%
234 \vskip 40\p@
235 {\let\thesis@blocks@clear\relax
236 \chapter*{\thesis@@{keywordsTitle}}%
237 \noindent\thesis@TeXkeywords}%
238 \end{alwayssingle}}
239 % \end{macrocode}
240 % \end{macro}\begin{macro}{\thesis@blocks@keywordsEn}
241 % The |\thesis@blocks@keywordsEn| macro typesets the keywords in
242 % English. If the current locale is English, the macro produces no
243 % output.
244 % \begin{macrocode}
245 \def\thesis@blocks@keywordsEn{%
246 \ifthesis@english\else
247 {\thesis@selectLocale{english}%
248 \begin{alwayssingle}%
249 \vskip 20\p@
250 {\let\thesis@blocks@clear\relax%
251 \chapter*{\thesis@english@keywordsTitle}}%
252 \noindent\thesis@TeXkeywordsEn
253 \end{alwayssingle}}%
254 \fi}
255 % \end{macrocode}
256 % \end{macro}\begin{macro}{\thesis@blocks@summary}
257 % \changes{v1.0.0}{2021/03/11}{Macro for the summary was added. [TV]}
258 % The |\thesis@blocks@summary| macro typesets the summary
259 % for doctoral theses. If the thesis type is not doctoral, the
260 % macro produces no output.
261 % \begin{macrocode}
262 \thesis@def@extra[{
263 \thesis@placeholder@extra@summary
264 }]{summary}
265
266 \def\thesis@blocks@summary{%
267 \begin{alwayssingle}%
268 \thesis@blocks@clear
269 {\let\thesis@blocks@clear\relax
270 \chapter*{\thesis@@{summaryTitle}}}%
271 \noindent\thesis@extra@summary
272 \end{alwayssingle}}
273 % \end{macrocode}
274 % \end{macro}
275 %
276 % Note that there is no direct support for the seminar paper and
277 % thesis proposal types. If you would like to change the contents
278 % of the preamble and the postamble, you should modify the
279 % |\thesis@blocks@preamble| and |\thesis@blocks@postamble| macros.
280 %
281 % All blocks within the autolayout preamble that are not defined
282 % within this file are defined in the
283 % \texttt{style/mu/fithesis-base.sty} file.
284 % \changes{v1.0.0}{2021/03/22}{Reorganised the blocks to fit the
285 % faculty's requirements. [TV]}
286 % \changes{v1.0.0}{2021/04/24}{^^A
287 % Change \cs{thesis@facultyLogo},
288 % \cs{thesis@blocks@facultyLogo@monochrome}, and
289 % \cs{thesis@blocks@facultyLogo@color} to use the new logotype
290 % of the Masaryk University in Brno in the correct size and
291 % localization. Add \cs{thesis@blocks@seal}. [VN]}
292 % \begin{macrocode}
293 \def\thesis@blocks@preamble{%
294 \thesis@blocks@coverMatter
295 \thesis@blocks@cover
296 \thesis@blocks@frontMatter
297 \thesis@blocks@titlePage
298 \thesis@blocks@seal
299 \thesis@blocks@bibEntry
300 \thesis@blocks@abstract
301 \thesis@blocks@bibEntryEn
302 \thesis@blocks@abstractEn
303 \thesis@blocks@declaration
304 \thesis@blocks@assignment
305 \thesis@blocks@thanks
306 \thesis@blocks@toc}
307 % \end{macrocode}
308 % All blocks within the autolayout postamble that are not defined
309 % within this file are defined in the \texttt{style/mu/base.sty}
310 % file.
311 % \changes{v1.0.0}{2021/03/11}{Added conditional to include summary
312 % in doctoral theses. [TV]}
313 % \begin{macrocode}
314 \def\thesis@blocks@postamble{%
315 \ifx\thesis@doctoral\thesis@type\thesis@blocks@summary\else\fi
316 \thesis@blocks@bibliography
317 \thesis@blocks@tables
318 }
319 % \end{macrocode}