| 1 |
\RequirePackage[utf8]{inputenc} % remove when using lualatex oder xelatex! |
| 2 |
\RequirePackage{hgbpdfa} % Creates a PDF/A-2b compliant document |
| 3 |
|
| 4 |
\documentclass[english]{hgbarticle} |
| 5 |
|
| 6 |
%%%---------------------------------------------------------- |
| 7 |
\begin{document} |
| 8 |
%%%---------------------------------------------------------- |
| 9 |
|
| 10 |
\title{The \textsf{hagenberg-thesis} Package} |
| 11 |
\date{\hgbDate} |
| 12 |
|
| 13 |
\author{W.\ Burger and W.\ Hochleitner\\[10pt] |
| 14 |
University of Applied Sciences Upper Austria\\ |
| 15 |
Department of Digital Media, Hagenberg (Austria)} |
| 16 |
|
| 17 |
%%%---------------------------------------------------------- |
| 18 |
\maketitle |
| 19 |
%%%---------------------------------------------------------- |
| 20 |
|
| 21 |
\begin{abstract}\noindent |
| 22 |
The \textsf{hagenberg-thesis} package is a collection of modern LaTeX |
| 23 |
templates for university theses (bachelor, master, diploma or PhD programs) and |
| 24 |
related documents. This manual describes the main features of this package |
| 25 |
and how they may be customized. |
| 26 |
Pre-configured document templates for English and German manuscripts and a |
| 27 |
complete tutorial are available on the package's home repository. |
| 28 |
\end{abstract} |
| 29 |
|
| 30 |
\clearpage |
| 31 |
\tableofcontents |
| 32 |
\clearpage |
| 33 |
|
| 34 |
\section{Introduction} |
| 35 |
|
| 36 |
The complete source of this package and auxiliary materials are available on |
| 37 |
CTAN% |
| 38 |
\footnote{\url{https://ctan.org/pkg/hagenberg-thesis}} |
| 39 |
and its development repository.% |
| 40 |
\footnote{\url{https://github.com/Digital-Media/HagenbergThesis}} |
| 41 |
The package is made available under the terms of the Creative Commons |
| 42 |
Attribution 4.0 International Public License.% |
| 43 |
\footnote{\url{https://creativecommons.org/licenses/by/4.0/legalcode}} |
| 44 |
|
| 45 |
|
| 46 |
\section{Document classes} |
| 47 |
|
| 48 |
The \texttt{hgb} package provides the following document classes, which are |
| 49 |
based on the standard \latex\ classes \texttt{book}, \texttt{report}, and |
| 50 |
\texttt{article}, respectively: |
| 51 |
% |
| 52 |
\begin{itemize} |
| 53 |
\item \textbf{\texttt{hgbthesis}} (\texttt{book}): |
| 54 |
for bachelor's, master's, diploma, and PhD theses, |
| 55 |
\item \textbf{\texttt{hgbreport}} (\texttt{report}): |
| 56 |
for project and term reports, |
| 57 |
\item \textbf{\texttt{hgbarticle}} (\texttt{article}): |
| 58 |
for drafting journal articles. |
| 59 |
\end{itemize} |
| 60 |
|
| 61 |
|
| 62 |
\subsection{Class options} |
| 63 |
|
| 64 |
\subsubsection{General options} |
| 65 |
|
| 66 |
All document classes accept the following general options: |
| 67 |
% |
| 68 |
\begin{itemize} |
| 69 |
\item \texttt{english}|\texttt{german}: specifies the main document language,% |
| 70 |
\footnote{With class \texttt{hgbthesis} this is equivalent to \texttt{language=english|german}.} |
| 71 |
\item \texttt{oneside}|\texttt{twoside}: document layout (default is \texttt{oneside}), |
| 72 |
\item \texttt{smartquotes}: use smart quotes replacement (\verb!"!...\verb!"! $\rightarrow$ ``...''), |
| 73 |
\item \texttt{apa} (use \texttt{apa} bibliography style instead of |
| 74 |
\texttt{numeric-comp}), |
| 75 |
\item \texttt{noUpdateCheck} (suppress check of package release date). |
| 76 |
\end{itemize} |
| 77 |
|
| 78 |
|
| 79 |
\subsubsection{Class-specific options} |
| 80 |
|
| 81 |
In addition, the following class-specific options are accepted: |
| 82 |
|
| 83 |
\noindent\textbf{\texttt{hgbthesis}}: |
| 84 |
\begin{itemize} |
| 85 |
\item \texttt{type=}% |
| 86 |
\{\texttt{bachelor}|\texttt{master}|\texttt{diploma}|\texttt{phd}|\texttt{internship}|\texttt{custom}\}: |
| 87 |
thesis type, |
| 88 |
\item \texttt{language=}\{\texttt{english}|\texttt{german}\}: main document language,% |
| 89 |
\footnote{Note: The \texttt{german} option implicitly loads Babel's \texttt{ngerman} setup. |
| 90 |
When switching languages (see Sec.~\ref{sec:LanguageSwitchingCommands}) only \texttt{german} |
| 91 |
should be used.} |
| 92 |
\item \texttt{titlelanguage=}\{\texttt{english}|\texttt{german}\}: |
| 93 |
language on title pages, defaults to main document language if omitted, |
| 94 |
\item \texttt{proposal}: flag to indicate proposal documents. |
| 95 |
\end{itemize} |
| 96 |
|
| 97 |
\noindent\textbf{\texttt{hgbreport}}: |
| 98 |
\begin{itemize} |
| 99 |
\item \texttt{notitlepage}: no separate title page. |
| 100 |
\end{itemize} |
| 101 |
|
| 102 |
\noindent\textbf{\texttt{hgbarticle}}: |
| 103 |
\begin{itemize} |
| 104 |
\item \texttt{twocolumn}: two-column page layout, |
| 105 |
\item \texttt{review}: review mode with line numbers. |
| 106 |
\end{itemize} |
| 107 |
|
| 108 |
\noindent |
| 109 |
For example, to start a master's thesis in German, simply place |
| 110 |
% |
| 111 |
\begin{LaTeXCode}[numbers=none] |
| 112 |
\documentclass[type=master,language=german,smartquotes]{hgbthesis} |
| 113 |
\end{LaTeXCode} |
| 114 |
% |
| 115 |
at the beginning of the document. |
| 116 |
|
| 117 |
The \texttt{proposal} option is intended for a \emph{thesis proposal} (``Exposé'' or ``Proposal'' ) and is |
| 118 |
only effective in \emph{conjunction} with the main thesis types, \eg, |
| 119 |
% |
| 120 |
\begin{LaTeXCode}[numbers=none] |
| 121 |
\documentclass[type=bachelor,language=english,titlelanguage=german,proposal]{hgbthesis} |
| 122 |
\end{LaTeXCode} |
| 123 |
% |
| 124 |
The result is a short exposé that contains only one chapter. Thus, |
| 125 |
chapter numbers are not displayed. Remove the \texttt{proposal} option to |
| 126 |
migrate a proposal document straight to the final thesis (and restore the usual |
| 127 |
numbering scheme). |
| 128 |
|
| 129 |
The example also shows that the main document language (\texttt{language=english}) and the |
| 130 |
language on the title page (\texttt{titlelanguage=german}) can be set independently. |
| 131 |
|
| 132 |
\subsection{Thesis settings (class \texttt{hgbthesis})} |
| 133 |
|
| 134 |
\texttt{hgbthesis} supports several types of thesis documents. The following |
| 135 |
parameters must be specified at the beginning of the main document: |
| 136 |
% |
| 137 |
\begin{itemize} |
| 138 |
\item \verb!\title{...}!, |
| 139 |
\item \verb!\subtitle{...}! (optional), |
| 140 |
\item \verb!\author{...}!, |
| 141 |
\item \verb!\programtype{...}! (optional), |
| 142 |
\item \verb!\programname{...}!, |
| 143 |
\item \verb!\institution{...}!, |
| 144 |
\item \verb!\placeofstudy{...}!, |
| 145 |
\item \verb!\dateofsubmission{yyyy}{mm}{dd}!, |
| 146 |
\item \verb!\advisor[]{...}! (optional, multiple \verb!\advisor! statements allowed), |
| 147 |
\end{itemize} |
| 148 |
% |
| 149 |
Note that \texttt{hgbthesis} only supports a \emph{single author} inside the |
| 150 |
\verb!\author{...}! macro argument (commands \verb!\and! and |
| 151 |
\verb!\thanks{...}! are deactivated)! |
| 152 |
|
| 153 |
The command \verb!\advisor[role]{name}! accepts an optional argument to associate a \emph{role} |
| 154 |
with the advisor's \emph{name}, \eg, \verb!\advisor[Supervisor]{Prof.~Marie Curie, PhD}!. |
| 155 |
Multiple advisors can be specified, for example |
| 156 |
% |
| 157 |
\begin{LaTeXCode}[numbers=none] |
| 158 |
\advisor[1.~Betreuerin]{Professor Frida K.~Putnik, PhD} |
| 159 |
\advisor[2.~Betreuer]{Franz Grillparzer, TU Wien} |
| 160 |
\advisor[Gutachter]{Dr.~B.\,Rutal, MIT} |
| 161 |
\end{LaTeXCode} |
| 162 |
|
| 163 |
\noindent |
| 164 |
Other (optional) settings for \texttt{hgbthesis} include: |
| 165 |
\begin{itemize} |
| 166 |
\item \verb!\license{cc|strict}!: |
| 167 |
Use the \emph{Creative Commons License} (\texttt{cc} = default) or strict license terms |
| 168 |
(``all rights reserved''). |
| 169 |
\item \verb!\logofile{xxx.pdf}!: |
| 170 |
%Specifies a custom logo image for the title page, to be placed in \verb!images/xxx.pdf! |
| 171 |
%(default is \texttt{logo.pdf}). |
| 172 |
This command is \textbf{deprecated} -- the thesis logo |
| 173 |
should be specified in the associated \emph{theme} file instead (see Sec.~\ref{sec:Themes}). |
| 174 |
\end{itemize} |
| 175 |
|
| 176 |
\section{Style files and user commands} |
| 177 |
|
| 178 |
The package comes with a set of style (\texttt{*.sty}) files that can be used |
| 179 |
independently of the document classes listed above: |
| 180 |
\begin{itemize} |
| 181 |
\item \texttt{hgb.sty}: language and date setup, custom commands; |
| 182 |
\item \texttt{hgbabbrev.sty}: various abbreviation macros; |
| 183 |
\item \texttt{hgbalgo.sty}: additions to \texttt{algpseudocodex} package; |
| 184 |
\item \texttt{hgbbib.sty}: bibliography setup; |
| 185 |
\item \texttt{hgbdict.sty}: language dictionary functions; |
| 186 |
\item \texttt{hgbheadings.sty}: definition of page headers; |
| 187 |
\item \texttt{hgblistings.sty}: setup for code listings; |
| 188 |
\item \texttt{hgbmath.sty}: setup and commands for math typesetting; |
| 189 |
\item \texttt{hgbpdfa.sty}: setup for PDF/A generation. |
| 190 |
\end{itemize} |
| 191 |
|
| 192 |
\subsection{General user commands and environments (\texttt{hgb.sty})} |
| 193 |
\label{sec:GeneralUserCommands} |
| 194 |
|
| 195 |
\begin{itemize} |
| 196 |
\item \textbf{\texttt{{\bs}hgbDate}}: Outputs the package version date, |
| 197 |
\eg, ``\texttt{\hgbDate}''. |
| 198 |
\item \textbf{\texttt{{\bs}getcurrentlabel}}: |
| 199 |
Yields the most recently assigned label number. |
| 200 |
\item \textbf{\texttt{{\bs}calibrationbox}}\verb!{width}{height}!: |
| 201 |
Inserts a test box for checking the final print size (in millimeters). |
| 202 |
\item \verb!\begin{block}...\end{block}!: |
| 203 |
Dummy environment, provides a limited scope for variable/command redefinitions. |
| 204 |
\end{itemize} |
| 205 |
|
| 206 |
|
| 207 |
\subsection{Language switching commands and smart quotes (\texttt{hgb.sty})} |
| 208 |
\label{sec:LanguageSwitchingCommands} |
| 209 |
|
| 210 |
\begin{itemize} |
| 211 |
\item \verb!\SetLanguage{<language>}!: |
| 212 |
Switches to the specified language. |
| 213 |
This and the other language switching commands listed below |
| 214 |
also refresh the \texttt{smartquotes} settings (if activated). |
| 215 |
\item \verb!\begin{SwitchLanguage}{<language>}...\end{SwitchLanguage}!: |
| 216 |
Temporarily switches to the specified language and reverts to the current language |
| 217 |
afterwards. |
| 218 |
\item \verb!\begin{english}...\end{english}!: |
| 219 |
Temporarily switches to English language settings, short for |
| 220 |
\verb!\begin{SwitchLanguage}{english}..!. |
| 221 |
\item \verb!\begin{german}...\end{german}!: |
| 222 |
Temporarily switches to German language settings, short for |
| 223 |
\verb!\begin{SwitchLanguage}{german}..!. |
| 224 |
\item \verb!\SmartquotesActive!: |
| 225 |
For debugging only. Returns \texttt{true}/\texttt{false} if smart quotes are activated in |
| 226 |
the current context (or an appropriate message if the \texttt{csquotes} package was not loaded at all). |
| 227 |
\end{itemize} |
| 228 |
|
| 229 |
|
| 230 |
\subsection{Text commands (\texttt{hgbabbrev.sty})} |
| 231 |
|
| 232 |
\subsubsection*{Special characters:} |
| 233 |
|
| 234 |
\begin{itemize} |
| 235 |
\item \textbf{\texttt{{\bs}bs}}: Inserts a backslash character (short for |
| 236 |
\verb!\textbackslash!). |
| 237 |
\item \textbf{\texttt{{\bs}obnh}}: Inserts an optional break with no |
| 238 |
hyphen (\eg, \verb!PlugIn{\obnh}Filter!). |
| 239 |
\end{itemize} |
| 240 |
|
| 241 |
|
| 242 |
\subsubsection*{German abbreviations:} |
| 243 |
|
| 244 |
\begin{itemize} |
| 245 |
\item \textbf{\texttt{{\bs}bzgl}}: \bzgl |
| 246 |
\item \textbf{\texttt{{\bs}bzw}}: \bzw |
| 247 |
\item \textbf{\texttt{{\bs}ca}}: \ca |
| 248 |
\item \textbf{\texttt{{\bs}dah}}: \dah |
| 249 |
\item \textbf{\texttt{{\bs}Dah}}: \Dah |
| 250 |
\item \textbf{\texttt{{\bs}ds}}: \ds |
| 251 |
\item \textbf{\texttt{{\bs}etc}}: \etc |
| 252 |
\item \textbf{\texttt{{\bs}evtl}}: \evtl |
| 253 |
\item \textbf{\texttt{{\bs}ia}}: \ia |
| 254 |
\item \textbf{\texttt{{\bs}oa}}: \oa |
| 255 |
\item \textbf{\texttt{{\bs}sa}}: \sa |
| 256 |
\item \textbf{\texttt{{\bs}so}}: \so |
| 257 |
\item \textbf{\texttt{{\bs}su}}: \su |
| 258 |
\item \textbf{\texttt{{\bs}ua}}: \ua |
| 259 |
\item \textbf{\texttt{{\bs}Ua}}: \Ua |
| 260 |
\item \textbf{\texttt{{\bs}uae}}: \uae |
| 261 |
\item \textbf{\texttt{{\bs}usw}}: \usw |
| 262 |
\item \textbf{\texttt{{\bs}uva}}: \uva |
| 263 |
\item \textbf{\texttt{{\bs}uvm}}: \uvm |
| 264 |
\item \textbf{\texttt{{\bs}va}}: \va |
| 265 |
\item \textbf{\texttt{{\bs}vgl}}: \vgl |
| 266 |
\item \textbf{\texttt{{\bs}zB}}: \zB |
| 267 |
\item \textbf{\texttt{{\bs}ZB}}: \ZB |
| 268 |
\end{itemize} |
| 269 |
|
| 270 |
\subsubsection*{English abbreviations:} |
| 271 |
|
| 272 |
\begin{itemize} |
| 273 |
\item \textbf{\texttt{{\bs}ie}}: \ie |
| 274 |
\item \textbf{\texttt{{\bs}eg}}: \eg |
| 275 |
\item \textbf{\texttt{{\bs}etc}}: \etc |
| 276 |
\item \textbf{\texttt{{\bs}Eg}}: \Eg |
| 277 |
\item \textbf{\texttt{{\bs}wrt}}: \wrt |
| 278 |
\end{itemize} |
| 279 |
|
| 280 |
\noindent |
| 281 |
Note that none of the above abbreviation macros ``eats'' subsequent white |
| 282 |
space, \ie, they can be used without additional controls, as in |
| 283 |
``\verb!\wrt what I said!'', for example. |
| 284 |
|
| 285 |
\subsection{Bibliography commands (\texttt{hgbbib.sty})} |
| 286 |
|
| 287 |
\begin{itemize} |
| 288 |
\item |
| 289 |
\textbf{\texttt{{\bs}AddBibFile}}\newline |
| 290 |
A wrapper to \texttt{biblatex}'s \verb!\addbibresource! macro (for backward compatibility only). |
| 291 |
\item |
| 292 |
\textbf{\texttt{{\bs}MakeBibliography}}[\emph{options}] |
| 293 |
\newline |
| 294 |
Inserts the |
| 295 |
reference section or chapter. By default, references are automatically |
| 296 |
split into category subsections.% |
| 297 |
\footnote{Predefined reference categories are \texttt{literature}, |
| 298 |
\texttt{avmedia}, \texttt{online} and \texttt{software}.} |
| 299 |
Use the option \texttt{nosplit} to produce a traditional (\ie, |
| 300 |
contiguous) list of references. |
| 301 |
\item |
| 302 |
\textbf{\texttt{{\bs}mcite}}% |
| 303 |
[\emph{text1}]\{\emph{key1}\}% |
| 304 |
[\emph{text2}]\{\emph{key2}\}% |
| 305 |
\ldots |
| 306 |
[\emph{textN}]\{\emph{keyN}\}% |
| 307 |
\newline |
| 308 |
Analogous to \texttt{bib\-la\-tex}'s \texttt{{\bs}cites} command% |
| 309 |
\footnote{% |
| 310 |
\url{http://mirrors.ctan.org/macros/latex/contrib/biblatex/doc/biblatex.pdf} |
| 311 |
(see Sec.~3.8.3)} but inserts semicolons between reference entries for |
| 312 |
better readability. |
| 313 |
\end{itemize} |
| 314 |
|
| 315 |
% \MakeBibliography ... creates a reference section split subsections (default) |
| 316 |
% \MakeBibliography[nosplit] ... creates a one-piece reference section |
| 317 |
|
| 318 |
|
| 319 |
\subsection{Code environments (\texttt{hgblistings.sty})} |
| 320 |
|
| 321 |
The following types of code environments are defined:% |
| 322 |
% |
| 323 |
\begin{itemize} |
| 324 |
\item \textbf{\texttt{CCode}}: for C (ANSI), |
| 325 |
\item \textbf{\texttt{CppCode}}: for C++ (ISO), |
| 326 |
\item \textbf{\texttt{CsCode}}: for C\#, |
| 327 |
\item \textbf{\texttt{CssCode}}: for CSS, |
| 328 |
\item \textbf{\texttt{GenericCode}}: for generic code, |
| 329 |
\item \textbf{\texttt{HtmlCode}}: for HTML, |
| 330 |
\item \textbf{\texttt{JavaCode}}: for Java, |
| 331 |
\item \textbf{\texttt{JsCode}}: for JavaScript, |
| 332 |
\item \textbf{\texttt{LaTeXCode}}: for \latex, |
| 333 |
\item \textbf{\texttt{ObjCCode}}: for ObjectiveC, |
| 334 |
\item \textbf{\texttt{PhpCode}}: for PHP, |
| 335 |
\item \textbf{\texttt{PythonCode}}: for Python, |
| 336 |
\item \textbf{\texttt{ScalaCode}}: for Scala, |
| 337 |
\item \textbf{\texttt{Swift}}: for Swift, |
| 338 |
\item \textbf{\texttt{XmlCode}}: for XML. |
| 339 |
\end{itemize} |
| 340 |
% |
| 341 |
\texttt{hgblistings} is based on the \texttt{listingsutf8}% |
| 342 |
\footnote{\url{https://ctan.org/pkg/listingsutf8}} |
| 343 |
package, thus any valid \texttt{listings}% |
| 344 |
\footnote{\url{https://ctan.org/pkg/listings}} |
| 345 |
option may be used; for example, the option \texttt{numbers=none} to suppress |
| 346 |
line numbers: |
| 347 |
% |
| 348 |
\begin{LaTeXCode}[numbers=none] |
| 349 |
\begin{JavaCode}[numbers=none] |
| 350 |
... // Java code comes here |
| 351 |
\end{JavaCode} |
| 352 |
\end{LaTeXCode} |
| 353 |
|
| 354 |
|
| 355 |
\subsection{Mathematical commands (\texttt{hgbmath.sty})} |
| 356 |
|
| 357 |
\texttt{hgbmath} requires (and automatically loads) the \texttt{amsmath}% |
| 358 |
\footnote{\url{https://ctan.org/pkg/amsmath}} |
| 359 |
package, thus, all commands and symbols of \texttt{amsmath} are available by |
| 360 |
default. The following \emph{additional} commands can only be used in math mode: |
| 361 |
% |
| 362 |
\begin{itemize} |
| 363 |
\item \textbf{\texttt{{\bs}Cpx}}: $\Cpx$ (complex numbers), |
| 364 |
\item \textbf{\texttt{{\bs}N}}: $\N$ (natural numbers), |
| 365 |
\item \textbf{\texttt{{\bs}R}}: $\R$ (real numbers), |
| 366 |
\item \textbf{\texttt{{\bs}Q}}: $\Q$ (rational numbers), |
| 367 |
\item \textbf{\texttt{{\bs}Z}}: $\Z$ (integer numbers). |
| 368 |
\end{itemize} |
| 369 |
|
| 370 |
|
| 371 |
\subsection{Algorithms (\texttt{hgbalgo.sty})} |
| 372 |
|
| 373 |
\texttt{hgbalgo} is a stand-alone package that is based on -- and extends -- |
| 374 |
the \texttt{algorithmicx} and \texttt{algpseudocodex} packages.% |
| 375 |
\footnote{\url{https://ctan.org/pkg/algorithmicx}, |
| 376 |
\url{https://ctan.org/pkg/algpseudocodex}} |
| 377 |
It fixes some (mostly indentation-related) problems, adds color, and provides |
| 378 |
some additional commands. It also loads the \texttt{algorithm}% |
| 379 |
\footnote{\url{https://ctan.org/pkg/algorithms}} |
| 380 |
package, which defines a compatible float container for algorithms: |
| 381 |
\verb!\begin{algorithm}! \verb!...! \verb!\end{algorithm}!. |
| 382 |
|
| 383 |
\paragraph{Additional algorithm commands:} |
| 384 |
\begin{itemize} |
| 385 |
\item |
| 386 |
\textbf{\texttt{{\bs}StateNN[<nesting>]\{<text>\}}}: |
| 387 |
Creates a \emph{non-numbered} statement like \texttt{algo\-rith\-micx}'s |
| 388 |
\verb!\Statex! command but provides controlled indentation inside nested |
| 389 |
constructs. The optional integer argument \verb!<nesting>! can be used to |
| 390 |
specify the \emph{nesting depth} to compensate for a bug in |
| 391 |
\texttt{algorithmicx} (the nesting level inside a block is not set |
| 392 |
properly before the first \verb!\State! command). Omitting the optional |
| 393 |
argument should give correct indentation in most situations. |
| 394 |
\item |
| 395 |
\textbf{\texttt{{\bs}Input\{<text>\}}}: |
| 396 |
For describing the input parameters in a procedure's preamble. |
| 397 |
\item |
| 398 |
\textbf{\texttt{{\bs}Output\{<text>\}}}: |
| 399 |
For describing the output values in a procedure's preamble. |
| 400 |
\item |
| 401 |
\textbf{\texttt{{\bs}Returns\{<text>\}}}: |
| 402 |
For describing the return values in a procedure's preamble. |
| 403 |
\end{itemize} |
| 404 |
|
| 405 |
\paragraph{Vertical spacing commands:} |
| 406 |
The following commands are provided for fine-tuning the vertical spacing |
| 407 |
between individual statements of an algorithm (the standard spacing commands |
| 408 |
like \verb!\smallskip! \etc\ have no effect between statements):% |
| 409 |
\footnote{Note that the standard spacing commands work \emph{between} |
| 410 |
\texttt{procedure} and \texttt{function} blocks in the usual way.} |
| 411 |
\begin{itemize} |
| 412 |
\item \textbf{{\bs}\texttt{algsmallskip}}: inserts 3pt extra space, |
| 413 |
\item \textbf{{\bs}\texttt{algmedskip}}: inserts 6pt extra space, |
| 414 |
\item \textbf{{\bs}\texttt{algbigskip}}: inserts 12pt extra space. |
| 415 |
\end{itemize} |
| 416 |
They are supposed to be used inside (\ie, at the end of) statements, for |
| 417 |
example: |
| 418 |
% |
| 419 |
\begin{LaTeXCode}[numbers=none] |
| 420 |
\State $x \gets x + 1$ \algsmallskip |
| 421 |
\end{LaTeXCode} |
| 422 |
|
| 423 |
\paragraph{Defined algorithm colors:} |
| 424 |
\begin{itemize} |
| 425 |
\item \textbf{\texttt{AlgKeywordColor}}: for algorithm keywords, |
| 426 |
\item \textbf{\texttt{AlgProcedureColor}}: for procedure and function names. |
| 427 |
\end{itemize} |
| 428 |
These colors can be redefined at any time (see the \texttt{xcolor}% |
| 429 |
\footnote{\url{https://ctan.org/pkg/xcolor}} |
| 430 |
package), \eg, by |
| 431 |
\begin{LaTeXCode}[numbers=none] |
| 432 |
\definecolor{AlgKeywordColor}{named}{black} |
| 433 |
\definecolor{AlgProcedureColor}{rgb}{0.0, 0.5, 0.0} % dark green |
| 434 |
\end{LaTeXCode} |
| 435 |
|
| 436 |
|
| 437 |
\subsection{PDF/A generation (\texttt{hgbpdfa.sty})} |
| 438 |
|
| 439 |
Package \texttt{hgbpdfa} contains definitions for generating PDF/A-compliant |
| 440 |
(PDF/A-2b) output files. It is based on the \texttt{pdfmanagement-testphase} |
| 441 |
package (requires version 0.95s or higher) and must be loaded before the |
| 442 |
\verb!\documentclass! statement in the main document, for example, by |
| 443 |
\begin{LaTeXCode}[numbers=none] |
| 444 |
\RequirePackage{hgbpdfa} |
| 445 |
\end{LaTeXCode} |
| 446 |
If omitted, a plain PDF (non-PDF/A-compliant) file is generated. |
| 447 |
|
| 448 |
|
| 449 |
|
| 450 |
\section{Custom front pages using \emph{themes}} |
| 451 |
\label{sec:Themes} |
| 452 |
|
| 453 |
The content and structure of the front pages generated for the various thesis types |
| 454 |
(\texttt{bachelor}, \texttt{master} \etc) may be easily customized to meet the specific |
| 455 |
requirements of different institutions or departments. |
| 456 |
Note that this kind of customization is typically done at the institutional level and not |
| 457 |
by the individual author (student). |
| 458 |
|
| 459 |
|
| 460 |
\subsection{Preconfigured themes} |
| 461 |
|
| 462 |
The various front page arrangements are called \emph{themes} in the following. |
| 463 |
Each theme is identified by a unique \texttt{\textit{themeID}} and associated with a |
| 464 |
particular style file (\latex\ package) named |
| 465 |
\texttt{hgbtheme-\textit{themeID}.sty}. |
| 466 |
For example, the theme with \texttt{\textit{themeID}} = \texttt{default} is defined |
| 467 |
by the associated file |
| 468 |
\begin{itemize} |
| 469 |
\item[] \texttt{hgbtheme-default.sty}. |
| 470 |
\end{itemize} |
| 471 |
% |
| 472 |
Additional resources required by a theme (such as graphics files) must be named with the |
| 473 |
complete \emph{theme name} (\texttt{hgbtheme-\textit{themeID}}) |
| 474 |
as a prefix, for example,% |
| 475 |
\footnote{This is to avoid file name conflicts since themes are part of the |
| 476 |
CTAN distribution and thus all theme-related files will eventually end up in a single, |
| 477 |
flat directory.} |
| 478 |
\begin{itemize} |
| 479 |
\item[] \texttt{hgbtheme-default-logo.pdf} |
| 480 |
\end{itemize} |
| 481 |
% |
| 482 |
which contains the logo graphics used by that theme. |
| 483 |
|
| 484 |
To \emph{use} a specific theme, option \texttt{theme=\textit{themeID}} |
| 485 |
is added to the \verb!\documentclass! command, for example, |
| 486 |
\begin{itemize} |
| 487 |
\item[] \verb!\documentclass[theme=default,...]{hgbthesis}! |
| 488 |
\end{itemize} |
| 489 |
|
| 490 |
|
| 491 |
\subsection{Customizing themes} |
| 492 |
\label{sec:CustomizingThemes} |
| 493 |
|
| 494 |
To customize the title page setup to their needs, authors (or administrators) should |
| 495 |
\emph{not} modify any of the standard theme files, since these may not be local but loaded |
| 496 |
from a package distribution. |
| 497 |
There are two recommended ways instead: |
| 498 |
|
| 499 |
\subsubsection{Option 1: Adapt \texttt{hgbtheme-custom.sty}} |
| 500 |
|
| 501 |
Copy the theme file \texttt{hgbtheme-custom.sty} (which is part of this distribution) to the |
| 502 |
\emph{main document directory} (if not there already) and open it in your LaTeX editor. |
| 503 |
It defines \texttt{hgbtheme-default.sty} as the parent theme by the initial command |
| 504 |
\begin{LaTeXCode}[numbers=none] |
| 505 |
\hgb@UseTheme{default} |
| 506 |
\end{LaTeXCode} |
| 507 |
% |
| 508 |
All commands defined in the parent theme are visible and may be redefined, |
| 509 |
typically by \verb!\renewcommand! (see Sec.\ \ref{sec:ThemeStyleCommands} |
| 510 |
for available commands). |
| 511 |
To activate the associated theme simply use \texttt{custom} as the \texttt{\textit{themeID}} |
| 512 |
in the associated document option, \ie, |
| 513 |
% |
| 514 |
\begin{LaTeXCode}[numbers=none] |
| 515 |
\documentclass[theme=custom,...]{hgbthesis} |
| 516 |
\end{LaTeXCode} |
| 517 |
% |
| 518 |
This is the simplest approach if only a \emph{single} custom theme is needed. |
| 519 |
|
| 520 |
\subsubsection{Option 2: Create multiple custom themes} |
| 521 |
|
| 522 |
Thesis administrators may find it useful to define \emph{multiple} custom themes for their |
| 523 |
institution or department(s). |
| 524 |
For this purpose, simply copy file \texttt{hgbtheme-default.sty} or \texttt{hgbtheme-custom.sty} |
| 525 |
to a new file, \eg, \texttt{hgbtheme-physics.sty},% |
| 526 |
\footnote{To be placed in the main document directory. Note the naming conventions!} |
| 527 |
and modify it accordingly. The associated theme can then be invoked by |
| 528 |
% |
| 529 |
\begin{LaTeXCode}[numbers=none] |
| 530 |
\documentclass[theme=physics,...]{hgbthesis} |
| 531 |
\end{LaTeXCode} |
| 532 |
% |
| 533 |
An error will be raised if the associated \texttt{.sty} file cannot be found. |
| 534 |
|
| 535 |
|
| 536 |
|
| 537 |
\subsection{Commands and variables available to custom theme styles} |
| 538 |
\label{sec:ThemeStyleCommands} |
| 539 |
|
| 540 |
Any theme style must at least define the command |
| 541 |
\begin{itemize} |
| 542 |
\item[] \verb!\hgb@MakeFrontPages{..}! |
| 543 |
\end{itemize} |
| 544 |
which is pre-defined (as throwing an error) in \texttt{hgbthesis.cls} |
| 545 |
and invoked by \verb!\maketitle!. |
| 546 |
If \texttt{default} is used as the parent theme, \verb!\hgb@MakeFrontPages! |
| 547 |
is already set up properly and redefinition is optional, \ie, |
| 548 |
% |
| 549 |
\begin{LaTeXCode}[numbers=none] |
| 550 |
\hgb@UseTheme{default} % parent theme |
| 551 |
\renewcommand{\hgb@MakeFrontPages}{..} % optional |
| 552 |
\end{LaTeXCode} |
| 553 |
% |
| 554 |
|
| 555 |
\noindent |
| 556 |
Moreover, the following macros and variables are assured to be available for defining custom themes |
| 557 |
(see \texttt{hgbtheme-default.sty} for their typical usage). |
| 558 |
These are defined in \texttt{hgbthesis.cls} and should \emph{not} be redefined: |
| 559 |
% |
| 560 |
\begin{itemize} |
| 561 |
\item[] \verb!\hgb@Author! |
| 562 |
\item[] \verb!\hgb@Title! |
| 563 |
\item[] \verb!\hgb@SubTitle! |
| 564 |
\item[] \verb!\hgb@Institution! |
| 565 |
\item[] \verb!\hgb@ProgramType! |
| 566 |
\item[] \verb!\hgb@ProgramName! |
| 567 |
\item[] \verb!\hgb@PlaceOfStudy! |
| 568 |
\medskip |
| 569 |
\item[] \verb!\hgb@ThesisName! |
| 570 |
\item[] \verb!\hgb@ProposalName! |
| 571 |
\medskip |
| 572 |
\item[] \verb!\hgb@AdvisorCount! |
| 573 |
\item[] \verb!\hgb@getAdvisorRole{<number>}! |
| 574 |
\item[] \verb!\hgb@getAdvisorName{<number>}! |
| 575 |
\medskip |
| 576 |
\item[] \verb!\hgb@MainLanguage! |
| 577 |
\item[] \verb!\hgb@TitleLanguage! |
| 578 |
\item[] \verb!\hgb@TitlePageFont! |
| 579 |
%\item[] \verb!\hgb@LogoFile! |
| 580 |
\medskip |
| 581 |
%\item[] \verb!\hgb@Advisor! |
| 582 |
\item[] \verb!\hgb@SubmissionYear! |
| 583 |
\item[] \verb!\hgb@SubmissionMonth! |
| 584 |
\item[] \verb!\hgb@SubmissionDay! |
| 585 |
\item[] \verb!\hgb@GetMonthName{<language>}{<monthnumber>}! |
| 586 |
\medskip |
| 587 |
\item[] \verb!\hgb@License! |
| 588 |
\medskip |
| 589 |
\item[] \verb!hgb@IsProposal! (\emph{boolean}, without \verb!\!) |
| 590 |
\end{itemize} |
| 591 |
|
| 592 |
\noindent |
| 593 |
Class \texttt{hgbthesis.cls} also defines a special \emph{hook} |
| 594 |
\begin{itemize} |
| 595 |
\item[] \verb!hgb@InitThemeHook! |
| 596 |
\end{itemize} |
| 597 |
for adding custom initialization code for the current theme in the form |
| 598 |
% |
| 599 |
\begin{LaTeXCode}[numbers=none] |
| 600 |
\AddToHook{hgb@InitThemeHook}{<initialization code>}, |
| 601 |
\end{LaTeXCode} |
| 602 |
% |
| 603 |
typically placed at the beginning of the theme file. The collected code for |
| 604 |
this hook is executed immediately \emph{before} \verb!\maketitle!. |
| 605 |
|
| 606 |
|
| 607 |
In addition, theme \texttt{hgbtheme-default.sty} defines the following |
| 608 |
commands for generating individual title pages: |
| 609 |
% |
| 610 |
\begin{itemize} |
| 611 |
\item[] \verb!\hgb@MakeTitlePage! |
| 612 |
\item[] \verb!\hgb@MakeAdvisorPage! |
| 613 |
\item[] \verb!\hgb@MakeCopyrightPage! |
| 614 |
\item[] \verb!\hgb@MakeDeclarationPage! |
| 615 |
\end{itemize} |
| 616 |
% |
| 617 |
Each of these may be redefined by inheriting themes. |
| 618 |
|
| 619 |
\section{Package dependencies} |
| 620 |
|
| 621 |
\begin{sloppypar} |
| 622 |
The \texttt{hagenberg-thesis} package builds on the following \latex\ packages:\newline |
| 623 |
\texttt{abstract}, |
| 624 |
\texttt{algorithm}, |
| 625 |
\texttt{algorithmicx}, |
| 626 |
\texttt{algpseudocodex}, |
| 627 |
\texttt{amsbsy}, |
| 628 |
\texttt{amsfonts}, |
| 629 |
\texttt{amsmath}, |
| 630 |
\texttt{amssymb}, |
| 631 |
\texttt{babel}, |
| 632 |
\texttt{biblatex}, |
| 633 |
\texttt{breakurl}, |
| 634 |
\texttt{caption}, |
| 635 |
\texttt{cmap}, |
| 636 |
\texttt{csquotes}, |
| 637 |
\texttt{datetime2}, |
| 638 |
\texttt{enumitem}, |
| 639 |
\texttt{epstopdf}, |
| 640 |
\texttt{exscale}, |
| 641 |
\texttt{extramarks}, |
| 642 |
\texttt{fancyhdr}, |
| 643 |
\texttt{float}, |
| 644 |
\texttt{fontenc}, |
| 645 |
\texttt{forloop}, |
| 646 |
\texttt{geometry}, |
| 647 |
\texttt{graphicx}, |
| 648 |
\texttt{hypcap}, |
| 649 |
\texttt{hyperref}, |
| 650 |
\texttt{ifpdf}, |
| 651 |
\texttt{inputenc}, |
| 652 |
\texttt{lengthconvert}, |
| 653 |
\texttt{lineno}, |
| 654 |
\texttt{listingsutf8}, |
| 655 |
\texttt{lmodern}, |
| 656 |
\texttt{marvosym}, |
| 657 |
\texttt{moreverb}, |
| 658 |
\texttt{overpic}, |
| 659 |
\texttt{pdfmanagement-testphase}, |
| 660 |
\texttt{pdfpages}, |
| 661 |
\texttt{pict2e}, |
| 662 |
\texttt{subdepth}, |
| 663 |
\texttt{titlesec}, |
| 664 |
\texttt{titling}, |
| 665 |
\texttt{tocbasic}, |
| 666 |
\texttt{url}, |
| 667 |
\texttt{upquote}, |
| 668 |
\texttt{verbatim}, |
| 669 |
\texttt{xcolor}, |
| 670 |
\texttt{xifthen}, |
| 671 |
\texttt{xstring}, |
| 672 |
\texttt{xspace}. |
| 673 |
\end{sloppypar} |
| 674 |
|
| 675 |
\end{document} |