% \iffalse\begin{macrocode}
%<*driver>

\documentclass{ltxdoc}

% Set up the bibliography.
\usepackage{filecontents}
\begin{filecontents}{mubeamer.bib}
@MANUAL{tantau17,
  author        =   {Till Tantau and Joseph Wright and Vedran Miletić},
  year          =   {2017},
  title         =   {The \textsf{beamer} class},
  subtitle      =   {User Guide for version 3.42},
  urldate       =   {2017-08-25},
  url           =   {http://mirrors.ctan.org/macros/latex/contrib/beamer/doc/beameruserguide.pdf},
  langid        =   {english}}
@MANUAL{farar14,
  author        =   {Pavel Far\'{a}\v{r}},
  year          =   {2014},
  title         =   {Support package for free fonts by ParaType},
  urldate       =   {2017-08-25},
  url           =   {http://mirrors.ctan.org/fonts/paratype/doc/paratype.pdf},
  langid        =   {english}}
@MANUAL{jilek05,
  author        =   {Pavel J\'ilek},
  year          =   {2005},
  title         =   {Manu\'al01},
  subtitle      =   {Designmanu\'al jednotn\'eho vizu\'aln\'iho stylu},
  urldate       =   {2018-12-17},
  url           =   {https://sablony.muni.cz/media/24132/design_manual_2005_platne_kapitoly.pdf},
  langid        =   {czech}}
@MANUAL{muni18,
  author        =   {Tom\'a\v{s} Kudela},
  year          =   {2018},
  title         =   {MUNI Designmanu\'al},
  subtitle      =   {Jednotn\'y vizu\'an\'i styl MUNI},
  urldate       =   {2018-12-17},
  url           =   {https://muni.brandcloud.pro},
  langid        =   {czech}}
\end{filecontents}
\usepackage[
  backend=biber,
  style=iso-numeric,
  sorting=none,
  autolang=other,
  sortlocale=auto]{biblatex}
\addbibresource{mubeamer.bib}

% Boilerplate
\usepackage[utf8]{inputenc} % this file uses UTF-8
\usepackage[czech,english]{babel}
\usepackage{tgpagella}
\usepackage{hologo}
\usepackage{booktabs}
\usepackage[scaled=0.86]{berasans}
\usepackage[scaled=1.03]{inconsolata}
\usepackage[resetfonts]{cmap}
\usepackage[T1]{fontenc} % use 8bit fonts
\emergencystretch 2dd
\usepackage{hypdoc}
\usepackage{microtype}
\usepackage{ragged2e}

% Making paragraphs numbered
\makeatletter
\renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}%
            {-2.5ex\@plus -1ex \@minus -.25ex}%
            {1.25ex \@plus .25ex}%
            {\normalfont\normalsize\bfseries}}
\makeatother
\setcounter{secnumdepth}{4} % how many sectioning levels to assign
\setcounter{tocdepth}{4}    % how many sectioning levels to show

% ltxdoc class options
\CodelineIndex
\MakeShortVerb{|}
\EnableCrossrefs
\DoNotIndex{}
\makeatletter
\c@IndexColumns=2
\makeatother

\begin{document}
  \RecordChanges
  \DocInput{mubeamer.dtx}
  \printbibliography
  \PrintIndex
  \RaggedRight
  \PrintChanges
\end{document}

%</driver>
%    \end{macrocode}
%<*theme>
% \fi
%
% \title{A \textsf{beamer} theme for the typesetting of presentations at the Masaryk
%   University, Brno}
% \author{Vít Novotný, Aleš Křenek}
% \date{\today}
% \maketitle
%
% \begin{abstract}
% \noindent This document details the design and the implementation of the
% \textsf{mubeamer} theme for the \textsf{beamer} \Hologo{LaTeX2e}
% class~\cite{tantau17}.  The theme is intended to be used across the Masaryk
% University in Brno and is loosely based on a theme developed by Aleš Křenek
% for the Institute of Computer Science at the Masaryk University in
% Brno\footnote{The original beamer theme developed by Aleš Křenek is available
% internally at
% \url{https://sablony.muni.cz/pracoviste/nefakultni-pracoviste/uvt/ostatni/tex-prezentace/tex-prezentace}.}.
% Included is technical documentation for anyone who wishes to modify the class
% as well as information on the basic usage for the ordinary user.
% \end{abstract}
%
%    \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{beamerthemeMU}[2021/09/07]
\mode<presentation>
%    \end{macrocode}
%
% \tableofcontents
% \listoftables
%
% \section{Requirements}
% \subsection{Required \TeX{} Engine}
% \textsf{Mubeamer} should work out-of-box with all conventional \TeX\ engines
% (\TeX, \hologo{eTeX}, \hologo{pdfTeX}, Lua\TeX, \hologo{XeTeX}) in
% \textsc{pdf} mode.
%
% \subsection{Required Packages}
% \textsf{Mubeamer} requires the \textsf{etoolbox} package to patch the
% |\includegraphics| command in section \ref{sec:filenames_and_pathnames}.
%    \begin{macrocode}
\RequirePackage{etoolbox}
%    \end{macrocode}
% Optional packages include font packages as documented in section
% \ref{sec:processing_options}.
%
% \section{Basic Usage}
% To use \textsf{mubeamer}, specify |\usetheme|\oarg{options}|{MU}| in the
% preamble of your \textsf{beamer} document; the available \meta{options} are
% documented in section \ref{sec:options}. Inside your document, you can use
% the standard markup provided by the \LaTeX{} \textsf{beamer}
% class~\cite{tantau17}. To get started quickly, inspect the example files
% distributed alongside \textsf{mubeamer}.
% 
% \section{Package Options}\label{sec:options}
% \subsection{Defining the Options}
% \begin{macro}{\mubeamer@option@locale}
% The |locale|=\meta{language name} specifies the language that will determine
% which logos and labels are displayed. \emph{When the |locale| option is
% unspecified, the main language of the \textsf{babel} and \textsf{polyglossia}
% packages is used. If neither package is available, |locale=english| is used.}
%    \begin{macrocode}
\DeclareOptionBeamer{locale}{\def\mubeamer@option@locale{#1}}
\ExecuteOptionsBeamer{locale={%
  \@ifundefined{languagename}{english}{\languagename}}}
%    \end{macrocode}
% \end{macro}
%
% \begin{macro}{\mubeamer@option@workplace}
% The |workplace|=\meta{work place} specifies the work place whose logos
% and labels that will be displayed.  The \meta{work place}s recognized at the
% Masaryk University in Brno are outlined in table \ref{table:workplaces}.
% \emph{When the |workplace| option is unspecified, |workplace=mu| is used.}
%    \begin{macrocode}
\DeclareOptionBeamer{workplace}{\def\mubeamer@option@workplace{#1}}
\ExecuteOptionsBeamer{workplace=mu}
%    \end{macrocode}
% \begin{table}
% \begin{center}
% \begin{tabular}{lc}
%   \toprule
%   Work place & \meta{work place} \\
%   \midrule
%   Accomodation and Catering Services & |skm| \\
%   Career Centre & |kariera| \\
%   Central European Institute of Technology & |ceitec| \\
%   Central Management Structure of the Ceitec Project & |ptceitec| \\
%   Centre for International Cooperation & |czs| \\
%   Cerit & |cerit| \\
%   Czech CyberCrime Centre of Excellence C4e & |c4e| \\
%   Faculty of Arts & |phil| \\
%   Faculty of Economics and Administration & |econ| \\
%   Faculty of Education & |ped| \\
%   Faculty of Informatics & |fi| \\
%   Faculty of Law & |law| \\
%   Faculty of Medicine & |med| \\
% \changes{2021/09/07}{2021/09/07}{Add Faculty of Pharmacy.}
%   Faculty of Pharmacy & |pharm| \\
%   Faculty of Science & |sci| \\
%   Faculty of Social Studies & |fss| \\
%   Faculty of Sports Studies & |fsps| \\
%   Information System of Masaryk University & |is| \\
%   Institute for Biostatistics and Analyses & |iba| \\
%   Institute of Computer Science & |ics| \\
%   Language Centre & |lang| \\
%   Management of the University Campus at Bohunice & |ucb| \\
%   Masaryk University & |mu| \\
%   Masaryk University Press & |press| \\
%   Mendel Museum & |muzeu| \\
%   Rector & |rect| \\
%   Rector's Office & |rect-office| \\
%   Support Centre for Students with Special Needs & |teiresias| \\
%   Technology Transfer Office & |ctt| \\
%   University Archives & |arch| \\
%   University Center Telč & |uct| \\
%   \bottomrule
% \end{tabular}
% \caption{The work~places recognized at the Masaryk University
%   in Brno}
% \label{table:workplaces}
% \end{center}
% \end{table}
% \end{macro}
%
% \begin{macro}{\ifmubeamer@option@fonts}
% \begin{macro}{\ifmubeamer@option@scaling}
% The |fonts|=\meta{regime} option specifies how \textsf{mubeamer} sets up
% the default font families. The following \meta{regime}s are recognized:
% \begin{itemize}
% \item |fonts=none|  will make no changes to the currently set up font families.
% \item |fonts=basic| will make the PT Sans and PT Mono font
% families~\cite{farar14} the default sans-serif and monospace font families.
% \item \emph{|fonts=scaled| is the default option when the |fonts| option is
% unspecified.} Like |fonts=basic|, the |scaled| \meta{regime} will make PT
% Sans and PT Mono the default sans-serif and monospace font families. On top of
% that, the PT Sans Caption font family will become the default sans-serif
% family at small font sizes to improve readability; the mechanism is
% documented in section \ref{sec:processing_options}.
% \end{itemize}
%    \begin{macrocode}
\newif\ifmubeamer@option@fonts
\newif\ifmubeamer@option@scaling
\def\mubeamer@temp@option@fonts@none{none}
\def\mubeamer@temp@option@fonts@basic{basic}
\def\mubeamer@temp@option@fonts@scaled{scaled}
\DeclareOptionBeamer{fonts}{%
  \def\mubeamer@temp@option@arg{#1}%
  \ifx\mubeamer@temp@option@arg\mubeamer@temp@option@fonts@none
    \mubeamer@option@fontsfalse
    \mubeamer@option@scalingfalse
  \else
    \ifx\mubeamer@temp@option@arg\mubeamer@temp@option@fonts@basic
      \mubeamer@option@fontstrue
      \mubeamer@option@scalingfalse
    \else
      \ifx\mubeamer@temp@option@arg\mubeamer@temp@option@fonts@scaled
        \mubeamer@option@fontstrue
        \mubeamer@option@scalingtrue
      \else
        \PackageError{beamerthemeMU}%
          {fonts=#1 is not a valid option}%
          {fonts={none|basic|scaled} are the only valid options}%
      \fi
    \fi
  \fi
}
\ExecuteOptionsBeamer{fonts=scaled}
%    \end{macrocode}
% \end{macro}^^A{\ifmubeamer@option@fonts}
% \end{macro}^^A{\ifmubeamer@option@scaling}
%
% \begin{macro}{\ifmubeamer@option@gray}
% The |gray| option makes all logos and labels gray, whereas the |color| option
% makes them colored. \emph{The |color| option is the default when neither
% option is specified.}
%    \begin{macrocode}
\newif\ifmubeamer@option@gray
\DeclareOptionBeamer{gray}{\mubeamer@option@graytrue}
\DeclareOptionBeamer{color}{\mubeamer@option@grayfalse}
\ExecuteOptionsBeamer{color}
%    \end{macrocode}
% \end{macro}
%
% \subsection{Processing the Options}\label{sec:processing_options}
%    \begin{macrocode}
\ProcessOptionsBeamer
%    \end{macrocode}
% If the |fonts=basic| or the |fonts=scaled| option is specified, we load the
% \textsf{PTSans} and \textsf{PTMono} packages. This will make the PT Sans and
% PT Mono font families the default sans-serif and monospace font families.
% Since the packages do not handle font selection for \hologo{XeTeX} and
% Lua\TeX{}, we load the fonts manually in these \TeX{} engines using commands
% from the \textsf{fontspec} package, which we assume the user has already
% loaded themself.
% \begin{macro}{\ifmubeamer@scaling@enabled}
% \begin{macro}{\mubeamer@scaling@family@basic}
% \begin{macro}{\mubeamer@scaling@family@caption}
% \begin{macro}{\mubeamer@scaling@apply}
% If the |fonts=scaled| option is specified, we will load the
% \textsf{PTSansCaption} package and we patch the \LaTeX\ font size commands,
% so that switching to |\scriptsize| and below will:
% \begin{itemize}
% \item change the default sans-serif family to PT Sans Caption if PT Sans is
% the current default sans-serif family, and
% \item change the current font family to PT Sans Caption if PT Sans is the
% current font family.
% \end{itemize}
% Switching to |\small| and above will do the reverse.
%    \begin{macrocode}
\ifmubeamer@option@scaling
  \RequirePackage{PTSansCaption}
  \@ifpackageloaded{fontspec}{
    \begingroup
    \newfontfamily\mubeamer@temp@fontname
      [NFSSFamily=PTSansCaption-TLF]{PT Sans Caption}
    \endgroup
  }{}
\fi
\ifmubeamer@option@fonts
  \RequirePackage{PTSans}
  \RequirePackage{PTMono}
  \@ifpackageloaded{fontspec}{
    \begingroup
    \newfontfamily\mubeamer@temp@fontname
      [NFSSFamily=PTSans-TLF]{PT Sans}
    \endgroup
    \begingroup
    \newfontfamily\mubeamer@temp@fontname
      [NFSSFamily=PTMono-TLF]{PT Mono}
    \endgroup
  }{}
\fi
\newif\ifmubeamer@scaling@enabled
\ifmubeamer@option@scaling
  \def\mubeamer@scaling@family@basic{PTSans-TLF}
  \def\mubeamer@scaling@family@caption{PTSansCaption-TLF}
  \mubeamer@scaling@enabledtrue
  \def\mubeamer@scaling@apply #1 (#2 -> #3){%
    \expandafter\let\expandafter\mubeamer@temp@fontsize
      \csname #1\endcsname
    \expandafter\let\csname mubeamer@original@#1\endcsname
      \mubeamer@temp@fontsize
    \expandafter\def\csname #1\endcsname{%
      \ifmubeamer@scaling@enabled
        \expandafter\ifx\csname mubeamer@scaling@family@#2\endcsname
          \sfbasic\expandafter\let\expandafter\sfdefault
          \csname mubeamer@scaling@family@#3\endcsname
        \fi
        \expandafter\ifx\csname mubeamer@scaling@family@#2\endcsname
          \f@family\expandafter\fontfamily
          \csname mubeamer@scaling@family@#3\endcsname\selectfont
        \fi
      \fi
      \csname mubeamer@original@#1\endcsname}}
  \mubeamer@scaling@apply Huge         (caption -> basic)
  \mubeamer@scaling@apply huge         (caption -> basic)
  \mubeamer@scaling@apply LARGE        (caption -> basic)
  \mubeamer@scaling@apply Large        (caption -> basic)
  \mubeamer@scaling@apply large        (caption -> basic)
  \mubeamer@scaling@apply normalsize   (caption -> basic)
  \mubeamer@scaling@apply small        (caption -> basic)
  \mubeamer@scaling@apply footnotesize (basic -> caption)
  \mubeamer@scaling@apply scriptsize   (basic -> caption)
  \mubeamer@scaling@apply tiny         (basic -> caption)
\fi
%    \end{macrocode}
% Table~\ref{table:scaling} shows how switching to PT Sans Caption at
% small font sizes improves readability.
% \begin{table}
% \begin{center}
% \makeatletter
% \begin{tabular}{rll}
%                     & Without optical scaling & With optical scaling \medskip\\
%   \cs{Huge}         & \fontfamily{PTSans-TLF}\selectfont\Huge\f@family
%                     & \fontfamily{PTSans-TLF}\selectfont\Huge\f@family \\
%   \cs{huge}         & \fontfamily{PTSans-TLF}\selectfont\huge\f@family
%                     & \fontfamily{PTSans-TLF}\selectfont\huge\f@family \\
%   \cs{LARGE}        & \fontfamily{PTSans-TLF}\selectfont\LARGE\f@family
%                     & \fontfamily{PTSans-TLF}\selectfont\LARGE\f@family \\
%   \cs{Large}        & \fontfamily{PTSans-TLF}\selectfont\Large\f@family
%                     & \fontfamily{PTSans-TLF}\selectfont\Large\f@family \\
%   \cs{large}        & \fontfamily{PTSans-TLF}\selectfont\large\f@family
%                     & \fontfamily{PTSans-TLF}\selectfont\large\f@family \\
%   \cs{normalsize}   & \fontfamily{PTSans-TLF}\selectfont\normalsize\f@family
%                     & \fontfamily{PTSans-TLF}\selectfont\normalsize\f@family \\[-0.95pt]
%   \cs{small}        & \fontfamily{PTSans-TLF}\selectfont\small\f@family
%                     & \fontfamily{PTSans-TLF}\selectfont\small\f@family \\[-1.95pt]
%   \cs{footnotesize} & \fontfamily{PTSans-TLF}\selectfont\footnotesize\f@family
%                     & \fontfamily{PTSansCaption-TLF}\selectfont\footnotesize\f@family \\[-2.95pt]
%   \cs{scriptsize}   & \fontfamily{PTSans-TLF}\selectfont\scriptsize\f@family
%                     & \fontfamily{PTSansCaption-TLF}\selectfont\scriptsize\f@family \\[-4.95pt]
%   \cs{tiny}         & \fontfamily{PTSans-TLF}\selectfont\tiny\f@family
%                     & \fontfamily{PTSansCaption-TLF}\selectfont\tiny\f@family \\
% \end{tabular}
% \makeatother
% \caption{The impact of optical scaling on the readability of small text}
% \label{table:scaling}
% \end{center}
% \end{table}
% \end{macro}^^A{\mubeamer@scaling@apply}
% \end{macro}^^A{\mubeamer@scaling@family@caption}
% \end{macro}^^A{\mubeamer@scaling@family@basic}
% \end{macro}^^A{\ifmubeamer@scaling@enabled}
%
% \begin{macro}{\mubeamer@option@locale@logo}
% \begin{macro}{\mubeamer@option@locale@label}
% |\mubeamer@option@locale@{logo,label}| specify separately the locale for
% logos and for labels. Both commands inherit the value of
% |\mubeamer@option@locale|.
%    \begin{macrocode}
\def\mubeamer@option@locale@logo {\mubeamer@option@locale}
\def\mubeamer@option@locale@label{\mubeamer@option@locale}
%    \end{macrocode}
% \end{macro}^^A{mubeamer@option@locale@label}
% \end{macro}^^A{mubeamer@option@locale@logo}
%
% \section{Filenames and Pathnames}\label{sec:filenames_and_pathnames}
% \begin{macro}{\mubeamer@pathname@base}
% |\mubeamer@pathname@base| is the pathname of the base directory
% containing logos and labels, either directly or in subdirectories.
%    \begin{macrocode}
\def\mubeamer@pathname@base{mubeamer/}
%    \end{macrocode}
% \end{macro}
%
% \subsection{Logos and Labels}
% \begin{macro}{\mubeamer@pathname@logo}
% \begin{macro}{\mubeamer@pathname@label}
% |\mubeamer@pathname@{logo,label}| is the pathname of the base directory
% directly containing logo and label files.
%    \begin{macrocode}
\def\mubeamer@pathname@logo {\mubeamer@pathname@base logo/}
\def\mubeamer@pathname@label{\mubeamer@pathname@base label/}
%    \end{macrocode}
% \end{macro}^^A{mubeamer@pathname@label}
% \end{macro}^^A{mubeamer@pathname@logo}
%
% \begin{macro}{\mubeamer@filename@logo}
% |\mubeamer@filename@logo| is the filename of the logo that will be
% displayed at the top of the title page.
%    \begin{macrocode}
\def\mubeamer@filename@logo{%
  \mubeamer@pathname@logo mubeamer-\mubeamer@option@workplace-%
    \mubeamer@option@locale@logo
    \ifmubeamer@option@gray\else
      -color%
    \fi}
%    \end{macrocode}
% \end{macro}
%
% \begin{macro}{\mubeamer@filename@logo@fallback}
% |\mubeamer@filename@logo@fallback| is the filename of the logo that will be
% displayed at the top of the title page if |\mubeamer@filename@logo| is
% not found.
%    \begin{macrocode}
\def\mubeamer@filename@logo@fallback{%
  \mubeamer@pathname@logo mubeamer-\mubeamer@option@workplace-english%
    \ifmubeamer@option@gray\else
      -color%
    \fi}
%    \end{macrocode}
% \end{macro}
%
% \begin{macro}{\mubeamer@filename@logo@lastresort}
% |\mubeamer@filename@logo@lastresort| is the filename of the logo that will be
% displayed at the top of the title page if both |\mubeamer@filename@logo| and
% |\mubeamer@filename@logo@fallback| are not found.
%    \begin{macrocode}
\def\mubeamer@filename@logo@lastresort{%
  \mubeamer@pathname@logo mubeamer-mu-english%
    \ifmubeamer@option@gray\else
      -color%
    \fi}
%    \end{macrocode}
% \end{macro}
%
% \begin{macro}{\mubeamer@filename@label}
% |\mubeamer@filename@label| is the filename of the label that will be
% displayed on the last page.
%    \begin{macrocode}
\def\mubeamer@filename@label{%
  \mubeamer@pathname@label mubeamer-\mubeamer@option@workplace-%
    \mubeamer@option@locale@label
    \ifmubeamer@option@gray\else
      -color%
    \fi}
%    \end{macrocode}
% \end{macro}
%
% \begin{macro}{\mubeamer@filename@label@fallback}
% |\mubeamer@filename@label@fallback| is the filename of the label that will be
% displayed on the last page.
%    \begin{macrocode}
\def\mubeamer@filename@label@fallback{%
  \mubeamer@pathname@label mubeamer-\mubeamer@option@workplace-english%
    \ifmubeamer@option@gray\else
      -color%
    \fi}
%    \end{macrocode}
% \end{macro}
%
% \begin{macro}{\mubeamer@filename@label@lastresort}
% |\mubeamer@filename@label@lastresort| is the filename of the label that will be
% displayed on the last page if both |\mubeamer@filename@label| and
% |\mubeamer@filename@label@fallback| are not found.
%    \begin{macrocode}
\def\mubeamer@filename@label@lastresort{%
  \mubeamer@pathname@label mubeamer-mu-%
    \mubeamer@option@locale@label
    \ifmubeamer@option@gray\else
      -color%
    \fi}
%    \end{macrocode}
% \end{macro}
%
% \begin{macro}{\mubeamer@subroutine@includegraphics}
% |\mubeamer@subroutine@includegraphics|\oarg{\texttt{\textbackslash
% includegraphics} options}\marg{primary file name}\marg{secondary file
% name}\marg{tertiary file name} attempts to display the graphics file
% \meta{primary file name}. If \meta{primary file name} is not found,
% \meta{secondary file name} is tried instead. If \meta{secondary file name} is
% not found either, and \meta{tertiary file name} is non-empty, then
% \meta{tertiary file name} is tried.
%    \begin{macrocode}
\newcount\mubeamer@temp@recursion
\newcommand*\mubeamer@subroutine@includegraphics[4][]{%
  \begingroup
  \mubeamer@temp@recursion=0
  \patchcmd{\Gin@ii}{\Gin@esetsize}{%
    \renewcommand{\@latex@error}[2]{%
      \ifnum\mubeamer@temp@recursion<2
        \advance\mubeamer@temp@recursion by 1
        \ifnum\mubeamer@temp@recursion=1
          \includegraphics[#1]{#3}
        \else
          \if\empty#4\empty
            \PackageError{beamerthemeMU}%
              {none of the following graphics files was found: #2, #3}%
              {check that the mubeamer package has been correctly
               installed\MessageBreak and that you specified an existing
               workplace}%
          \else
            \includegraphics[#1]{#4}
          \fi
        \fi
      \else
        \PackageError{beamerthemeMU}%
          {none of the following graphics files was found: #2, #3, #4}%
          {check that the mubeamer package has been correctly
           installed\MessageBreak and that you specified an existing
           workplace}%
      \fi}%
    \Gin@esetsize}{}{%
      \PackageError{beamerthemeMU}%
        {unable to patch the includegraphics command}%
        {contact the maintainer of the package}}%
  \includegraphics[#1]{#2}%
  \endgroup}
%    \end{macrocode}
% \end{macro}
%
% \subsection{Patch Files}
% \begin{macro}{\mubeamer@pathname@patch}
% |\mubeamer@pathname@patch| is the pathname of the base directory containing
% patch files.
%    \begin{macrocode}
\def\mubeamer@pathname@patch{\mubeamer@pathname@base patch/}
%    \end{macrocode}
% \end{macro}
%
% \begin{macro}{\mubeamer@filename@patch}
% |\mubeamer@filename@patch| is the filename of the patch file that will be
% applied at the end of this style file.
%    \begin{macrocode}
\def\mubeamer@filename@patch{%
  \mubeamer@pathname@patch mubeamer-\mubeamer@option@workplace}
%    \end{macrocode}
% \end{macro}
%
% \section{Layout and Design}
% \subsection{Lengths}
% \subsubsection{Spacing}
% \begin{macro}{\mubeamer@length@margin}
% |\mubeamer@length@margin| is the horizontal margin across all frames and the
% bottom margin of the title page.
%    \begin{macrocode}
\newlength\mubeamer@length@margin
\mubeamer@length@margin=0.7cm
%    \end{macrocode}
% \end{macro}
%
% \begin{macro}{\mubeamer@length@footlinebottompadding}
% |\mubeamer@length@footlinebottompadding| is the bottom padding of the footline.
%    \begin{macrocode}
\newlength\mubeamer@length@footlinebottompadding
\mubeamer@length@footlinebottompadding=.163cm
%    \end{macrocode}
% \end{macro}
%
% \begin{macro}{\mubeamer@length@footlineheight}
% |\mubeamer@length@footlineheight| is the total height of the footline.
%    \begin{macrocode}
\newlength\mubeamer@length@footlineheight
\mubeamer@length@footlineheight=.4cm
%    \end{macrocode}
% \end{macro}
% \subsubsection{Label and Logo Size}
% \begin{macro}{\mubeamer@length@logoheight}
% |\mubeamer@length@logoheight| specifies the height of the logo displayed at
% the top of the title page.
%    \begin{macrocode}
\newlength\mubeamer@length@logoheight
\mubeamer@length@logoheight=1.4cm
%    \end{macrocode}
% \end{macro}
%
% \subsection{Colors}
% The following colors are specified in the \textsc{rgb} color space assuming the 
% sRGB IEC61966 v2.1 color profile with black scaling. The colors are taken
% directly from the design manual of the Masaryk University in
% Brno~\cite{jilek05,muni18}.
% \subsubsection{Basic Palette}
% The basic palette is defined in \autocites[section~2.01]{jilek05}{muni18}. It
% consists of a base color, seven shades of gray as the neutral colors, and two
% hues of orange as the accent colors.
%    \begin{macrocode}
\definecolor{mubeamer@base}{RGB}{0,0,220}
\definecolor{mubeamer@gray1}{RGB}{240,240,240}
\definecolor{mubeamer@gray2}{RGB}{225,225,225}
\definecolor{mubeamer@gray3}{RGB}{210,210,210}
\definecolor{mubeamer@gray4}{RGB}{190,190,190}
\definecolor{mubeamer@gray5}{RGB}{170,170,170}
\definecolor{mubeamer@gray6}{RGB}{150,150,150}
\definecolor{mubeamer@gray7}{RGB}{130,130,130}
\definecolor{mubeamer@orange1}{RGB}{245,165,0}
\definecolor{mubeamer@orange2}{RGB}{240,140,0}
%    \end{macrocode}
% \subsubsection{Faculty Colors}
% The faculty colors are defined in \autocites[section~2.03]{jilek05}{muni18}.
%    \begin{macrocode}
\definecolor{mubeamer@law}{RGB}{145,0,220}
\definecolor{mubeamer@med}{RGB}{240,25,40}
\definecolor{mubeamer@sci}{RGB}{0,175,63}
\definecolor{mubeamer@phil}{RGB}{75,200,255}
\definecolor{mubeamer@ped}{RGB}{255,115,0}
\definecolor{mubeamer@econ}{RGB}{185,0,110}
\definecolor{mubeamer@fi}{RGB}{242,212,92}
\definecolor{mubeamer@fss}{RGB}{0,122,83}
\definecolor{mubeamer@fsps}{RGB}{90,200,175}
%    \end{macrocode}
% \subsubsection{Label Background Color}
% The background color of the label that will be displayed on the last page.
%    \begin{macrocode}
\ifmubeamer@option@gray
  \definecolor{mubeamer@label}{RGB}{255,255,255}
\else
  \colorlet   {mubeamer@label}{mubeamer@base}
\fi
%    \end{macrocode}
%
% \subsection{Beamer Settings}
% \subsubsection{Themes}
% The |infolines| outer theme displays the current section and subsection at
% the top of all frames.
%    \begin{macrocode}
\useoutertheme{infolines}
%    \end{macrocode}
% \subsubsection{Dimensions}
%    \begin{macrocode}
\setbeamersize{%
  text margin left=\mubeamer@length@margin,
  text margin right=\mubeamer@length@margin}
%    \end{macrocode}
% \subsubsection{Templates}
%    \begin{macrocode}
\setbeamertemplate{frametitle}{%
  \vtop{{%
      \usebeamerfont{frametitle}{\insertframetitle}%
      \ifx\insertframesubtitle\@empty\else\\
        \usebeamerfont{framesubtitle}{\insertframesubtitle}
      \fi}
    \vfill}}
%    \end{macrocode}
% No navigation symbols are displayed at the bottom of frames.
%    \begin{macrocode}
\setbeamertemplate{navigation symbols}{}
%    \end{macrocode}
% The footline displays the author, the title, the date, and the page numbers
% at the bottom of all frames.
%    \begin{macrocode}
\setbeamertemplate{footline}{%
  \hskip\mubeamer@length@margin
  \usebeamercolor[fg]{author in head/foot}%
    \usebeamerfont{author in head/foot}\insertshortauthor
  \usebeamercolor[fg]{structure}%
    \usebeamerfont{structure}\ \lower2pt\hbox{\Large$\cdot$}\ 
  \usebeamercolor[fg]{title in head/foot}%
    \usebeamerfont{title in head/foot}\insertshorttitle
  \usebeamercolor[fg]{structure}%
    \usebeamerfont{structure}\ \lower2pt\hbox{\Large$\cdot$}\ 
  \usebeamercolor[fg]{date in head/foot}%
    \usebeamerfont{date in head/foot}\insertshortdate\hfill
  \usebeamercolor[fg]{page number in head/foot}%
    \usebeamerfont{author in head/foot}\insertframenumber\ /
    \inserttotalframenumber
  \hskip\mubeamer@length@margin
  \vrule width 0pt height \mubeamer@length@footlineheight
         depth \mubeamer@length@footlinebottompadding}
%    \end{macrocode}
% The title page forces bottom vertical alignment as if |[b]| were specified.
% This is to make sure that people don't end up with wonky-looking title pages
% by mistake.
%    \begin{macrocode}
\setbeamertemplate{title page}{%
  \vskip\mubeamer@length@margin
  \mubeamer@subroutine@includegraphics%
    [height=\mubeamer@length@logoheight]%
    {\mubeamer@filename@logo}%
    {\mubeamer@filename@logo@fallback}%
    {\mubeamer@filename@logo@lastresort}%
  \vskip0pt plus 6filll
  {\usebeamerfont{title}\usebeamercolor[fg]{title}\inserttitle\par}%
  \vskip0pt plus 1filll

  {\usebeamerfont{subtitle}\usebeamercolor[fg]{subtitle}\insertsubtitle}%
  \vskip0pt plus 4filll

  {\usebeamerfont{author} \insertauthor}%
  \vskip0pt plus 1filll

  {\usebeamerfont{institute}\usebeamercolor[fg]{institute}\insertinstitute}%
  \vskip0pt plus 1filll

  {\usebeamerfont{date} \insertdate}%
  \vskip\mubeamer@length@margin}
%    \end{macrocode}
% Bibliography entries are preceded with the reference text (like ``[Dijkstra,
% 1982]'').
%    \begin{macrocode}
\setbeamertemplate{bibliography item}[text]
%    \end{macrocode}
% Bullet list entries are preceded with squares.
%    \begin{macrocode}
\setbeamertemplate{itemize items}[square]
%    \end{macrocode}
% Blocks are round, and cast a shadow.
%    \begin{macrocode}
\setbeamertemplate{blocks}[rounded][shadow=true]
%    \end{macrocode}
% \begin{macro}{\mubeamer@lastpage}
% The label will be displayed on the last page.
%    \begin{macrocode}
\def\mubeamer@lastpage{%
  \begingroup
  \setbeamercolor{background canvas}{bg=mubeamer@label}
  \begin{frame}[plain]
  \vfill
  \centering
  \mubeamer@subroutine@includegraphics%
    [width=\textwidth]%
    {\mubeamer@filename@label}%
    {\mubeamer@filename@label@fallback}%
    {\mubeamer@filename@label@lastresort}%
  \vfill
  \end{frame}
  \endgroup}
\AtEndDocument{\mubeamer@lastpage}
%    \end{macrocode}
% \end{macro}
% 
% \subsubsection{Fonts and Colors}
%    \begin{macrocode}
\setbeamerfont{structure}{series=\mdseries}
\setbeamercolor{structure}{fg=mubeamer@base}

\setbeamerfont{alerted text}{series=\bfseries}
\setbeamercolor{alerted text}{fg=mubeamer@orange2}

\setbeamerfont{title}{size=\huge,series=\bfseries}
\setbeamercolor{title}{fg=mubeamer@base}
\setbeamerfont{title in head/foot}{size=\tiny,series=\bfseries}
\setbeamercolor{title in head/foot}{parent=structure}

\setbeamerfont{subtitle}{size=\large,series=\mdseries}
\setbeamercolor{subtitle}{fg=black}

\setbeamerfont{author}{series=\bfseries,size=\small}
\setbeamerfont{author in head/foot}{size=\tiny,series=\mdseries}
\setbeamercolor{author in head/foot}{parent=structure}

\setbeamerfont{page number}{series=\footnotesize}
\setbeamerfont{page number in head/foot}{size=\tiny,series=\mdseries}
\setbeamercolor{page number in head/foot}{parent=structure}

\setbeamerfont{date}{size=\footnotesize}
\setbeamerfont{date in head/foot}{size=\tiny,series=\mdseries}
\setbeamercolor{date in head/foot}{parent=structure}

\setbeamerfont{frametitle}{series=\bfseries,size=\Large}
\setbeamercolor{frametitle}{parent=title}

\setbeamerfont{framesubtitle}{series=\bfseries,size=\large}
\setbeamercolor{framesubtitle}{parent=subtitle}

\setbeamerfont{section in head/foot}{series=\bfseries}

\setbeamercolor{bibliography entry author}{%
  use=normal text,fg=normal text.fg}
\setbeamercolor{bibliography entry title}{%
  use=normal text,fg=normal text.fg} 
\setbeamercolor{bibliography entry location}{%
  use=normal text,fg=normal text.fg} 
\setbeamercolor{bibliography entry note}{%
  use=normal text,fg=normal text.fg}

\setbeamerfont{footnote}{size=\footnotesize}
\setbeamercolor{footnote mark}{parent=structure}

\setbeamerfont{section in head/foot}{parent=structure}
\setbeamercolor{section in head/foot}{parent=structure}

\setbeamerfont{subsection in head/foot}{parent=normal text}
\setbeamercolor{subsection in head/foot}{parent=structure}

\setbeamercolor{block title}{fg=white,bg=mubeamer@base}
\setbeamercolor{block title example}{%
  use=alerted text,fg=white,bg=mubeamer@gray7}
\setbeamercolor{block title alerted}{%
  use=alerted text,fg=white,bg=mubeamer@orange1}

\setbeamercolor{block body}{%
  parent=normal text,use=block title,
  bg=block title.bg!10!bg}
\setbeamercolor{block body example}{%
  parent=normal text,bg=mubeamer@gray1}
\setbeamercolor{block body alerted}{%
  parent=normal text,use=block title alerted,
  bg=block title alerted.bg!10!bg}
%    \end{macrocode}
% \section{Applying Patch Files}
% A work~place-specific patch file is applied if it exists.
%    \begin{macrocode}
\IfFileExists{\mubeamer@filename@patch.sty}{%
  \RequirePackage{\mubeamer@filename@patch}}{}
\mode
  <all>
%    \end{macrocode}
% \iffalse
%</theme>
% \fi
