From 3f2aeeffbd8d4dd39f5b5d6a80fe209951e54478 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sun, 14 Jun 2015 17:45:53 +0000 Subject: tudscr (12jun15) git-svn-id: svn://tug.org/texlive/trunk@37531 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/tudscr/tudscrbook.cls | 111 ++++++++++++++-------- 1 file changed, 70 insertions(+), 41 deletions(-) (limited to 'Master/texmf-dist/tex/latex/tudscr/tudscrbook.cls') diff --git a/Master/texmf-dist/tex/latex/tudscr/tudscrbook.cls b/Master/texmf-dist/tex/latex/tudscr/tudscrbook.cls index 8b7faa9a31b..8a119fa94be 100644 --- a/Master/texmf-dist/tex/latex/tudscr/tudscrbook.cls +++ b/Master/texmf-dist/tex/latex/tudscr/tudscrbook.cls @@ -70,7 +70,7 @@ \fi% }% \fi% - \@TUDVersion{2015/02/15 v2.03 TUD-KOMA-Script}% + \@TUDVersion{2015/06/11 v2.03a TUD-KOMA-Script}% \endgroup% \providecommand*\tudscrmail{tudscr@gmail.com} \newcommand*\cls@name{book} @@ -78,7 +78,7 @@ \newcommand*\tudcls@name{tudscrbook} \NeedsTeXFormat{LaTeX2e}[2011/06/27] \ProvidesClass{\tudcls@name}[% - 2015/02/15 v2.03 TUD-KOMA-Script + 2015/06/11 v2.03a TUD-KOMA-Script document class (\cls@name)% ] \typeout{The Corporate Design of Technische Universitaet Dresden} @@ -106,7 +106,6 @@ \newif\if@tud@dinbold \newcommand*\tud@univers{lun} \newcommand*\tud@dinbold{0m6} -\newcommand*\tud@mathenc{OT1} \newif\if@tud@fontspec \TUD@key{fontspec}[true]{% \TUD@set@ifkey{fontspec}{@tud@fontspec}{#1}% @@ -136,15 +135,9 @@ \fi% } \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}}% + \lowercase{\noexpand\InputIfFileExists{OT1\tud@univers.fd}}% }% \def\@tempb#1{% \ClassInfoNoLine{\tudcls@name}{% @@ -167,7 +160,7 @@ \@tempa{\@tud@universtrue}{\@tempb{Univers}}% \if@tud@fontspec% \edef\@tempa{% - \lowercase{\noexpand\InputIfFileExists{\tud@mathenc\tud@dinbold.fd}}% + \lowercase{\noexpand\InputIfFileExists{OT1\tud@dinbold.fd}}% }% \else% \edef\@tempa{% @@ -1222,22 +1215,22 @@ \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}% + \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}{\tud@mathenc}{\tud@dinbold}{b}{n}% + \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}{\tud@mathenc}{\tud@dinbold}{b}{n}% - \SetMathAlphabet{\mathsf}{dinbold}{\tud@mathenc}{\tud@dinbold}{b}{n}% - \SetMathAlphabet{\mathit}{dinbold}{\tud@mathenc}{\tud@dinbold}{b}{sl}% + \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}% @@ -3016,22 +3009,46 @@ }% } \let\tud@@part\@part -\patchcmd{\tud@@part}{% - \ifnumbered{part}{% - \size@partnumber{\partformat}% - \partheadmidvskip% - }{}% +\ifcsdef{scr@v@3.17}{% + \patchcmd{\tud@@part}{% + \ifnumbered{part}{% + \size@partnumber{\partformat}% + \setlength{\@tempskipa}{\scr@part@innerskip}% + \partheadmidvskip% + }{}% + }{% + \ifnumbered{part}{% + \size@partnumber{\tud@makeuppercase{\partformat}}% + \if@tud@parttitle% + \enskip% + \else% + \tud@headmidvskip% + \fi% + }{% + \if@tud@parttitle\else% + \size@partnumber{\vphantom{\partname}}% + \tud@headmidvskip% + \fi% + }% + }{}{\tud@patch@wrn{@part}}% }{% - \ifnumbered{part}{% - \size@partnumber{\tud@makeuppercase{\partformat}}% - \partheadmidvskip% + \patchcmd{\tud@@part}{% + \ifnumbered{part}{% + \size@partnumber{\partformat}% + \partheadmidvskip% + }{}% }{% - \if@tud@parttitle\else% - \size@partnumber{\vphantom{\partname}}% + \ifnumbered{part}{% + \size@partnumber{\tud@makeuppercase{\partformat}}% \partheadmidvskip% - \fi% - }% -}{}{\tud@patch@wrn{@part}}% + }{% + \if@tud@parttitle\else% + \size@partnumber{\vphantom{\partname}}% + \partheadmidvskip% + \fi% + }% + }{}{\tud@patch@wrn{@part}}% +} \let\tud@@spart\@spart \patchcmd{\tud@@spart}{% \normalfont @@ -3076,13 +3093,25 @@ \newcommand*\tud@@@makechapterhead{} \let\tud@@@makechapterhead\@@makechapterhead \ifcsdef{scr@v@3.15}{% - \patchcmd{\tud@@@makechapterhead}{\chapterformat\chapterheadmidvskip}{% - \tud@headmidvskip@neg% - \tud@makeuppercase{\chapterformat}\tud@headmidvskip - }{}{\tud@patch@wrn{@@makechapterhead}} + \ifcsdef{scr@v@3.17}{% + \patchcmd{\tud@@@makechapterhead}{% + \chapterformat + \setlength{\@tempskipa}{\scr@chapter@innerskip}% + \chapterheadmidvskip + }{% + \tud@headmidvskip@neg% + \tud@makeuppercase{\chapterformat}% + \tud@headmidvskip% + }{}{\tud@patch@wrn{@@makechapterhead}}% + }{% + \patchcmd{\tud@@@makechapterhead}{\chapterformat\chapterheadmidvskip}{% + \tud@headmidvskip@neg% + \tud@makeuppercase{\chapterformat}\tud@headmidvskip + }{}{\tud@patch@wrn{@@makechapterhead}}% + }% \patchcmd{\tud@@@makechapterhead}{\IfUsePrefixLine{}{\raggedchapter}}{% \IfUsePrefixLine{\IfUseNumber{\setlength\parskip{\z@}}{}}{\raggedchapter}% - }{}{\tud@patch@wrn{@@makechapterhead}} + }{}{\tud@patch@wrn{@@makechapterhead}}% }{% \patchcmd{\tud@@@makechapterhead}{\chapterheadstartvskip}{% \chapterheadstartvskip% -- cgit v1.2.3