diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/tudscr/tudscrfonts.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/tudscr/tudscrfonts.sty | 981 |
1 files changed, 647 insertions, 334 deletions
diff --git a/Master/texmf-dist/tex/latex/tudscr/tudscrfonts.sty b/Master/texmf-dist/tex/latex/tudscr/tudscrfonts.sty index 4a4d7182b54..14982cc2df7 100644 --- a/Master/texmf-dist/tex/latex/tudscr/tudscrfonts.sty +++ b/Master/texmf-dist/tex/latex/tudscr/tudscrfonts.sty @@ -7,10 +7,12 @@ %% tudscr-version.dtx (with options: `package') %% tudscr-fonts.dtx (with options: `package,identify') %% tudscr-base.dtx (with options: `load') +%% tudscr-comp.dtx (with options: `package,preset,fonts') %% tudscr-fonts.dtx (with options: `package,option') -%% tudscr-comp.dtx (with options: `fonts,option') -%% tudscr-fonts.dtx (with options: `package,execute') +%% tudscr-comp.dtx (with options: `package,option,fonts') +%% tudscr-misc.dtx (with options: `package,execute,fonts') %% tudscr-fonts.dtx (with options: `package,body') +%% tudscr-comp.dtx (with options: `package,body,fonts') %% %% ============================================================================ %% @@ -57,7 +59,7 @@ \fi% }% \fi% - \@TUDVersion{2015/06/11 v2.03a TUD-KOMA-Script}% + \@TUDVersion{2015/07/02 v2.04 TUD-KOMA-Script}% \endgroup% \providecommand*\tudscrmail{tudscr@gmail.com} \@ifundefined{TUDScript}{% @@ -68,38 +70,34 @@ }% }{} %%% From File: tudscr-fonts.dtx -\NeedsTeXFormat{LaTeX2e}[2011/06/27] -\ProvidesPackage{tudscrfonts}[% - 2015/06/11 v2.03a TUD-KOMA-Script +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{% + tudscrfonts% +}[% + 2015/07/02 v2.04 TUD-KOMA-Script package (corporate design fonts)% ] +\ifcsname KOMAClassName\endcsname\else% + \RequirePackage{scrextend}[2013/12/19]% +\fi +\RequirePackage{trimspaces}[2009/09/17] +%%% From File: tudscr-base.dtx +\RequirePackage{tudscrbase}[\TUDVersion] +%%% From File: tudscr-comp.dtx \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{tudposter}{\@tud@oldclasstrue}{}% +\@ifclassloaded{tudmathposter}{\@tud@oldclasstrue}{}% +\newif\if@tud@oldscrclass \@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 @@ -107,13 +105,18 @@ \newcommand*\tud@dinbold{0m6} \newif\if@tud@fontspec \TUD@key{fontspec}[true]{% + \PackageWarning{tudscrfonts} + {% + The option key `fontspec' is deprecated.\MessageBreak% + You should load the package `fontspec' manually% + }% \TUD@set@ifkey{fontspec}{@tud@fontspec}{#1}% } \AtEndOfPackage% {% - \TUD@key{fontspec}[] + \TUD@key{fontspec}[]% {% - \PackageError{tudscrfonts} + \PackageError{tudscrfonts}% {Option `fontspec' too late}{% Option `fontspec' can only be set while loading the\MessageBreak% package `tudscrfonts' @@ -121,66 +124,11 @@ }% \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% } +\AfterPackage*{fontspec}{\@tud@fontspectrue} \RequirePackage{textcase}[2004/10/07] \newcommand*\tud@uclcnotmath{% \def\footnote##1##{\toks@{\noexpand\footnote##1}\@footnote}% @@ -205,288 +153,575 @@ {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}% + {nofontspec}{13},{nfss}{13},{pdftex}{13},{pdflatex}{13}% }{#1}% \ifx\FamilyKeyState\FamilyKeyStateProcessed% - \ifcase\@tempa\relax% + \ifcase\@tempa\relax% false \def\tud@cdfont{0}% \if@atdocument\tud@font@set\fi% - \or% + \or% true \def\tud@cdfont{1}% \if@atdocument\tud@font@set\fi% - \or% + \or% heavy \def\tud@cdfont{2}% \if@atdocument\tud@font@set\fi% - \or% + \or% nodin \renewcommand*\tud@font@heading{\tud@RaggedRight}% - \or% - \renewcommand*\tud@font@heading{\dinbn\tud@raggedright} - \or% - \or% - \or% - \or% + \or% din + \renewcommand*\tud@font@heading{\dinbn\tud@raggedright}% + \or% nohead + \or% head + \or% heavyhead + \or% nomath \TUDoptions{cdmath=false}% - \or% + \or% math \TUDoptions{cdmath=true}% - \or% + \or% upgreek \TUDoptions{slantedgreek=false}% - \or% + \or% slgreek \TUDoptions{slantedgreek=true}% - \or% + \or% fontspec \TUDoptions{fontspec=true}% - \or% + \or% nofontspec \TUDoptions{fontspec=false}% \fi% + \else% + \KOMAoptions{fontsize=#1}% + \ifcase\tud@cdfont\relax% false to true + \def\tud@cdfont{1}% + \if@atdocument\tud@font@set\fi% + \fi% \fi% } -\AtBeginDocument{\tud@font@set}% +\DefineFamilyMember{KOMA} +\DefineFamilyKey{KOMA}{fontsize}{% + \AtEndOfFamilyOptions{\if@atdocument\tud@font@skip@set\fi}% + \FamilyKeyStateProcessed% +} \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}% + {upgreek}{2},{upright}{2},{uprightgreek}{2},{uprightGreek}{2},% + {slgreek}{3},{slanted}{3},{slantedgreek}{3},{slantedGreek}{3}% }{#1}% \ifx\FamilyKeyState\FamilyKeyStateProcessed% - \ifcase\@tempa\relax% + \ifcase\@tempa\relax% false \bool@set@lock{@tud@cdmath}{false}% - \TUD@std@ifkey@lock{slantedgreek}{false}% \if@atdocument\tud@font@math@set\fi% - \or% + \or% true \bool@set@lock{@tud@cdmath}{true}% - \TUD@std@ifkey@lock{slantedgreek}{true}% \if@atdocument\tud@font@math@set\fi% - \or + \or% upgreek \TUDoptions{slantedgreek=false}% - \or + \or% slgreek \TUDoptions{slantedgreek=true}% \fi% \fi% } -\newif\if@tud@slantedgreek -\TUD@key@lock{slantedgreek}[true]{% - \TUD@set@ifkey@lock{slantedgreek}{@tud@slantedgreek}{#1}% +\bool@lock{@tud@slantedgreek} +\TUD@key{slantedgreek}[true]{% + \TUD@set@ifkey{slantedgreek}{@tud@slantedgreek}{#1}% \ifx\FamilyKeyState\FamilyKeyStateProcessed% + \bool@set@lock{@tud@slantedgreek}{#1}% \if@atdocument\tud@font@math@set\fi% \fi% } +\TUD@key{slantedGreek}[true]{\TUDoptions{slantedgreek=#1}} %%% From File: tudscr-comp.dtx -\newcommand*\tud@deprecated@key[2]{% +\newcommand*\TUD@deprecated@key[2]{% \PackageWarning{tudscrfonts}% {% The option key `#1' is deprecated.\MessageBreak% - It's recommended to use `#2' instead% + It's recommended to use `#2'\MessageBreak% + instead% }% + \TUDoptions{#2}% } \TUD@key{cdfonts}[true]{% \TUD@set@ifkey{cdfonts}{@tempswa}{#1}% \ifx\FamilyKeyState\FamilyKeyStateProcessed% - \tud@deprecated@key{cdfonts}{cdfont}% \if@tempswa% - \TUDoptions{cdfont=true}% + \TUD@deprecated@key{cdfonts=#1}{cdfont=true}% \else% - \TUDoptions{cdfont=false}% + \TUD@deprecated@key{cdfonts=#1}{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}% + \TUD@deprecated@key{tudfonts=#1}{cdfont=true}% \else% - \TUDoptions{cdfont=false}% + \TUD@deprecated@key{tudfonts=#1}{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}% + \TUD@deprecated@key{heavyfont}{cdfont=heavy}% \else% - \TUDoptions{cdfont=true}% + \TUD@deprecated@key{heavyfont=#1}{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}% + \TUD@deprecated@key{din}{cdfont=din}% \else% - \TUDoptions{cdfont=nodin}% + \TUD@deprecated@key{din=#1}{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}% + \TUD@deprecated@key{nodin}{cdfont=nodin}% \else% - \TUDoptions{cdfont=din}% + \TUD@deprecated@key{nodin=#1}{cdfont=din}% + \fi% + \fi% +} +\TUD@key{noDIN}[true]{% + \TUD@set@ifkey{noDIN}{@tempswa}{#1}% + \ifx\FamilyKeyState\FamilyKeyStateProcessed% + \if@tempswa% + \TUD@deprecated@key{noDIN}{cdfont=nodin}% + \else% + \TUD@deprecated@key{noDIN=#1}{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}% + \TUD@deprecated@key{sansmath}{cdmath=true}% \else% - \TUDoptions{cdmath=false}% + \TUD@deprecated@key{sansmath=#1}{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}% + \TUD@deprecated@key{serifmath}{cdmath=false}% \else% - \TUDoptions{cdmath=true}% + \TUD@deprecated@key{serifmath=#1}{cdmath=true}% \fi% \fi% } -%%% From File: tudscr-fonts.dtx -\TUDoptions{cdfont=true} -\DeclareOption*{\TUDoptions{\CurrentOption}} +\newcommand*\tud@v@comp{\tud@v@last} +\TUD@key{tudscrver}[last]{% + \ifcsvoid{tud@v@#1}{% + \def\tud@v@comp{0}% + \PackageWarningNoLine{tudscrfonts}% + {% + You have set option `tudscrver' to `#1', but\MessageBreak% + this value is not supported. Because of this, the\MessageBreak% + value for `tudscrver' was set to `first'% + }% + \FamilyKeyStateProcessed% + }{% + \PackageInfoNoLine{tudscrfonts}% + {% + Switching compatibility level to `#1'% + }% + \edef\tud@v@comp{\@nameuse{tud@v@#1}}% + \FamilyKeyStateProcessed% + }% +} +\AtEndOfPackage% +{% + \TUD@key{tudscrver}[]{% + \PackageError{tudscrfonts}% + {Option `tudscrver' too late}{% + Option `tudscrver' can only be set while loading the\MessageBreak% + package `tudscrfonts' + but you have tried to set it up later.% + }% + \FamilyKeyStateProcessed% + }% +} +\@namedef{tud@v@first}{0} +\@namedef{tud@v@2.02}{0} +\@namedef{tud@v@v2.02}{0} +\@namedef{tud@v@2.03}{1} +\@namedef{tud@v@v2.03}{1} +\@namedef{tud@v@2.04}{2} +\@namedef{tud@v@v2.04}{2} +\@namedef{tud@v@last}{2} +\newcommand*\tud@ifverlower[1]{% + \ifnum\tud@v@comp<\@nameuse{tud@v@#1}\relax% + \expandafter\@firstoftwo% + \else% + \expandafter\@secondoftwo% + \fi% +} +%%% From File: tudscr-misc.dtx +\DeclareOption*{\KOMAoptions{\CurrentOption}} +\TUDExecuteOptions{cdfont=true} \TUDProcessOptions\relax %%% From File: tudscr-fonts.dtx -\AtEndPreamble{% +\newcommand*\tud@font@greek@loop[1]{% + \@for\@tempa:={% + Gamma,Delta,Theta,Lambda,Xi,Pi,Sigma,Upsilon,Phi,Psi,Omega% + }\do{#1{\@tempa}}% +} +\newcommand*\tud@font@greek@declare[1]{% + \edef\@tempb{% + \noexpand\DeclareMathSymbol{\csname tud@up#1\endcsname}% + {\noexpand\mathalpha}{operators}{\the\@tempcnta}% + }\@tempb% + \edef\@tempb{% + \noexpand\DeclareMathSymbol{\csname tud@var#1\endcsname}% + {\noexpand\mathalpha}{letters}{\the\@tempcnta}% + }\@tempb% + \csletcs{tud@#1}{tud@up#1}% + \advance \@tempcnta by 1% +} +\@tempcnta=\z@\relax +\tud@font@greek@loop\tud@font@greek@declare +\newcommand*\tud@font@check{% \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}}% + \edef\@tempa{% + \lowercase{\noexpand\IfFileExists{OT1\tud@univers.fd}}% + }% + \edef\@tempb{% + \lowercase{\noexpand\IfFileExists{OT1\tud@dinbold.fd}}% + }% + \def\@tempc##1{% + \PackageInfoNoLine{tudscrfonts}% + {% + `##1' fonts for math typesetting not found\MessageBreak% + Please use one of the installation scripts for the\MessageBreak% + tudscr-bundle mentioned in the manual% + }% + }% \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}% + \edef\@tempa{% + \lowercase{\noexpand\IfFileExists{\encodingdefault\tud@univers.fd}}% + }% + \edef\@tempb{% + \lowercase{\noexpand\IfFileExists{\encodingdefault\tud@dinbold.fd}}% + }% + \def\@tempc##1{% + \@tempswafalse% + \ifstr{OT1}{\encodingdefault}{\@tempswatrue}{} + \ifstr{T1}{\encodingdefault}{\@tempswatrue}{} + \PackageWarningNoLine{tudscrfonts}% + {% + `##1' fonts not found for encoding `\encodingdefault'.\MessageBreak% + \if@tempswa% + Please use one of the installation scripts for the\MessageBreak% + tudscr-bundle mentioned in the manual.\MessageBreak% + \else% + Please choose a possible encoding (`OT1' or `T1').\MessageBreak% + \fi% + A fallback layout is used% + }% + }% \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}}% + \@tempa{\@tud@universtrue}{\@tempc{Univers}}% + \@tempb{\@tud@dinboldtrue}{\@tempc{DIN Bold}}% + \undef\tud@font@check% +} +\newcommand*\tud@font@init{% + \undef\tud@font@init@fontspec% + \undef\tud@font@init@nfss% + \undef\tud@font@init% +} +\newcommand*\tud@font@init@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}}% + \newfontface\@dinbn{DIN Bold}[NFSSFamily=DINBold,BoldFont = DIN Bold]% + \newcommand*\dinbn{\@dinbn\if@tud@dinbold\mathversion{dinbold}\fi}% + \newcommand*\textdbn[1]{{\dinbn##1}}% +} +\newcommand*\tud@font@init@nfss{% + \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% - \if@tud@dinbold% - \newcommand*\dinbn{% - \usefont{\encodingdefault}{\tud@dinbold}{b}{n}% - \mathversion{dinbold}% + \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}% + \if@tud@dinbold% + \newcommand*\dinbn{% + \usefont{\encodingdefault}{\tud@dinbold}{b}{n}% + \mathversion{dinbold}% + }% + \else% + \let\dinbn\sectfont% + \fi% + \newcommand*\textdbn{}% + \DeclareTextFontCommand{\textdbn}{\dinbn}% +} +\newcommand*\cdfont[1]{% + \@cdfont{#1}% + \ifx\@tempc\relax\else% + \ifstr{\@tempc}{dinbn}{\dinbn}{\@nameuse{univ\@tempc}}% + \fi% +} +\providecommand*\tudfont[1]{\cdfont{#1}} +\newcommand*\textcdfont[2]{% + \@cdfont{#1}% + \ifx\@tempc\relax\else% + \ifstr{\@tempc}{dinbn}{\textdbn{#2}}{\@nameuse{textu\@tempc}{#2}}% + \fi% +} +\newcommand*\@cdfont[1]{% + \tud@trimfontname\@tempa{#1}% + \ifstr{\@tempa}{45}{\def\@tempc{ln}}{% + \ifstr{\@tempa}{55}{\def\@tempc{rn}}{% + \ifstr{\@tempa}{65}{\def\@tempc{bn}}{% + \ifstr{\@tempa}{75}{\def\@tempc{xn}}{% + \ifstr{\@tempa}{45oblique}{\def\@tempc{ls}}{% + \ifstr{\@tempa}{55oblique}{\def\@tempc{rs}}{% + \ifstr{\@tempa}{65oblique}{\def\@tempc{bs}}{% + \ifstr{\@tempa}{75oblique}{\def\@tempc{xs}}{% + \ifstr{\@tempa}{oblique45}{\def\@tempc{ls}}{% + \ifstr{\@tempa}{oblique55}{\def\@tempc{rs}}{% + \ifstr{\@tempa}{oblique65}{\def\@tempc{bs}}{% + \ifstr{\@tempa}{oblique75}{\def\@tempc{xs}}{% + \ifstr{\@tempa}{din}{\def\@tempc{dinbn}}{% + \ifstr{\@tempa}{din65}{\def\@tempc{dinbn}}{% + \let\@tempc\relax% + \PackageWarning{tudscrfonts}{The font `#1' is unknown}% + }}}}}}}}}}}}}}% +} +\newcommand*\tud@trimfontname[2]{% + \protected@edef\@tempa{\trim@spaces{#2}}% + \tud@lowerstring{\@tempa}{\@tempa}% + \tud@@trimfontname{ }{}% + \tud@@trimfontname{-}{}% + \tud@@trimfontname{_}{}% + \tud@@trimfontname{~}{}% + \tud@@trimfontname{ce}{}% + \tud@@trimfontname{ff}{}% + \tud@@trimfontname{univers}{}% + \tud@@trimfontname{60}{65}% + \tud@@trimfontname{light}{45}% + \tud@@trimfontname{regular}{55}% + \tud@@trimfontname{bold}{65}% + \tud@@trimfontname{black}{75}% + \tud@@trimfontname{4545}{45}% + \tud@@trimfontname{5555}{55}% + \tud@@trimfontname{6565}{65}% + \tud@@trimfontname{7575}{75}% + \tud@@trimfontname{italic}{oblique}% + \tud@@trimfontname{slanted}{oblique}% + \let#1\@tempa% +} +\newcommand*\tud@@trimfontname[2]{% + \def\@tempb##1#1##2\relax{\def\@tempa{##1#2##2}}% + \@expandtwoargs\in@{#1}{\@tempa}% + \@whilesw\ifin@\fi{% + \expandafter\@tempb\@tempa\relax% + \@expandtwoargs\in@{#1}{\@tempa}% + }% +} +\newcommand*\mv@univers{}% +\newcommand*\mv@universbold{}% +\newcommand*\mv@dinbold{}% +\newcommand*\tud@font@math@init{% + \if@tud@fontspec\if@tud@univers\if@tud@dinbold% + \@ifpackagewith{fontspec}{no-math}{}{% + \PackageWarningNoLine{tudscrfonts}% + {% + It's recommended to load package `fontspec' with\MessageBreak% + option `no-math'% }% + }% + \fi\fi\fi% + \if@tud@univers% + \DeclareMathVersion{univers}% + \DeclareMathVersion{universbold}% + \SetSymbolFont{operators}{univers}{OT1}{\tud@univers}{l}{n}% + \SetSymbolFont{operators}{universbold}{OT1}{\tud@univers}{b}{n}% + \SetSymbolFont{letters}{univers}{OML}{\tud@univers}{l}{sl}% + \SetSymbolFont{letters}{universbold}{OML}{\tud@univers}{b}{sl}% + \SetSymbolFont{symbols}{univers}{OMS}{\tud@univers}{l}{n}% + \SetSymbolFont{symbols}{universbold}{OMS}{\tud@univers}{b}{n}% + \SetSymbolFont{largesymbols}{univers}{OMX}{iwona}{m}{n}% + \SetSymbolFont{largesymbols}{universbold}{OMX}{iwona}{b}{n}% + \SetMathAlphabet{\mathcal}{univers}{OMS}{lmsy}{m}{n}% + \SetMathAlphabet{\mathcal}{universbold}{OMS}{lmsy}{b}{n}% + \SetMathAlphabet{\mathbf}{univers}{OT1}{\tud@univers}{b}{n}% + \SetMathAlphabet{\mathbf}{universbold}{OT1}{\tud@univers}{eb}{n}% + \SetMathAlphabet{\mathsf}{univers}{OT1}{\tud@univers}{l}{n}% + \SetMathAlphabet{\mathsf}{universbold}{OT1}{\tud@univers}{b}{n}% + \SetMathAlphabet{\mathit}{univers}{OT1}{\tud@univers}{l}{sl}% + \SetMathAlphabet{\mathit}{universbold}{OT1}{\tud@univers}{b}{sl}% + \SetMathAlphabet{\mathtt}{univers}{OT1}{\tud@univers t}{l}{n}% + \SetMathAlphabet{\mathtt}{universbold}{OT1}{\tud@univers t}{b}{n}% + \@ifpackageloaded{amsfonts}{% + \DeclareFontFamily{U}{\tud@univers a}{}% + \DeclareFontShape{U}{\tud@univers a}{m}{n}{<->cmbras10}{}% + \SetSymbolFont{AMSa}{univers}{U}{\tud@univers a}{m}{n}% + \SetSymbolFont{AMSa}{universbold}{U}{\tud@univers a}{m}{n}% + \DeclareFontFamily{U}{\tud@univers b}{}% + \DeclareFontShape{U}{\tud@univers b}{m}{n}{<->cmbrbs10}{}% + \SetSymbolFont{AMSb}{univers}{U}{\tud@univers b}{m}{n}% + \SetSymbolFont{AMSb}{universbold}{U}{\tud@univers b}{m}{n}% + \SetMathAlphabet{\mathfrak}{univers}{U}{euf}{m}{n}% + \SetMathAlphabet{\mathfrak}{universbold}{U}{euf}{b}{n}% + }{}% + \fi% + \if@tud@dinbold% + \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}% + \fi% + \@ifpackageloaded{unicode-math}{% + \let\tud@font@math@set\relax% + \bool@set@lock{@tud@cdmath}{false}% + }{% + \let\@tempb\relax% + \let\@tempc\relax% + \DeclareMathSymbol{\@tempb}{\mathalpha}{letters}{0}% + \DeclareMathSymbol{\@tempc}{\mathord}{letters}{0}% + \@tempswafalse% + \ifnum\Gamma=\@tempb\relax\@tempswatrue\fi% + \ifnum\Gamma=\@tempc\relax\@tempswatrue\fi% + \if@tempswa% + \bool@std@lock{@tud@slantedgreek}{true}% + \fi% + \tud@font@greek@loop\tud@font@greek@init% + \tud@font@math@set% + }% + \sbox\z@{\dinbn$ $}% + \undef\tud@font@math@init% +} +\ifbool{@tud@oldscrclass}{% + \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% + \let\textuln\relax% + \let\texturn\relax% + \let\textubn\relax% + \let\textuxn\relax% + \let\textuls\relax% + \let\texturs\relax% + \let\textubs\relax% + \let\textuxs\relax% + \let\textdbn\relax% + \AtBeginDocument{% + \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}% + }% +}{} +\AtBeginDocument% +{% + \tud@font@check% + \if@tud@fontspec% + \preto\tud@font@init\tud@font@init@fontspec% + \else% + \preto\tud@font@init\tud@font@init@nfss% + \fi% + \ifdef{\sectfont}{}{\let\sectfont\relax}% + \tud@font@init% + \tud@font@set[nomath]% + \tud@font@math@init% +} +\newcommand*\tud@font@greek@init[1]{% + \ifcsdef{up#1}{}{% + \if@tempswa% + \csletcs{up#1}{tud@up#1}% \else% - \let\dinbn\sectfont% + \csletcs{up#1}{#1}% \fi% - \newcommand*\textdbn{}% - \DeclareTextFontCommand{\textdbn}{\dinbn}% + }% + \ifcsdef{var#1}{}{% + \if@tempswa% + \csletcs{var#1}{#1}% + \else% + \csletcs{var#1}{tud@var#1}% + \fi% + }% +} +\newif\if@tud@mweights +\AfterPackage*{mweights}{\@tud@mweightstrue} +\newcommand*\tud@font@set[1][]{% + \if@tud@mweights% + \ifdef{\bfseries@rm}{}{\edef\bfseries@rm{\bfdefault}}% + \ifdef{\bfseries@sf}{}{\edef\bfseries@sf{\bfdefault}}% + \ifdef{\bfseries@tt}{}{\edef\bfseries@tt{\bfdefault}}% + \ifdef{\mdseries@rm}{}{\edef\mdseries@rm{\mddefault}}% + \ifdef{\mdseries@sf}{}{\edef\mdseries@sf{\mddefault}}% + \ifdef{\mdseries@tt}{}{\edef\mdseries@tt{\mddefault}}% \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% + \ifcase\tud@cdfont\relax% false \tud@cmd@restore{rmdefault}% \tud@cmd@restore{sfdefault}% \tud@cmd@restore{ttdefault}% @@ -496,8 +731,16 @@ \tud@cmd@restore{familydefault}% \tud@cmd@restore{seriesdefault}% \tud@cmd@restore{shapedefault}% + \if@tud@mweights% + \tud@cmd@restore{bfseries@rm}% + \tud@cmd@restore{bfseries@sf}% + \tud@cmd@restore{bfseries@tt}% + \tud@cmd@restore{mdseries@rm}% + \tud@cmd@restore{mdseries@sf}% + \tud@cmd@restore{mdseries@tt}% + \fi% \bool@std@lock{@tud@cdmath}{false}% - \else% + \else% true/heavy \tud@cmd@store{rmdefault}% \tud@cmd@store{sfdefault}% \tud@cmd@store{ttdefault}% @@ -507,9 +750,17 @@ \tud@cmd@store{familydefault}% \tud@cmd@store{seriesdefault}% \tud@cmd@store{shapedefault}% + \if@tud@mweights% + \tud@cmd@store{bfseries@rm}% + \tud@cmd@store{bfseries@sf}% + \tud@cmd@store{bfseries@tt}% + \tud@cmd@store{mdseries@rm}% + \tud@cmd@store{mdseries@sf}% + \tud@cmd@store{mdseries@tt}% + \fi% \bool@std@lock{@tud@cdmath}{true}% \if@tud@fontspec% - \ifnum\tud@cdfont=\@ne\relax% + \ifnum\tud@cdfont=\@ne\relax% true \setsansfont{Univers Light}[% BoldFont = Univers,% ItalicFont = Univers Light Oblique,% @@ -527,7 +778,7 @@ BoldItalicFont = Univers Bold Oblique,% ]% }{}% - \else% + \else% heavy \setsansfont{Univers}[% BoldFont = Univers Bold,% ItalicFont = Univers Oblique,% @@ -543,15 +794,31 @@ \if@tud@univers% \renewcommand*\sfdefault{\tud@univers}% \renewcommand*\ttdefault{\tud@univers t}% - \ifnum\tud@cdfont=\@ne\relax% + \ifnum\tud@cdfont=\@ne\relax% true \renewcommand*\bfdefault{m}% \ifboolexpr{bool {@tud@oldclass} or bool {@tud@oldscrclass}}{% \renewcommand*\bfdefault{b}% }{}% \renewcommand*\mddefault{l}% - \else% + \if@tud@mweights% + \def\bfseries@rm{m}% + \def\bfseries@sf{m}% + \def\bfseries@tt{m}% + \def\mdseries@rm{l}% + \def\mdseries@sf{l}% + \def\mdseries@tt{l}% + \fi% + \else% heavy \renewcommand*\bfdefault{b}% \renewcommand*\mddefault{m}% + \if@tud@mweights% + \def\bfseries@rm{b}% + \def\bfseries@sf{b}% + \def\bfseries@tt{b}% + \def\mdseries@rm{m}% + \def\mdseries@sf{m}% + \def\mdseries@tt{m}% + \fi% \fi% \fi% \fi% @@ -560,8 +827,48 @@ \renewcommand*\seriesdefault{\mddefault}% \renewcommand*\shapedefault{\updefault}% \fi% + \if@tud@mweights% + \edef\rmdef@ult{\rmdefault}% + \edef\sfdef@ult{\sfdefault}% + \edef\ttdef@ult{\ttdefault}% + \edef\bfdef@ult{\bfdefault}% + \edef\mddef@ult{\mddefault}% + \fi% + \tud@font@skip@set% + \ifstr{#1}{nomath}{}{\tud@font@math@set}% \normalfont\selectfont% - \tud@font@math@set% +} +\newcommand*\tud@font@skip@set{% + \tud@ifverlower{2.04}{}{% + \ifcase\tud@cdfont\relax% false + \tud@skip@restore{smallskipamount}% + \tud@skip@restore{medskipamount}% + \tud@skip@restore{bigskipamount}% + \tud@skip@restore{abovecaptionskip}% + \tud@skip@restore{belowcaptionskip}% + \tud@skip@restore{columnsep}% + \else% true/heavy + \tud@skip@store{smallskipamount}% + \tud@skip@store{medskipamount}% + \tud@skip@store{bigskipamount}% + \tud@skip@store{abovecaptionskip}% + \tud@skip@store{belowcaptionskip}% + \tud@skip@store{columnsep}% + \tud@font@skip@@set% + \fi% + }% +} +\newcommand*\tud@font@skip@@set{% + \setlength{\@tempdimb}{\f@baselineskip}% + \scr@setlength\smallskipamount{\dimexpr\@tempdimb/4\relax}% + {\dimexpr\@tempdimb/12\relax}{\dimexpr\@tempdimb/12\relax}% + \scr@setlength\medskipamount{\dimexpr\@tempdimb/2\relax}% + {\dimexpr\@tempdimb/6\relax}{\dimexpr\@tempdimb/6\relax}% + \scr@setlength\bigskipamount{\@tempdimb}% + {\dimexpr\@tempdimb/3\relax}{\dimexpr\@tempdimb/3\relax}% + \tud@skip@set\abovecaptionskip{\dimexpr4\@tempdimb/5\relax}% + \tud@skip@set\belowcaptionskip{\z@}% + \tud@skip@set\columnsep{1.1\baselineskip}% } \newcommand*\tud@font@math@set{% \if@tud@univers% @@ -570,48 +877,35 @@ \tud@cmd@store{mv@bold}% \let\mv@normal\mv@univers% \let\mv@bold\mv@universbold% + \tud@font@greek@loop\tud@font@greek@set% \else% \tud@cmd@restore{mv@normal}% \tud@cmd@restore{mv@bold}% + \tud@font@greek@loop\tud@font@greek@reset% \fi% \fi% \if@tud@slantedgreek% - \tud@font@greek@slanted% + \tud@font@greek@loop\tud@font@greek@slanted% \else% - \tud@font@greek@upright% + \tud@font@greek@loop\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@set[1]{% + \tud@cmd@store{#1}% + \tud@cmd@store{up#1}% + \tud@cmd@store{var#1}% + \csletcs{#1}{tud@#1}% + \csletcs{up#1}{tud@up#1}% + \csletcs{var#1}{tud@var#1}% } -\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}% - }% +\newcommand*\tud@font@greek@reset[1]{% + \tud@cmd@restore{#1}% + \tud@cmd@restore{up#1}% + \tud@cmd@restore{var#1}% } +\newcommand*\tud@font@greek@upright[1]{\csletcs{#1}{up#1}} +\newcommand*\tud@font@greek@slanted[1]{\csletcs{#1}{var#1}} \newrobustcmd*\ifdin{% \@tempswafalse% \@expandtwoargs\in@{DINBold}{\f@family}% @@ -623,8 +917,24 @@ \expandafter\@secondoftwo% \fi% } -\AtBeginDocument{% - \ifbool{@tud@oldclass}{% +\newcommand*\tud@makeuppercase[1]{% + \ifdin{\begingroup\MakeTextUppercase{#1}\endgroup}{#1}% + \protect\vphantom{\"A\"O\"U}% +} +\newcommand*\tud@raggedright{\raggedright} +\newcommand*\tud@RaggedRight{\raggedright} +\AfterPackage*{ragged2e}{% + \ifdef{\LaTeXraggedright}{% + \renewcommand*\tud@raggedright{\LaTeXraggedright}% + }{}% + \renewcommand*\tud@RaggedRight{\RaggedRight}% +} +\AfterPackage*{siunitx}{% + \providecommand*\lseries{\fontseries{l}\selectfont} +} +%%% From File: tudscr-comp.dtx +\ifbool{@tud@oldclass}{% + \AtBeginDocument{% \if@tud@fontspec% \DeclareFixedFont{\univLightVII}{\encodingdefault}% {UniversLight}{m}{n}{7}% @@ -683,27 +993,62 @@ \SetSymbolFont{aunLetters}{bold}{OT1}{\tud@univers}{b}{sl}% \DeclareSymbolFont{aunOperators}{OT1}{\tud@univers}{l}{n}% \SetSymbolFont{aunOperators}{bold}{OT1}{\tud@univers}{b}{n}% + \DeclareSymbolFont{aunUpright}{OT1}{\tud@univers}{l}{n}% + \SetSymbolFont{aunUpright}{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}% + \@ifpackageloaded{tudfonts}{% + \let\mv@normal\mv@univers% + \let\mv@bold\mv@universbold% + }{}% \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}% + }% +}{} +\@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}}% +}{} +\@ifclassloaded{tudmathposter}{% + \setkomafont{title}{\bfseries\tud@font@heading\Huge}% + \renewcommand*\subtitlefont{\fontseries{m}\tud@font@heading\huge}% + \if@mathevorgabe% + \renewcommand*\sectionfont{\univbn\LARGE}% + \renewcommand*\subsectionfont{\univbn\large}% + \fi% +}{} +\@ifpackageloaded{tudfonts}{% + \let\if@sansmath\if@tudfonts@sansmath% + \renewcommand*\tudfont[1]{\cdfont{#1}}% + \if@sansmath% + \if@tudfonts@eulermath% + \PackageWarningNoLine{tudscrfonts}{% + You're using non-serif fonts in math mode. It's\MessageBreak% + recommended to pass the option `noeulermath' to\MessageBreak% + package `tudfonts'% + }% + \fi% + \fi% +}{% + \newif\if@tudfonts@nodin% + \@ifundefined{if@sansmath}{\newif\if@sansmath}{}% +} +\@ifclassloaded{tudposter}{% + \let\if@sansmath\if@tudposter@sansmath% +}{} +\ifbool{@tud@oldscrclass}{% + \AtBeginDocument{% \DeclareSymbolFontAlphabet{\mathrm}{operators} \if@tud@fontspec% \DeclareFixedFont{\univLightHead}{\encodingdefault}% @@ -718,39 +1063,7 @@ {\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 %% |