| 1 |
% \iffalse\begin{macrocode} |
| 2 |
%<*driver> |
| 3 |
|
| 4 |
\documentclass{ltxdoc} |
| 5 |
\usepackage[utf8]{inputenc} % this file uses UTF-8 |
| 6 |
\usepackage[english]{babel} |
| 7 |
\usepackage{tgpagella} |
| 8 |
\usepackage{tabularx} |
| 9 |
\usepackage{hologo} |
| 10 |
\usepackage{booktabs} |
| 11 |
\usepackage[scaled=0.86]{berasans} |
| 12 |
\usepackage[scaled=1.03]{inconsolata} |
| 13 |
\usepackage[resetfonts]{cmap} |
| 14 |
\usepackage[T1]{fontenc} % use 8bit fonts |
| 15 |
\emergencystretch 2dd |
| 16 |
\usepackage{hypdoc} |
| 17 |
\usepackage{microtype} |
| 18 |
\usepackage{ragged2e} |
| 19 |
\usepackage{paralist} |
| 20 |
\usepackage{multicol} |
| 21 |
|
| 22 |
|
| 23 |
% Making paragraphs numbered |
| 24 |
\makeatletter |
| 25 |
\renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}% |
| 26 |
{-2.5ex\@plus -1ex \@minus -.25ex}% |
| 27 |
{1.25ex \@plus .25ex}% |
| 28 |
{\normalfont\normalsize\bfseries}} |
| 29 |
\makeatother |
| 30 |
\setcounter{secnumdepth}{4} % how many sectioning levels to assign |
| 31 |
\setcounter{tocdepth}{4} % how many sectioning levels to show |
| 32 |
|
| 33 |
% ltxdoc class options |
| 34 |
\CodelineIndex |
| 35 |
\MakeShortVerb{|} |
| 36 |
\EnableCrossrefs |
| 37 |
\DoNotIndex{} |
| 38 |
\makeatletter |
| 39 |
\c@IndexColumns=2 |
| 40 |
\c@GlossaryColumns=2 |
| 41 |
\makeatother |
| 42 |
|
| 43 |
\begin{document} |
| 44 |
\RecordChanges |
| 45 |
\DocInput{fithesis.dtx} |
| 46 |
\PrintIndex |
| 47 |
\RaggedRight |
| 48 |
\PrintChanges |
| 49 |
\end{document} |
| 50 |
|
| 51 |
%</driver> |
| 52 |
% \end{macrocode} |
| 53 |
%<*class> |
| 54 |
\NeedsTeXFormat{LaTeX2e} |
| 55 |
% Define `\thesis@version` and store it in the `VERSION.tex` file \fi |
| 56 |
{\def\thesis@versiondef#1#2{ |
| 57 |
\gdef\thesis@version@number{#1} |
| 58 |
\gdef\thesis@version@date{#2} |
| 59 |
\gdef\thesis@version{#2 #1 fithesis4 MU thesis class}} |
| 60 |
\thesis@versiondef{v1.1.2}{2025/08/11}} |
| 61 |
% {\newwrite\f\openout\f=VERSION\write\f{\thesis@version}\closeout\f} |
| 62 |
% |
| 63 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 64 |
% |
| 65 |
% ^^A Since 0.3.45, all changes are documented at the change sites. |
| 66 |
% \changes{v0.3.44} {2017/05/18}{Fixed the color in the logo of FI |
| 67 |
% MU. [VN]} |
| 68 |
% \changes{v0.3.44} {2017/05/18}{The captions in the examples for |
| 69 |
% MU are now above tables. [VN]} |
| 70 |
% \changes{v0.3.44} {2017/05/18}{The style file for FSpS, MU now |
| 71 |
% uses a 14 cm wide type area. [VN]} |
| 72 |
% \changes{v0.3.44} {2017/05/18}{The style file for FSpS, MU now |
| 73 |
% uses 1.5 spacing outside bibliography. [VN]} |
| 74 |
% \changes{v0.3.44} {2017/05/18}{The style file for FSpS, MU now |
| 75 |
% uses different title page layout. [VN]} |
| 76 |
% \changes{v0.3.44} {2017/05/18}{The style file for FSpS, MU now |
| 77 |
% uses different declaration text. [VN]} |
| 78 |
% \changes{v0.3.44} {2017/05/18}{Fixed wrong / missing |
| 79 |
% non-breaking spaces in Czech / Slovak localization. [VN]} |
| 80 |
% \changes{v0.3.44} {2017/05/18}{The style file for FSpS, MU now |
| 81 |
% includes place, date, and signature field next to the |
| 82 |
% declaration. [VN]} |
| 83 |
% \changes{v0.3.44} {2017/05/18}{Added an additional hyphenation |
| 84 |
% hint to the example document. [VN]} |
| 85 |
% \changes{v0.3.44} {2017/05/18}{The style file for FSpS, MU now |
| 86 |
% complies with updated requirements. [VN]} |
| 87 |
% \changes{v0.3.43} {2017/05/07}{Added a mention about the thesis |
| 88 |
% proposal thesis type to the user guide for the Faculty of |
| 89 |
% Informatics at the Masaryk University, Brno and fixed a bad |
| 90 |
% citation in the user guides for the Masaryk University, Brno. |
| 91 |
% Added an extra english option for babel in the examples for the |
| 92 |
% Masaryk University, Brno. \cs{thesis@blocks@thanks} no longer |
| 93 |
% gobbles leading spaces of \cs{thesis@thanks}. A fix in the |
| 94 |
% Slovak locale by \texttt{kiraacorsac} at GitHub. [VN]} |
| 95 |
% \changes{v0.3.42} {2017/01/28}{Documented that all color |
| 96 |
% settings are done in the \textsc{rgb} colorspace, which makes |
| 97 |
% the color option suitable mostly for the digital versions of |
| 98 |
% fithesis documents rather than for printing. Added the thesis |
| 99 |
% proposal thesis type. [VN]} |
| 100 |
% \changes{v0.3.41} {2016/08/17}{Removed the arbitrary limitation |
| 101 |
% of \cs{thesissetup}, which prevented it from accepting |
| 102 |
% multi-paragraph values. The \cs{thesislong} macro is therefore |
| 103 |
% no longer necessary, but kept around for backwards |
| 104 |
% compatibility. [VN]} |
| 105 |
% \changes{v0.3.40} {2016/06/06}{Fixed \cs{thesis@pages} not |
| 106 |
% working properly when the \texttt{autoLayout} key is set to |
| 107 |
% \texttt{false}. Added a section on the \textsf{markdown} |
| 108 |
% package to the example documents of the Masaryk University in |
| 109 |
% Brno. Added the \cs{ifthesis@blocks@assignment@hideIfDigital@} |
| 110 |
% conditional to the \texttt{style/mu/fithesis-base.sty} style |
| 111 |
% file. [VN]} |
| 112 |
% \changes{v0.3.39:2}{2016/05/26}{The \texttt{assignment} key no |
| 113 |
% longer affects the page numbers and takes into account the |
| 114 |
% \texttt{digital} and \texttt{printed} class options in the |
| 115 |
% style files of the Masaryk University in Brno. [VN]} |
| 116 |
% \changes{v0.3.39:1}{2016/05/26}{The |
| 117 |
% \cs{thesis@blocks@bibliography} now uses an emergency stretch |
| 118 |
% of 3\,em in the style files of the Masaryk University in Brno. |
| 119 |
% [VN]} |
| 120 |
% \changes{v0.3.38:2}{2016/05/15}{Fixed \cs{thesis@pages} not |
| 121 |
% taking \cs{thesis@postamble} into account. Fixed the chapter |
| 122 |
% number being printed regardless of secnumdepth by the style |
| 123 |
% files of the Masaryk University in Brno. Fixed |
| 124 |
% \cs{thesis@blocks@assignment} being typeset in Czech only |
| 125 |
% by the style file of the Faculty of Science at the Masaryk |
| 126 |
% University in Brno. [VN]} |
| 127 |
% \changes{v0.3.38:1}{2016/04/18}{The \texttt{bib} key was added |
| 128 |
% on the \textsf{fithesis3} class level and is supported by the |
| 129 |
% style files of the Masaryk University in Brno. [VN]} |
| 130 |
% \changes{v0.3.37} {2016/04/12}{The \cs{tableofcontents} in the |
| 131 |
% style files of the Masaryk University in Brno now correctly |
| 132 |
% handles all tocdepth values. The expansion of \cs{part} also no |
| 133 |
% longer results in a \textsf{hyperref}-related error in the |
| 134 |
% style files of the Masaryk University in Brno. [VN]} |
| 135 |
% \changes{v0.3.36} {2016/03/26}{The \cs{thesis@load} macro has |
| 136 |
% been lifted to the public API as \cs{thesisload}. [VN]} |
| 137 |
% \changes{v0.3.35:3}{2016/03/23}{Fixed \cs{l@}\textit{locale} |
| 138 |
% being possibly undefined in a LuaLaTeX run. [VN]} |
| 139 |
% \changes{v0.3.35:2}{2016/03/22}{Added support for seminar papers |
| 140 |
% on the \textsf{fithesis3} class level. The style files for the |
| 141 |
% faculties of the Masaryk University in Brno do not provide any |
| 142 |
% special handling of this thesis type yet. [VN]} |
| 143 |
% \changes{v0.3.35:1}{2016/03/22}{Added support for the Division of |
| 144 |
% Information and Library Studies of the Faculty of Arts at the |
| 145 |
% Masaryk University in Brno. This support is enabled by |
| 146 |
% specifying \cs{thesis@department} to be \texttt{kisk}. [VN]} |
| 147 |
% \changes{v0.3.34} {2016/02/24}{Added visual tests of output |
| 148 |
% PDFs. The \texttt{test/} directory is now also uses the |
| 149 |
% \textit{university}\texttt{/}\textit{faculty} path scheme |
| 150 |
% employed by the rest of the package. [VN]} |
| 151 |
% \changes{v0.3.33} {2016/02/19}{Added \cs{thesis@patch}. [VN]} |
| 152 |
% \changes{v0.3.32} {2016/02/18}{Fixed a regression from |
| 153 |
% v0.3.27:2 -- The margins in \cs{thesis@blocks@mainMatter} were |
| 154 |
% corrected in the style files of the Faculty of Economics and |
| 155 |
% Administration and the Faculty of Medicine at the Masaryk |
| 156 |
% University in Brno. [VN]} |
| 157 |
% \changes{v0.3.31:3}{2016/01/13}{The |
| 158 |
% \texttt{style/mu/fithesis-sci.sty} style file redefines |
| 159 |
% \cs{thesis@blocks}\texttt{\discretionary{@}{@}{@}declaration} |
| 160 |
% to include a formatted date and an author's signature field. |
| 161 |
% The locale file \texttt{style/mu/sci/czech.def} contains a new |
| 162 |
% string \cs{thesis@czech\discretionary{@}{@}{@}formattedDate}. |
| 163 |
% [VN]} |
| 164 |
% \changes{v0.3.31:2}{2016/01/07}{All trailing \texttt{\%}s were |
| 165 |
% removed. Some of the inherited \textsf{fithesis2} code in the |
| 166 |
% \texttt{style/mu/fithesis-1*.clo} and |
| 167 |
% \texttt{style/mu/fithesis-base.sty} files was refactored and |
| 168 |
% reformatted. Alternative templates for the Faculty of Science |
| 169 |
% at the Masaryk University in Brno are now mentioned in the |
| 170 |
% respective user guide. [VN]} |
| 171 |
% \changes{v0.3.31:1}{2016/01/07}{The redefinitions of |
| 172 |
% \cs{appendix} from the |
| 173 |
% \texttt{style/mu\discretionary{/}{/}{/}fithesis-1*.clo} files, |
| 174 |
% which broke hyperref links to appendices, were removed. [VN]} |
| 175 |
% \changes{v0.3.30} {2016/01/05}{The \cs{thesis@seasonYear} macro |
| 176 |
% has been added, which, unlike \cs{thesis@year} takes into |
| 177 |
% account the fact that January and Fabruary of the year $n$ |
| 178 |
% still belong to the fall semester of the year $n-1$. [VN]} |
| 179 |
% \changes{v0.3.29:3}{2015/12/09}{The \texttt{table} class option |
| 180 |
% for the style files of the Masaryk University in Brno now loads |
| 181 |
% all the required packages and changes the table measurements |
| 182 |
% even when the \texttt{color} option is not specified. [VN]} |
| 183 |
% \changes{v0.3.29:2}{2015/12/09}{The \texttt{printed} and |
| 184 |
% \texttt{digital} class options, which set all the options |
| 185 |
% appropriate for either the printed or the digital versions of a |
| 186 |
% document, are now available for the style files of the Masaryk |
| 187 |
% University in Brno. [VN]} |
| 188 |
% \changes{v0.3.29:1}{2015/12/08}{The initial pages of the styles |
| 189 |
% of the Masaryk University in Brno are no longer page-numbered, |
| 190 |
% so that hyperref links work correctly. [VN]} |
| 191 |
% \changes{v0.3.28:2}{2015/12/03}{If the thesis locale and the |
| 192 |
% document locale is the same (the default behaviour), the |
| 193 |
% \cs{thesis@selectLocale} macro is applied globally at the |
| 194 |
% beginning of the document. As a result, the \textsf{csquotes} |
| 195 |
% style is automatically set for the entire document. [VN]} |
| 196 |
% \changes{v0.3.28:1}{2015/12/02}{The \texttt{draft} option has no |
| 197 |
% longer an effect on the \textsf{microtype} package. The |
| 198 |
% \cs{thesis@require} command now also takes an optional |
| 199 |
% argument and the \cs{thesis@require\-WithOption} command has |
| 200 |
% become \cs{thesis@require\-IfExists}. [VN]} |
| 201 |
% \changes{v0.3.27:5}{2015/11/30}{The PDF bookmarks are no longer |
| 202 |
% garbled, when the \Hologo{LuaTeX} engine is used. [VN]} |
| 203 |
% \changes{v0.3.27:4}{2015/11/30}{\cs{thesis@english@declaration} |
| 204 |
% now uses the correct idiom (by one's own $\to$ on |
| 205 |
% one's own). [VN]} |
| 206 |
% \changes{v0.3.27:3}{2015/11/29}{As a preparation for the future |
| 207 |
% inclusion of bibliography support, the \textsf{csquotes} |
| 208 |
% package is loaded, \texttt{@csquotesStyle} is a new part of |
| 209 |
% the locale interface that sets the \textsf{csquotes} style |
| 210 |
% of a locale, and \cs{thesis@selectLocale} now switches the |
| 211 |
% \textsf{csquotes} style. [VN]} |
| 212 |
% \changes{v0.3.27:2}{2015/11/29}{\cs{thesis@selectLocale} is no |
| 213 |
% longer performed globally for the entire document during |
| 214 |
% \cs{thesis@load} (effectively overriding the user's hyphenation |
| 215 |
% settings, if Babel's or Polyglossia's \cs{languagename} |
| 216 |
% differs from \cs{thesis@locale}). Instead, \cs{thesis@preamble} |
| 217 |
% and \texttt{@postamble} now locally switch the locale and |
| 218 |
% expand \cs{thesis@blocks@preamble} and \texttt{@postamble}, |
| 219 |
% which are the new redefinables. Since this breaks the behaviour |
| 220 |
% of \cs{thesis@blocks@mainMatter}, whose effects would also be |
| 221 |
% local, \texttt{@mainMatter} is now executed directly by |
| 222 |
% \cs{thesis@preamble} after closing the group and becomes a new |
| 223 |
% part of the interface between the class and the style files. |
| 224 |
% [VN]} |
| 225 |
% \changes{v0.3.27:1}{2015/11/29}{Fixed a typo in the guide. |
| 226 |
% Added a compatibility layer for \cs{title}, \cs{author}, and |
| 227 |
% \cs{maketitle}. Minor changes of the documentation. [VN]} |
| 228 |
% \changes{v0.3.26} {2015/11/21}{Updated the example documents and |
| 229 |
% the user guide. Fixed a typo in the description of |
| 230 |
% \cs{thesis@season}. [VN]} |
| 231 |
% \changes{v0.3.25} {2015/11/20}{The example documents from the |
| 232 |
% \texttt{example} directory are now a part of the CTAN archive. |
| 233 |
% Additional information were inserted into the guide and to the |
| 234 |
% example files. [VN]} |
| 235 |
% \changes{v0.3.24} {2015/11/17}{Added the \cs{thesis@backend} |
| 236 |
% tunable. The hyphenation pattern switching now uses |
| 237 |
% \textsf{polyglossia} instead of crude \cs{language} switching |
| 238 |
% wherenever possible. Added the opt-out \texttt{microtype} |
| 239 |
% class option, which loads the microtypographic extension. The |
| 240 |
% \cs{thesis@}\textit{locale}\texttt{@summer} and |
| 241 |
% \texttt{@winter} locale macros were renamed to \texttt{@spring} |
| 242 |
% and \texttt{@fall}. The \cs{thesis@parseDate} now uses more |
| 243 |
% realistic month ranges to set \cs{thesis@season} and |
| 244 |
% \cs{thesis@academicYear}. Removed the extraneous indent in the |
| 245 |
% \cs{thesis@blocks@declaration} macro definition within the |
| 246 |
% \texttt{style/mu/fithesis-fi.sty} style file. \cs{paragraph}s |
| 247 |
% are not included in the table of contents by default. The |
| 248 |
% \texttt{table} class option now supports the \texttt{tabu} |
| 249 |
% environment. The list of tables and the list of figures now |
| 250 |
% have an entry in the table of contents for the |
| 251 |
% \texttt{style/mu/fithesis-econ.sty} style file. [VN]} |
| 252 |
% \changes{v0.3.23} {2015/10/14}{Fixed a typo in the Slovak |
| 253 |
% locale. [VN]} |
| 254 |
% \changes{v0.3.22} {2015/10/09}{Updated the link colors in the |
| 255 |
% style of the Faculty of Economics and Administration at the |
| 256 |
% Masaryk University in Brno and fixed the title page leading |
| 257 |
% in the style of the Faculty of Science at the Masaryk |
| 258 |
% University in Brno. [VN]} |
| 259 |
% \changes{v0.3.21} {2015/08/26}{Fixed an invalid font name. [VN]} |
| 260 |
% \changes{v0.3.20} {2015/07/07}{Removed an extraneous |
| 261 |
% \cs{hypersetup} option to eliminate a warning. Performed |
| 262 |
% several minor Makefile updates. Updated the technical |
| 263 |
% documentation. [VN]} |
| 264 |
% \changes{v0.3.19} {2015/06/27}{Updated the license. Added the |
| 265 |
% \texttt{fithesis-} prefix to locale files. Proof-read and |
| 266 |
% updated the documentation. Encapsulated the |
| 267 |
% \texttt{localeInheritance} and \texttt{styleInheritance} |
| 268 |
% setters. Added the \cs{thesis@selectLocale}\texttt{\{...\}}, |
| 269 |
% which acts as a replacement for |
| 270 |
% \cs{def}\cs{thesis@locale}\texttt{\{...\}}, which also switches |
| 271 |
% hyphenation patterns. The macro definitions inside locale files |
| 272 |
% are now global to account for the fact that it now makes sense |
| 273 |
% to include locale files on-site (and therefore possibly inside |
| 274 |
% a group) using the \cs{thesis@selectLocale}. The class files |
| 275 |
% are now generated using the XeTeX engine, which |
| 276 |
% preserves the characters outside ASCII. [VN]} |
| 277 |
% \changes{v0.3.18} {2015/06/24}{A bulk of changes required to submit |
| 278 |
% the document class to CTAN: Changed the structure of the output |
| 279 |
% \texttt{fithesis3.ctan.zip} archive. Updated the license |
| 280 |
% notice. Added a \texttt{README} file. Canonicalized a url |
| 281 |
% within the user guides. Renamed the root directory from |
| 282 |
% \texttt{fithesis3/} to \texttt{fithesis/}. Refactored the |
| 283 |
% makefiles. Added developer example files. Renamed |
| 284 |
% \texttt{docstrip.cfg} to \texttt{LICENSE.tex} to better |
| 285 |
% describe its role. The \texttt{fithesis.dtx} file now |
| 286 |
% generates a \texttt{VERSION.tex} file containing the version of |
| 287 |
% the package, when it's being typeset. Flattened the |
| 288 |
% \texttt{logo/} directory structure. [VN]} |
| 289 |
% \changes{v0.3.17} {2015/06/24}{Changed a forgotten |
| 290 |
% \cs{thesis@@lower}\texttt{\{...\}} invocation in the definition |
| 291 |
% of \cs{thesis@czech@declaration} for the Faculty of Arts into |
| 292 |
% \cs{thesis@@lower}\texttt{\{czech@...\}}, so that the macro |
| 293 |
% always expands to the correct output regardless of the current |
| 294 |
% locale. This is merely a matter of consistency, since the style |
| 295 |
% file of the Faculty of Arts only uses Czech strings within the |
| 296 |
% Czech locale. Removed an extraneous comment. Fixed a unit test. |
| 297 |
% Fixed a changelog entry. [VN]} |
| 298 |
% \changes{v0.3.16} {2015/06/21}{Clubs and widows are now set to |
| 299 |
% be infinitely bad. The \texttt{assignment} key has weaker, but |
| 300 |
% more robust semantics now. [VN]} |
| 301 |
% \changes{v0.3.15} {2015/06/14}{Renamed \cs{thesis@requireStyle} |
| 302 |
% to \cs{thesis@requireWithOptions} and moved the style loader |
| 303 |
% from the \cs{thesis@load} routine to a new |
| 304 |
% \cs{thesis@requireStyle} macro to make the semantics of |
| 305 |
% \cs{thesis@requireLocale} and \cs{thesis@requireStyle} more |
| 306 |
% similar. Changed the \texttt{basepath}, \texttt{logopath}, |
| 307 |
% \texttt{localepath} and \texttt{stylepath} keys to match the |
| 308 |
% lower camelcasing of the rest of the keys. Added further |
| 309 |
% description regarding the use of the \texttt{assignment} key. |
| 310 |
% [VN]} |
| 311 |
% \changes{v0.3.14} {2015/06/07}{Updated the documentation. [VN]} |
| 312 |
% \changes{v0.3.13} {2015/05/30}{Fixed an inconsistency in the |
| 313 |
% example code. Removed an extraneous \cs{thesis@blocks@clear} |
| 314 |
% block withing the definition of \cs{thesis@blocks@frontMatter} |
| 315 |
% in the fss style file. Added comments, fixed clubs and widows |
| 316 |
% and removed text overflows within the user guides. Adjusted the |
| 317 |
% colors of various style files. Removed the trailing dot in the |
| 318 |
% bibliographic identification within the med and ped style |
| 319 |
% files. Fixed a typo within the technical documentation. Fixed |
| 320 |
% the twoside alignment of the \cs{thesis@blocks@bibEntry} and |
| 321 |
% the \cs{thesis@blocks@bibEntryEn} blocks within the sci style |
| 322 |
% file. The \cs{thesis@blocks@assignment} block no longer clears |
| 323 |
% a page when nothing is inserted. It is also no longer |
| 324 |
% hard-coded to be hidden for rigorous theses. Instead, the |
| 325 |
% \cs{ifthesis@blocks@assignment} conditional can be set either |
| 326 |
% by the subsequently loaded style files or by the user. So far, |
| 327 |
% only the fi and sci style files set the conditional. [VN]} |
| 328 |
% \changes{v0.3.12} {2015/05/24}{The subsections and |
| 329 |
% subsubsections now use the correct \texttt{tocdepth}. [VN]} |
| 330 |
% \changes{v0.3.11} {2015/05/15}{Added hyphenation into the |
| 331 |
% technical documentation. Fixed an unterminated group. Polished |
| 332 |
% the text of the guide. Added the \texttt{palatino} and |
| 333 |
% \texttt{nopalatino} options. Stylistic changes to the text of |
| 334 |
% the technical documentation. \cs{thesis@subdir} is now robust |
| 335 |
% against relative paths. Accounted for French spacing in the |
| 336 |
% guide. Fixed the \texttt{thesis@english@facultyName} string. |
| 337 |
% Documentation refinements. [VN]} |
| 338 |
% \changes{v0.3.10} {2015/05/09}{Fixed a typo in the technical |
| 339 |
% documentation. Updated the \emph{Advanced usage} chapter of the |
| 340 |
% user guide. The required packaged listed in Section 2.2 of the |
| 341 |
% user guide are now always correct. Adjusted the footer spacing |
| 342 |
% in the styles of econ and fi. Added \emph{Advanced usage} |
| 343 |
% chapter to the user guide. Added the description of basic |
| 344 |
% options into the user guide. Added the \texttt{table} and |
| 345 |
% \texttt{oldtable} options. Added the \texttt{type} field to the |
| 346 |
% guide for completeness. [VN]} |
| 347 |
% \changes{v0.3.09} {2015/04/26}{A complete refactoring of the class. The class |
| 348 |
% was decomposed into a base class, locale files and style files. [VN]} |
| 349 |
% \changes{v0.3.08} {2015/03/04}{Fixed a non-terminated \cs{if} condition. |
| 350 |
% [VN] (backport of v0.2.18)\\Fixed mostly documentation errors reported |
| 351 |
% at the new fithesis discussion forum (-ti, eco$\to$econ, implicit |
| 352 |
% twocolumn, example extended (font setup), etc.). [PS] (backport of v0.2.17)} |
| 353 |
% \changes{v0.3.07} {2015/02/03}{Replaced the \cs{thesiswoman} command with |
| 354 |
% \cs{thesisgender}. [VN]} |
| 355 |
% \changes{v0.3.06} {2015/01/26}{Added the colorx package and the base colors |
| 356 |
% for each faculty. If the color option is specified, the tabular environment |
| 357 |
% gets redefined and uses the faculty colors to color alternating table rows |
| 358 |
% to improve readability. The hyperref links in the e-version are now likewise |
| 359 |
% colored according to the chosen faculty, in this case regardless of the |
| 360 |
% presence of the color option. Dropped the support for typesetting theses |
| 361 |
% outside MU. [VN]} |
| 362 |
% \changes{v0.3.05} {2015/01/21}{Added support for change typesetting. |
| 363 |
% Restructured the code to make it more amenable to literal programming. |
| 364 |
% Added support for \cs{CodelineIndex} typesetting. Added information about |
| 365 |
% the usage of \textsf{fithesis1} and \textsf{fithesis2} on the FI unix |
| 366 |
% machines. (backport of v0.2.16) [VN] Minor changes throughout the text, |
| 367 |
% added a link to the the fithesis forums [PS] (backport of v0.2.15@r14:15)} |
| 368 |
% \changes{v0.3.04} {2015/01/14}{Import the url package to allow for the use of |
| 369 |
% \cs{url} within the documentation. (backport of v0.2.15@r13) [VN]} |
| 370 |
% \changes{v0.3.03} {2015/01/14}{Small fixes (added \cs{relax} at |
| 371 |
% \cs{MainMatter}), generating both fithesis.cls (obsolete, loading |
| 372 |
% \texttt{fithesis2.cls}) and \texttt{fithesis2.cls}, minor doc edits, |
| 373 |
% version numbering of \texttt{.clo} fixed, switch to utf8 and ensuring that |
| 374 |
% \texttt{.dtx} compiles. Documentation adjusted to the status quo, added |
| 375 |
% link to discussion forum (backport of v0.2.14) [PS]} |
| 376 |
% \changes{v0.3.02} {2015/01/13}{PDF metadata stamping added for |
| 377 |
% \cs{thesistitle} and \cs{thesisstudent} [VN]} |
| 378 |
% \changes{v0.3.01} {2015/01/09}{documentation now uses babel and cmap |
| 379 |
% packages. the entire file was transcoded into utf8, \cs{thesiscolor} was |
| 380 |
% replaced by color class option, added PDF metadata stamping support [VN]} |
| 381 |
% \changes{v0.3.00} {2015/01/01}{fi logo is no longer special-cased (added eps |
| 382 |
% and PDF), \cs{thesislogopath} added to set the logo directory path, |
| 383 |
% \cs{thesiscolor} added to enable colorful typo elements [VN]} |
| 384 |
% \changes{v0.2.12a}{2008--2011}{fork fithesis2 by Mr. Filipčík and Janoušek; |
| 385 |
% cf. \protect\url{http://github.com/liskin/fithesis}} |
| 386 |
% \changes{v0.2.12} {2008/07/27}{Licence change to the LPPL [JP]} |
| 387 |
% \changes{v0.2.11} {2008/01/07}{fix missing \texttt{fi-logo.mf} [JP,PS]} |
| 388 |
% \changes{v0.2.10} {2006/05/12}{fix EN name of Acknowledgement [JP]} |
| 389 |
% \changes{v0.2.09} {2006/05/08}{add EN version of University name [JP]} |
| 390 |
% \changes{v0.2.08} {2006/01/20}{add change of University name [JP]} |
| 391 |
% \changes{v0.2.07} {2005/05/10}{escape all Czech letters [JP] |
| 392 |
% babel is used instead of stupid package czech [JP] |
| 393 |
% \cs{MainMatter} should be placed after \cs{tablesofcontents} [PS]} |
| 394 |
% \changes{v0.2.06} {2004/12/22}{fix : behind Advisor [JP]} |
| 395 |
% \changes{v0.2.05} {2004/05/13}{add English abstract [JP]} |
| 396 |
% \changes{v0.2.04} {2004/05/13}{fix SK declaration [Peter Cerensky, JP]} |
| 397 |
% \changes{v0.2.03} {2004/05/13}{fix title spacing [PS, JP]} |
| 398 |
% \changes{v0.2.02} {2004/05/12}{fix encoding bug [JP]} |
| 399 |
% \changes{v0.2.01} {2004/05/11}{add subsubsection to toc [JP]} |
| 400 |
% \changes{v0.2.00} {2004/05/03}{add sk lang [JP, Peter Cerensky] |
| 401 |
% set default cls class to \textsf{rapport3} [JP]} |
| 402 |
% \changes{v0.1g} {2004/04/01}{change of default size (12pt$\to$11pt) [JP]} |
| 403 |
% \changes{v0.1f} {2004/01/24}{add documentation for hyperref [JP]} |
| 404 |
% \changes{v0.1e} {2004/01/07}{add Brno to MU title [JP]} |
| 405 |
% \changes{v0.1d} {2003/03/24}{removed def schapter from fit1*.clo [JP]} |
| 406 |
% \changes{v0.1c} {2003/02/21}{default values of \cs{facultyname} and |
| 407 |
% \\\cs{@thesissubtitle} set for backward compatibility) [PS]} |
| 408 |
% \changes{v0.1b} {2003/02/14}{change of default size (11pt$\to$12pt) [JP]} |
| 409 |
% \changes{v0.1a} {2003/02/12}{minor documentation changes (CZ only, |
| 410 |
% sorry) [PS]} |
| 411 |
% \changes{v0.1} {2003/02/11}{new release, documentation editing (CZ only, |
| 412 |
% sorry) [PS]} |
| 413 |
% \changes{v0.0a} {2002}{changes by Jan Pavlovič to allow fithesis being |
| 414 |
% backend of docbook based system for thesis writing} |
| 415 |
% \changes{v0.0} {1998}{bachelor project of Daniel Marek under |
| 416 |
% supervision of Petr Sojka} |
| 417 |
% |
| 418 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 419 |
% |
| 420 |
% \title{The \textsf{fithesis4} class for the typesetting of theses written |
| 421 |
% at the Masaryk University in Brno} |
| 422 |
% \author{Daniel Marek, Jan Pavlovič, Petr Sojka,\\ |
| 423 |
% Vít Starý Novotný, Tereza Vrabcová, Vlastislav Dohnal} |
| 424 |
% \date{2025/08/11} |
| 425 |
% \maketitle |
| 426 |
% |
| 427 |
% \begin{abstract} |
| 428 |
% \noindent This document details the design and the implementation |
| 429 |
% of the \textsf{fithesis4} document class. It contains technical |
| 430 |
% information for anyone who wishes to extend the class with their |
| 431 |
% locale or style files. |
| 432 |
% \end{abstract} |
| 433 |
% |
| 434 |
% \tableofcontents |
| 435 |
% |
| 436 |
% \section{Required classes and packages} |
| 437 |
% \begin{macro}{\thesis@backend} |
| 438 |
% The class requires the class specified in |\thesis@backend|, |
| 439 |
% whose default value is |[a4paper]{rapport3}|. If a different |
| 440 |
% base class is desired, it can be specified by redefining |
| 441 |
% |\thesis@backend| prior to loading the \textsf{fithesis4} class. |
| 442 |
% \begin{macrocode} |
| 443 |
\ProvidesClass{fithesis4}[\thesis@version] |
| 444 |
\ifx\thesis@backend\undefined |
| 445 |
\def\thesis@backend{[a4paper]{rapport3}} |
| 446 |
\fi\expandafter\LoadClass\thesis@backend |
| 447 |
% \end{macrocode} |
| 448 |
% \end{macro} |
| 449 |
% The class also requires the following packages: |
| 450 |
% \begin{itemize} |
| 451 |
% \item\textsf{keyval} -- Adds support for parsing |
| 452 |
% comma-delimited lists of key-value pairs. |
| 453 |
% \item\textsf{etoolbox} -- Adds support for expanding |
| 454 |
% code after the preamble using the |\AtPreamble| hook. |
| 455 |
% \item\textsf{ltxcmds} -- Implements several commands from |
| 456 |
% the \LaTeX\ kernel. Used for the |\ltx@ifpackageloaded| |
| 457 |
% command, which -- unlike its |\@ifpackageloaded| counterpart |
| 458 |
% -- can be used outside the preamble. |
| 459 |
% \item\textsf{ifxetex} -- Used to detect the \Hologo{XeTeX} |
| 460 |
% engine. |
| 461 |
% \item\textsf{ifluatex} -- Used to detect the \Hologo{LuaTeX} |
| 462 |
% engine. |
| 463 |
% \item\textsf{inputenc} -- Used to enable the input UTF-8 |
| 464 |
% encoding. This package does not get loaded under |
| 465 |
% the \Hologo{XeTeX} and \Hologo{LuaTeX} engines. |
| 466 |
% \changes{v1.0.0}{2021/04/30}{Added \cs{thesis@xpatch} command. [TV]} |
| 467 |
% \item\textsf{xpatch} -- Used to redefine parts of code |
| 468 |
% in macros without redefining the whole macro. |
| 469 |
% \end{itemize} |
| 470 |
% The \texttt{hyperref} package is also conditionally loaded during |
| 471 |
% the expansion of the |\thesis@load| macro (see Section |
| 472 |
% \ref{sec:thesisload}). Other packages may be required by the |
| 473 |
% style files (see Section \ref{sec:style-files}) you are using. |
| 474 |
% \begin{macrocode} |
| 475 |
\RequirePackage{keyval} |
| 476 |
\RequirePackage{etoolbox} |
| 477 |
\RequirePackage{ltxcmds} |
| 478 |
\RequirePackage{ifxetex} |
| 479 |
\RequirePackage{ifluatex} |
| 480 |
\ifxetex\else\ifluatex\else |
| 481 |
\RequirePackage[utf8]{inputenc} |
| 482 |
\fi\fi |
| 483 |
\RequirePackage{xpatch} |
| 484 |
% \end{macrocode} |
| 485 |
% \section{Public API} |
| 486 |
% \label{sec:public-api} |
| 487 |
% \subsection{Options} |
| 488 |
% Any \oarg{options} passed to the class will be handed down to the |
| 489 |
% loaded style files. The supported options are therefore documented |
| 490 |
% in the subsections of Section \ref{sec:style-files} dedicated to |
| 491 |
% the respective style files. |
| 492 |
% |
| 493 |
% The class options specify the \emph{form} of the document. |
| 494 |
% |
| 495 |
% \subsection{The \cs{thesissetup} macro} |
| 496 |
% \begin{macro}{\thesissetup} |
| 497 |
% The main public macro is the |\thesissetup|\marg{keyvals} |
| 498 |
% command, where \textit{keyvals} is a comma-delimited list of |
| 499 |
% \textit{key}=\textit{value} pairs as defined by the |
| 500 |
% \textsf{keyval} package. This macro needs to be included prior to |
| 501 |
% the beginning of a \LaTeX\ document. When the macro is expanded, |
| 502 |
% the \textit{key}=\textit{value} pairs are processed. |
| 503 |
% |
| 504 |
% Contrary to the class options, the \textit{key}=\textit{value} |
| 505 |
% pairs of the \cs{thesissetup} macro specify metainformation about |
| 506 |
% the document. |
| 507 |
% \begin{macrocode} |
| 508 |
\long\def\thesissetup#1{% |
| 509 |
\setkeys{thesis}{#1}} |
| 510 |
% \end{macrocode} |
| 511 |
% \subsubsection{The \texttt{basePath} key} |
| 512 |
% \begin{macro}{\thesis@basepath} |
| 513 |
% The \marg{\texttt{basePath}=path} pair sets the \textit{path} |
| 514 |
% containing the class files. The \textit{path} is prepended to |
| 515 |
% every other path (|\thesis@logopath|, |\thesis@stylepath| and |
| 516 |
% |\thesis@localepath|) used by the class. If non-empty, the |
| 517 |
% \textit{path} gets normalized to \textit{path/}. The normalized |
| 518 |
% \textit{path} is stored within the |\thesis@basepath| macro, |
| 519 |
% whose implicit value is |fithesis/|. |
| 520 |
% \begin{macrocode} |
| 521 |
\def\thesis@basepath{fithesis/} |
| 522 |
\define@key{thesis}{basePath}{% |
| 523 |
\ifx\thesis@empty#1\thesis@empty |
| 524 |
\def\thesis@basepath{}% |
| 525 |
\else |
| 526 |
\def\thesis@basepath{#1/}% |
| 527 |
\fi} |
| 528 |
% \end{macrocode} |
| 529 |
% \end{macro} |
| 530 |
% \begin{macro}{\thesis@logopath} |
| 531 |
% \subsubsection{The \texttt{logoPath} key} |
| 532 |
% The \marg{\texttt{logoPath}=path} pair sets the \textit{path} |
| 533 |
% containing the logo files, which is used by the style files to |
| 534 |
% load the university and faculty logos. The \textit{path} is |
| 535 |
% normalized using the |\thesis@subdir| macro and stored |
| 536 |
% within the |\thesis@logopath| macro, whose implicit value |
| 537 |
% is |\thesis@basepath| followed by |logo/\thesis@university/|. By |
| 538 |
% default, this expands to \texttt{fithesis/logo/mu/}. |
| 539 |
% \begin{macrocode} |
| 540 |
\def\thesis@logopath{\thesis@basepath logo/\thesis@university/} |
| 541 |
\define@key{thesis}{logoPath}{% |
| 542 |
\def\thesis@logopath{\thesis@subdir#1% |
| 543 |
\empty\empty\empty\empty}} |
| 544 |
% \end{macrocode} |
| 545 |
% \end{macro} |
| 546 |
% \begin{macro}{\thesis@stylepath} |
| 547 |
% \subsubsection{The \texttt{stylePath} key} |
| 548 |
% The \marg{\texttt{stylePath}=path} pair sets the \textit{path} |
| 549 |
% containing the style files. The \textit{path} is normalized using |
| 550 |
% the |\thesis@subdir| macro and stored within the |
| 551 |
% |\thesis@stylepath| macro, whose implicit value is |
| 552 |
% |\thesis@basepath style/|. By default, this expands to |
| 553 |
% \texttt{fithesis/style/}. |
| 554 |
% \begin{macrocode} |
| 555 |
\def\thesis@stylepath{\thesis@basepath style/} |
| 556 |
\define@key{thesis}{stylePath}{% |
| 557 |
\def\thesis@stylepath{\thesis@subdir#1% |
| 558 |
\empty\empty\empty\empty}} |
| 559 |
% \end{macrocode} |
| 560 |
% \end{macro} |
| 561 |
% \begin{macro}{\thesis@localepath} |
| 562 |
% \subsubsection{The \texttt{localePath} key} |
| 563 |
% The \marg{\texttt{localePath}=path} pair sets the \textit{path} |
| 564 |
% containing the locale files. The \textit{path} is normalized |
| 565 |
% using the |\thesis@subdir| macro and stored within the |
| 566 |
% |\thesis@localepath| macro, whose implicit value is |
| 567 |
% |\thesis@basepath| followed by |locale/|. By default, this |
| 568 |
% expands to \texttt{fithesis/locale/}. |
| 569 |
% \begin{macrocode} |
| 570 |
\def\thesis@localepath{\thesis@basepath locale/} |
| 571 |
\define@key{thesis}{localePath}{% |
| 572 |
\def\thesis@localepath{\thesis@subdir#1% |
| 573 |
\empty\empty\empty\empty}} |
| 574 |
% \end{macrocode} |
| 575 |
% \end{macro} |
| 576 |
% \begin{macro}{\thesis@subdir} |
| 577 |
% The |\thesis@subdir| macro returns |/| unchanged, coerces |
| 578 |
% |.|, |..|, |/|\textit{path}, |./|\textit{path} and |
| 579 |
% |../|\textit{path} to |./|, |../|, |/|\textit{path}|/|, |
| 580 |
% |./|\textit{path}|/| and |../|\textit{path}|/|, respectively, and |
| 581 |
% prefixes any other \textit{path} with |\thesis@basepath|. |
| 582 |
% \begin{macrocode} |
| 583 |
\def\thesis@subdir#1#2#3#4\empty{% |
| 584 |
\ifx#1\empty% <empty> -> <basepath> |
| 585 |
\thesis@basepath |
| 586 |
\else |
| 587 |
\if#1/% |
| 588 |
\ifx#2\empty% / -> / |
| 589 |
/% |
| 590 |
\else% /<path> -> /<path>/ |
| 591 |
#1#2#3#4/% |
| 592 |
\fi |
| 593 |
\else |
| 594 |
\if#1.% |
| 595 |
\ifx#2\empty% . -> ./ |
| 596 |
./% |
| 597 |
\else |
| 598 |
\if#2.% |
| 599 |
\ifx#3\empty% .. -> ../ |
| 600 |
../% |
| 601 |
\else |
| 602 |
\if#3/% ../<path> -> ../<path>/ |
| 603 |
../#4/% |
| 604 |
\else |
| 605 |
\thesis@basepath#1#2#3#4/% |
| 606 |
\fi |
| 607 |
\fi |
| 608 |
\else |
| 609 |
\if#2/% ./<path> -> ./<path>/ |
| 610 |
./#3#4/% |
| 611 |
\else |
| 612 |
\thesis@basepath#1#2#3#4/% |
| 613 |
\fi |
| 614 |
\fi |
| 615 |
\fi |
| 616 |
\else |
| 617 |
\thesis@basepath#1#2#3#4/% |
| 618 |
\fi |
| 619 |
\fi |
| 620 |
\fi} |
| 621 |
% \end{macrocode} |
| 622 |
% \end{macro} |
| 623 |
% \begin{macro}{\thesis@def} |
| 624 |
% The |\thesis@def|\oarg{key}\marg{name} macro defines |
| 625 |
% the |\thesis@|\textit{name} macro to expand |
| 626 |
% to either <<\textit{key}>>, if specified, or to |
| 627 |
% <<\textit{name}>>. The macro serves to provide placeholder |
| 628 |
% strings for macros with no default value. |
| 629 |
% \begin{macrocode} |
| 630 |
\newcommand{\thesis@def}[2][]{% |
| 631 |
\expandafter\def\csname thesis@#2\endcsname{% |
| 632 |
<<\ifx\thesis@empty#1\thesis@empty#2\else#1\fi>>}} |
| 633 |
% \end{macrocode} |
| 634 |
% \end{macro} |
| 635 |
% \begin{macro}{\thesis@declaration} |
| 636 |
% \subsubsection{The \texttt{declaration} key} |
| 637 |
% The \marg{\texttt{declaration}=text} pair sets the |
| 638 |
% declaration \textit{text} to be included into the document. |
| 639 |
% The \textit{text} is stored within the |\thesis@declaration| |
| 640 |
% macro, whose implicit value is |
| 641 |
% |\thesis@@{declaration}|. |
| 642 |
% \begin{macrocode} |
| 643 |
\def\thesis@declaration{\thesis@@{declaration}} |
| 644 |
\long\def\KV@thesis@declaration#1{% |
| 645 |
\long\def\thesis@declaration{#1}} |
| 646 |
% \end{macrocode} |
| 647 |
% \end{macro} |
| 648 |
% \begin{macro}{\ifthesis@woman} |
| 649 |
% \subsubsection{The \texttt{gender} key} |
| 650 |
% The \marg{\texttt{gender}=char} pair sets the author's gender to |
| 651 |
% either a male, if \textit{char} is the character \texttt{m}, or |
| 652 |
% to a female. The gender can be tested using the |
| 653 |
% |\ifthesis@woman| \ldots |\else| \ldots |\fi| conditional. The |
| 654 |
% implicit gender is male. |
| 655 |
% \begin{macrocode} |
| 656 |
\newif\ifthesis@woman\thesis@womanfalse |
| 657 |
\define@key{thesis}{gender}{% |
| 658 |
\def\thesis@male{m}% |
| 659 |
\def\thesis@arg{#1}% |
| 660 |
\ifx\thesis@male\thesis@arg |
| 661 |
\thesis@womanfalse |
| 662 |
\else |
| 663 |
\thesis@womantrue |
| 664 |
\fi} |
| 665 |
% \end{macrocode} |
| 666 |
% \end{macro} |
| 667 |
% \begin{macro}{\thesis@author} |
| 668 |
% \subsubsection{The \texttt{author} key} |
| 669 |
% The \marg{\texttt{author}=name} pair sets the author's full name |
| 670 |
% to \textit{name}. The \textit{name} is parsed using the |
| 671 |
% \DescribeMacro{\thesis@parseAuthor}|\thesis@parseAuthor| macro |
| 672 |
% and stored within the following macros: |
| 673 |
% \begin{itemize} |
| 674 |
% \item\DescribeMacro{\thesis@author}|\thesis@author| |
| 675 |
% -- The full name of the author. |
| 676 |
% \item\DescribeMacro{\thesis@author@head}|\thesis@author@head| |
| 677 |
% -- The first space-delimited part of the name. This |
| 678 |
% corresponds to the author's first name. |
| 679 |
% \item\DescribeMacro{\thesis@author@tail}|\thesis@author@tail| |
| 680 |
% -- The full name without the first space-delimited part of |
| 681 |
% the name. This corresponds to the author's surname. |
| 682 |
% \end{itemize} |
| 683 |
% The standard \LaTeX\ \DescribeMacro{\author}|\author| macro also |
| 684 |
% sets this key. |
| 685 |
% \begin{macrocode} |
| 686 |
\def\thesis@parseAuthor#1{% |
| 687 |
\def\thesis@author{#1}% |
| 688 |
\def\thesis@author@head{\expandafter\expandafter\expandafter |
| 689 |
\@gobble\thesis@head#1 \relax}% |
| 690 |
\def\thesis@author@tail{\thesis@tail#1 \relax}} |
| 691 |
\thesis@def{author}% |
| 692 |
\thesis@def[author]{author@head}% |
| 693 |
\thesis@def[author]{author@tail}% |
| 694 |
\define@key{thesis}{author}{% |
| 695 |
\thesis@parseAuthor{#1}} |
| 696 |
\let\author\thesis@parseAuthor |
| 697 |
% \end{macrocode} |
| 698 |
% \end{macro} |
| 699 |
% \begin{macro}{\thesis@id} |
| 700 |
% \subsubsection{The \texttt{id} key} |
| 701 |
% The \marg{\texttt{id}=identifier} pair sets the identifier |
| 702 |
% of the thesis author to \textit{identifier}. This usually |
| 703 |
% corresponds to the unique identifier of the author within the |
| 704 |
% information system of the given university. |
| 705 |
% \begin{macrocode} |
| 706 |
\thesis@def{id} |
| 707 |
\define@key{thesis}{id}{% |
| 708 |
\def\thesis@id{#1}} |
| 709 |
% \end{macrocode} |
| 710 |
% \end{macro} |
| 711 |
% \begin{macro}{\thesis@type} |
| 712 |
% \subsubsection{The \texttt{type} key} |
| 713 |
% The \marg{\texttt{type}=type} pair sets the type of the thesis |
| 714 |
% to \textit{type}. The following types of theses are recognized: |
| 715 |
% \begin{center}\begin{tabular}{lc}\toprule |
| 716 |
% The thesis type & The value of \textit{type} \\\midrule |
| 717 |
% Seminar paper & \texttt{sem} \\ |
| 718 |
% Bachelor's thesis & \texttt{bc} \\ |
| 719 |
% Master's thesis & \texttt{mgr} \\ |
| 720 |
% Thesis proposal & \texttt{prop} \\ |
| 721 |
% Doctoral thesis & \texttt{d} \\ |
| 722 |
% Rigorous thesis & \texttt{r} \\\bottomrule |
| 723 |
% \end{tabular}\end{center} |
| 724 |
% The \textit{type} is stored within the |\thesis@type| macro, |
| 725 |
% whose implicit value is |bc|. For the ease of testing of the |
| 726 |
% thesis type via |\ifx| conditions within style and locale files, |
| 727 |
% the \DescribeMacro{\thesis@sempaper}|\thesis@sempaper|, |
| 728 |
% \DescribeMacro{\thesis@bachelors}|\thesis@bachelors|, |
| 729 |
% \DescribeMacro{\thesis@masters}|\thesis@masters|, |
| 730 |
% \DescribeMacro{\thesis@proposal}|\thesis@proposal|, |
| 731 |
% \DescribeMacro{\thesis@doctoral}|\thesis@doctoral| and |
| 732 |
% \DescribeMacro{\thesis@rigorous}|\thesis@rigorous| macros |
| 733 |
% containing the corresponding \textit{type} values are available |
| 734 |
% as a part of the private API. |
| 735 |
% \begin{macrocode} |
| 736 |
\def\thesis@sempaper{sem} |
| 737 |
\def\thesis@bachelors{bc} |
| 738 |
\def\thesis@masters{mgr} |
| 739 |
\def\thesis@proposal{prop} |
| 740 |
\def\thesis@doctoral{d} |
| 741 |
\def\thesis@rigorous{r} |
| 742 |
\let\thesis@type\thesis@bachelors |
| 743 |
\define@key{thesis}{type}{% |
| 744 |
\def\thesis@type{#1}} |
| 745 |
% \end{macrocode} |
| 746 |
% \end{macro} |
| 747 |
% \begin{macro}{\thesis@university} |
| 748 |
% \subsubsection{The \texttt{university} key} |
| 749 |
% The \marg{\texttt{university}=identifier} pair sets the |
| 750 |
% identifier of the university, at which the thesis is being |
| 751 |
% written, to \textit{identifier}. The \textit{identifier} is |
| 752 |
% stored within the |\thesis@university| macro, whose |
| 753 |
% implicit value is \texttt{mu}. This value corresponds to the |
| 754 |
% Masaryk University in Brno. |
| 755 |
% \begin{macrocode} |
| 756 |
\def\thesis@university{mu} |
| 757 |
\define@key{thesis}{university}{% |
| 758 |
\def\thesis@university{#1}} |
| 759 |
% \end{macrocode} |
| 760 |
% \end{macro} |
| 761 |
% \begin{macro}{\thesis@faculty} |
| 762 |
% \subsubsection{The \texttt{faculty} key} |
| 763 |
% The \marg{\texttt{faculty}=identifier} pair sets the faculty, at |
| 764 |
% which the thesis is being written, to \textit{domain}. The |
| 765 |
% following faculty \textit{identifier}s are recognized at the |
| 766 |
% Masaryk University in Brno: |
| 767 |
% \begin{center}\begin{tabularx}{\textwidth}{Xc}\toprule |
| 768 |
% The faculty & The \textit{domain} name \\\midrule |
| 769 |
% The Faculty of Informatics & \texttt{fi} \\ |
| 770 |
% The Faculty of Science & \texttt{sci} \\ |
| 771 |
% The Faculty of Law & \texttt{law} \\ |
| 772 |
% The Faculty of Economics and Administration & \texttt{econ} \\ |
| 773 |
% The Faculty of Social Studies & \texttt{fss} \\ |
| 774 |
% The Faculty of Medicine & \texttt{med} \\ |
| 775 |
% The Faculty of Education & \texttt{ped} \\ |
| 776 |
% The Faculty of Arts & \texttt{phil} \\ |
| 777 |
% The Faculty of Sports Studies & \texttt{fsps} \\ |
| 778 |
% The Faculty of Pharmacy & \texttt{pharm} \\\bottomrule |
| 779 |
% \end{tabularx}\end{center} |
| 780 |
% The \textit{identifier} is stored within the |\thesis@faculty| |
| 781 |
% macro, whose implicit value is \texttt{fi}. |
| 782 |
% \begin{macrocode} |
| 783 |
\def\thesis@faculty{fi} |
| 784 |
\define@key{thesis}{faculty}{% |
| 785 |
\def\thesis@faculty{#1}} |
| 786 |
% \end{macrocode} |
| 787 |
% \end{macro} |
| 788 |
% \begin{macro}{\thesis@department} |
| 789 |
% \subsubsection{The \texttt{department} key} |
| 790 |
% The \marg{\texttt{department}=name} pair sets the name of the |
| 791 |
% department, at which the thesis is being written, to |
| 792 |
% \textit{name}. Unlike the university and faculty identifiers, |
| 793 |
% \textsf{fithesis4} does not prescribe the format of the |
| 794 |
% \textit{name}; the style files may internally parse it, or |
| 795 |
% typeset it as-is. The \textit{name} is stored within the |
| 796 |
% |\thesis@department| macro. |
| 797 |
% \begin{macrocode} |
| 798 |
\thesis@def{department} |
| 799 |
\define@key{thesis}{department}{% |
| 800 |
\def\thesis@department{#1}} |
| 801 |
% \end{macrocode} |
| 802 |
% \end{macro} |
| 803 |
% \begin{macro}{\thesis@departmentEn} |
| 804 |
% \subsubsection{The \texttt{departmentEn} key} |
| 805 |
% The \marg{\texttt{departmentEn}=name} pair sets the English |
| 806 |
% name of the department, at which the thesis is being written, to |
| 807 |
% \textit{name}. The \textit{name} is stored within the |
| 808 |
% |\thesis@departmentEn| macro. |
| 809 |
% \begin{macrocode} |
| 810 |
\thesis@def{departmentEn} |
| 811 |
\define@key{thesis}{departmentEn}{% |
| 812 |
\def\thesis@departmentEn{#1}} |
| 813 |
% \end{macrocode} |
| 814 |
% \end{macro} |
| 815 |
% \begin{macro}{\thesis@programme} |
| 816 |
% \subsubsection{The \texttt{programme} key} |
| 817 |
% The \marg{\texttt{programme}=name} pair sets the name of the |
| 818 |
% author's study programme to \textit{name}. Unlike the university |
| 819 |
% and faculty identifiers, the programme \textit{name} is only used |
| 820 |
% for typesetting and it should therefore be specified in plain |
| 821 |
% language with optional \TeX\ macros. The \textit{name} is stored |
| 822 |
% within the |\thesis@programme| macro. |
| 823 |
% \begin{macrocode} |
| 824 |
\thesis@def{programme} |
| 825 |
\define@key{thesis}{programme}{% |
| 826 |
\def\thesis@programme{#1}} |
| 827 |
% \end{macrocode} |
| 828 |
% \end{macro} |
| 829 |
% \begin{macro}{\thesis@programmeEn} |
| 830 |
% \subsubsection{The \texttt{programmeEn} key} |
| 831 |
% The \marg{\texttt{programmeEn}=name} pair sets the English name |
| 832 |
% of the author's study programme to \textit{name}. The |
| 833 |
% \textit{name} is stored within the |\thesis@programmeEn| macro. |
| 834 |
% \begin{macrocode} |
| 835 |
\thesis@def{programmeEn} |
| 836 |
\define@key{thesis}{programmeEn}{% |
| 837 |
\def\thesis@programmeEn{#1}} |
| 838 |
% \end{macrocode} |
| 839 |
% \end{macro} |
| 840 |
% \begin{macro}{\thesis@field} |
| 841 |
% \subsubsection{The \texttt{field} key} |
| 842 |
% The \marg{\texttt{field}=name} pair sets the name of the author's |
| 843 |
% field of study to \textit{name}. Unlike the university and |
| 844 |
% faculty identifiers, the \textit{name} of the field of study is |
| 845 |
% only used for typesetting and it should therefore be specified in |
| 846 |
% plain language with optional \TeX\ macros. The \textit{name} is |
| 847 |
% stored within the |\thesis@field| macro. |
| 848 |
% \begin{macrocode} |
| 849 |
\thesis@def{field} |
| 850 |
\define@key{thesis}{field}{% |
| 851 |
\def\thesis@field{#1}} |
| 852 |
% \end{macrocode} |
| 853 |
% \end{macro} |
| 854 |
% \begin{macro}{\thesis@fieldEn} |
| 855 |
% \subsubsection{The \texttt{fieldEn} key} |
| 856 |
% The \marg{\texttt{fieldEn}=name} pair sets the English name of |
| 857 |
% the author's field of stufy to \textit{name}. The \textit{name} |
| 858 |
% is stored within the |\thesis@fieldEn| macro. |
| 859 |
% \begin{macrocode} |
| 860 |
\thesis@def{fieldEn} |
| 861 |
\define@key{thesis}{fieldEn}{% |
| 862 |
\def\thesis@fieldEn{#1}} |
| 863 |
% \end{macrocode} |
| 864 |
% \end{macro} |
| 865 |
% \begin{macro}{\thesis@universityLogo} |
| 866 |
% \subsubsection{The \texttt{universityLogo} key} |
| 867 |
% The \marg{\texttt{universityLogo}=filename} pair sets the |
| 868 |
% filename of the logo file to be used as the university logo to |
| 869 |
% \textit{filename}. The \textit{filename} is stored within the |
| 870 |
% |\thesis@universityLogo| macro, whose implicit value is |
| 871 |
% \texttt{fithesis-base}|-\thesis@locale|. The \texttt{fithesis-} |
| 872 |
% prefix serves to prevent package clashes with other similarly |
| 873 |
% named files within the \TeX\ directory structure. The logo file |
| 874 |
% is loaded from the |\thesis@logopath|\discretionary{}{}{}^^A |
| 875 |
% |\thesis@universityLogo| path. |
| 876 |
% \changes{v1.0.0}{2021/03/19}{^^A |
| 877 |
% Change \cs{thesis@universityLogo}, |
| 878 |
% \cs{thesis@blocks@universityLogo@monochrome}, and |
| 879 |
% \cs{thesis@blocks@universityLogo@color} to use the new logotype |
| 880 |
% of the Masaryk University in Brno in the correct size and |
| 881 |
% localization. Add \cs{thesis@blocks@seal}. [VN]} |
| 882 |
% \begin{macrocode} |
| 883 |
\def\thesis@universityLogo{fithesis-base-\thesis@locale} |
| 884 |
\define@key{thesis}{universityLogo}{% |
| 885 |
\def\thesis@universityLogo{#1}} |
| 886 |
% \end{macrocode} |
| 887 |
% \end{macro} |
| 888 |
% \begin{macro}{\thesis@facultyLogo} |
| 889 |
% \subsubsection{The \texttt{facultyLogo} key} |
| 890 |
% The \marg{\texttt{facultyLogo}=filename} pair sets the filename |
| 891 |
% of the logo file to be used as the faculty logo to |
| 892 |
% \textit{filename}. The \textit{filename} is stored within the |
| 893 |
% |\thesis@|\discretionary{}{}{}|facultyLogo| macro, whose |
| 894 |
% implicit value is |fithesis-\thesis@faculty-\thesis@locale|. The |
| 895 |
% \texttt{fithesis-} prefix serves to prevent package clashes with |
| 896 |
% other similarly named files within the \TeX\ directory structure. |
| 897 |
% The logo file is loaded from the |
| 898 |
% |\thesis@logopath\thesis@facultyLogo| path. |
| 899 |
% \changes{v1.0.0}{2021/04/24}{^^A |
| 900 |
% Change \cs{thesis@facultyLogo}, |
| 901 |
% \cs{thesis@blocks@facultyLogo@monochrome}, and |
| 902 |
% \cs{thesis@blocks@facultyLogo@color} to use the new logotype |
| 903 |
% of the Masaryk University in Brno in the correct size and |
| 904 |
% localization. Add \cs{thesis@blocks@seal}. [VN]} |
| 905 |
% \begin{macrocode} |
| 906 |
\def\thesis@facultyLogo{fithesis-\thesis@faculty-\thesis@locale} |
| 907 |
\define@key{thesis}{facultyLogo}{% |
| 908 |
\def\thesis@facultyLogo{#1}} |
| 909 |
% \end{macrocode} |
| 910 |
% \end{macro} |
| 911 |
% \begin{macro}{\thesis@style} |
| 912 |
% \subsubsection{The \texttt{style} key} |
| 913 |
% The \marg{\texttt{style}=filename} pair sets the filename of the |
| 914 |
% style file to be used to \textit{filename}. The \textit{filename} |
| 915 |
% is stored within the |\thesis@style| macro, whose implicit value is |
| 916 |
% |\thesis@university/fithesis-\thesis@university-\thesis@faculty|. |
| 917 |
% When the \textit{filename} is an empty token string, no style |
| 918 |
% files will be loaded during the main routine (see Section |
| 919 |
% \ref{sec:thesisload}). |
| 920 |
% \changes{v1.0.0}{2021/02/21}{Files were renamed after |
| 921 |
% breaking changes in package loading after PR 438 in \LaTeXe. [VN]} |
| 922 |
% \begin{macrocode} |
| 923 |
\def\thesis@style{\thesis@university/fithesis-\thesis@university-\thesis@faculty} |
| 924 |
\define@key{thesis}{style}{% |
| 925 |
\def\thesis@style{#1}} |
| 926 |
% \end{macrocode} |
| 927 |
% \end{macro} |
| 928 |
% \begin{macro}{\thesis@style@inheritance} |
| 929 |
% \subsubsection{The \texttt{styleInheritance} key} |
| 930 |
% The \marg{\texttt{styleInheritance}=bool} pair either enables, |
| 931 |
% if \textit{bool} is \texttt{true} or unspecified, or disables the |
| 932 |
% inheritance for style files. The setting affects the function of |
| 933 |
% the |\thesis@requireStyle| macro (see Section |
| 934 |
% \ref{sec:reflection}) and can be tested using the |
| 935 |
% |\ifthesis@style@inheritance| \ldots |\else| \ldots |\fi| |
| 936 |
% conditional. Inheritance is enabled for style files by default. |
| 937 |
% \begin{macrocode} |
| 938 |
\newif\ifthesis@style@inheritance\thesis@style@inheritancetrue |
| 939 |
\define@key{thesis}{styleInheritance}[true]{% |
| 940 |
\begingroup |
| 941 |
\def\@true{true}% |
| 942 |
\def\@arg{#1}% |
| 943 |
\ifx\@true\@arg |
| 944 |
\endgroup\thesis@style@inheritancetrue |
| 945 |
\else |
| 946 |
\endgroup\thesis@style@inheritancefalse |
| 947 |
\fi} |
| 948 |
% \end{macrocode} |
| 949 |
% \end{macro} |
| 950 |
% \begin{macro}{\thesis@locale} |
| 951 |
% \subsubsection{The \texttt{locale} key} |
| 952 |
% The \marg{\texttt{locale}=name} pair sets the name of the main |
| 953 |
% locale to \textit{name}. The \textit{name} is stored within the |
| 954 |
% |\thesis@locale| macro, whose implicit value is the main |
| 955 |
% language of either the \textsf{babel} or the \textsf{polyglossia} |
| 956 |
% package, or \texttt{english}, when undefined. When the |
| 957 |
% \textit{name} is an empty token string, no locale files will be |
| 958 |
% loaded during the main routine (see Section |
| 959 |
% \ref{sec:thesisload}). |
| 960 |
% \begin{macrocode} |
| 961 |
\def\thesis@locale{% |
| 962 |
% Babel / polyglossia detection |
| 963 |
\ifx\languagename\undefined |
| 964 |
english\else\languagename\fi} |
| 965 |
\define@key{thesis}{locale}{% |
| 966 |
\def\thesis@locale{#1}} |
| 967 |
% \end{macrocode} |
| 968 |
% \end{macro} |
| 969 |
% \begin{macro}{\ifthesis@english} |
| 970 |
% The English locale is special. Several parts of the document will |
| 971 |
% typically be typeset in both the current locale and English. |
| 972 |
% However, if the current locale is English, this would result in |
| 973 |
% duplicity. To avoid this, the |\ifthesis@english| \ldots |\else| |
| 974 |
% \ldots |\fi| conditional is made available for testing, whether |
| 975 |
% or not the current locale is English. |
| 976 |
% \begin{macrocode} |
| 977 |
\def\ifthesis@english{ |
| 978 |
\expandafter\def\expandafter\@english\expandafter{\string |
| 979 |
\english}% |
| 980 |
\expandafter\expandafter\expandafter\def\expandafter |
| 981 |
\expandafter\expandafter\@locale\expandafter\expandafter |
| 982 |
\expandafter{\expandafter\string\csname\thesis@locale\endcsname}% |
| 983 |
\expandafter\csname\expandafter i\expandafter f\ifx\@locale |
| 984 |
\@english |
| 985 |
true% |
| 986 |
\else |
| 987 |
false% |
| 988 |
\fi\endcsname} |
| 989 |
% \end{macrocode} |
| 990 |
% \end{macro} |
| 991 |
% \begin{macro}{\thesis@locale@inheritance} |
| 992 |
% \subsubsection{The \texttt{localeInheritance} key} |
| 993 |
% The \marg{\texttt{localeInheritance}=bool} pair either enables, |
| 994 |
% if \textit{bool} is \texttt{true} or unspecified, or disables the |
| 995 |
% inheritance. The setting affects the function of |
| 996 |
% the |\thesis@requireLocale| macro (see Section |
| 997 |
% \ref{sec:reflection}) and can be tested using the |
| 998 |
% |\ifthesis@locale@inheritance| \ldots |\else| \ldots |\fi| |
| 999 |
% conditional. Inheritance is enabled for locale files by default. |
| 1000 |
% \begin{macrocode} |
| 1001 |
\newif\ifthesis@locale@inheritance\thesis@locale@inheritancetrue |
| 1002 |
\define@key{thesis}{localeInheritance}[true]{% |
| 1003 |
\begingroup |
| 1004 |
\def\@true{true}% |
| 1005 |
\def\@arg{#1}% |
| 1006 |
\ifx\@true\@arg |
| 1007 |
\endgroup\thesis@locale@inheritancetrue |
| 1008 |
\else |
| 1009 |
\endgroup\thesis@locale@inheritancefalse |
| 1010 |
\fi} |
| 1011 |
% \end{macrocode} |
| 1012 |
% \end{macro} |
| 1013 |
% \subsubsection{The \texttt{date} key} |
| 1014 |
% The \marg{\texttt{date}=date} pair sets the date of the thesis |
| 1015 |
% submission to \textit{date}, where \textit{date} is a string |
| 1016 |
% in the \texttt{YYYY/MM/DD} format, where \texttt{YYYY} stands |
| 1017 |
% for full year, \texttt{MM} stands for month and \texttt{DD} |
| 1018 |
% stands for day. The \textit{date} is parsed and stored using |
| 1019 |
% the \DescribeMacro{\thesis@parseDate}|\thesis@parseDate| |
| 1020 |
% macro within the following macros: |
| 1021 |
% \DescribeMacro{\thesis@date} |
| 1022 |
% \DescribeMacro{\thesis@year} |
| 1023 |
% \DescribeMacro{\thesis@month} |
| 1024 |
% \DescribeMacro{\thesis@day} |
| 1025 |
% \begin{multicols}{2} |
| 1026 |
% \begin{itemize} |
| 1027 |
% \item|\thesis@date| -- The entire \textit{date} |
| 1028 |
% \item|\thesis@year| -- The \texttt{YYYY} of \textit{date} |
| 1029 |
% \item|\thesis@month| -- The \texttt{MM} of \textit{date} |
| 1030 |
% \item|\thesis@day| -- The \texttt{DD} of \textit{date} |
| 1031 |
% \end{itemize} |
| 1032 |
% \end{multicols} |
| 1033 |
% \begin{itemize} |
| 1034 |
% \item\DescribeMacro{\thesis@season}|\thesis@season| -- Expands |
| 1035 |
% to either: |
| 1036 |
% \begin{itemize} |
| 1037 |
% \item\texttt{spring} if $2<{}$\texttt{MM}${}<9$, |
| 1038 |
% \item\texttt{fall} if \texttt{MM}${}\leq2$ or \texttt{MM}${}\geq9$. |
| 1039 |
% \end{itemize} |
| 1040 |
% \item\DescribeMacro{\thesis@seasonYear}|\thesis@seasonYear| |
| 1041 |
% -- The year of the given semester: |
| 1042 |
% \begin{itemize} |
| 1043 |
% \item\texttt{YYYY}${}-1$ if \texttt{MM}${}\leq2$. |
| 1044 |
% \item\texttt{YYYY} if \texttt{MM}${}>2$ |
| 1045 |
% \end{itemize} |
| 1046 |
% \item\DescribeMacro{\thesis@academicYear}|\thesis@academicYear| |
| 1047 |
% -- The academic year of the given semester: |
| 1048 |
% \begin{itemize} |
| 1049 |
% \item\texttt{YYYY}${}-1$\texttt{/YYYY} if \texttt{MM}${}<9$. |
| 1050 |
% \item\texttt{YYYY/YYYY}${}+1$ if \texttt{MM}${}\geq9$ |
| 1051 |
% \end{itemize} |
| 1052 |
% \end{itemize} |
| 1053 |
% To set up the default values, the |\thesis@parseDate| macro is |
| 1054 |
% called with the fully expanded |\the\year/\the\month/\the\day| |
| 1055 |
% string, which equals the current date. |
| 1056 |
% \begin{macrocode} |
| 1057 |
\def\thesis@parseDate#1/#2/#3|{{ |
| 1058 |
% Set the basic macros |
| 1059 |
\gdef\thesis@date{#1/#2/#3}% |
| 1060 |
\gdef\thesis@year{#1}% |
| 1061 |
\gdef\thesis@month{#2}% |
| 1062 |
\gdef\thesis@day{#3}% |
| 1063 |
|
| 1064 |
% Set the season |
| 1065 |
\newcount\@month\expandafter\@month\thesis@month\relax |
| 1066 |
\ifnum\@month>8\gdef\thesis@season{fall} |
| 1067 |
\else\ifnum\@month<3\gdef\thesis@season{fall} |
| 1068 |
\else \gdef\thesis@season{spring} |
| 1069 |
\fi\fi |
| 1070 |
|
| 1071 |
% Set the academic year |
| 1072 |
\newcount\@year\expandafter\@year\thesis@year\relax |
| 1073 |
\ifnum\@month>8% |
| 1074 |
\edef\@yearA{\the\@year}% |
| 1075 |
\advance\@year 1\edef\@yearB{\the\@year}% |
| 1076 |
\advance\@year-1 |
| 1077 |
\else |
| 1078 |
\advance\@year-1\edef\@yearA{\the\@year}% |
| 1079 |
\advance\@year 1\edef\@yearB{\the\@year}% |
| 1080 |
\fi |
| 1081 |
\global\edef\thesis@academicYear{\@yearA/\@yearB} |
| 1082 |
|
| 1083 |
% Set the season year |
| 1084 |
\ifnum\@month>2\else |
| 1085 |
\advance\@year-1 |
| 1086 |
\fi |
| 1087 |
\global\edef\thesis@seasonYear{\the\@year}}} |
| 1088 |
|
| 1089 |
\edef\thesis@date{\the\year/\the\month/\the\day}% |
| 1090 |
\expandafter\thesis@parseDate\thesis@date|% |
| 1091 |
|
| 1092 |
\define@key{thesis}{date}{{% |
| 1093 |
\edef\@date{#1}% |
| 1094 |
\expandafter\thesis@parseDate\@date|}} |
| 1095 |
% \end{macrocode} |
| 1096 |
% \begin{macro}{\thesis@place} |
| 1097 |
% \subsubsection{The \texttt{place} key} |
| 1098 |
% The \marg{\texttt{place}=place} pair sets the location of the |
| 1099 |
% faculty, at which the thesis is being prepared, to \textit{place}. |
| 1100 |
% The \textit{place} is stored within the |\thesis@place| |
| 1101 |
% macro, whose implicit value is \texttt{Brno}. |
| 1102 |
% \begin{macrocode} |
| 1103 |
\def\thesis@place{Brno} |
| 1104 |
\define@key{thesis}{place}{% |
| 1105 |
\def\thesis@place{#1}} |
| 1106 |
% \end{macrocode} |
| 1107 |
% \end{macro} |
| 1108 |
% \begin{macro}{\thesis@title} |
| 1109 |
% \subsubsection{The \texttt{title} key} |
| 1110 |
% The \marg{\texttt{title}=title} pair sets the title of the |
| 1111 |
% thesis to \textit{title}. The \textit{title} is stored within the |
| 1112 |
% |\thesis@title| macro. The standard \LaTeX\ |
| 1113 |
% \DescribeMacro{\title}|\title| macro also sets this key. |
| 1114 |
% \begin{macrocode} |
| 1115 |
\thesis@def{title} |
| 1116 |
\define@key{thesis}{title}{% |
| 1117 |
\def\thesis@title{#1}} |
| 1118 |
\def\title#1{\def\thesis@title{#1}} |
| 1119 |
% \end{macrocode} |
| 1120 |
% \end{macro} |
| 1121 |
% \begin{macro}{\maketitle} |
| 1122 |
% The standard \LaTeX\ |\maketitle| macro is defined, but disabled. |
| 1123 |
% \begin{macrocode} |
| 1124 |
\let\maketitle\relax |
| 1125 |
% \end{macrocode} |
| 1126 |
% \end{macro} |
| 1127 |
% \begin{macro}{\thesis@TeXtitle} |
| 1128 |
% \subsubsection{The \texttt{TeXtitle} key} |
| 1129 |
% The \marg{\texttt{TeXtitle}=title} pair sets the \TeX\ title of |
| 1130 |
% the thesis to \textit{title}. The \textit{title} is used, when |
| 1131 |
% typesetting the title, whereas |\thesis@title| is a plain text, |
| 1132 |
% which gets included in the PDF header of the resulting document. |
| 1133 |
% The \textit{title} is stored within the |\thesis@TeXtitle| macro, |
| 1134 |
% whose implicit value is |\thesis@title|. |
| 1135 |
% \begin{macrocode} |
| 1136 |
\def\thesis@TeXtitle{\thesis@title} |
| 1137 |
\define@key{thesis}{TeXtitle}{% |
| 1138 |
\def\thesis@TeXtitle{#1}} |
| 1139 |
% \end{macrocode} |
| 1140 |
% \end{macro} |
| 1141 |
% \begin{macro}{\thesis@titleEn} |
| 1142 |
% \subsubsection{The \texttt{titleEn} key} |
| 1143 |
% The \marg{\texttt{titleEn}=title} pair sets the English title of |
| 1144 |
% the thesis to \textit{title}. The \textit{title} is stored within |
| 1145 |
% the |\thesis@titleEn| macro. |
| 1146 |
% \begin{macrocode} |
| 1147 |
\thesis@def{titleEn} |
| 1148 |
\define@key{thesis}{titleEn}{% |
| 1149 |
\def\thesis@titleEn{#1}} |
| 1150 |
% \end{macrocode} |
| 1151 |
% \end{macro} |
| 1152 |
% \begin{macro}{\thesis@TeXtitleEn} |
| 1153 |
% \subsubsection{The \texttt{TeXtitleEn} key} |
| 1154 |
% The \marg{\texttt{TeXtitleEn}=title} pair sets the English \TeX\ |
| 1155 |
% title of the thesis to \textit{title}. The \textit{title} is |
| 1156 |
% used, when typesetting the title, whereas |\thesis@titleEn| is a |
| 1157 |
% plain text, which gets included in the PDF header of the |
| 1158 |
% resulting document. The \textit{title} is stored within the |
| 1159 |
% |\thesis@TeXtitleEn| macro, whose implicit value is |
| 1160 |
% |\thesis@titleEn|. |
| 1161 |
% \begin{macrocode} |
| 1162 |
\def\thesis@TeXtitleEn{\thesis@titleEn} |
| 1163 |
\define@key{thesis}{TeXtitleEn}{% |
| 1164 |
\def\thesis@TeXtitleEn{#1}} |
| 1165 |
% \end{macrocode} |
| 1166 |
% \end{macro} |
| 1167 |
% \begin{macro}{\thesis@keywords} |
| 1168 |
% \subsubsection{The \texttt{keywords} key} |
| 1169 |
% The \marg{\texttt{keywords}=list} pair sets the keywords of the |
| 1170 |
% thesis to the comma-delimited \textit{list}. The \textit{list} |
| 1171 |
% is stored within the |\thesis@keywords| macro. |
| 1172 |
% \begin{macrocode} |
| 1173 |
\thesis@def{keywords} |
| 1174 |
\define@key{thesis}{keywords}{% |
| 1175 |
\def\thesis@keywords{#1}} |
| 1176 |
% \end{macrocode} |
| 1177 |
% \end{macro} |
| 1178 |
% \begin{macro}{\thesis@TeXkeywords} |
| 1179 |
% \subsubsection{The \texttt{TeXkeywords} key} |
| 1180 |
% The \marg{\texttt{TeXkeywords}=list} pair sets the \TeX\ keywords |
| 1181 |
% of the thesis to the comma-delimited \textit{list}. The |
| 1182 |
% \textit{list} is used, when typesetting the keywords, whereas |
| 1183 |
% |\thesis@|\discretionary{}{}{}|keywords| is a plain text, which |
| 1184 |
% gets included in the PDF header of the resulting document. The |
| 1185 |
% \textit{list} is stored within the |\thesis@TeXkeywords| macro. |
| 1186 |
% \begin{macrocode} |
| 1187 |
\def\thesis@TeXkeywords{\thesis@keywords} |
| 1188 |
\define@key{thesis}{TeXkeywords}{% |
| 1189 |
\def\thesis@TeXkeywords{#1}} |
| 1190 |
% \end{macrocode} |
| 1191 |
% \end{macro} |
| 1192 |
% \begin{macro}{\thesis@keywordsEn} |
| 1193 |
% \subsubsection{The \texttt{keywordsEn} key} |
| 1194 |
% The \marg{\texttt{keywordsEn}=list} pair sets the English |
| 1195 |
% keywords of the thesis to the comma-delimited \textit{list}. The |
| 1196 |
% \textit{list} is stored within the |\thesis@keywordsEn| macro. |
| 1197 |
% \begin{macrocode} |
| 1198 |
\thesis@def{keywordsEn} |
| 1199 |
\define@key{thesis}{keywordsEn}{% |
| 1200 |
\def\thesis@keywordsEn{#1}} |
| 1201 |
% \end{macrocode} |
| 1202 |
% \end{macro} |
| 1203 |
% \begin{macro}{\thesis@TeXkeywordsEn} |
| 1204 |
% \subsubsection{The \texttt{TeXkeywordsEn} key} |
| 1205 |
% The \marg{\texttt{TeXkeywordsEn}=list} pair sets the English |
| 1206 |
% \TeX\ keywords of the thesis to the comma-delimited |
| 1207 |
% \textit{list}. The \textit{list} is used, when typesetting the |
| 1208 |
% keywords, whereas |\thesis@keywordsEn| is a plain text, which |
| 1209 |
% gets included in the PDF header of the resulting document. The |
| 1210 |
% \textit{list} is stored within the |\thesis@TeXkeywordsEn| macro. |
| 1211 |
% \begin{macrocode} |
| 1212 |
\def\thesis@TeXkeywordsEn{\thesis@keywordsEn} |
| 1213 |
\define@key{thesis}{TeXkeywordsEn}{% |
| 1214 |
\def\thesis@TeXkeywordsEn{#1}} |
| 1215 |
% \end{macrocode} |
| 1216 |
% \end{macro} |
| 1217 |
% \begin{macro}{\thesis@abstract} |
| 1218 |
% \subsubsection{The \texttt{abstract} key} |
| 1219 |
% The \marg{\texttt{abstract}=text} pair sets the abstract of the |
| 1220 |
% thesis to \textit{text}. The \textit{text} is stored within the |
| 1221 |
% |\thesis@abstract| macro. |
| 1222 |
% \begin{macrocode} |
| 1223 |
\thesis@def{abstract} |
| 1224 |
\long\def\KV@thesis@abstract#1{% |
| 1225 |
\long\def\thesis@abstract{#1}} |
| 1226 |
% \end{macrocode} |
| 1227 |
% \end{macro} |
| 1228 |
% \begin{macro}{\thesis@abstractEn} |
| 1229 |
% \subsubsection{The \texttt{abstractEn} key} |
| 1230 |
% The \marg{\texttt{abstractEn}=text} pair sets the English |
| 1231 |
% abstract of the thesis to \textit{text}. The \textit{text} |
| 1232 |
% is stored within the |\thesis@abstractEn| macro. |
| 1233 |
% \begin{macrocode} |
| 1234 |
\thesis@def{abstractEn} |
| 1235 |
\long\def\KV@thesis@abstractEn#1{% |
| 1236 |
\long\def\thesis@abstractEn{#1}} |
| 1237 |
% \end{macrocode} |
| 1238 |
% \end{macro} |
| 1239 |
% \begin{macro}{\thesis@advisor} |
| 1240 |
% \subsubsection{The \texttt{advisor} key} |
| 1241 |
% The \marg{\texttt{advisor}=name} pair sets the thesis advisor's |
| 1242 |
% full name to \textit{name}. The \textit{name} is stored within |
| 1243 |
% the |\thesis@advisor| macro. |
| 1244 |
% \begin{macrocode} |
| 1245 |
\thesis@def{advisor} |
| 1246 |
\define@key{thesis}{advisor}{\def\thesis@advisor{#1}} |
| 1247 |
% \end{macrocode} |
| 1248 |
% \end{macro} |
| 1249 |
% \begin{macro}{\thesis@thanks} |
| 1250 |
% \subsubsection{The \texttt{thanks} key} |
| 1251 |
% The \marg{\texttt{thanks}=text} pair sets the acknowledgements |
| 1252 |
% text to \textit{text}. The \textit{text} is stored within |
| 1253 |
% the |\thesis@thanks| macro. |
| 1254 |
% \begin{macrocode} |
| 1255 |
\long\def\KV@thesis@thanks#1{% |
| 1256 |
\long\def\thesis@thanks{#1}} |
| 1257 |
% \end{macrocode} |
| 1258 |
% \end{macro} |
| 1259 |
% \begin{macro}{\thesis@assignmentFiles} |
| 1260 |
% \subsubsection{The \texttt{assignment} key} |
| 1261 |
% The \marg{\texttt{assignment}=list} pair sets the comma-delimited |
| 1262 |
% list of paths to the PDF files containing the thesis assignment |
| 1263 |
% to \textit{list}. The \textit{list} is stored within the |
| 1264 |
% |\thesis@assignmentFiles| macro. |
| 1265 |
% \begin{macrocode} |
| 1266 |
\define@key{thesis}{assignment}{% |
| 1267 |
\def\thesis@assignmentFiles{#1}} |
| 1268 |
% \end{macrocode} |
| 1269 |
% \end{macro} |
| 1270 |
% When the |\thesis@assignmentFiles| macro is defined and |
| 1271 |
% non-empty, the style files should take that as a cue that the |
| 1272 |
% user wishes to typeset the thesis assignment. |
| 1273 |
|
| 1274 |
% \begin{macro}{\thesis@bibFiles} |
| 1275 |
% \subsubsection{The \texttt{bib} key} |
| 1276 |
% The \marg{\texttt{bib}=list} pair sets the comma-delimited |
| 1277 |
% list of paths to the BIB files containing the bibliography |
| 1278 |
% databases to \textit{list}. The \textit{list} is stored within |
| 1279 |
% the |\thesis@bibFiles| macro. |
| 1280 |
% \begin{macrocode} |
| 1281 |
\define@key{thesis}{bib}{% |
| 1282 |
\def\thesis@bibFiles{#1}} |
| 1283 |
% \end{macrocode} |
| 1284 |
% \end{macro} |
| 1285 |
% When the |\thesis@bibFiles| macro is defined and non-empty, the |
| 1286 |
% style files should take that as a cue that the user wishes to |
| 1287 |
% typeset the bibliography. |
| 1288 |
% \begin{macro}{\ifthesis@auto} |
| 1289 |
% \subsubsection{The \texttt{autoLayout} key} |
| 1290 |
% The \marg{\texttt{autoLayout}=bool} pair either enables, |
| 1291 |
% if \textit{bool} is \texttt{true} or unspecified, or disables |
| 1292 |
% autolayout. Autolayout injects the |
| 1293 |
% |\thesis@preamble| and |\thesis@postamble| macros at the |
| 1294 |
% beginning and at the end of the document, respectively. The |
| 1295 |
% setting can be tested using the |\ifthesis@auto| \ldots |\else| |
| 1296 |
% \ldots |\fi| conditional. The autolayout is enabled by default. |
| 1297 |
% \begin{macrocode} |
| 1298 |
\newif\ifthesis@auto\thesis@autotrue |
| 1299 |
\define@key{thesis}{autoLayout}[true]{% |
| 1300 |
\def\@true{true}% |
| 1301 |
\def\@arg{#1}% |
| 1302 |
\ifx\@true\@arg |
| 1303 |
\thesis@autotrue |
| 1304 |
\else |
| 1305 |
\thesis@autofalse |
| 1306 |
\fi} |
| 1307 |
% \end{macrocode} |
| 1308 |
% \end{macro}\begin{macro}{\thesis@pages@preamble} |
| 1309 |
% The \cs{thesis@pages@preamble} macro contains the last page |
| 1310 |
% number within the preamble of the document. During the first |
| 1311 |
% \TeX{} compilation, the macro expands to ??. |
| 1312 |
% \changes{v0.3.45}{2017/05/24}{Defined the |
| 1313 |
% \cs{thesis@pages@preamble} and \cs{thesis@pages@postamble} |
| 1314 |
% macros. The patch was submitted by Juraj Pálenik. [VN]} |
| 1315 |
% \begin{macrocode} |
| 1316 |
\ifx\thesis@pages@preamble\undefined |
| 1317 |
\def\thesis@pages@preamble{??}\fi |
| 1318 |
% \end{macrocode} |
| 1319 |
% \end{macro}\begin{macro}{\thesis@pages@postamble} |
| 1320 |
% The \cs{thesis@pages@postamble} macro contains the last page |
| 1321 |
% number prior to the postamble of the document. During the first |
| 1322 |
% \TeX{} compilation, the macro expands to ??. |
| 1323 |
% \begin{macrocode} |
| 1324 |
\ifx\thesis@pages@postamble\undefined |
| 1325 |
\def\thesis@pages@postamble{??}\fi |
| 1326 |
% \end{macrocode} |
| 1327 |
% \end{macro} |
| 1328 |
% The \DescribeMacro{\thesis@preamble}|\thesis@preamble| |
| 1329 |
% and \DescribeMacro{\thesis@postamble}|\thesis@postamble| |
| 1330 |
% macros temporarily switch to the hyphenation patterns and the |
| 1331 |
% \textsf{csquotes} style of the main locale and typeset the |
| 1332 |
% contents of the |
| 1333 |
% \DescribeMacro{\thesis@blocks@preamble}|\thesis@blocks@preamble| |
| 1334 |
% or |
| 1335 |
% \DescribeMacro{\thesis@blocks@postamble}|\thesis@blocks@postamble| |
| 1336 |
% macros, respectively; the latter two macros are to be redefined |
| 1337 |
% by the loaded style files. |
| 1338 |
% |
| 1339 |
% After expanding |\thesis@blocks@preamble| inside a \TeX{} group, |
| 1340 |
% the |\thesis@preamble| macro defines the |
| 1341 |
% \cs{thesis@pages@preamble} macro, writes the definition to the |
| 1342 |
% auxiliary file, and clears the page. After leaving the group, |
| 1343 |
% the |\thesis@preamble| sets up the style of the main matter by |
| 1344 |
% expanding the |
| 1345 |
% \DescribeMacro{\thesis@blocks@mainMatter}|\thesis@blocks@mainMatter| |
| 1346 |
% macro. |
| 1347 |
% \begin{macrocode} |
| 1348 |
\def\thesis@preamble{% |
| 1349 |
{\thesis@selectLocale{\thesis@locale}% |
| 1350 |
\thesis@blocks@preamble |
| 1351 |
\gdef\thesis@pages@preamble{\thepage} |
| 1352 |
\write\@auxout{\noexpand\gdef\noexpand |
| 1353 |
\thesis@pages@preamble{\thepage}} |
| 1354 |
\clearpage} |
| 1355 |
\thesis@blocks@mainMatter} |
| 1356 |
|
| 1357 |
\let\thesis@blocks@preamble\relax |
| 1358 |
\let\thesis@blocks@mainMatter\relax |
| 1359 |
% \end{macrocode} |
| 1360 |
% Before expanding |\thesis@blocks@postamble| inside a \TeX{} |
| 1361 |
% group, the |\thesis@postamble| macro defines the |
| 1362 |
% \cs{thesis@pages@postamble} macro, writes the definition to the |
| 1363 |
% auxiliary file, and clears the page. |
| 1364 |
% \changes{v0.3.50}{2018/03/25}{Make writes immediate, so that they |
| 1365 |
% do not get lost when they occur at an empty page. [VN]} |
| 1366 |
% \begin{macrocode} |
| 1367 |
\def\thesis@postamble{% |
| 1368 |
\gdef\thesis@pages@postamble{\thepage} |
| 1369 |
\immediate\write\@auxout{\noexpand\gdef\noexpand |
| 1370 |
\thesis@pages@postamble{\thepage}} |
| 1371 |
{\thesis@selectLocale{\thesis@locale}% |
| 1372 |
\thesis@blocks@postamble}} |
| 1373 |
|
| 1374 |
\let\thesis@blocks@postamble\relax |
| 1375 |
% \end{macrocode} |
| 1376 |
% \subsubsection{The \texttt{extra} key} |
| 1377 |
% \changes{v0.3.45}{2017/05/29}{Added the \texttt{extra} key |
| 1378 |
% to \cs{thesissetup} and defined the helper |
| 1379 |
% \cs{thesis@def@extra} macro. [VN]} |
| 1380 |
% The \marg{\texttt{extra}=\marg{keyvals}} pair enables the |
| 1381 |
% definition of extra data fields, where \textit{keyvals} is a |
| 1382 |
% comma-delimited list of \textit{key}=\textit{value} pairs as |
| 1383 |
% defined by the \textsf{keyval} package. For each |
| 1384 |
% \textit{key}=\textit{value} pair, a |\thesis@extra@|\textit{key} |
| 1385 |
% is defined to be \textit{value}. These extra data fields are |
| 1386 |
% provided as a unified interface for passing additional data to |
| 1387 |
% the style and locale files. |
| 1388 |
% \begin{macrocode} |
| 1389 |
\def\thesis@extra@KV@prefix{KV@thesis@extra@} |
| 1390 |
\def\thesis@extra@XKV@fams{thesis@extra} |
| 1391 |
\long\def\KV@thesis@extra#1{% |
| 1392 |
% \end{macrocode} |
| 1393 |
% Patch the \textsc{xkeyval} package to support unknown keys. |
| 1394 |
% \begin{macrocode} |
| 1395 |
\long\def\XKV@s@tk@ys##1=##2=##3\@nil{% |
| 1396 |
\XKV@g@tkeyname##1=\@nil\XKV@tkey |
| 1397 |
\expandafter\KV@@sp@def\expandafter\XKV@tkey\expandafter{\XKV@tkey}% |
| 1398 |
\ifx\XKV@tkey\@empty |
| 1399 |
\XKV@toks{##2}% |
| 1400 |
\ifcat$\the\XKV@toks$\else |
| 1401 |
\XKV@err{no key specified for value `\the\XKV@toks'}% |
| 1402 |
\fi |
| 1403 |
\else |
| 1404 |
\@expandtwoargs\in@{,\XKV@tkey,}{,\XKV@na,}% |
| 1405 |
\ifin@\else |
| 1406 |
\XKV@knftrue |
| 1407 |
\KV@@sp@def\XKV@tempa{##2}% |
| 1408 |
\ifXKV@preset\XKV@s@tk@ys@{##3}\else |
| 1409 |
\ifXKV@pl |
| 1410 |
\XKV@for@eo\XKV@fams\XKV@tfam{% |
| 1411 |
\XKV@makehd\XKV@tfam |
| 1412 |
\XKV@s@tk@ys@{##3}% |
| 1413 |
}% |
| 1414 |
\else |
| 1415 |
\XKV@whilist\XKV@fams\XKV@tfam\ifXKV@knf\fi{% |
| 1416 |
\XKV@makehd\XKV@tfam |
| 1417 |
\XKV@s@tk@ys@{##3}% |
| 1418 |
}% |
| 1419 |
\fi |
| 1420 |
\fi |
| 1421 |
\ifXKV@knf |
| 1422 |
\ifXKV@inpox |
| 1423 |
\ifx\XKV@doxs\relax |
| 1424 |
\ifx\@currext\@clsextension\else |
| 1425 |
\let\CurrentOption\XKV@tkey\@unknownoptionerror |
| 1426 |
\fi |
| 1427 |
\else\XKV@doxs\fi |
| 1428 |
\else |
| 1429 |
\ifXKV@st |
| 1430 |
\XKV@addtolist@o\XKV@rm\CurrentOption |
| 1431 |
\else |
| 1432 |
\ifx\XKV@fams\thesis@extra@XKV@fams |
| 1433 |
\expandafter\long\expandafter\def\csname% |
| 1434 |
thesis@extra@\XKV@tkey\endcsname{##2}% |
| 1435 |
\else |
| 1436 |
\XKV@err{`\XKV@tkey' undefined in families |
| 1437 |
`\XKV@fams'}% |
| 1438 |
\fi |
| 1439 |
\fi |
| 1440 |
\fi |
| 1441 |
\else |
| 1442 |
\ifXKV@inpox\ifx\XKV@testclass\XKV@documentclass |
| 1443 |
\expandafter\XKV@useoption\expandafter{\CurrentOption}% |
| 1444 |
\fi\fi |
| 1445 |
\fi |
| 1446 |
\fi |
| 1447 |
\fi |
| 1448 |
}% |
| 1449 |
\setkeys{thesis@extra}{#1}% |
| 1450 |
\def\KV@prefix{KV@thesis@}} |
| 1451 |
% \end{macrocode} |
| 1452 |
% Patch the \textsc{keyval} package to support unknown keys. |
| 1453 |
% \begin{macrocode} |
| 1454 |
\long\def\KV@split#1=#2=#3\relax{% |
| 1455 |
\KV@@sp@def\@tempa{#1}% |
| 1456 |
\ifx\@tempa\@empty\else |
| 1457 |
\expandafter\let\expandafter\@tempc |
| 1458 |
\csname\KV@prefix\@tempa\endcsname |
| 1459 |
\ifx\@tempc\relax |
| 1460 |
\ifx\KV@prefix\thesis@extra@KV@prefix |
| 1461 |
\KV@@sp@def\@tempb{#2}% |
| 1462 |
\expandafter\let\csname thesis@extra@\@tempa\endcsname |
| 1463 |
\@tempb% |
| 1464 |
\else |
| 1465 |
\KV@errx |
| 1466 |
{\@tempa\space undefined}% |
| 1467 |
\fi |
| 1468 |
\else |
| 1469 |
\ifx\@empty#3\@empty |
| 1470 |
\KV@default |
| 1471 |
\else |
| 1472 |
\KV@@sp@def\@tempb{#2}% |
| 1473 |
\expandafter\@tempc\expandafter{\@tempb}\relax |
| 1474 |
\fi |
| 1475 |
\fi |
| 1476 |
\fi} |
| 1477 |
% \end{macrocode} |
| 1478 |
% \begin{macro}{\thesis@def@extra} |
| 1479 |
% The |\thesis@def@extra|\oarg{definition}\marg{name} macro defines |
| 1480 |
% the |\thesis@extra@|\textit{name} macro to expand |
| 1481 |
% to either \textit{definition}, if specified, or to |
| 1482 |
% |\thesis@placeholder@extra@|\textit{name}, where |
| 1483 |
% |\thesis@placeholder@extra@|\textit{name} is defined to expand to |
| 1484 |
% <<extra@\textit{name}>>. If |\thesis@extra@|\textit{name} has |
| 1485 |
% already been defined by the user, |\thesis@def@extra| has no |
| 1486 |
% effect. |
| 1487 |
% \begin{macrocode} |
| 1488 |
\newcommand{\thesis@def@extra}[2][]{% |
| 1489 |
\expandafter\ifx\csname thesis@extra@#2\endcsname\relax |
| 1490 |
\def\thesis@placeholder@extra{<<extra@#2>>}% |
| 1491 |
\expandafter\let\csname thesis@placeholder@extra@#2\endcsname |
| 1492 |
\thesis@placeholder@extra |
| 1493 |
\def\thesis@arg{#1}% |
| 1494 |
\ifx\empty\thesis@arg |
| 1495 |
\expandafter\let\csname thesis@extra@#2\endcsname |
| 1496 |
\thesis@placeholder@extra |
| 1497 |
\else |
| 1498 |
\expandafter\def\csname thesis@extra@#2\endcsname{#1}% |
| 1499 |
\fi |
| 1500 |
\fi} |
| 1501 |
% \end{macrocode} |
| 1502 |
% \end{macro} |
| 1503 |
% \end{macro} ^^A The \thesissetup macro definition |
| 1504 |
% \subsection{The \cs{thesislong} macro}\label{sec:thesislong} |
| 1505 |
% \begin{macro}{\thesislong} |
| 1506 |
% The public macro |\thesislong|\marg{key}\marg{value}, can be |
| 1507 |
% used as an alternative to the |\thesissetup{|\meta{key}% |
| 1508 |
% | = |\marg{value}|}| public macro: |
| 1509 |
% \begin{macrocode} |
| 1510 |
\long\def\thesislong#1#2{% |
| 1511 |
\csname KV@thesis@#1\endcsname{#2}} |
| 1512 |
% \end{macrocode} |
| 1513 |
% This macro is a relict of the time when |\thesissetup| did not |
| 1514 |
% accept multi-paragraph input. |
| 1515 |
% \end{macro} |
| 1516 |
% \subsection{The \cs{thesisload} macro}\label{sec:thesisload} |
| 1517 |
% \begin{macro}{\thesisload} |
| 1518 |
% The |\thesisload| macro is responsible for preparing the |
| 1519 |
% environment for, and consequently loading, the necessary locale |
| 1520 |
% and style files. By default, the |\thesisload| macro gets |
| 1521 |
% expanded at the end of the preamble, |
| 1522 |
% but it can be expanded manually prior to that point, if necessary |
| 1523 |
% to prevent package clashes. The \DescribeMacro{\ifthesis@loaded} |
| 1524 |
% |\ifthesis@loaded| macro ensures that the expansion is only |
| 1525 |
% performed once. For backwards compatibility, the |
| 1526 |
% \DescribeMacro{\thesis@load}|\thesis@load| macro can be used to |
| 1527 |
% the same effect. |
| 1528 |
% \begin{macrocode} |
| 1529 |
\newif\ifthesis@loaded\thesis@loadedfalse |
| 1530 |
\BeforeBeginEnvironment{document}{\thesisload} |
| 1531 |
\def\thesis@load{\thesisload} |
| 1532 |
\def\thesisload{% |
| 1533 |
\ifthesis@loaded\else |
| 1534 |
\thesis@loadedtrue |
| 1535 |
\makeatletter |
| 1536 |
% \end{macrocode} |
| 1537 |
% First, the name of the main locale file is fully expanded and |
| 1538 |
% loaded using the |\thesis@requireLocale| macro. If the user |
| 1539 |
% specified an explicit empty string as the value of |
| 1540 |
% |\thesis@locale|, do nothing. |
| 1541 |
% \begin{macrocode} |
| 1542 |
\ifx\thesis@locale\empty\else |
| 1543 |
\edef\thesis@locale{\thesis@locale} |
| 1544 |
\thesis@requireLocale{\thesis@locale} |
| 1545 |
\fi |
| 1546 |
% \end{macrocode} |
| 1547 |
% Coerce Lua\TeX{} into defining |\l@|\textit{locale} for |
| 1548 |
% \textit{locale}s with known hyphenation patterns, unless |
| 1549 |
% \textsf{babel} or \textsf{polyglossia} have been loaded. |
| 1550 |
% In that case, |\l@|\textit{locale} has already been defined. |
| 1551 |
% \changes{v1.0.0}{2020/02/21}{Only load \textsf{babel} in |
| 1552 |
% Lua\TeX{} if \textsf{polyglossia} has not been loaded yet.} |
| 1553 |
% \begin{macrocode} |
| 1554 |
\ifluatex |
| 1555 |
\ltx@ifpackageloaded{babel}{}{ |
| 1556 |
\ltx@ifpackageloaded{polyglossia}{}{ |
| 1557 |
\thesis@require{babel}}} |
| 1558 |
\fi |
| 1559 |
% \end{macrocode} |
| 1560 |
% Fix the value of the |\ifthesis@english| macro. |
| 1561 |
% \changes{v0.3.45}{2017/05/23}{Updated the \cs{ifthesis@english} |
| 1562 |
% macro, so that it no longer dynamically reacts to changes of |
| 1563 |
% the locale. Instead, it is now based on the main locale during |
| 1564 |
% the expansion of \cs{thesisload}.} |
| 1565 |
% \begin{macrocode} |
| 1566 |
\ifthesis@english |
| 1567 |
\expandafter\expandafter\expandafter\let\expandafter\expandafter |
| 1568 |
\csname ifthesis@english\endcsname\csname iftrue\endcsname |
| 1569 |
\else |
| 1570 |
\expandafter\expandafter\expandafter\let\expandafter\expandafter |
| 1571 |
\csname ifthesis@english\endcsname\csname iffalse\endcsname |
| 1572 |
\fi |
| 1573 |
% \end{macrocode} |
| 1574 |
% Consequently, the style files are loaded. If the user specified an |
| 1575 |
% explicit empty string as the value of |\thesis@style|, do nothing. |
| 1576 |
% \begin{macrocode} |
| 1577 |
\ifx\thesis@style\empty\else |
| 1578 |
\thesis@requireStyle{\thesis@style} |
| 1579 |
\fi |
| 1580 |
% \end{macrocode} |
| 1581 |
% If the \textsf{babel} or \textsf{polyglossia} locale is identical |
| 1582 |
% to the thesis locale, the |\thesis@selectLocale| macro will be |
| 1583 |
% used to globally set up the \textsf{csquotes} style appropriate for |
| 1584 |
% the given locale. |
| 1585 |
% \begin{macrocode} |
| 1586 |
\ifx\languagename\empty\else |
| 1587 |
\begingroup |
| 1588 |
\edef\@doclocale{\languagename}% |
| 1589 |
\ifx\@doclocale\thesis@locale |
| 1590 |
\endgroup |
| 1591 |
\AtBeginDocument{% |
| 1592 |
\thesis@selectLocale{\thesis@locale}}% |
| 1593 |
\else |
| 1594 |
\endgroup |
| 1595 |
\fi |
| 1596 |
\fi |
| 1597 |
% \end{macrocode} |
| 1598 |
% With the placeholder strings loaded from the locale files, we |
| 1599 |
% can now inject metadata into the resulting PDF file. To this |
| 1600 |
% end, the \textsf{hyperref} package is conditionally included with |
| 1601 |
% the \texttt{unicode} option. Consequently, the following values |
| 1602 |
% are assigned to the PDF headers:\begin{itemize} |
| 1603 |
% \item\texttt{Title} is set to |\thesis@title|. |
| 1604 |
% \item\texttt{Author} is set to |\thesis@author|. |
| 1605 |
% \item\texttt{Keywords} is set to |\thesis@keywords|. |
| 1606 |
% \item\texttt{Creator} is set to \texttt{\thesis@version}. |
| 1607 |
% \end{itemize} |
| 1608 |
% \begin{macrocode} |
| 1609 |
\thesis@require{hyperref} |
| 1610 |
\hypersetup{ |
| 1611 |
unicode=true, |
| 1612 |
pdfencoding=auto, |
| 1613 |
pdftitle=\thesis@title, |
| 1614 |
pdfauthor=\thesis@author, |
| 1615 |
pdfkeywords=\thesis@keywords, |
| 1616 |
pdfcreator=\thesis@version} |
| 1617 |
% \end{macrocode} |
| 1618 |
% If autolayout is enabled, the |\thesis@preamble| and |
| 1619 |
% |\thesis@postamble| macros are scheduled for expansion at the |
| 1620 |
% beginning and at the end of the document, respectively. The |
| 1621 |
% definition of the |\thesis@pages| macro is also scheduled to be |
| 1622 |
% written to the auxiliary file at the end of the document. |
| 1623 |
% \changes{v0.3.50}{2018/03/25}{Make writes immediate, so that they |
| 1624 |
% do not get lost when they occur at an empty page. [VN]} |
| 1625 |
% \begin{macrocode} |
| 1626 |
\ifthesis@auto |
| 1627 |
\AtBeginDocument{\thesis@preamble} |
| 1628 |
\AtEndDocument{% |
| 1629 |
\thesis@postamble |
| 1630 |
\immediate\write\@auxout{% |
| 1631 |
\noexpand\gdef\noexpand\thesis@pages{\thepage}}} |
| 1632 |
\else |
| 1633 |
\AtEndDocument{% |
| 1634 |
\immediate\write\@auxout{% |
| 1635 |
\noexpand\gdef\noexpand\thesis@pages{\thepage}}} |
| 1636 |
\fi |
| 1637 |
\makeatother |
| 1638 |
\fi} |
| 1639 |
% \end{macrocode} |
| 1640 |
% \end{macro} |
| 1641 |
% \section{Private API} |
| 1642 |
% \subsection{File manipulation macros}\label{sec:reflection} |
| 1643 |
% \begin{macro}{\thesis@exists} |
| 1644 |
% The |\thesis@exists|\marg{file}\marg{tokens} macro is |
| 1645 |
% used to test for the existence of a given \textit{file}. If the |
| 1646 |
% \textit{file} exists, the macro expands to \textit{tokens}. |
| 1647 |
% Otherwise, a class warning is written to the output. |
| 1648 |
% \begin{macrocode} |
| 1649 |
\def\thesis@exists#1#2{% |
| 1650 |
\IfFileExists{#1}{#2}{% |
| 1651 |
\ClassWarning{fithesis4}{File #1 doesn't exist}}} |
| 1652 |
% \end{macrocode} |
| 1653 |
% \end{macro}\begin{macro}{\thesis@input} |
| 1654 |
% The |\thesis@input|\marg{file} macro inputs the given |
| 1655 |
% \textit{file}, if it exists. |
| 1656 |
% \begin{macrocode} |
| 1657 |
\def\thesis@input#1{% |
| 1658 |
\thesis@exists{#1}{\input{#1}}} |
| 1659 |
% \end{macrocode} |
| 1660 |
% \end{macro}\begin{macro}{\thesis@require} |
| 1661 |
% The |\thesis@require|\oarg{options}\marg{package} expands to |
| 1662 |
% |\RequirePackage|\oarg{options}\marg{package}, if the specified |
| 1663 |
% \textit{package} has not yet been loaded. |
| 1664 |
% \begin{macrocode} |
| 1665 |
\newcommand\thesis@require[2][]{% |
| 1666 |
\@ifpackageloaded{#2}{}{\RequirePackage[#1]{#2}}} |
| 1667 |
% \end{macrocode} |
| 1668 |
% \end{macro}\begin{macro}{\thesis@requireIfExists} |
| 1669 |
% The |\thesis@requireIfExists|\oarg{options}\marg{package} expands |
| 1670 |
% to |\thesis@require|\oarg{options}\marg{package}, if the |
| 1671 |
% specified \textit{package} exists and has not yet been loaded. |
| 1672 |
% \begin{macrocode} |
| 1673 |
\newcommand\thesis@requireIfExists[2][]{% |
| 1674 |
\thesis@exists{#2.sty}{\thesis@require[#1]{#2}}} |
| 1675 |
% \end{macrocode} |
| 1676 |
% \end{macro}\begin{macro}{\thesis@requireStyle} |
| 1677 |
% If inheritance is enabled for style files, then the |
| 1678 |
% |\thesis@requireStyle|\marg{style} macro sequentially |
| 1679 |
% loads each of the following files, provided they exist: |
| 1680 |
% \changes{v1.0.0}{2021/02/21}{Files were renamed after |
| 1681 |
% breaking changes in package loading after PR 438 in \LaTeXe. [VN]} |
| 1682 |
% \begin{enumerate} |
| 1683 |
% \item|\thesis@stylepath fithesis-base.sty| |
| 1684 |
% \item|\thesis@stylepath\thesis@university/fithesis-\[email protected]| |
| 1685 |
% \item|\thesis@stylepath| \textit{style}|.sty| |
| 1686 |
% \end{enumerate}If inheritance is disabled for style files, then |
| 1687 |
% only the last listed file is loaded. The \texttt{fithesis-} |
| 1688 |
% prefix serves to prevent package clashes with other similarly |
| 1689 |
% named package files within the \TeX\ directory structure. |
| 1690 |
% \begin{macrocode} |
| 1691 |
\def\thesis@requireStyle#1{% |
| 1692 |
\ifthesis@style@inheritance |
| 1693 |
\thesis@requireIfExists{\thesis@stylepath fithesis-base}% |
| 1694 |
\thesis@requireIfExists{\thesis@stylepath\thesis@university |
| 1695 |
/fithesis-\thesis@university-base} |
| 1696 |
\fi |
| 1697 |
\thesis@requireIfExists{\thesis@stylepath#1}} |
| 1698 |
% \end{macrocode} |
| 1699 |
% \end{macro}\begin{macro}{\thesis@requireLocale} |
| 1700 |
% If inheritance is enabled for style files, then the |
| 1701 |
% |\thesis@requireLocale|\marg{locale} macro sequentially |
| 1702 |
% loads each of the following locale files, provided they exist: |
| 1703 |
% \begin{enumerate} |
| 1704 |
% \item|\thesis@localepath fithesis-|\textit{locale}|.def| |
| 1705 |
% \item|\thesis@localepath\thesis@university/fithesis-|^^A |
| 1706 |
% \textit{locale}|.def| |
| 1707 |
% \item|\thesis@localepath\thesis@university/\thesis@faculty/|^^A |
| 1708 |
% |fithesis-|\textit{locale}|.def| |
| 1709 |
% \end{enumerate} If inheritance is disabled for locale files, then |
| 1710 |
% only the first listed file is loaded. The \texttt{fithesis-} |
| 1711 |
% prefix serves to prevent clashes with other similarly named files |
| 1712 |
% within the \TeX\ directory structure. To prevent undesirable side |
| 1713 |
% effects from locale files being loaded multiple times, the |
| 1714 |
% |\thesis@|\textit{locale}|@required| macro is defined as a flag, |
| 1715 |
% which prevents future invocations with the same \textit{locale}. |
| 1716 |
% The macro can be used within both locale and style files, |
| 1717 |
% although the usage within locale files is strongly discouraged to |
| 1718 |
% prevent circular dependencies. |
| 1719 |
% |
| 1720 |
% If the \textsf{polyglossia} package is being used, its |
| 1721 |
% definitions for the respective locale get loaded as well. As a |
| 1722 |
% consequence, this command may not be used within the document, |
| 1723 |
% but only in the preamble. |
| 1724 |
% \begin{macrocode} |
| 1725 |
\def\thesis@requireLocale#1{% |
| 1726 |
% Ignore redundant requests |
| 1727 |
\expandafter\ifx\csname thesis@#1@required\endcsname\relax |
| 1728 |
\expandafter\def\csname thesis@#1@required\endcsname{}% |
| 1729 |
\@ifpackageloaded{polyglossia}{\setotherlanguage{#1}}{} |
| 1730 |
\thesis@input{\thesis@localepath fithesis-#1.def}% |
| 1731 |
\ifthesis@locale@inheritance |
| 1732 |
\thesis@input{\thesis@localepath\thesis@university/% |
| 1733 |
fithesis-#1.def}% |
| 1734 |
\thesis@input{\thesis@localepath\thesis@university/% |
| 1735 |
\thesis@faculty/fithesis-#1.def}% |
| 1736 |
\fi |
| 1737 |
\fi} |
| 1738 |
% \end{macrocode}\end{macro} |
| 1739 |
% \subsection{String manipulation macros} |
| 1740 |
% \begin{macro}{\thesis@} |
| 1741 |
% The |\thesis@|\marg{name} macro expands to |\thesis@|^^A |
| 1742 |
% \textit{name}, where \textit{name} gets fully expanded and can |
| 1743 |
% therefore contain active characters and command sequences. |
| 1744 |
% \begin{macrocode} |
| 1745 |
\def\thesis@#1{\csname thesis@#1\endcsname} |
| 1746 |
% \end{macrocode} |
| 1747 |
% \end{macro}\begin{macro}{\thesis@@} |
| 1748 |
% The |\thesis@@|\marg{name} macro expands to |\thesis@|^^A |
| 1749 |
% \textit{locale}|@|\textit{name}, where \textit{locale} |
| 1750 |
% corresponds to the name of the current locale. The \textit{name} |
| 1751 |
% gets fully expanded and can therefore contain active characters |
| 1752 |
% and command sequences. |
| 1753 |
% \begin{macrocode} |
| 1754 |
\def\thesis@@#1{\thesis@{\thesis@locale @#1}} |
| 1755 |
% \end{macrocode} |
| 1756 |
% \end{macro} |
| 1757 |
% The \DescribeMacro{\thesis@lower}|\thesis@lower| |
| 1758 |
% and \DescribeMacro{\thesis@upper}|\thesis@upper| |
| 1759 |
% macros are used for upper- and lowercasing within |
| 1760 |
% locale files. To cast the |\thesis@|\textit{name} macro |
| 1761 |
% to the lower- or uppercase, |\thesis@lower{|\textit{name}|}| or |
| 1762 |
% |\thesis@upper{|\textit{name}|}| would be used, respectively. |
| 1763 |
% The \textit{name} gets fully expanded and can therefore contain |
| 1764 |
% active characters and command sequences. |
| 1765 |
% \begin{macrocode} |
| 1766 |
\def\thesis@lower#1{{% |
| 1767 |
\let\ea\expandafter |
| 1768 |
\ea\MakeLowercase\ea{\csname thesis@#1\endcsname}}} |
| 1769 |
\def\thesis@upper#1{{% |
| 1770 |
\let\ea\expandafter |
| 1771 |
\ea\MakeUppercase\ea{\csname thesis@#1\endcsname}}} |
| 1772 |
% \end{macrocode} |
| 1773 |
% The \DescribeMacro{\thesis@@lower}|\thesis@@lower| |
| 1774 |
% and \DescribeMacro{\thesis@@upper}|\thesis@@upper| |
| 1775 |
% macros are used for upper- and lowercasing current |
| 1776 |
% \textit{locale} strings within style files. To cast the |
| 1777 |
% |\thesis@|\textit{locale}|@|\textit{name} macro to the |
| 1778 |
% lower- or uppercase, |\thesis@@lower{|\textit{name}|}| or |
| 1779 |
% |\thesis@@upper{|\textit{name}|}| would be used, |
| 1780 |
% respectively. The \textit{name} gets fully expanded and can |
| 1781 |
% therefore contain active characters and command sequences. |
| 1782 |
% \begin{macrocode} |
| 1783 |
\def\thesis@@lower#1{\thesis@lower{\thesis@locale @#1}} |
| 1784 |
\def\thesis@@upper#1{\thesis@upper{\thesis@locale @#1}} |
| 1785 |
% \end{macrocode} |
| 1786 |
% The \DescribeMacro{\thesis@head}|\thesis@head| |
| 1787 |
% and \DescribeMacro{\thesis@tail}|\thesis@tail| |
| 1788 |
% macros are used for retrieving the head or the tail of |
| 1789 |
% space-separated token sequences that end with |\relax|. |
| 1790 |
% \begin{macrocode} |
| 1791 |
\def\thesis@head#1 #2{% |
| 1792 |
\ifx\relax#2% |
| 1793 |
\expandafter\@gobbletwo |
| 1794 |
\else |
| 1795 |
\ #1% |
| 1796 |
\fi |
| 1797 |
\thesis@head#2}% |
| 1798 |
\def\thesis@tail#1 #2{% |
| 1799 |
\ifx\relax#2% |
| 1800 |
#1% |
| 1801 |
\expandafter\@gobbletwo |
| 1802 |
\fi |
| 1803 |
\thesis@tail#2}% |
| 1804 |
% \end{macrocode} |
| 1805 |
% \subsection{General purpose macros} |
| 1806 |
% The \DescribeMacro{\thesis@pages}|\thesis@pages| macro contains |
| 1807 |
% the last page number within the document. During the first \TeX\ |
| 1808 |
% compilation, the macro expands to \texttt{??}. |
| 1809 |
% \begin{macrocode} |
| 1810 |
\ifx\thesis@pages\undefined\def\thesis@pages{??}\fi |
| 1811 |
% \end{macrocode} |
| 1812 |
% \DescribeMacro{\thesis@selectLocale}|\thesis@selectLocale|\marg{locale} |
| 1813 |
% macro redefines the |\thesis@locale| macro to \textit{locale}, |
| 1814 |
% switches to the hyphenation patterns of \textit{locale}, and |
| 1815 |
% starts using the |\thesis@|\textit{locale}|@csquotesStyle| style |
| 1816 |
% of the \textsf{csquotes} package. The respective locale files and |
| 1817 |
% polyglossia locale definitions should be loaded beforehand using |
| 1818 |
% the |\thesis@requireLocale| macro. |
| 1819 |
% |
| 1820 |
% This macro should always be used within a group, so that the |
| 1821 |
% locale, \textsf{csquotes}, and hyphenation settings return back to |
| 1822 |
% what the user has specified after the localized blocks of |
| 1823 |
% typographic material. |
| 1824 |
% \begin{macrocode} |
| 1825 |
\def\thesis@selectLocale#1{% |
| 1826 |
\edef\thesis@locale{#1}% |
| 1827 |
\ltx@ifpackageloaded{csquotes}{% |
| 1828 |
\csq@setstyle{\thesis@@{csquotesStyle}}% |
| 1829 |
}{}% |
| 1830 |
\ltx@ifpackageloaded{polyglossia}{% |
| 1831 |
\selectlanguage{\thesis@locale} |
| 1832 |
}{% |
| 1833 |
\language\csname l@\thesis@locale\endcsname |
| 1834 |
}} |
| 1835 |
% \end{macrocode} |
| 1836 |
% \begin{macro}{\thesis@patch} |
| 1837 |
% The |\thesis@patch|\marg{versions}\marg{patch} macro expands |
| 1838 |
% \textit{patch}, if |\thesis@version|\texttt{\discretionary{@}^^A |
| 1839 |
% {@}{@}}|number| (defined at the top of the file |
| 1840 |
% \texttt{fithesis4.cls}) matches any of the comma-delimited |
| 1841 |
% \textit{versions}. This macro enables the simple deployment of |
| 1842 |
% version-targeted patches. |
| 1843 |
% \begin{macrocode} |
| 1844 |
\def\thesis@patch#1#2{% |
| 1845 |
\def\thesis@patch@versions{#1}% |
| 1846 |
\def\thesis@patch@action{#2}% |
| 1847 |
\def\thesis@patch@next##1,{% |
| 1848 |
\def\thesis@patch@arg{##1}% |
| 1849 |
\def\thesis@patch@relax{\relax}% |
| 1850 |
\ifx\thesis@patch@arg\thesis@version@number |
| 1851 |
\def\thesis@patch@next####1\relax,{}% |
| 1852 |
\expandafter\thesis@patch@action |
| 1853 |
\expandafter\thesis@patch@next |
| 1854 |
\else\ifx\thesis@patch@arg\thesis@patch@relax\else |
| 1855 |
\expandafter\expandafter\expandafter\thesis@patch@next |
| 1856 |
\fi\fi}% |
| 1857 |
\expandafter\expandafter\expandafter\thesis@patch@next |
| 1858 |
\expandafter\thesis@patch@versions\expandafter,\relax,} |
| 1859 |
% \end{macrocode} |
| 1860 |
% \end{macro} |
| 1861 |
% \begin{macro}{\thesis@xpatch} |
| 1862 |
% \changes{v1.0.0}{2021/04/30}{Added \cs{thesis@xpatch} command. [TV]} |
| 1863 |
% The |\thesis@xpatch|\marg{command}\marg{search}\marg{replace} macro |
| 1864 |
% is used to to replace \textit{search} with \textit{replace} in the definition |
| 1865 |
% of \textit{command}. If the replacement fails, a class error is written to |
| 1866 |
% the output. |
| 1867 |
% \begin{macrocode} |
| 1868 |
\long\def\thesis@xpatch#1#2#3{% |
| 1869 |
\xpatchcmd{#1}{#2}{#3}{}% |
| 1870 |
{\ClassError{fithesis4}{% |
| 1871 |
Command \string#1 does not contain the searched text}{}}} |
| 1872 |
% \end{macrocode} |
| 1873 |
% \end{macro} |
| 1874 |
% \iffalse |
| 1875 |
%</class> |
| 1876 |
% ^^A Old fithesis classes |
| 1877 |
%<*oldclass1> |
| 1878 |
|
| 1879 |
\NeedsTeXFormat{LaTeX2e} |
| 1880 |
\ProvidesClass{oldfithesis1}[2015/03/04 old fithesis will load fithesis2 MU thesis class] |
| 1881 |
|
| 1882 |
\ClassWarning{oldfithesis1}{% |
| 1883 |
You are using the fithesis class, which has been deprecated. |
| 1884 |
The fithesis2 class will be used instead. |
| 1885 |
For more information, see <http://www.fi.muni.cz/tech/unix/tex/fithesis.xhtml>% |
| 1886 |
}\LoadClass{fithesis2} |
| 1887 |
|
| 1888 |
%</oldclass1> |
| 1889 |
% |
| 1890 |
%<*oldclass2> |
| 1891 |
|
| 1892 |
\NeedsTeXFormat{LaTeX2e} |
| 1893 |
\ProvidesClass{oldfithesis2}[2015/03/04 old fithesis2 will load fithesis3 MU thesis class] |
| 1894 |
|
| 1895 |
\ClassWarning{oldfithesis2}{% |
| 1896 |
You are using the fithesis2 class, which has been deprecated. |
| 1897 |
The fithesis3 class will be used instead. |
| 1898 |
For more information, see <http://www.fi.muni.cz/tech/unix/tex/fithesis.xhtml>% |
| 1899 |
}\LoadClass{fithesis3} |
| 1900 |
|
| 1901 |
%</oldclass2> |
| 1902 |
% |
| 1903 |
%<*oldclass3> |
| 1904 |
|
| 1905 |
\NeedsTeXFormat{LaTeX2e} |
| 1906 |
\ProvidesClass{oldfithesis3}[2018/11/17 old fithesis3 will load fithesis4 MU thesis class] |
| 1907 |
|
| 1908 |
\ClassWarning{oldfithesis3}{% |
| 1909 |
You are using the fithesis3 class, which has been deprecated. |
| 1910 |
The fithesis4 class will be used instead. |
| 1911 |
For more information, see <http://www.fi.muni.cz/tech/unix/tex/fithesis.xhtml>% |
| 1912 |
}\LoadClass{fithesis4} |
| 1913 |
|
| 1914 |
%</oldclass3> |
| 1915 |
% \fi |
| 1916 |
% |
| 1917 |
% \subsection{Locale files} |
| 1918 |
% \label{sec:locale-files} |
| 1919 |
% Locale files contain macro definitions for various locales. They |
| 1920 |
% live in the \texttt{locale/} subtree and they are loaded during |
| 1921 |
% the main routine (see Section \ref{sec:thesisload}). |
| 1922 |
% |
| 1923 |
% When creating a new locale file, it is advisable to create one |
| 1924 |
% self-contained \texttt{dtx} file, which is then partitioned into |
| 1925 |
% locale files via the \textsf{docstrip} tool based on the |
| 1926 |
% respective \texttt{ins} file. A \DescribeMacro{\file} macro |
| 1927 |
% |\file|\marg{filename} is available for the sectioning of the |
| 1928 |
% documentation of various files within the \texttt{dtx} file. For |
| 1929 |
% more information about \texttt{dtx} files and the |
| 1930 |
% \textsf{docstrip} tool, consult the \textsf{dtxtut, docstrip, |
| 1931 |
% doc} and \textsf{ltxdoc} manuals. |
| 1932 |
% |
| 1933 |
% Mind that the name of the locale is also used to load hyphenation |
| 1934 |
% patterns, which is why it shouldn't be arbitrary. To see the |
| 1935 |
% names of the hyphenation patterns, consult the \textsf{hyph-utf8} |
| 1936 |
% manual. |
| 1937 |
% |
| 1938 |
% \subsubsection{Interface} |
| 1939 |
% The union of locale files loaded via the locale file inheritance |
| 1940 |
% scheme (see the definition of the |\thesis@requireLocale| macro |
| 1941 |
% in Section \ref{sec:reflection}) needs to globally define the |
| 1942 |
% following macros: |
| 1943 |
% \begin{itemize} |
| 1944 |
% \item|\thesis@|\textit{locale}|@csquotesStyle| -- The name of |
| 1945 |
% the style of the \textsf{csquotes} package that matches this |
| 1946 |
% locale |
| 1947 |
% \item|\thesis@|\textit{locale}|@universityName| -- The name of |
| 1948 |
% the university |
| 1949 |
% \item|\thesis@|\textit{locale}|@facultyName| -- The name of the |
| 1950 |
% faculty |
| 1951 |
% \item|\thesis@|\textit{locale}|@assignment| -- The instructions |
| 1952 |
% to replace the current page with the official thesis assignment |
| 1953 |
% \item|\thesis@|\textit{locale}|@declaration| -- The thesis |
| 1954 |
% declaration text |
| 1955 |
% \item|\thesis@|\textit{locale}|@fieldTitle| -- The title of |
| 1956 |
% the field of study entry |
| 1957 |
% \item|\thesis@|\textit{locale}|@advisorTitle| -- The title of |
| 1958 |
% the advisor entry |
| 1959 |
% \item|\thesis@|\textit{locale}|@authorTitle| -- The title of |
| 1960 |
% the author entry |
| 1961 |
% \item|\thesis@|\textit{locale}|@abstractTitle| -- The title of |
| 1962 |
% the abstract section |
| 1963 |
% \item|\thesis@|\textit{locale}|@keywordsTitle| -- The title of |
| 1964 |
% the keywords section |
| 1965 |
% \item|\thesis@|\textit{locale}|@thanksTitle| -- The title of |
| 1966 |
% the acknowledgements section |
| 1967 |
% \item|\thesis@|\textit{locale}|@declarationTitle| -- The title |
| 1968 |
% of the declaration section |
| 1969 |
% \item|\thesis@|\textit{locale}|@idTitle| -- The title of the |
| 1970 |
% thesis author's identifier field |
| 1971 |
% \item|\thesis@|\textit{locale}|@spring| -- The name of the |
| 1972 |
% spring semester |
| 1973 |
% \item|\thesis@|\textit{locale}|@fall| -- The name of the |
| 1974 |
% fall semester |
| 1975 |
% \item|\thesis@|\textit{locale}|@semester| -- The full name of |
| 1976 |
% the current semester |
| 1977 |
% \item|\thesis@|\textit{locale}|@typeName| -- The name of the |
| 1978 |
% thesis type |
| 1979 |
% \changes{v0.3.46}{2017/06/02}{Lifted the \texttt{authorSignature} |
| 1980 |
% and \texttt{formattedDate} strings to the global locale file |
| 1981 |
% interface. [VN]} |
| 1982 |
% \item|\thesis@|\textit{locale}|@authorSignature| -- The label |
| 1983 |
% of the author's signature field |
| 1984 |
% \item|\thesis@|\textit{locale}|@formattedDate| -- A formatted |
| 1985 |
% date |
| 1986 |
% \changes{v1.0.0}{2021/02/26}{Lifted the \texttt{advisorSignature} |
| 1987 |
% string to the global locale file interface. [VN]} |
| 1988 |
% \item|\thesis@|\textit{locale}|@advisorSignature| -- The label |
| 1989 |
% of the author's signature field |
| 1990 |
% \end{itemize} where \textit{locale} is the name of the locale. |
| 1991 |
% |
| 1992 |
% \def\file#1{\paragraph{The \texttt{#1} file}} |
| 1993 |
% \subsubsection{English locale files} |
| 1994 |
% \input{locale/english.dtx} |
| 1995 |
% \subsubsection{Czech locale files} |
| 1996 |
% \input{locale/czech.dtx} |
| 1997 |
% \subsubsection{Slovak locale files} |
| 1998 |
% \input{locale/slovak.dtx} |
| 1999 |
% |
| 2000 |
% \subsection{Style files} |
| 2001 |
% \label{sec:style-files} |
| 2002 |
% Style files define the structure and the look of the resulting |
| 2003 |
% document. They live in the \texttt{style/} subtree and they are |
| 2004 |
% loaded during the main routine (see Section |
| 2005 |
% \ref{sec:thesisload}). |
| 2006 |
% |
| 2007 |
% When creating a new style file, it is advisable to create one |
| 2008 |
% self-contained \texttt{dtx} file, which can contain several |
| 2009 |
% files to be extracted via the \textsf{docstrip} tool based on the |
| 2010 |
% respective \texttt{ins} file. A \DescribeMacro{\file} macro |
| 2011 |
% |\file|\marg{filename} is available for the sectioning of the |
| 2012 |
% documentation of various files within the \texttt{dtx} file. |
| 2013 |
% For more information about \texttt{dtx} files and the |
| 2014 |
% \textsf{docstrip} tool, consult the \textsf{dtxtut, docstrip, |
| 2015 |
% doc} and \textsf{ltxdoc} manuals. |
| 2016 |
% |
| 2017 |
% \subsubsection{Interface} |
| 2018 |
% The union of style files loaded via the style file inheritance |
| 2019 |
% scheme (see the definition of the |\thesis@requireStyle| macro in |
| 2020 |
% Section \ref{sec:reflection}) should globally define at least one |
| 2021 |
% of the following macros: |
| 2022 |
% \begin{itemize} |
| 2023 |
% \item\DescribeMacro{\thesis@blocks@preamble}^^A |
| 2024 |
% |\thesis@blocks@preamble| -- If autolayout is enabled, then |
| 2025 |
% this macro is expanded at the very beginning of the document. |
| 2026 |
% \item\DescribeMacro{\thesis@blocks@postamble}^^A |
| 2027 |
% |\thesis@blocks@postamble| -- If autolayout is enabled, then |
| 2028 |
% this macro is expanded at the very end of the document. |
| 2029 |
% \item\DescribeMacro{\thesis@blocks@mainMatter}^^A |
| 2030 |
% |\thesis@blocks@mainMatter| -- If autolayout is enabled, then |
| 2031 |
% this macro is expanded at the beginning of the document right |
| 2032 |
% after |\thesis@blocks@preamble|. This macro sets the style of |
| 2033 |
% the main matter of the thesis. |
| 2034 |
% \end{itemize} |
| 2035 |
% |
| 2036 |
% \subsubsection{Base style files} |
| 2037 |
% \input{style/base.dtx} |
| 2038 |
% \input{style/mu/base.dtx} |
| 2039 |
% \subsubsection{The style files of the Faculty of Informatics} |
| 2040 |
% \input{style/mu/fi.dtx} |
| 2041 |
% \subsubsection{The style files of the Faculty of Science} |
| 2042 |
% \input{style/mu/sci.dtx} |
| 2043 |
% \subsubsection{The style files of the Faculty of Arts} |
| 2044 |
% \input{style/mu/phil.dtx} |
| 2045 |
% \subsubsection{The style files of the Faculty of Education} |
| 2046 |
% \input{style/mu/ped.dtx} |
| 2047 |
% \subsubsection{The style files of the Faculty of Social Studies} |
| 2048 |
% \input{style/mu/fss.dtx} |
| 2049 |
% \subsubsection{The style files of the Faculty of Law} |
| 2050 |
% \input{style/mu/law.dtx} |
| 2051 |
% \subsubsection{The style files of the Faculty of Economics and |
| 2052 |
% Administration} |
| 2053 |
% \input{style/mu/econ.dtx} |
| 2054 |
% \subsubsection{The style files of the Faculty of Medicine} |
| 2055 |
% \input{style/mu/med.dtx} |
| 2056 |
% \subsubsection{The style files of the Faculty of Sports Studies} |
| 2057 |
% \input{style/mu/fsps.dtx} |
| 2058 |
% \subsubsection{The style files of the Faculty of Pharmacy} |
| 2059 |
% \input{style/mu/pharm.dtx} |