%%
%% This is file `tudscrfonts.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% tudscr-version.dtx  (with options: `package')
%% tudscr-fonts.dtx  (with options: `package,identify')
%% tudscr-base.dtx  (with options: `load')
%% tudscr-fonts.dtx  (with options: `package,option')
%% tudscr-comp.dtx  (with options: `fonts,option')
%% tudscr-fonts.dtx  (with options: `package,execute')
%% tudscr-fonts.dtx  (with options: `package,body')
%% 
%% ============================================================================
%% 
%%  TUD-KOMA-Script
%%  Copyright (c) Falk Hanisch <tudscr@gmail.com>, 2012-2015
%% 
%% ============================================================================
%% 
%%  This work may be distributed and/or modified under the conditions of the
%%  LaTeX Project Public License, version 1.3c of the license. The latest
%%  version of this license is in http://www.latex-project.org/lppl.txt and
%%  version 1.3c or later is part of all distributions of LaTeX 2005/12/01
%%  or later and of this work. This work has the LPPL maintenance status
%%  "author-maintained". The current maintainer and author of this work
%%  is Falk Hanisch.
%% 
%% ----------------------------------------------------------------------------
%% 
%%  Dieses Werk darf nach den Bedingungen der LaTeX Project Public Lizenz
%%  in der Version 1.3c, verteilt und/oder veraendert werden. Die aktuelle
%%  Version dieser Lizenz ist http://www.latex-project.org/lppl.txt und
%%  Version 1.3c oder spaeter ist Teil aller Verteilungen von LaTeX 2005/12/01
%%  oder spaeter und dieses Werks. Dieses Werk hat den LPPL-Verwaltungs-Status
%%  "author-maintained", wird somit allein durch den Autor verwaltet. Der
%%  aktuelle Verwalter und Autor dieses Werkes ist Falk Hanisch.
%% 
%% ============================================================================
%% 
%%% From File: tudscr-version.dtx
\begingroup%
  \catcode`\@11\relax%
  \ifx\TUDVersion\undefined%
    \newcommand*\@TUDVersion[1]{\gdef\TUDVersion{#1}}%
  \else%
    \newcommand*\@TUDVersion[1]{%
      \def\@tempa{#1}%
      \ifx\TUDVersion\@tempa\else%
        \@latex@warning@no@line{%
          \noexpand\TUDVersion\space is `\TUDVersion',\MessageBreak%
          but `#1' was expected!\MessageBreak%
          You should not use classes, packages or files from\MessageBreak%
          different TUD-KOMA-Script-Bundle versions%
        }%
      \fi%
    }%
  \fi%
  \@TUDVersion{2015/06/11 v2.03a TUD-KOMA-Script}%
\endgroup%
\providecommand*\tudscrmail{tudscr@gmail.com}
\@ifundefined{TUDScript}{%
  \DeclareRobustCommand{\TUDScript}{%
    \ifdin{TUD-KOMA-SCRIPT}{%
      \textsf{T\kern.05em U\kern.05em D\kern.1em-\kern.1em}\KOMAScript%
    }\csname xspace\endcsname%
  }%
}{}
%%% From File: tudscr-fonts.dtx
\NeedsTeXFormat{LaTeX2e}[2011/06/27]
\ProvidesPackage{tudscrfonts}[%
  2015/06/11 v2.03a TUD-KOMA-Script
  package
  (corporate design fonts)%
]
\newif\if@tud@oldclass
\newif\if@tud@oldscrclass
\@ifclassloaded{tudbook}{\@tud@oldclasstrue}{}%
\@ifclassloaded{tudbeamer}{\@tud@oldclasstrue}{}%
\@ifclassloaded{tudfax}{\@tud@oldclasstrue}{}%
\@ifclassloaded{tudform}{\@tud@oldclasstrue}{}%
\@ifclassloaded{tudhaus}{\@tud@oldclasstrue}{}%
\@ifclassloaded{tudletter}{\@tud@oldclasstrue}{}%
\@ifclassloaded{tudscrbookold}{\@tud@oldscrclasstrue}{}%
\@ifclassloaded{tudscrreprtold}{\@tud@oldscrclasstrue}{}%
\@ifclassloaded{tudscrartclold}{\@tud@oldscrclasstrue}{}%
\if@tud@oldscrclass
  \let\TUDoptions\relax
  \let\TUDoption\relax
  \let\univln\relax
  \let\univrn\relax
  \let\univbn\relax
  \let\univxn\relax
  \let\univls\relax
  \let\univrs\relax
  \let\univbs\relax
  \let\univxs\relax
  \let\dinbn\relax
\fi
%%% From File: tudscr-base.dtx
\RequirePackage{tudscrbase}[\TUDVersion]
%%% From File: tudscr-fonts.dtx
\newif\if@tud@univers
\newif\if@tud@dinbold
\newcommand*\tud@univers{lun}
\newcommand*\tud@dinbold{0m6}
\newif\if@tud@fontspec
\TUD@key{fontspec}[true]{%
  \TUD@set@ifkey{fontspec}{@tud@fontspec}{#1}%
}
\AtEndOfPackage%
{%
  \TUD@key{fontspec}[]
  {%
    \PackageError{tudscrfonts}
      {Option `fontspec' too late}{%
      Option `fontspec' can only be set while loading the\MessageBreak%
      package `tudscrfonts'
      but you have tried to set it up later.%
    }%
    \FamilyKeyStateProcessed%
  }%
  \@ifpackageloaded{fontspec}{%
    \PackageError{tudscrfonts}{Package `fontspec' too early}{%
      When using the option `fontspec' you must not load\MessageBreak%
      the package `fontspec' before `tudscrfonts'.%
    }%
  }{}
  \if@tud@fontspec%
    \PreventPackageFromLoading[%
      \PackageWarning{tudscrfonts}%
      {%
        You must not load the package `fontspec' as it is\MessageBreak%
        loaded automatically at the end of the preamble.\MessageBreak%
        If you want to pass options to `fontspec' use\MessageBreak%
        `\string\PassOptionsToPackage{<option list>}{fontspec}'
      }%
    ]{fontspec}
  \fi%
}
\AtEndPreamble{%
  \if@tud@fontspec%
    \edef\@tempa{%
      \lowercase{\noexpand\InputIfFileExists{OT1\tud@univers.fd}}%
    }%
    \def\@tempb#1{%
      \PackageInfoNoLine{tudscrfonts}{%
        `#1' fonts not found for math typesetting%
      }%
    }%
  \else%
    \edef\@tempa{%
      \lowercase{\noexpand\InputIfFileExists{\encodingdefault\tud@univers.fd}}%
    }%
    \def\@tempb#1{%
      \PackageWarningNoLine{tudscrfonts}{%
        `#1' fonts not found for encoding `\encodingdefault'.\MessageBreak%
        Please use on of the installation scripts out of the\MessageBreak%
        tudscr-bundle, which suits to your OS or choose a\MessageBreak%
        possible encoding. A fallback layout is used%
      }%
    }%
  \fi%
  \@tempa{\@tud@universtrue}{\@tempb{Univers}}%
  \if@tud@fontspec%
    \edef\@tempa{%
      \lowercase{\noexpand\InputIfFileExists{OT1\tud@dinbold.fd}}%
    }%
  \else%
    \edef\@tempa{%
      \lowercase{\noexpand\InputIfFileExists{\encodingdefault\tud@dinbold.fd}}%
    }%
  \fi%
  \@tempa{\@tud@dinboldtrue}{\@tempb{DIN Bold}}%
  \if@tud@fontspec%
    \UnPreventPackageFromLoading{fontspec}%
    \if@tud@univers\if@tud@dinbold%
      \PassOptionsToPackage{no-math}{fontspec}%
    \fi\fi%
    \RequirePackage{fontspec}[2014/06/21]%
  \fi%
}
\RequirePackage{textcase}[2004/10/07]
\newcommand*\tud@uclcnotmath{%
  \def\footnote##1##{\toks@{\noexpand\footnote##1}\@footnote}%
  \def\@footnote##1{\NoCaseChange{\the\toks@{##1}}}%
  \def\@mkboth##1##2{\NoCaseChange{\@mkboth{##1}{##2}}}%
}
\patchcmd{\@uclcnotmath}{\@nonchangecase\ensuremath}{%
  \@nonchangecase\ensuremath\tud@uclcnotmath
}{}{\tud@patch@wrn{@uclcnotmath}}%
\newcommand*\tud@font@heading{\dinbn\tud@raggedright}
\newcommand*\tud@cdfont{1}
\TUD@key{cdfont}[true]{%
  \TUD@set@numkey{cdfont}{@tempa}{%
    \TUD@numkey@bool,%
    {light}{1},{lightfont}{1},{lite}{1},{litefont}{1},{noheavyfont}{1},%
    {heavy}{2},{heavyfont}{2},%
    {nodin}{3},{nodinbold}{3},{noDIN}{3},{noDINBold}{3},%
    {din}{4},{dinbold}{4},{DIN}{4},{DINBold}{4},%
    {nomath}{8},{nocdmath}{8},%
    {serifmath}{8},{serif}{8},{nosansmath}{8},{nosans}{8},%
    {math}{9},{cdmath}{9},{sansmath}{9},{sans}{9},%
    {upgreek}{10},{upright}{10},{uprightgreek}{10},{uprightGreek}{10},%
    {slgreek}{11},{slanted}{11},{slantedgreek}{11},{slantedGreek}{11},%
    {fontspec}{12},{luatex}{12},{lualatex}{12}{xetex}{12},{xelatex}{12},%
    {nofontspec}{13},{pdftex}{13},{pdflatex}{13}%
  }{#1}%
  \ifx\FamilyKeyState\FamilyKeyStateProcessed%
    \ifcase\@tempa\relax%
      \def\tud@cdfont{0}%
      \if@atdocument\tud@font@set\fi%
    \or%
      \def\tud@cdfont{1}%
      \if@atdocument\tud@font@set\fi%
    \or%
      \def\tud@cdfont{2}%
      \if@atdocument\tud@font@set\fi%
    \or%
      \renewcommand*\tud@font@heading{\tud@RaggedRight}%
    \or%
      \renewcommand*\tud@font@heading{\dinbn\tud@raggedright}
    \or%
    \or%
    \or%
    \or%
      \TUDoptions{cdmath=false}%
    \or%
      \TUDoptions{cdmath=true}%
    \or%
      \TUDoptions{slantedgreek=false}%
    \or%
      \TUDoptions{slantedgreek=true}%
    \or%
      \TUDoptions{fontspec=true}%
    \or%
      \TUDoptions{fontspec=false}%
    \fi%
  \fi%
}
\AtBeginDocument{\tud@font@set}%
\bool@lock{@tud@cdmath}
\TUD@key{cdmath}[true]{%
  \TUD@set@numkey{cdmath}{@tempa}{%
    \TUD@numkey@bool,%
    {serifmath}{0},{serif}{0},{nosansmath}{0},{nosans}{0},%
    {sansmath}{1},{sans}{1},%
    {upright}{2},{upgreek}{2},{uprightgreek}{2},{uprightGreek}{2},%
    {slanted}{3},{slgreek}{3},{slantedgreek}{3},{slantedGreek}{3}%
  }{#1}%
  \ifx\FamilyKeyState\FamilyKeyStateProcessed%
    \ifcase\@tempa\relax%
      \bool@set@lock{@tud@cdmath}{false}%
      \TUD@std@ifkey@lock{slantedgreek}{false}%
      \if@atdocument\tud@font@math@set\fi%
    \or%
      \bool@set@lock{@tud@cdmath}{true}%
      \TUD@std@ifkey@lock{slantedgreek}{true}%
      \if@atdocument\tud@font@math@set\fi%
    \or
      \TUDoptions{slantedgreek=false}%
    \or
      \TUDoptions{slantedgreek=true}%
    \fi%
  \fi%
}
\newif\if@tud@slantedgreek
\TUD@key@lock{slantedgreek}[true]{%
  \TUD@set@ifkey@lock{slantedgreek}{@tud@slantedgreek}{#1}%
  \ifx\FamilyKeyState\FamilyKeyStateProcessed%
    \if@atdocument\tud@font@math@set\fi%
  \fi%
}
%%% From File: tudscr-comp.dtx
\newcommand*\tud@deprecated@key[2]{%
  \PackageWarning{tudscrfonts}%
  {%
    The option key `#1' is deprecated.\MessageBreak%
    It's recommended to use `#2' instead%
  }%
}
\TUD@key{cdfonts}[true]{%
  \TUD@set@ifkey{cdfonts}{@tempswa}{#1}%
  \ifx\FamilyKeyState\FamilyKeyStateProcessed%
    \tud@deprecated@key{cdfonts}{cdfont}%
    \if@tempswa%
      \TUDoptions{cdfont=true}%
    \else%
      \TUDoptions{cdfont=false}%
    \fi%
  \fi%
}
\TUD@key{tudfonts}[true]{%
  \TUD@set@ifkey{tudfonts}{@tempswa}{#1}%
  \ifx\FamilyKeyState\FamilyKeyStateProcessed%
    \tud@deprecated@key{tudfonts}{cdfont}%
    \if@tempswa%
      \TUDoptions{cdfont=true}%
    \else%
      \TUDoptions{cdfont=false}%
    \fi%
  \fi%
}
\TUD@key{heavyfont}[true]{%
  \TUD@set@ifkey{heavyfont}{@tempswa}{#1}%
  \ifx\FamilyKeyState\FamilyKeyStateProcessed%
    \tud@deprecated@key{heavyfont}{cdfont}%
    \if@tempswa%
      \TUDoptions{cdfont=heavy}%
    \else%
      \TUDoptions{cdfont=true}%
    \fi%
  \fi%
}
\TUD@key{din}[true]{%
  \TUD@set@ifkey{din}{@tempswa}{#1}%
  \ifx\FamilyKeyState\FamilyKeyStateProcessed%
    \tud@deprecated@key{din}{cdfont}%
    \if@tempswa%
      \TUDoptions{cdfont=din}%
    \else%
      \TUDoptions{cdfont=nodin}%
    \fi%
  \fi%
}
\TUD@key{nodin}[true]{%
  \TUD@set@ifkey{nodin}{@tempswa}{#1}%
  \ifx\FamilyKeyState\FamilyKeyStateProcessed%
    \tud@deprecated@key{nodin}{cdfont}%
    \if@tempswa%
      \TUDoptions{cdfont=nodin}%
    \else%
      \TUDoptions{cdfont=din}%
    \fi%
  \fi%
}
\TUD@key{sansmath}[true]{%
  \TUD@set@ifkey{sansmath}{@tempswa}{#1}%
  \ifx\FamilyKeyState\FamilyKeyStateProcessed%
    \tud@deprecated@key{sansmath}{cdmath}%
    \if@tempswa%
      \TUDoptions{cdmath=true}%
    \else%
      \TUDoptions{cdmath=false}%
    \fi%
  \fi%
}
\TUD@key{serifmath}[true]{%
  \TUD@set@ifkey{serifmath}{@tempswa}{#1}%
  \ifx\FamilyKeyState\FamilyKeyStateProcessed%
    \tud@deprecated@key{sansmath}{cdmath}%
    \if@tempswa%
      \TUDoptions{cdmath=false}%
    \else%
      \TUDoptions{cdmath=true}%
    \fi%
  \fi%
}
%%% From File: tudscr-fonts.dtx
\TUDoptions{cdfont=true}
\DeclareOption*{\TUDoptions{\CurrentOption}}
\TUDProcessOptions\relax
%%% From File: tudscr-fonts.dtx
\AtEndPreamble{%
  \if@tud@fontspec%
    \newfontface\univln{Univers Light}[NFSSFamily=UniversLight]%
    \newfontface\univrn{Univers}[NFSSFamily=UniversRegular]%
    \newfontface\univbn{Univers Bold}[NFSSFamily=UniversBold]%
    \newfontface\univxn{Univers Black}[NFSSFamily=UniversBlack]%
    \newfontface\univls{Univers Light Oblique}[NFSSFamily=UniversLightOblique]%
    \newfontface\univrs{Univers Oblique}[NFSSFamily=UniversRegularOblique]%
    \newfontface\univbs{Univers Bold Oblique}[NFSSFamily=UniversBoldOblique]%
    \newfontface\univxs{Univers Black Oblique}[NFSSFamily=UniversBlackOblique]%
    \newcommand*\textuln[1]{{\univln#1}}%
    \newcommand*\texturn[1]{{\univrn#1}}%
    \newcommand*\textubn[1]{{\univbn#1}}%
    \newcommand*\textuxn[1]{{\univxn#1}}%
    \newcommand*\textuls[1]{{\univls#1}}%
    \newcommand*\texturs[1]{{\univrs#1}}%
    \newcommand*\textubs[1]{{\univbs#1}}%
    \newcommand*\textuxs[1]{{\univxs#1}}%
  \else%
    \if@tud@univers%
      \newcommand*\univln{\usefont{\encodingdefault}{\tud@univers}{l}{n}}%
      \newcommand*\univrn{\usefont{\encodingdefault}{\tud@univers}{m}{n}}%
      \newcommand*\univbn{\usefont{\encodingdefault}{\tud@univers}{b}{n}}%
      \newcommand*\univxn{\usefont{\encodingdefault}{\tud@univers}{eb}{n}}%
      \newcommand*\univls{\usefont{\encodingdefault}{\tud@univers}{l}{sl}}%
      \newcommand*\univrs{\usefont{\encodingdefault}{\tud@univers}{m}{sl}}%
      \newcommand*\univbs{\usefont{\encodingdefault}{\tud@univers}{b}{sl}}%
      \newcommand*\univxs{\usefont{\encodingdefault}{\tud@univers}{eb}{sl}}%
    \else%
      \newcommand*\univln{}%
      \newcommand*\univrn{}%
      \newcommand*\univbn{}%
      \newcommand*\univxn{}%
      \newcommand*\univls{}%
      \newcommand*\univrs{}%
      \newcommand*\univbs{}%
      \newcommand*\univxs{}%
    \fi%
    \newcommand*\textuln{}%
    \newcommand*\texturn{}%
    \newcommand*\textubn{}%
    \newcommand*\textuxn{}%
    \newcommand*\textuls{}%
    \newcommand*\texturs{}%
    \newcommand*\textubs{}%
    \newcommand*\textuxs{}%
    \DeclareTextFontCommand{\textuln}{\univln}%
    \DeclareTextFontCommand{\texturn}{\univrn}%
    \DeclareTextFontCommand{\textubn}{\univbn}%
    \DeclareTextFontCommand{\textuxn}{\univxn}%
    \DeclareTextFontCommand{\textuls}{\univls}%
    \DeclareTextFontCommand{\texturs}{\univrs}%
    \DeclareTextFontCommand{\textubs}{\univbs}%
    \DeclareTextFontCommand{\textuxs}{\univxs}%
  \fi%
  \ifdef{\sectfont}{}{\let\sectfont\relax}%
  \if@tud@fontspec%
    \newfontface\@dinbn{DIN Bold}[NFSSFamily=DINBold,BoldFont = DIN Bold]%
    \newcommand*\dinbn{\@dinbn\if@tud@dinbold\mathversion{dinbold}\fi}%
    \newcommand*\textdbn[1]{{\dinbn#1}}%
  \else%
    \if@tud@dinbold%
      \newcommand*\dinbn{%
        \usefont{\encodingdefault}{\tud@dinbold}{b}{n}%
        \mathversion{dinbold}%
      }%
    \else%
      \let\dinbn\sectfont%
    \fi%
    \newcommand*\textdbn{}%
    \DeclareTextFontCommand{\textdbn}{\dinbn}%
  \fi%
  \DeclareMathVersion{univers}%
  \DeclareMathVersion{universbold}%
  \SetSymbolFont{operators}{univers}{OT1}{\tud@univers}{l}{n}%
  \SetSymbolFont{letters}{univers}{OML}{\tud@univers}{l}{sl}%
  \SetSymbolFont{symbols}{univers}{OMS}{\tud@univers}{l}{n}%
  \SetSymbolFont{largesymbols}{univers}{OMX}{iwona}{m}{n}%
  \SetSymbolFont{operators}{universbold}{OT1}{\tud@univers}{b}{n}%
  \SetSymbolFont{letters}{universbold}{OML}{\tud@univers}{b}{sl}%
  \SetSymbolFont{symbols}{universbold}{OMS}{\tud@univers}{b}{n}%
  \SetSymbolFont{largesymbols}{universbold}{OMX}{iwona}{b}{n}%
  \SetMathAlphabet{\mathbf}{univers}{OT1}{\tud@univers}{b}{n}%
  \SetMathAlphabet{\mathsf}{univers}{OT1}{\tud@univers}{l}{n}%
  \SetMathAlphabet{\mathit}{univers}{OT1}{\tud@univers}{l}{sl}%
  \SetMathAlphabet{\mathtt}{univers}{OT1}{\tud@univers t}{l}{n}%
  \SetMathAlphabet{\mathbf}{universbold}{OT1}{\tud@univers}{eb}{n}%
  \SetMathAlphabet{\mathsf}{universbold}{OT1}{\tud@univers}{b}{n}%
  \SetMathAlphabet{\mathit}{universbold}{OT1}{\tud@univers}{b}{sl}%
  \SetMathAlphabet{\mathtt}{universbold}{OT1}{\tud@univers t}{b}{n}%
  \DeclareMathVersion{dinbold}%
  \SetSymbolFont{operators}{dinbold}{OT1}{\tud@dinbold}{b}{n}%
  \SetSymbolFont{letters}{dinbold}{OML}{\tud@dinbold}{b}{sl}%
  \SetSymbolFont{symbols}{dinbold}{OMS}{\tud@dinbold}{b}{n}%
  \SetSymbolFont{largesymbols}{dinbold}{OMX}{iwona}{ebc}{n}%
  \SetMathAlphabet{\mathbf}{dinbold}{OT1}{\tud@dinbold}{b}{n}%
  \SetMathAlphabet{\mathsf}{dinbold}{OT1}{\tud@dinbold}{b}{n}%
  \SetMathAlphabet{\mathit}{dinbold}{OT1}{\tud@dinbold}{b}{sl}%
  \DeclareMathSymbol{\upDelta}{\mathalpha}{operators}{1}%
  \DeclareMathSymbol{\upOmega}{\mathalpha}{operators}{10}%
  \DeclareMathSymbol{\upGamma}{\mathalpha}{operators}{0}%
  \DeclareMathSymbol{\upDelta}{\mathalpha}{operators}{1}%
  \DeclareMathSymbol{\upTheta}{\mathalpha}{operators}{2}%
  \DeclareMathSymbol{\upLambda}{\mathalpha}{operators}{3}%
  \DeclareMathSymbol{\upXi}{\mathalpha}{operators}{4}%
  \DeclareMathSymbol{\upPi}{\mathalpha}{operators}{5}%
  \DeclareMathSymbol{\upSigma}{\mathalpha}{operators}{6}%
  \DeclareMathSymbol{\upUpsilon}{\mathalpha}{operators}{7}%
  \DeclareMathSymbol{\upPhi}{\mathalpha}{operators}{8}%
  \DeclareMathSymbol{\upPsi}{\mathalpha}{operators}{9}%
  \DeclareMathSymbol{\upOmega}{\mathalpha}{operators}{10}%
  \DeclareMathSymbol{\varGamma}{\mathalpha}{letters}{0}%
  \DeclareMathSymbol{\varDelta}{\mathalpha}{letters}{1}%
  \DeclareMathSymbol{\varTheta}{\mathalpha}{letters}{2}%
  \DeclareMathSymbol{\varLambda}{\mathalpha}{letters}{3}%
  \DeclareMathSymbol{\varXi}{\mathalpha}{letters}{4}%
  \DeclareMathSymbol{\varPi}{\mathalpha}{letters}{5}%
  \DeclareMathSymbol{\varSigma}{\mathalpha}{letters}{6}%
  \DeclareMathSymbol{\varUpsilon}{\mathalpha}{letters}{7}%
  \DeclareMathSymbol{\varPhi}{\mathalpha}{letters}{8}%
  \DeclareMathSymbol{\varPsi}{\mathalpha}{letters}{9}%
  \DeclareMathSymbol{\varOmega}{\mathalpha}{letters}{10}%
}
\newcommand*\tud@font@set{%
  \ifcase\tud@cdfont\relax%
    \tud@cmd@restore{rmdefault}%
    \tud@cmd@restore{sfdefault}%
    \tud@cmd@restore{ttdefault}%
    \tud@cmd@restore{bfdefault}%
    \tud@cmd@restore{mddefault}%
    \tud@cmd@restore{itdefault}%
    \tud@cmd@restore{familydefault}%
    \tud@cmd@restore{seriesdefault}%
    \tud@cmd@restore{shapedefault}%
    \bool@std@lock{@tud@cdmath}{false}%
  \else%
    \tud@cmd@store{rmdefault}%
    \tud@cmd@store{sfdefault}%
    \tud@cmd@store{ttdefault}%
    \tud@cmd@store{bfdefault}%
    \tud@cmd@store{mddefault}%
    \tud@cmd@store{itdefault}%
    \tud@cmd@store{familydefault}%
    \tud@cmd@store{seriesdefault}%
    \tud@cmd@store{shapedefault}%
    \bool@std@lock{@tud@cdmath}{true}%
    \if@tud@fontspec%
      \ifnum\tud@cdfont=\@ne\relax%
        \setsansfont{Univers Light}[%
          BoldFont = Univers,%
          ItalicFont = Univers Light Oblique,%
          BoldItalicFont = Univers Oblique,%
        ]%
        \setmonofont{LMMonoLt10-Regular}[%
          BoldFont = LMMono10-Regular,%
          ItalicFont = LMMonoLt10-Oblique,%
          BoldItalicFont = LMMonoSlant10-Regular,%
        ]%
        \ifboolexpr{bool {@tud@oldclass} or bool {@tud@oldscrclass}}{%
          \setsansfont{Univers Light}[%
            BoldFont = Univers Bold,%
            ItalicFont = Univers Light Oblique,%
            BoldItalicFont = Univers Bold Oblique,%
          ]%
        }{}%
      \else%
        \setsansfont{Univers}[%
          BoldFont = Univers Bold,%
          ItalicFont = Univers Oblique,%
          BoldItalicFont = Univers Bold Oblique,%
        ]%
        \setmonofont{LMMono10-Regular}[%
          BoldFont = LMMonoLt10-Bold,%
          ItalicFont = LMMonoSlant10-Regular,%
          BoldItalicFont = LMMonoLt10-BoldOblique,%
        ]%
      \fi%
    \else%
      \if@tud@univers%
        \renewcommand*\sfdefault{\tud@univers}%
        \renewcommand*\ttdefault{\tud@univers t}%
        \ifnum\tud@cdfont=\@ne\relax%
          \renewcommand*\bfdefault{m}%
          \ifboolexpr{bool {@tud@oldclass} or bool {@tud@oldscrclass}}{%
            \renewcommand*\bfdefault{b}%
          }{}%
          \renewcommand*\mddefault{l}%
        \else%
          \renewcommand*\bfdefault{b}%
          \renewcommand*\mddefault{m}%
        \fi%
      \fi%
    \fi%
    \renewcommand*\rmdefault{\sfdefault}%
    \renewcommand*\familydefault{\sfdefault}%
    \renewcommand*\seriesdefault{\mddefault}%
    \renewcommand*\shapedefault{\updefault}%
  \fi%
  \normalfont\selectfont%
  \tud@font@math@set%
}
\newcommand*\tud@font@math@set{%
  \if@tud@univers%
    \if@tud@cdmath%
      \tud@cmd@store{mv@normal}%
      \tud@cmd@store{mv@bold}%
      \let\mv@normal\mv@univers%
      \let\mv@bold\mv@universbold%
    \else%
      \tud@cmd@restore{mv@normal}%
      \tud@cmd@restore{mv@bold}%
    \fi%
  \fi%
  \if@tud@slantedgreek%
    \tud@font@greek@slanted%
  \else%
    \tud@font@greek@upright%
  \fi%
  \mathversion{normal}%
}
\newcount\tud@font@greek@upGamma
\tud@font@greek@upGamma\Gamma
\newcount\tud@font@greek@offset
\let\@tempa\relax
\DeclareMathSymbol{\@tempa}{\mathalpha}{letters}{0}
\tud@font@greek@offset\@tempa
\advance\tud@font@greek@offset-\Gamma
\newcommand*\tud@font@greek@slanted{%
  \ifnum\Gamma=\tud@font@greek@upGamma\relax\tud@font@greek@changeshape\fi%
}
\newcommand*\tud@font@greek@upright{%
  \ifnum\Gamma>\tud@font@greek@upGamma%
    \tud@font@greek@offset=-\tud@font@greek@offset%
    \tud@font@greek@changeshape%
    \tud@font@greek@offset=-\tud@font@greek@offset%
  \fi%
}
\newcommand*\tud@font@greek@def[2]{%
  \expandafter\@tempcnta\csname #1\endcsname%
  \advance\@tempcnta#2%
  \expandafter\mathchardef\csname #1\endcsname\@tempcnta%
}
\newcommand*\tud@font@greek@uc{%
  Gamma,Delta,Theta,Lambda,Xi,Pi,Sigma,Upsilon,Phi,Psi,Omega%
}
\newcommand*\tud@font@greek@changeshape{%
  \@for\@tempa:=\tud@font@greek@uc\do{%
    \@expandtwoargs\tud@font@greek@def{\@tempa}{\tud@font@greek@offset}%
  }%
}
\newrobustcmd*\ifdin{%
  \@tempswafalse%
  \@expandtwoargs\in@{DINBold}{\f@family}%
  \ifin@\@tempswatrue\fi%
  \ifx\f@family\tud@dinbold\relax\@tempswatrue\fi%
  \if@tempswa%
    \expandafter\@firstoftwo%
  \else%
    \expandafter\@secondoftwo%
  \fi%
}
\AtBeginDocument{%
  \ifbool{@tud@oldclass}{%
    \if@tud@fontspec%
      \DeclareFixedFont{\univLightVII}{\encodingdefault}%
        {UniversLight}{m}{n}{7}%
      \DeclareFixedFont{\univLightObliqueVII}{\encodingdefault}%
        {UniversLightOblique}{m}{n}{7}%
      \DeclareFixedFont{\univBoldVII}{\encodingdefault}%
        {UniversBold}{m}{n}{7}%
      \DeclareFixedFont{\univLightIX}{\encodingdefault}%
        {UniversLight}{m}{n}{9}%
      \DeclareFixedFont{\univLightObliqueIX}{\encodingdefault}%
        {UniversLightOblique}{m}{n}{9}%
      \DeclareFixedFont{\univBoldIX}{\encodingdefault}%
        {UniversBold}{m}{n}{9}%
      \DeclareFixedFont{\univLightXI}{\encodingdefault}%
        {UniversLight}{m}{n}{11}%
      \DeclareFixedFont{\univLightObliqueXI}{\encodingdefault}%
        {UniversLightOblique}{m}{n}{11}%
      \DeclareFixedFont{\univBoldXI}{\encodingdefault}%
        {UniversBold}{m}{n}{11}%
      \DeclareFixedFont{\univLightXV}{\encodingdefault}%
        {UniversLight}{m}{n}{15}%
      \DeclareFixedFont{\univLightObliqueXV}{\encodingdefault}%
        {UniversLightOblique}{m}{n}{15}%
      \DeclareFixedFont{\univBoldXV}{\encodingdefault}%
        {UniversBold}{m}{n}{15}%
    \else%
      \if@tud@univers%
        \DeclareFixedFont{\univLightVII}{\encodingdefault}%
          {\tud@univers}{l}{n}{7}%
        \DeclareFixedFont{\univLightObliqueVII}{\encodingdefault}%
          {\tud@univers}{l}{sl}{7}%
        \DeclareFixedFont{\univBoldVII}{\encodingdefault}%
          {\tud@univers}{b}{n}{7}%
        \DeclareFixedFont{\univLightIX}{\encodingdefault}%
          {\tud@univers}{l}{n}{9}%
        \DeclareFixedFont{\univLightObliqueIX}{\encodingdefault}%
          {\tud@univers}{l}{sl}{9}%
        \DeclareFixedFont{\univBoldIX}{\encodingdefault}%
          {\tud@univers}{b}{n}{9}%
        \DeclareFixedFont{\univLightXI}{\encodingdefault}%
          {\tud@univers}{l}{n}{11}%
        \DeclareFixedFont{\univLightObliqueXI}{\encodingdefault}%
          {\tud@univers}{l}{sl}{11}%
        \DeclareFixedFont{\univBoldXI}{\encodingdefault}%
          {\tud@univers}{b}{n}{11}%
        \DeclareFixedFont{\univLightXV}{\encodingdefault}%
          {\tud@univers}{l}{n}{15}%
        \DeclareFixedFont{\univLightObliqueXV}{\encodingdefault}%
          {\tud@univers}{l}{sl}{15}%
        \DeclareFixedFont{\univBoldXV}{\encodingdefault}%
          {\tud@univers}{b}{n}{15}%
      \fi%
    \fi%
    \if@sansmath%
      \DeclareSymbolFont{aunLetters}{OT1}{\tud@univers}{l}{sl}%
      \SetSymbolFont{aunLetters}{bold}{OT1}{\tud@univers}{b}{sl}%
      \DeclareSymbolFont{aunOperators}{OT1}{\tud@univers}{l}{n}%
      \SetSymbolFont{aunOperators}{bold}{OT1}{\tud@univers}{b}{n}%
      \DeclareSymbolFontAlphabet{\mathsf}{aunOperators}%
      \DeclareSymbolFontAlphabet{\mathnormal}{aunLetters}%
      \DeclareMathAlphabet\mathbf{OT1}{\tud@univers}{b}{n}%
      \SetMathAlphabet\mathbf{bold}{OT1}{\tud@univers}{b}{n}%
      \DeclareMathAlphabet\mathit{OT1}{\tud@univers}{l}{sl}%
      \SetMathAlphabet\mathit{bold}{OT1}{\tud@univers}{l}{sl}%
    \fi%
    \let\dinBold\dinbn%
    \let\dinfamily\dinbn%
  }{}%
  \ifbool{@tud@oldscrclass}{%
    \cmd@restore{rmdefault}%
    \cmd@restore{sfdefault}%
    \cmd@restore{bfdefault}%
    \cmd@restore{mddefault}%
    \cmd@restore{familydefault}%
    \cmd@restore{seriesdefault}%
    \cmd@restore{shapedefault}%
    \cmd@restore{rmfamily}%
    \cmd@restore{sffamily}%
    \cmd@restore{ttfamily}%
    \DeclareSymbolFontAlphabet{\mathrm}{operators}
    \if@tud@fontspec%
      \DeclareFixedFont{\univLightHead}{\encodingdefault}%
        {UniversLight}{m}{n}{\tud@head@fntsz}%
      \DeclareFixedFont{\univBoldHead}{\encodingdefault}%
        {UniversBold}{m}{n}{\tud@head@fntsz}%
    \else%
      \if@tud@univers%
        \DeclareFixedFont{\univLightHead}{\encodingdefault}%
          {\tud@univers}{l}{n}{\tud@head@fntsz}%
        \DeclareFixedFont{\univBoldHead}{\encodingdefault}%
          {\tud@univers}{b}{n}{\tud@head@fntsz}%
      \fi%
    \fi%
  }{}%
}
\AfterPackage*{amsfonts}{%
  \DeclareFontFamily{U}{msa}{}%
  \DeclareFontShape{U}{msa}{m}{n}{%
    <-9>cmbras8%
    <9-10>cmbras9%
    <10->cmbras10%
  }{}%
  \DeclareFontFamily{U}{msb}{}%
  \DeclareFontShape{U}{msb}{m}{n}{%
    <-9>cmbrbs8%
    <9-10>cmbrbs9%
    <10->cmbrbs10%
  }{}%
}
\newcommand*\tud@raggedright{\raggedright}
\newcommand*\tud@RaggedRight{\raggedright}
\AfterPackage*{ragged2e}{%
  \ifdef{\LaTeXraggedright}{%
    \renewcommand*\tud@raggedright{\LaTeXraggedright}%
  }{}%
  \renewcommand*\tud@RaggedRight{\RaggedRight}%
}
\@ifclassloaded{tudbook}{%
  \patchcmd{\@makechapterhead}{\dinBold\Huge\bfseries}%
    {\bfseries\tud@font@heading\Huge}{}{\tud@patch@wrn{@makechapterhead}}%
  \patchcmd{\@makeschapterhead}{\dinBold\Huge\bfseries}%
    {\bfseries\tud@font@heading\Huge}{}{\tud@patch@wrn{@makeschapterhead}}%
  \patchcmd{\section}{\dinBold\Large\bfseries}%
    {\bfseries\tud@font@heading\Large}{}{\tud@patch@wrn{section}}%
  \patchcmd{\showtitle}{\dinBold\Huge\bfseries}%
    {\bfseries\tud@font@heading\Huge}{}{\tud@patch@wrn{showtitle}}%
}{}
\endinput
%%
%% End of file `tudscrfonts.sty'.
