%%
%% This is file `fithesis-mu-base.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% base.dtx  (with options: `base')
%% 
%% Copyright 1998--2022  Daniel Marek (DM), Jan Pavlovič (JP),
%%                       Vít Novotný (VN), Tereza Vrabcová (TV),
%%                       Petr Sojka (PS)
%% http://www.fi.muni.cz/tech/unix/tex/fithesis.xhtml
%% Faculty of Informatics, Masaryk University (Brno, Czech Republic)
%% 
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version
%% 1.3 of this license or (at your option) any later version.
%% The latest version of this license is available at
%% 
%%   http://www.latex-project.org/lppl.txt
%% 
%% and version 1.3 or later is part of all distributions of LaTeX
%% version 2005/12/01 or later.
%% 
%% This work has the LPPL maintenance status `maintained'.
%% 
%% The Current Maintainer of this work is Vít Novotný (VN).
%% Send bug reports, requests for additions and questions
%% either to the fithesis discussion forum at
%% 
%%   http://is.muni.cz/auth/df/fithesis-sazba/
%% 
%% or to the e-mail address <witiko@mail.muni.cz>.
%% 
%% 
%% MODIFICATION ADVICE:
%% 
%% If you want to customize this file, it is best to make a copy of
%% the source file(s) from which it was produced.  Use a different
%% name for your copy(ies) and modify the copy(ies); this will ensure
%% that your modifications do not get overwritten when you install a
%% new release of the standard system.  You should also ensure that
%% your modified source file does not generate any modified file with
%% the same name as a standard file.
%% 
%% You will also need to produce your own, suitably named, .ins file to
%% control the generation of files from your source file; this file
%% should contain your own preambles for the files it generates, not
%% those in the standard .ins files.
%% 
%% The names of the source files used are shown above.
%% 
\ProvidesPackage{fithesis/style/mu/fithesis-mu-base}[2022/08/15]
\NeedsTeXFormat{LaTeX2e}
\DeclareOption{10pt}{\def\thesis@ptsize{0}}
\DeclareOption{11pt}{\def\thesis@ptsize{1}}
\DeclareOption{12pt}{\def\thesis@ptsize{2}}
\newif\ifthesis@twoside@
\DeclareOption{oneside}{%
  \thesis@twoside@false\@twosidefalse\@mparswitchfalse}
\DeclareOption{twoside}{%
  \thesis@twoside@true \@twosidetrue \@mparswitchtrue}
\DeclareOption{onecolumn}{\@twocolumnfalse}
\DeclareOption{twocolumn}{\@twocolumntrue}
\DeclareOption{draft}{\setlength\overfullrule{5pt}}
\DeclareOption{final}{\setlength\overfullrule{0pt}}
\newif\ifthesis@palatino@
\DeclareOption{palatino}{\thesis@palatino@true}
\DeclareOption{nopalatino}{\thesis@palatino@false}
\newif\ifthesis@neuehaas@
\DeclareOption{neuehaas}{\thesis@neuehaas@true}
\DeclareOption{noneuehaas}{\thesis@neuehaas@false}
\newif\ifthesis@color@
\DeclareOption{monochrome}{\thesis@color@false}
\DeclareOption{color}{\thesis@color@true}
\newif\ifthesis@colorbold@
\DeclareOption{colorbold}{\thesis@colorbold@true}
\DeclareOption{nocolorbold}{\thesis@colorbold@false}
\newif\ifthesis@microtype@
\DeclareOption{microtype}{\thesis@microtype@true}
\DeclareOption{nomicrotype}{\thesis@microtype@false}
\newif\ifthesis@sansbold@
\DeclareOption{sansbold}{\thesis@sansbold@true}
\DeclareOption{nosansbold}{\thesis@sansbold@false}
\newif\ifthesis@newtable@
\DeclareOption{table}{\thesis@newtable@true}
\DeclareOption{oldtable}{\thesis@newtable@false}
\DeclareOption{nolot}{\let\thesis@blocks@lot\relax}
\DeclareOption{lot}{\let\thesis@blocks@lot\listoftables}
\DeclareOption{nolof}{\let\thesis@blocks@lof\relax}
\DeclareOption{lof}{\let\thesis@blocks@lof\listoffigures}
\newif\ifthesis@cover@
\DeclareOption{nocover}{\thesis@cover@false}
\DeclareOption{cover}{\thesis@cover@true}
\newif\ifthesis@digital@
\DeclareOption{digital}{%
  \ExecuteOptions{color,cover,colorbold}%
  \thesis@digital@true}
\DeclareOption{printed}{%
  \ExecuteOptions{monochrome,nocover,nocolorbold}%
  \thesis@digital@false}
\ExecuteOptions{%
  printed,12pt,twoside,final,microtype,sansbold,palatino,neuehaas,oldtable,lot,lof}
\ProcessOptions*
\thesis@requireLocale{english}
\thesis@require{xcolor}
\RequirePackage[labelfont=bf]{caption}
\thesis@require{graphicx}
\thesis@require{pdfpages}
\thesis@require{keyval}
\thesis@require{ifxetex}
\thesis@require{ifluatex}
\thesis@require{tabularx}
\thesis@require{tabu}
\thesis@require{booktabs}
\thesis@require{tikz}
\ifthesis@microtype@
  \thesis@require[final,babel]{microtype}
\fi
{\let\x\expandafter
\x\global\x\let\x\ifthesis@xeluatex\csname if%
  \ifxetex true\else
    \ifluatex\x\x\x t\x\x\x r\x\x\x u\x\x\x e%
    \else   f\x\x\x a\x\x\x l\x\x\x s\x\x\x e%
    \fi
  \fi\endcsname}
\ifthesis@xeluatex
  \ifthesis@palatino@
    \thesis@require{fontspec}
    \thesis@require{unicode-math}
    \setmainfont[Ligatures=TeX]{TeX Gyre Pagella}
    \setmathfont[math-style=ISO,bold-style=ISO]{texgyrepagella-math.otf}
  \fi
  \ifthesis@neuehaas@
    \thesis@require{fontspec}
    \setsansfont[Ligatures=TeX,Scale=MatchLowercase]{TeX Gyre Heros}
  \fi
\else
  \ifthesis@palatino@
    \RequirePackage[resetfonts]{cmap}
    \thesis@require{lmodern}
    \thesis@require{mathpazo}
    \thesis@require{tgpagella}
    \RequirePackage[T1]{fontenc}
  \fi
  \ifthesis@neuehaas@
    \thesis@require[scale=0.863]{tgheros}
    \RequirePackage[T1]{fontenc}
  \fi
\fi
\let\thesis@newtable@old\tabular
\let\endthesis@newtable@old\endtabular
\ifthesis@newtable@
  % Adjust the measurements.
  \setlength{\aboverulesep}{0pt}
  \setlength{\belowrulesep}{0pt}
  \setlength{\extrarowheight}{.75ex}
  \ifthesis@color@
    % The redefinition of `tabular`
    \renewenvironment{tabular}%
      {\rowcolors{1}{thesis@color@tableOdd}%
                    {thesis@color@tableEven}%
       \thesis@newtable@old}%
      {\endthesis@newtable@old}
    % The redefinition of `tabularx`
    \let\thesis@newtable@oldx\tabularx
    \let\endthesis@newtable@oldx\endtabularx
    \renewenvironment{tabularx}%
      {\rowcolors{1}{thesis@color@tableEven}%
                    {thesis@color@tableOdd}%
       \thesis@newtable@oldx}%
      {\endthesis@newtable@oldx}
    % The redefinition of `tabu`
    \let\thesis@newtable@oldtabu\tabu
    \let\endthesis@newtable@oldtabu\endtabu
    \renewenvironment{tabu}%
      {\rowcolors{1}{thesis@color@tableEven}%
                    {thesis@color@tableOdd}%
       \thesis@newtable@oldtabu}%
      {\endthesis@newtable@oldtabu}
  \fi
\fi
\newif\ifthesis@bibliography@
\thesis@bibliography@false
\ifx\thesis@bibFiles\undefined\else
  {\edef\@bibList{\thesis@bibFiles}%
  \ifx\@bibList\empty\else
    \global\thesis@bibliography@true
  \fi}
\fi
\def\thesis@bibliography@setup#1{%
  \setkeys{thesis@bibliography}{#1}}
\define@key{thesis@bibliography}{style}{%
  \ifx\thesis@bibliography@style\undefined
    \def\thesis@bibliography@style{#1}%
  \fi}
\define@key{thesis@bibliography}{sorting}{%
  \ifx\thesis@bibliography@sorting\undefined
    \def\thesis@bibliography@sorting{#1}%
  \fi}
\thesis@def@extra[]{bibliography}
\ifx\thesis@extra@bibliography
    \thesis@placeholder@extra@bibliography\else
  \expandafter\thesis@bibliography@setup\expandafter{%
    \thesis@extra@bibliography}%
\fi
\newif\ifthesis@bibliography@loaded@
  \thesis@bibliography@loaded@false
\newif\ifthesis@bibliography@included@
  \thesis@bibliography@included@false
\def\thesis@bibliography@load{%
  \ifthesis@bibliography@
    \ifthesis@bibliography@loaded@\else
      \thesis@bibliography@loaded@true
      % Load csquotes and BibLaTeX.
      \thesis@require{csquotes}
      \thesis@bibliography@setup{
        style = iso-numeric,
        sorting = none}
      % FIXME: This is a hotfix for biblatex.
      % It should be removed after v3.17 has been released.
      % See https://tex.stackexchange.com/a/581469/70941.
      \thesis@require{expl3}
      \thesis@require[
        backend=biber,
        style=\thesis@bibliography@style,
        sorting=\thesis@bibliography@sorting,
        autolang=other,
        sortlocale=auto]{biblatex}
      % Load the bibliography databases.
      {\edef\@bibList{\thesis@bibFiles}%
      \def\@inject##1,{%
        \def\@args{##1}\def\@relax{\relax}%
        \ifx\@args\@relax\else
          % Trim leading spaces.
          \edef\@trimmed{\romannumeral-`\.##1}%
          \addbibresource\@trimmed
          \expandafter\@inject\fi}%
      \expandafter\@inject\@bibList,\relax,}%
      \let\thesis@printbibliography@old\printbibliography
      \def\printbibliography{%
        \global\thesis@bibliography@included@true
        \thesis@printbibliography@old}
    \fi
  \fi}
