%%
%% 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-fonts.dtx  (with options: `package,body')
%% 
%% ============================================================================
%% 
%%  TUD-KOMA-Script
%%  Copyright (c) Falk Hanisch <tudscr[at]gmail.com>, 2012-2014
%% 
%% ============================================================================
%% 
%%  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,
%%  Version 1.3c, verteilt und/oder veraendert werden. Die neuste Version
%%  dieser Lizenz ist http://www.latex-project.org/lppl.txt und Version 1.3c
%%  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{2014/12/17 v2.02 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}[%
  2014/12/17 v2.02 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}
\newcommand*\tud@mathenc{OT1}
\newif\if@tud@fontspec
\TUD@key@lock{fontspec}[true]{%
  \TUD@set@ifkey@lock{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'.%
    }%
  }{}
}
\AtEndPreamble{%
  \@expandtwoargs\in@{OT}{\encodingdefault}%
  \ifin@%
    \def\tud@mathenc{OT1}%
  \else%
    \def\tud@mathenc{T1}%
  \fi%
  \if@tud@fontspec%
    \edef\@tempa{%
      \lowercase{\noexpand\InputIfFileExists{\tud@mathenc\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. Please use on of the\MessageBreak%
        installation scripts out of the tudscr-bundle,\MessageBreak%
        which suits to your OS. A fallback layout is used%
      }%
    }%
  \fi%
  \@tempa{\@tud@universtrue}{\@tempb{Univers}}%
  \if@tud@fontspec%
    \edef\@tempa{%
      \lowercase{\noexpand\InputIfFileExists{\tud@mathenc\tud@dinbold.fd}}%
    }%
  \else%
    \edef\@tempa{%
      \lowercase{\noexpand\InputIfFileExists{\encodingdefault\tud@dinbold.fd}}%
    }%
  \fi%
  \@tempa{\@tud@dinboldtrue}{\@tempb{DIN Bold}}%
  \if@tud@fontspec%
    \if@tud@univers\if@tud@dinbold%
      \PassOptionsToPackage{no-math}{fontspec}%
    \fi\fi%
    \RequirePackage{fontspec}[2014/06/21]%
  \fi%
}
\RequirePackage{textcase}[2004/10/07]
\patchcmd{\@uclcnotmath}{\@nonchangecase\ensuremath}{%
  \@nonchangecase\ensuremath%
  \def\footnote##1##{\toks@{\noexpand\footnote##1}\@footnote}%
  \def\@footnote##1{\NoCaseChange{\the\toks@{##1}}}%
}{}{\tud@patch@wrn{@uclcnotmath}}%
\newcommand*\tud@cdfont{0}
\TUD@key{cdfont}[true]{%
  \TUD@set@numkey{cdfont}{tud@cdfont}{%
    \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},%
    {serifmath}{7},{serif}{7},{nosansmath}{7},{nosans}{7},%
    {sansmath}{8},{sans}{8},%
    {upgreek}{9},{uprightgreek}{9},{uprightGreek}{9},%
    {slgreek}{10},{slantedgreek}{10},{slantedGreek}{10},%
    {fontspec}{11},{luatex}{11},{lualatex}{11}{xetex}{11},{xelatex}{11},%
    {nofontspec}{12},{pdftex}{12},{pdflatex}{12}%
  }{#1}%
  \ifx\FamilyKeyState\FamilyKeyStateProcessed%
    \ifcase \tud@cdfont\relax%
      \TUDoptions{cdfonts=false}%
    \or%
      \TUDoptions{cdfonts=true}%
      \TUDoptions{heavyfont=false}%
    \or%
      \TUDoptions{cdfonts=true}%
      \TUDoptions{heavyfont=true}%
    \or%
      \TUDoptions{din=false}%
    \or%
      \TUDoptions{din=true}%
    \or%
    \or%
    \or%
      \TUDoptions{sansmath=false}%
    \or%
      \TUDoptions{sansmath=true}%
    \or%
      \TUDoptions{slantedgreek=false}%
    \or%
      \TUDoptions{slantedgreek=true}%
    \or%
      \TUDoptions{fontspec=true}%
    \or%
      \TUDoptions{fontspec=false}%
    \fi%
  \fi%
}
\newif\if@tud@cdfonts
\TUD@key{cdfonts}[true]{%
  \TUD@set@ifkey{cdfonts}{@tud@cdfonts}{#1}%
  \ifx\FamilyKeyState\FamilyKeyStateProcessed%
    \if@tud@cdfonts%
      \if@atdocument\tud@font@cdfonts\fi%
      \TUD@std@ifkey@lock{sansmath}{true}%
      \TUD@std@ifkey@lock{slantedgreek}{true}%
    \else%
      \if@atdocument%
        \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}%
        \normalfont\selectfont%
      \fi%
      \TUD@std@ifkey@lock{sansmath}{false}%
      \TUD@std@ifkey@lock{slantedgreek}{false}%
    \fi%
  \fi%
}
\newif\if@tud@heavyfont
\TUD@key{heavyfont}[true]{%
  \TUD@set@ifkey{heavyfont}{@tud@heavyfont}{#1}%
  \ifx\FamilyKeyState\FamilyKeyStateProcessed%
    \if@atdocument\tud@font@cdfonts\fi%
  \fi%
}
\newif\if@tud@din\@tud@dintrue
\TUD@ifkey{din}{@tud@din}
\newif\if@tud@sansmath
\TUD@key@lock{sansmath}[true]{%
  \TUD@set@ifkey@lock{sansmath}{@tud@sansmath}{#1}%
  \ifx\FamilyKeyState\FamilyKeyStateProcessed%
    \if@atdocument\tud@font@mathfonts\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@mathfonts\fi%
  \fi%
}
\TUDoptions{cdfont=true}
\DeclareOption*{\TUDoptions{\CurrentOption}}
\TUDProcessOptions\relax
%%% From File: tudscr-fonts.dtx
\AtEndPreamble{%
  \if@tud@fontspec%
    \newfontface\univln[NFSSFamily=UniversLight]{Univers Light}%
    \newfontface\univrn[NFSSFamily=UniversRegular]{Univers}%
    \newfontface\univbn[NFSSFamily=UniversBold]{Univers Bold}%
    \newfontface\univxn[NFSSFamily=UniversBlack]{Univers Black}%
    \newfontface\univls[NFSSFamily=UniversLightOblique]{Univers Light Oblique}%
    \newfontface\univrs[NFSSFamily=UniversRegularOblique]{Univers Oblique}%
    \newfontface\univbs[NFSSFamily=UniversBoldOblique]{Univers Bold Oblique}%
    \newfontface\univxs[NFSSFamily=UniversBlackOblique]{Univers Black Oblique}%
    \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}[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}{\tud@mathenc}{\tud@univers}{b}{n}
  \SetMathAlphabet{\mathsf}{univers}{\tud@mathenc}{\tud@univers}{l}{n}
  \SetMathAlphabet{\mathit}{univers}{\tud@mathenc}{\tud@univers}{l}{sl}
  \SetMathAlphabet{\mathtt}{univers}{\tud@mathenc}{\tud@univers t}{l}{n}
  \SetMathAlphabet{\mathbf}{universbold}{\tud@mathenc}{\tud@univers}{eb}{n}
  \SetMathAlphabet{\mathsf}{universbold}{\tud@mathenc}{\tud@univers}{b}{n}
  \SetMathAlphabet{\mathit}{universbold}{\tud@mathenc}{\tud@univers}{b}{sl}
  \SetMathAlphabet{\mathtt}{universbold}{\tud@mathenc}{\tud@univers t}{b}{n}
  \DeclareMathVersion{dinbold}
  \SetSymbolFont{operators}{dinbold}{\tud@mathenc}{\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}{\tud@mathenc}{\tud@dinbold}{b}{n}
  \SetMathAlphabet{\mathsf}{dinbold}{\tud@mathenc}{\tud@dinbold}{b}{n}
  \SetMathAlphabet{\mathit}{dinbold}{\tud@mathenc}{\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@cdfonts{%
  \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}%
  \if@tud@fontspec%
    \if@tud@heavyfont%
      \setsansfont{Univers}[%
        BoldFont = Univers Bold,%
        ItalicFont = Univers Oblique,%
        BoldItalicFont = Univers Bold Oblique,%
      ]%
      \setmonofont{LMMono10-Regular}[%
        BoldFont = LMMonoLt10-Bold,%
        ItalicFont = LMMonoSlant10-Regular,%
        BoldItalicFont = LMMonoLt10-BoldOblique,%
      ]
    \else%
      \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,%
        ]%
      }{}%
    \fi%
  \else%
    \if@tud@univers%
      \renewcommand*\sfdefault{\tud@univers}%
      \renewcommand*\ttdefault{\tud@univers t}%
      \if@tud@heavyfont%
        \renewcommand*\bfdefault{b}%
        \renewcommand*\mddefault{m}%
      \else%
        \renewcommand*\bfdefault{m}%
        \ifboolexpr{bool {@tud@oldclass} or bool {@tud@oldscrclass}}{%
          \renewcommand*\bfdefault{b}%
        }{}%
        \renewcommand*\mddefault{l}%
      \fi%
    \fi%
  \fi%
  \renewcommand*\rmdefault{\sfdefault}%
  \renewcommand*\familydefault{\sfdefault}%
  \renewcommand*\seriesdefault{\mddefault}%
  \renewcommand*\shapedefault{\updefault}%
  \normalfont\selectfont%
}
\newcommand*\tud@font@mathfonts{%
  \if@tud@sansmath\tud@sansmath\else\tud@serifmath\fi%
  \if@tud@slantedgreek\tud@greek@slanted\else\tud@greek@upright\fi%
  \mathversion{normal}%
}
\newcommand*\tud@sansmath{%
  \if@tud@univers%
    \tud@cmd@store{mv@normal}%
    \tud@cmd@store{mv@bold}%
    \let\mv@normal\mv@univers%
    \let\mv@bold\mv@universbold%
    \mathversion{normal}%
  \fi%
}
\newcommand*\tud@serifmath{%
  \if@tud@univers%
    \tud@cmd@restore{mv@normal}%
    \tud@cmd@restore{mv@bold}%
    \mathversion{normal}%
  \fi%
}
\newcount\tud@greek@upGamma
\tud@greek@upGamma\Gamma
\newcount\tud@greek@offset
\let\@tempa\relax
\DeclareMathSymbol{\@tempa}{\mathalpha}{letters}{0}
\tud@greek@offset\@tempa
\advance\tud@greek@offset-\Gamma
\newcommand*\tud@greek@slanted{%
  \ifnum\Gamma=\tud@greek@upGamma\relax\tud@greek@changeshape\fi%
}
\newcommand*\tud@greek@upright{%
  \ifnum\Gamma>\tud@greek@upGamma%
    \tud@greek@offset=-\tud@greek@offset%
    \tud@greek@changeshape%
    \tud@greek@offset=-\tud@greek@offset%
  \fi%
}
\newcommand*\tud@greek@def[2]{%
  \expandafter\@tempcnta\csname #1\endcsname%
  \advance\@tempcnta#2%
  \expandafter\mathchardef\csname #1\endcsname\@tempcnta%
}
\newcommand*\tud@greek@uc{%
  Gamma,Delta,Theta,Lambda,Xi,Pi,Sigma,Upsilon,Phi,Psi,Omega%
}
\newcommand*\tud@greek@changeshape{%
  \@for\@tempa:=\tud@greek@uc\do{%
    \@expandtwoargs\tud@greek@def{\@tempa}{\tud@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}{\tud@mathenc}{\tud@univers}{l}{sl}%
      \SetSymbolFont{aunLetters}{bold}{\tud@mathenc}{\tud@univers}{b}{sl}%
      \DeclareSymbolFont{aunOperators}{\tud@mathenc}{\tud@univers}{l}{n}%
      \SetSymbolFont{aunOperators}{bold}{\tud@mathenc}{\tud@univers}{b}{n}%
      \DeclareSymbolFontAlphabet{\mathsf}{aunOperators}%
      \DeclareSymbolFontAlphabet{\mathnormal}{aunLetters}%
      \DeclareMathAlphabet\mathbf{\tud@mathenc}{\tud@univers}{b}{n}%
      \SetMathAlphabet\mathbf{bold}{\tud@mathenc}{\tud@univers}{b}{n}%
      \DeclareMathAlphabet\mathit{\tud@mathenc}{\tud@univers}{l}{sl}%
      \SetMathAlphabet\mathit{bold}{\tud@mathenc}{\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%
  }{}%
}
\AtBeginDocument{%
  \if@tud@cdfonts\tud@font@cdfonts\fi%
  \tud@font@mathfonts%
}
\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}
\AfterPackage*{ragged2e}{%
  \ifdef{\LaTeXraggedright}{%
    \renewcommand*\tud@raggedright{\LaTeXraggedright}%
  }{}%
}
\@ifclassloaded{tudbook}{%
  \patchcmd{\@makechapterhead}{\dinBold\Huge\bfseries}%
    {\if@tud@din\dinbn\fi\Huge}{}{\tud@patch@wrn{@makechapterhead}}%
  \patchcmd{\@makeschapterhead}{\dinBold\Huge\bfseries}%
    {\if@tud@din\dinbn\fi\Huge}{}{\tud@patch@wrn{@makeschapterhead}}%
  \patchcmd{\section}{\dinBold\Large\bfseries}%
    {\if@tud@din\dinbn\fi\Large}{}{\tud@patch@wrn{section}}%
  \patchcmd{\showtitle}{\dinBold\Huge\bfseries}%
    {\if@tud@din\dinbn\fi\Huge}{}{\tud@patch@wrn{showtitle}}%
}{}
\endinput
%%
%% End of file `tudscrfonts.sty'.