\thesis@require{hyperref}
\ifthesis@digital@
  \hypersetup{pdfborderstyle={/S/U/W 1}}
\else
  \hypersetup{hidelinks}
\fi
\widowpenalty 10000
\clubpenalty  10000
\def\thesis@color@setup#1{%
  \setkeys{thesis@color}{#1}}
\define@key{thesis@color}{links}{%
  \definecolor{thesis@color@links}#1
  \hypersetup{linkbordercolor=thesis@color@links}}
\define@key{thesis@color}{secondary}{%
  \definecolor{thesis@color@secondary}#1}
\thesis@color@setup{secondary={RGB}{0, 0, 220}}
\define@key{thesis@color}{tableOdd}{%
  \definecolor{thesis@color@tableOdd}#1}
\define@key{thesis@color}{tableEven}{%
  \definecolor{thesis@color@tableEven}#1}
\define@key{thesis@color}{tableEmph}{%
  \definecolor{thesis@color@tableEmph}#1}
\let\thesis@bfseries@old\bfseries
\def\bfseries{%
  \ifthesis@sansbold@\sffamily\fi
  \ifthesis@colorbold@\color{thesis@color@secondary}\fi\thesis@bfseries@old}
\def\thesis@blocks@coverMatter{%
  \pagenumbering{gobble}}
\def\thesis@blocks@frontMatter{%
  \thesis@blocks@clear
  \pagestyle{plain}
  \parindent 1.5em
  \setcounter{page}{1}
  \pagenumbering{roman}}
\def\thesis@blocks@clear{%
  \ifthesis@twoside@
    \clearpage
    \ifodd\value{page}\else%
      \thispagestyle{empty}%
      \hbox{}%
      \newpage
    \fi
  \else
    \newpage
  \fi}
\def\thesis@blocks@clearRight{%
  \ifthesis@twoside@
    \clearpage
    \ifodd\value{page}%
      \thispagestyle{empty}%
      \hbox{}%
      \newpage
    \fi
  \else
    \newpage
  \fi}
\newcommand{\thesis@blocks@logo}[2]{{%
  \let\@logowidth\relax\newlength\@logowidth
  \let\@logoheight\relax\newlength\@logoheight
  \settowidth\@logowidth{\includegraphics[#2]{#1}}%
  \settoheight\@logoheight{\includegraphics[#2]{#1}}%
  \def\@maxwidth##1{\ifdim\@logowidth>##1 ##1\else\@logowidth\fi}
  \def\@maxheight##1{\ifdim\@logoheight>##1 ##1\else\@logoheight\fi}
  \includegraphics[width=\@maxwidth{6.3cm}, height=\@maxheight{4cm},
    keepaspectratio, #2]{#1}}}
\newcommand{\thesis@blocks@facultyLogo@monochrome}[1]%
  [scale=0.95]{{%
    \edef\@path{\thesis@logopath\thesis@facultyLogo}%
    \expandafter\thesis@blocks@logo\expandafter{\@path}{#1}}}
\newcommand{\thesis@blocks@facultyLogo@color}[1]%
  [scale=0.95]{{%
    \edef\@path{\thesis@logopath\thesis@facultyLogo
      \ifthesis@color@-color\fi}%
    \expandafter\thesis@blocks@logo\expandafter{\@path}{#1}}}
\newcommand{\thesis@blocks@universityLogo@monochrome}[1]%
  [scale=0.9]{{%
    \edef\@path{\thesis@logopath\thesis@universityLogo}%
    \expandafter\thesis@blocks@logo\expandafter{\@path}{#1}}}
\newcommand{\thesis@blocks@universityLogo@color}[1]%
  [scale=0.9]{{%
    \edef\@path{\thesis@logopath\thesis@universityLogo
      \ifthesis@color@-color\fi}%
    \expandafter\thesis@blocks@logo\expandafter{\@path}{#1}}}
\let\thesis@department@name\thesis@department
\let\thesis@departmentEn@name\thesis@departmentEn
\let\thesis@field@name\thesis@field
\let\thesis@fieldEn@name\thesis@fieldEn
\def\thesis@blocks@cover{%
  \ifthesis@cover@
    \thesis@blocks@clear
    \begin{alwayssingle}%
      \colorlet{thesis@color@secondary}{black}%
      \thispagestyle{empty}%
      \begin{center}%
        \thesis@blocks@universityLogo@monochrome\par
        \vspace{0.75cm}%
        {\sf\thesis@titlePage@large\thesis@@upper{facultyName}\par}%
        \vfill
        \begingroup
        \thesis@colorbold@true
        {\sffamily\bfseries\thesis@titlePage@Huge\thesis@TeXtitle\par}%
        \endgroup
        \vspace{1.5cm}%
        {\sf\thesis@titlePage@Large\thesis@@{typeName}\par}%
        \vspace{1.5cm}%
        {\sf\thesis@titlePage@LARGE\thesis@upper{author}\par}%
        \vfill\vfill\vfill\vfill
        {\sf\thesis@titlePage@large\thesis@place, \thesis@@{semester}\par}%
      \end{center}%
    \end{alwayssingle}%
  \fi}
\def\thesis@blocks@advisorSignature{%
  \let\@A\relax\newlength{\@A}
    \settowidth{\@A}{\thesis@@{advisorSignature}}
    \setlength{\@A}{\@A+1cm}
  \hfill\raisebox{-0.5em}{\parbox{\@A}{
    \centering
    \rule{\@A}{1pt}\\
    \thesis@@{advisorSignature}
  }}}%
\newif\ifthesis@blocks@titlePage@department@
\thesis@blocks@titlePage@department@true
\newif\ifthesis@blocks@titlePage@field@
\thesis@blocks@titlePage@field@true
\newif\ifthesis@blocks@titlePage@programme@
\thesis@blocks@titlePage@programme@true

\def\thesis@blocks@titlePage{%
  \thesis@blocks@clear
  \begin{alwayssingle}%
    \thispagestyle{empty}%
    \begin{center}%
      \thesis@blocks@universityLogo@color
      \par\vspace{0.75cm}%
      {\sf\thesis@titlePage@large\thesis@@upper{facultyName}\par}%
      \vfill
      \begingroup
      \thesis@colorbold@true
      {\sffamily\bfseries\thesis@titlePage@Huge\thesis@TeXtitle\par}%
      \endgroup
      \vspace{1.5cm}%
      {\sf\thesis@titlePage@Large\thesis@@{typeName}\par}%
      \vspace{1.5cm}%
      {\sf\thesis@titlePage@LARGE\thesis@upper{author}\par}%
      \vfill\vfill
      {\sf\thesis@titlePage@large\thesis@@{advisorTitle}: \thesis@advisor\par}%
      \vspace{0.75cm}%
      \ifthesis@blocks@titlePage@department@
        {\sf\thesis@titlePage@large\thesis@department@name\par}%
      \fi
      \ifthesis@blocks@titlePage@programme@
        \vspace{0.25cm}%
        {\sf\thesis@titlePage@large\thesis@@{bib@programme}: \thesis@programme\par}%
      \fi
      \ifthesis@blocks@titlePage@field@
        \vspace{0.25cm}%
        {\sf\thesis@titlePage@large\thesis@@{fieldTitle}: \thesis@field@name\par}%
      \fi
      \vfill
      {\sf\thesis@titlePage@large\thesis@place, \thesis@@{semester}%
        \ifx\thesis@type\thesis@rigorous
          \thesis@blocks@advisorSignature
        \else\ifx\thesis@type\thesis@proposal
          \thesis@blocks@advisorSignature
        \fi\fi\par}%
    \end{center}%
  \end{alwayssingle}}
\def\thesis@blocks@seal{%
  \thesis@blocks@clear
    \begin{alwayssingle}%
      \thispagestyle{empty}%
      \begin{center}%
        \leavevmode
        \par\vfill
        \thesis@blocks@facultyLogo@color
        \par\vfill\vfill\vfill\vfill
      \end{center}%
    \end{alwayssingle}}
\def\thesis@blocks@toc{%
  \thesis@blocks@clear
  \tableofcontents}
\def\thesis@blocks@tables{%
  \thesis@blocks@toc
  \thesis@blocks@lot
  \thesis@blocks@lof}
\def\thesis@blocks@declaration{%
  \thesis@blocks@clear
  \begin{alwayssingle}%
    \chapter*{\thesis@@{declarationTitle}}%
    \thesis@declaration
    \vskip 2cm%
    \hfill\thesis@author
  \end{alwayssingle}}
\def\thesis@blocks@thanks{%
  \ifx\thesis@thanks\undefined\else
    \thesis@blocks@clear
    \begin{alwayssingle}%
      \chapter*{\vspace*{\fill}\thesis@@{thanksTitle}}%
      \leavevmode\thesis@thanks
    \end{alwayssingle}%
  \fi}
\def\thesis@blocks@abstract{%
  \begin{alwayssingle}%
    \vskip 40 \p@
    {\let\thesis@blocks@clear\relax
    \chapter*{\thesis@@{abstractTitle}}}%
    \noindent\thesis@abstract
    \par\vfil\null
  \end{alwayssingle}}
\def\thesis@blocks@abstractEn{%
  \ifthesis@english\else
    {\thesis@selectLocale{english}%
    \begin{alwayssingle}%
      \vskip 40 \p@
      {\let\thesis@blocks@clear\relax
      \chapter*{\thesis@english@abstractTitle}}%
      \noindent\thesis@abstractEn
      \par\vfil\null
    \end{alwayssingle}}%
  \fi}
\def\thesis@blocks@keywords{%
  \begin{alwayssingle}%
    {\let\thesis@blocks@clear\relax%
    \chapter*{\vspace*{\fill}\thesis@@{keywordsTitle}}}%
    \noindent\leavevmode\thesis@keywords
  \end{alwayssingle}}
\def\thesis@blocks@keywordsEn{%
  \ifthesis@english\else
    {\thesis@selectLocale{english}%
    \begin{alwayssingle}%
      {\let\thesis@blocks@clear\relax%
      \chapter*{\vspace*{\fill}\thesis@english@keywordsTitle}}%
      \noindent\leavevmode\thesis@keywordsEn
    \end{alwayssingle}}%
  \fi}
\def\thesis@rewind{%
  \addtocounter{page}{-\ifthesis@twoside@2\else1\fi}}
\newif\ifthesis@blocks@assignment@
\thesis@blocks@assignment@true
\newif\ifthesis@blocks@assignment@hideIfDigital@
\thesis@blocks@assignment@hideIfDigital@true
\def\thesis@blocks@assignment{%
  \ifthesis@blocks@assignment@
    \ifx\thesis@assignmentFiles\undefined
      % Rewind the pages and typeset a placeholder page.
      \thesis@blocks@clear
      \begin{alwayssingle}%
        \thispagestyle{empty}\thesis@rewind
        \noindent\textit{\thesis@@{assignment}}%
      \end{alwayssingle}%
    \else
      {\edef\@pdfList{\thesis@assignmentFiles}%
      \let\ea\expandafter
      % Injects the specified PDF documents.
      \def\@inject##1,{\thesis@blocks@clear
        \def\@args{##1}\def\@relax{\relax}%
        \ifx\@args\@relax\else
          % Trim leading spaces.
          \edef\@trimmed{\romannumeral-`\.##1}%
          % Rewind the pages and include the PDF.
          \thesis@rewind\includepdf[pages=-]\@trimmed
          \ea\@inject\fi}%
      \ifx\@pdfList\empty\else
        \ifthesis@digital@
          \ifthesis@blocks@assignment@hideIfDigital@
            \thesis@blocks@clear
            \begin{alwayssingle}%
              \thispagestyle{empty}\thesis@rewind
              \noindent\textit{\thesis@@{assignment}}%
            \end{alwayssingle}%
          \else
            \ea\@inject\@pdfList,\relax,%
          \fi
        \else
          \ea\@inject\@pdfList,\relax,%
        \fi
      \fi}%
    \fi
  \fi}
\def\thesis@blocks@mainMatter{%
  \thesis@blocks@clear
  \setcounter{page}{1}
  \pagenumbering{arabic}
  \pagestyle{thesisheadings}
  \parindent 1.5em\relax}
\def\thesis@blocks@bibEntry{%
  \thesis@blocks@clear
  \chapter*{\thesis@@{bib@title}}
  {% Calculate the width of the columns
  \let\@A\relax\newlength{\@A}\settowidth{\@A}{{%
    \bf\thesis@@{bib@author}:}}
  \let\@B\relax\newlength{\@B}\settowidth{\@B}{{%
    \bf\thesis@@{bib@thesisTitle}:}}
  \let\@C\relax\newlength{\@C}\settowidth{\@C}{{%
    \bf\thesis@@{bib@programme}:}}
  \let\@D\relax\newlength{\@D}\settowidth{\@D}{{%
    \bf\thesis@@{bib@field}:}}
  \let\@E\relax\newlength{\@E}
      \settowidth{\@E}{{\bf\thesis@@{bib@advisor}:}}
  \let\@F\relax\newlength{\@F}\settowidth{\@F}{{%
    \bf\thesis@@{bib@academicYear}:}}
  \let\@G\relax\newlength{\@G}\settowidth{\@G}{{%
    \bf\thesis@@{bib@pages}:}}
  \let\@H\relax\newlength{\@H}\settowidth{\@H}{{%
    \bf\thesis@@{bib@keywords}:}}
  \let\@skip\relax\newlength{\@skip}\setlength{\@skip}{16pt}
  \let\@left\relax\newlength{\@left}\pgfmathsetlength{\@left}{%
    max(\@A,\@B,\@C,\@D,\@E,\@F,\@G,\@H)}
  \let\@right\relax\newlength{\@right}\setlength{\@right}{%
    \textwidth-\@left-\@skip}
  % Typeset the table
  \noindent\begin{thesis@newtable@old}%
    {@{}p{\@left}@{\hskip\@skip}p{\@right}@{}}
    \textbf{\thesis@@{bib@author}%
    \ifthesis@english\else\ifthesis@woman ka\fi\fi:} &
      \noindent\parbox[t]{\@right}{
        \thesis@author\\
        \thesis@@{facultyName} \\
        \thesis@@{universityName}\\
        \thesis@department@name
      }\\
    \textbf{\thesis@@{bib@thesisTitle}:}
      & \thesis@title \\
    \textbf{\thesis@@{bib@programme}:}
      & \thesis@programme \\
    \textbf{\thesis@@{bib@field}:}
      & \thesis@field \\
    \textbf{\thesis@@{bib@advisor}:}
      & \thesis@advisor \\
    \textbf{\thesis@@{bib@academicYear}:}
      & \thesis@academicYear \\
    \textbf{\thesis@@{bib@pages}:}
      & \thesis@pages@preamble{} + \thesis@pages \\
    \textbf{\thesis@@{bib@keywords}:}
      & \thesis@TeXkeywords \\
  \end{thesis@newtable@old}}}

\def\thesis@blocks@bibEntryEn{%
  \ifthesis@english\else
  \thesis@blocks@clear
  \chapter*{\thesis@english@bib@title}
  {% Calculate the width of the columns
  \let\@A\relax\newlength{\@A}\settowidth{\@A}{{%
    \bf\thesis@english@bib@author:}}
  \let\@B\relax\newlength{\@B}\settowidth{\@B}{{%
    \bf\thesis@english@bib@thesisTitle:}}
  \let\@C\relax\newlength{\@C}\settowidth{\@C}{{%
    \bf\thesis@english@bib@programme:}}
  \let\@D\relax\newlength{\@D}\settowidth{\@D}{{%
    \bf\thesis@english@bib@field:}}
  \let\@E\relax\newlength{\@E}
      \settowidth{\@E}{{\bf\thesis@english@bib@advisor:}}
  \let\@F\relax\newlength{\@F}\settowidth{\@F}{{%
    \bf\thesis@english@bib@academicYear:}}
  \let\@G\relax\newlength{\@G}\settowidth{\@G}{{%
    \bf\thesis@english@bib@pages:}}
  \let\@H\relax\newlength{\@H}\settowidth{\@H}{{%
    \bf\thesis@english@bib@keywords:}}
  \let\@skip\relax\newlength{\@skip}\setlength{\@skip}{16pt}
  \let\@left\relax\newlength{\@left}\pgfmathsetlength{\@left}{%
    max(\@A,\@B,\@C,\@D,\@E,\@F,\@G,\@H)}
  \let\@right\relax\newlength{\@right}\setlength{\@right}{%
    \textwidth-\@left-\@skip}
  % Typeset the table
  \noindent\begin{thesis@newtable@old}%
    {@{}p{\@left}@{\hskip\@skip}p{\@right}@{}}
    \textbf{\thesis@english@authorTitle:} &
      \noindent\parbox[t]{\@right}{
        \thesis@author\\
        \thesis@english@facultyName \\
        \thesis@english@universityName\\
        \thesis@departmentEn@name
        }\\
    \textbf{\thesis@english@bib@thesisTitle:}
      & \thesis@titleEn \\
    \textbf{\thesis@english@bib@programme:}
      & \thesis@programmeEn \\
    \textbf{\thesis@english@bib@field:}
      & \thesis@fieldEn \\
    \textbf{\thesis@english@bib@advisor:}
      & \thesis@advisor \\
    \textbf{\thesis@english@bib@academicYear:}
      & \thesis@academicYear \\
    \textbf{\thesis@english@bib@pages:}
      & \thesis@pages@preamble{} + \thesis@pages \\
    \textbf{\thesis@english@bib@keywords:}
      & \thesis@TeXkeywordsEn \\
  \end{thesis@newtable@old}}
  \fi}
\def\thesis@blocks@bibliography{%
  \ifthesis@bibliography@loaded@
    \ifthesis@bibliography@included@\else
      \thesis@blocks@clear
      {\emergencystretch=3em%
      \printbibliography[heading=bibintoc]}%
    \fi
  \fi}
\setcounter{tocdepth}{2}

\setcounter{secnumdepth}{2}

\input\thesis@stylepath mu/fithesis-mu-1\thesis@ptsize.clo\relax

\def\ps@thesisheadings{%
  \def\chaptermark##1{%
    \markright{%
      \ifnum\c@secnumdepth >\m@ne
        \thechapter.\ %
      \fi ##1}}
  \let\@oddfoot\@empty
  \let\@oddhead\@empty
  \def\@oddhead{%
    \vbox{%
      \hbox to \textwidth{%
      \hfil{\sc\rightmark}}%
      \vskip 4pt\hrule}}
  \if@twoside
    \def\@evenhead{%
      \vbox{%
        \hbox to \textwidth{%
          {\sc\rightmark}%
          \hfil}
        \vskip 4pt\hrule}}
  \else
    \let\@evenhead\@oddhead
  \fi
  \def\@oddfoot{\hfil\PageFont\thepage}
  \if@twoside
    \def\@evenfoot{\PageFont\thepage\hfil}%
  \else
    \let\@evenfoot\@oddfoot
  \fi
  \let\@mkboth\markboth}
\let\ps@headings\ps@thesisheadings
\let\ps@myheadings\ps@thesisheadings

\renewcommand*\chapter{%
  \thesis@blocks@clear
  \thispagestyle{plain}%
  \global\@topnum\z@
  \@afterindentfalse
  \secdef\@chapter\@schapter}

\renewcommand*\part{%
  \thesis@blocks@clear
  \if@twocolumn
    \onecolumn
    \@tempswatrue
  \else
    \@tempswafalse
  \fi
  \hbox{}\vfil
  \secdef\@part\@spart}

\newif\if@restonecol
\def\alwayssingle{%
  \@restonecolfalse\if@twocolumn\@restonecoltrue\onecolumn\fi}
\def\endalwayssingle{\if@restonecol\twocolumn\fi}

\pdfstringdefDisableCommands{%
  \let\MakeUppercase\relax}

\renewcommand*\toc@font[1]{%
  \ifcase #1\relax
    \bfseries % \chapter (0)
  \or
    \slshape  % \section (1)
  \else
    \rmfamily % \subsection (2), \subsubsection (3)
              % \paragraph, \subparagraph (4)
  \fi}

\renewcommand*\l@part[2]{%
  \ifnum \c@tocdepth >-2\relax
    \addpenalty{-\@highpenalty}%
    \ifnum \c@tocdepth >0\relax
      \addvspace{2.25em \@plus\p@}%
    \else
      \addvspace{1.0em \@plus\p@}%
    \fi
    \begingroup
      \setlength\@tempdima{3em}%
      \parindent \z@ \rightskip \@pnumwidth
      \parfillskip -\@pnumwidth
      {\leavevmode
       \normalfont \bfseries #1\hfil \hb@xt@\@pnumwidth{\hss #2}}\par
       \nobreak
         \global\@nobreaktrue
         \everypar{\global\@nobreakfalse\everypar{}}%
    \endgroup
  \fi}

\renewcommand*\l@chapter[2]{%
  \ifnum \c@tocdepth >0\relax
    \addpenalty{-\@highpenalty}%
    \addvspace{1.0em \@plus\p@}%
    \setlength\@tempdima{1.5em}%
    \begingroup
      \parindent \z@ \rightskip \@pnumwidth
      \parfillskip -\@pnumwidth
      \leavevmode \bfseries
      \advance\leftskip\@tempdima
      \hskip -\leftskip
      #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
      \penalty\@highpenalty
    \endgroup
  \else
    \@dottedtocline{0}{0em}{1.5em}{#1}{#2}
  \fi}

\renewcommand*\l@section{\@dottedtocline{1}{1.5em}{2.3em}}
\renewcommand*\l@subsection{\@dottedtocline{2}{3.8em}{3.2em}}
\renewcommand*\l@subsubsection{\@dottedtocline{3}{7.0em}{4.1em}}
\renewcommand*\l@paragraph{\@dottedtocline{4}{10.0em}{5.0em}}
\renewcommand*\l@subparagraph{\@dottedtocline{4}{12.0em}{6.0em}}
\renewcommand*\l@figure{\@dottedtocline{1}{0.5em}{2.3em}}
\renewcommand*\l@table{\@dottedtocline{1}{0.5em}{2.3em}}
\endinput
%%
%% End of file `fithesis-mu-base.sty'.
