diff options
author | Karl Berry <karl@freefriends.org> | 2017-01-27 23:14:08 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2017-01-27 23:14:08 +0000 |
commit | 953423df3388111af14ec84c79dfa6b10e1e8aac (patch) | |
tree | d91e3ead05751436a0713703f3cae5ffd3174fe9 /Master/texmf-dist/tex/latex/tudscr/tudscrartcl.cls | |
parent | 83082c7f9a495b3086e74c09252c4046fdbc6a72 (diff) |
tudscr (27jan17)
git-svn-id: svn://tug.org/texlive/trunk@43067 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/tudscr/tudscrartcl.cls')
-rw-r--r-- | Master/texmf-dist/tex/latex/tudscr/tudscrartcl.cls | 897 |
1 files changed, 439 insertions, 458 deletions
diff --git a/Master/texmf-dist/tex/latex/tudscr/tudscrartcl.cls b/Master/texmf-dist/tex/latex/tudscr/tudscrartcl.cls index 16a89f7e51d..3e6f2143a55 100644 --- a/Master/texmf-dist/tex/latex/tudscr/tudscrartcl.cls +++ b/Master/texmf-dist/tex/latex/tudscr/tudscrartcl.cls @@ -27,37 +27,30 @@ %% tudscr-comp.dtx (with options: `class,article,body') %% tudscr-misc.dtx (with options: `class,article,body') %% -%% ============================================================================ +%% TUD-Script -- Corporate Design of Technische Universitaet Dresden %% -%% TUD-Script -%% Copyright (c) Falk Hanisch <tudscr@gmail.com>, 2012-2016 +%% 2017/01/26 v2.05g TUD-Script %% -%% ============================================================================ -%% -%% 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. +%% Copyright (C) Falk Hanisch <tudscr@gmail.com>, 2012-2017 %% +%% This file was generated from file(s) of the TUD-Script bundle. %% ---------------------------------------------------------------------------- %% -%% 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. +%% 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. %% %%% From File: tudscr-version.dtx \begingroup \catcode`\@11\relax - \ifx\TUD@Version\undefined + \ifx\TUD@Version\@undefined \newcommand*\TUD@Version@Check[1]{% \gdef\TUD@Version{#1}% \gdef\TUDScriptVersion{#1}% @@ -79,24 +72,24 @@ \fi% } \fi - \TUD@Version@Check{2016/10/12 v2.05f TUD-Script} + \TUD@Version@Check{2017/01/26 v2.05g TUD-Script} \endgroup \NeedsTeXFormat{LaTeX2e} \providecommand*\tudscrmail{tudscr@gmail.com} \newcommand*\TUD@ProvidesClass[3]{% \ProvidesClass{#1}[% - 2016/10/12 v2.05f TUD-Script + 2017/01/26 v2.05g TUD-Script ^^J#3 (#2)% ]% \newcommand*\TUD@Class@KOMA{#2}% - \@ifundefined{TUD@Class@Parent}{% + \ifx\TUD@Class@Parent\@undefined% \newcommand*\TUD@Class@Name{#1}% \TUD@Class@Info% - }{}% + \fi% } \providecommand*\TUD@Class@Info{% \typeout{+---------------------------------------------------------------}% - \typeout{| The Corporate Design of Technische Universitaet Dresden}% + \typeout{| Corporate Design of Technische Universitaet Dresden}% \typeout{| Class: \TUD@Class@Name}% \typeout{| Version: \TUD@Version}% \typeout{| Author: Falk Hanisch (\tudscrmail)}% @@ -335,8 +328,8 @@ \cs@set@lock{tud@cdgeometry@num}{1}% \fi% \@tempswafalse% - \ifx\@tempb\tud@cdgeometry@num\relax\@tempswatrue\fi% - \ifx\@tempc\tud@cdgeometry@calc@num\relax\@tempswatrue\fi% + \ifx\@tempb\tud@cdgeometry@num\relax\else\@tempswatrue\fi% + \ifx\@tempc\tud@cdgeometry@calc@num\relax\else\@tempswatrue\fi% \if@tempswa% \TUD@SpecialOptionAtDocument{tud@cdgeometry@process}% \fi% @@ -382,85 +375,6 @@ \renewcommand*\tud@x@ta@warnings@on{\DeactivateWarningFilters[typearea]} }{} %%% From File: tudscr-pagestyle.dtx -\newcommand*\tud@ps@list{} -\newcommand*\tud@if@tudheadings[3]{% - \xifinlist{\GetRealPageStyle{#1}}{\tud@ps@list}{#2}{#3}% -} -\newif\if@tud@ddc@internal -\newcommand*\tud@comp@clearpage{}% -\newcommand*\tud@comp@resetpagestyle{}% -\newcommand*\tud@ddc@switch{} -\edef\tud@ddc@switch{% - \TUD@numkey@bool,% - {color}{2},{colour}{2},{cdcolor}{2},{cdcolour}{2},% - {colorblack}{3},{colourblack}{3},{cdcolorblack}{3},{cdcolourblack}{3},% - {gray}{4},{grey}{4},{HKS92}{4},{cdgray}{4},{cdgrey}{4},% - {black}{5},{cdblack}{5},% - {blue}{6},{HKS41}{6},{cdblue}{6},{cddarkblue}{6},% - {white}{7},{cdwhite}{7}% -} -\newif\if@tud@headlogo@option@set -\newif\if@tud@footlogo@option@set -\newif\if@tud@ddc@auto -\newcommand*\tud@ddc@auto@num{0} -\TUD@key{ddc}[true]{% - \tud@comp@clearpage% - \TUD@set@numkey{ddc}{tud@ddc@auto@num}{\tud@ddc@switch}{#1}% - \ifx\FamilyKeyState\FamilyKeyStateProcessed% - \if@tud@ddc@internal% - \@tud@ddc@autofalse% - \else% - \@tud@ddc@autotrue% - \@tud@ddc@internaltrue% - \TUDoptions{ddchead=false}% - \TUDoptions{ddcfoot=false}% - \@tud@ddc@internalfalse% - \fi% - \global\@tud@headlogo@option@settrue% - \global\@tud@footlogo@option@settrue% - \fi% - \tud@comp@resetpagestyle% -} -\newcommand*\tud@ddc@head@num{0} -\TUD@key{ddchead}[true]{% - \tud@comp@clearpage% - \TUD@set@numkey{ddchead}{tud@ddc@head@num}{\tud@ddc@switch}{#1}% - \ifx\FamilyKeyState\FamilyKeyStateProcessed% - \if@tud@ddc@internal\else% - \@tud@ddc@internaltrue% - \TUDoptions{ddcfoot=false}% - \TUDoptions{ddc=false}% - \@tud@ddc@internalfalse% - \fi% - \fi% - \tud@comp@resetpagestyle% -} -\newcommand*\tud@ddc@foot@num{0} -\TUD@key{ddcfoot}[true]{% - \tud@comp@clearpage% - \TUD@set@numkey{ddcfoot}{tud@ddc@foot@num}{\tud@ddc@switch}{#1}% - \ifx\FamilyKeyState\FamilyKeyStateProcessed% - \if@tud@ddc@internal\else% - \@tud@ddc@internaltrue% - \TUDoptions{ddchead=false}% - \TUDoptions{ddc=false}% - \@tud@ddc@internalfalse% - \fi% - \fi% - \tud@comp@resetpagestyle% -} -\newcommand*\tud@dim@footlogoheight{} -\let\tud@dim@footlogoheight\relax -\TUD@key{footlogoheight}{% - \TUD@set@dimenkey{footlogoheight}{\tud@dim@footlogoheight}{#1}% - \ifx\FamilyKeyState\FamilyKeyStateProcessed% - \ifdim\dimexpr\tud@dim@footlogoheight\relax<\z@\relax% - \def\@tempa-##1\@nil{\def\tud@dim@footlogoheight{##1}}% - \@tempa#1\@nil% - \fi% - \global\@tud@footlogo@option@settrue% - \fi% -} \cs@lock{tud@head@font@num}{0} \cs@lock{tud@head@bar@num}{0} \bool@lock{@tud@head@widebar} @@ -596,6 +510,81 @@ \csundef{@@tud@ps@#1@#2@#3@#4}% }{}% } +\newcommand*\tud@dim@footlogoheight{} +\let\tud@dim@footlogoheight\relax +\TUD@key{footlogoheight}{% + \TUD@set@dimenkey{footlogoheight}{\tud@dim@footlogoheight}{#1}% + \ifx\FamilyKeyState\FamilyKeyStateProcessed% + \ifdim\dimexpr\tud@dim@footlogoheight\relax<\z@\relax% + \def\@tempa-##1\@nil{\def\tud@dim@footlogoheight{##1}}% + \@tempa#1\@nil% + \fi% + \global\@tud@footlogo@option@settrue% + \fi% +} +\newif\if@tud@ddc@internal +\newcommand*\tud@comp@clearpage{}% +\newcommand*\tud@comp@resetpagestyle{}% +\newcommand*\tud@ddc@switch{} +\edef\tud@ddc@switch{% + \TUD@numkey@bool,% + {color}{2},{colour}{2},{cdcolor}{2},{cdcolour}{2},% + {colorblack}{3},{colourblack}{3},{cdcolorblack}{3},{cdcolourblack}{3},% + {gray}{4},{grey}{4},{HKS92}{4},{cdgray}{4},{cdgrey}{4},% + {black}{5},{cdblack}{5},% + {blue}{6},{HKS41}{6},{cdblue}{6},{cddarkblue}{6},% + {white}{7},{cdwhite}{7}% +} +\newif\if@tud@headlogo@option@set +\newif\if@tud@footlogo@option@set +\newif\if@tud@ddc@auto +\newcommand*\tud@ddc@auto@num{0} +\TUD@key{ddc}[true]{% + \tud@comp@clearpage% + \TUD@set@numkey{ddc}{tud@ddc@auto@num}{\tud@ddc@switch}{#1}% + \ifx\FamilyKeyState\FamilyKeyStateProcessed% + \if@tud@ddc@internal% + \@tud@ddc@autofalse% + \else% + \@tud@ddc@autotrue% + \@tud@ddc@internaltrue% + \TUDoptions{ddchead=false}% + \TUDoptions{ddcfoot=false}% + \@tud@ddc@internalfalse% + \fi% + \global\@tud@headlogo@option@settrue% + \global\@tud@footlogo@option@settrue% + \fi% + \tud@comp@resetpagestyle% +} +\newcommand*\tud@ddc@head@num{0} +\TUD@key{ddchead}[true]{% + \tud@comp@clearpage% + \TUD@set@numkey{ddchead}{tud@ddc@head@num}{\tud@ddc@switch}{#1}% + \ifx\FamilyKeyState\FamilyKeyStateProcessed% + \if@tud@ddc@internal\else% + \@tud@ddc@internaltrue% + \TUDoptions{ddcfoot=false}% + \TUDoptions{ddc=false}% + \@tud@ddc@internalfalse% + \fi% + \fi% + \tud@comp@resetpagestyle% +} +\newcommand*\tud@ddc@foot@num{0} +\TUD@key{ddcfoot}[true]{% + \tud@comp@clearpage% + \TUD@set@numkey{ddcfoot}{tud@ddc@foot@num}{\tud@ddc@switch}{#1}% + \ifx\FamilyKeyState\FamilyKeyStateProcessed% + \if@tud@ddc@internal\else% + \@tud@ddc@internaltrue% + \TUDoptions{ddchead=false}% + \TUDoptions{ddc=false}% + \@tud@ddc@internalfalse% + \fi% + \fi% + \tud@comp@resetpagestyle% +} %%% From File: tudscr-layout.dtx \newcommand*\tud@layout@switch{} \edef\tud@layout@switch{% @@ -740,17 +729,7 @@ \TUD@SpecialOptionAtDocument{tud@layout@process}% \fi% } -\newcommand*\tud@font@koma@set[2]{% - \ifcsdef{tud@font@koma@#1}{}{\addtokomafont{#1}{\csuse{tud@font@koma@#1}}}% - \csdef{tud@font@koma@#1}{#2\nobreak}% -} -\newcommand*\tud@font@koma@unset[1]{% - \ifcsdef{tud@font@koma@#1}{}{\addtokomafont{#1}{\csuse{tud@font@koma@#1}}}% - \csdef{tud@font@koma@#1}{\relax}% -} -\newcommand*\tud@font@koma@reset[1]{% - \ifcsdef{tud@font@koma@#1}{\addtokomafont{#1}{\csuse{tud@font@koma@#1}}}{}% -} +\newcommand*\tud@pagecolor{}% \DefineFamilyMember{KOMA} \DefineFamilyKey{KOMA}{headings}{% \TUD@SpecialOptionAtDocument{tud@x@scr@headings@reset}% @@ -764,7 +743,6 @@ \TUD@SpecialOptionAtDocument{tud@x@scr@headings@reset}% \FamilyKeyStateProcessed% } -\newcommand*\tud@pagecolor{}% \newcommand*\tud@dim@pageheadingsvskip{0pt} \TUD@key{pageheadingsvskip}{% \TUD@set@dimenkey{pageheadingsvskip}{\tud@dim@pageheadingsvskip}{#1}% @@ -931,6 +909,110 @@ }% \TUDoptions{#2}% } +\newcommand*\tud@v@comp{\tud@v@last} +\TUD@key{tudscrver}[last]{% + \tud@v@get\@tempa{#1}% + \ifcsundef{tud@v@\@tempa}{% + \ClassWarningNoLine{\TUD@Class@Name}% + {% + You have set option `tudscrver' to `\@tempa', but\MessageBreak% + this value is not supported. Because of this, the\MessageBreak% + value for `tudscrver' was set to `first'% + }% + \def\tud@v@comp{0}% + }{% + \ClassInfoNoLine{\TUD@Class@Name}% + {% + Switching compatibility level to `\@tempa'% + }% + \edef\tud@v@comp{\csuse{tud@v@\@tempa}}% + }% + \FamilyKeyStateProcessed% +} +\AtEndOfClass% +{% + \TUD@key{tudscrver}[]{% + \ClassError{\TUD@Class@Name}% + {Option `tudscrver' too late}{% + Option `tudscrver' can only be set while loading the\MessageBreak% + class `\TUD@Class@Name' + but you have tried to set it up later.% + }% + \FamilyKeyStateProcessed% + }% + \ifcsdef{scr@v@\TUD@Version@KOMA}{% + \ifnum\scr@compatibility<\csuse{scr@v@3.12}\relax% + \ClassError{\TUD@Class@Name}{% + KOMA-Script compatibility level too low% + }{% + \TUD@Version\space must be used at least with\MessageBreak% + KOMA-Script compatibility option `version=3.12'.% + }% + \fi% + }{% + \ClassError{\TUD@Class@Name}{% + KOMA-Script v\TUD@Version@KOMA is required% + }{% + \TUD@Version\space must at least be used with\MessageBreak% + KOMA-Script v\TUD@Version@KOMA. You're using \KOMAScriptVersion% + }% + }% +} +\csdef{tud@v@first}{0} +\csdef{tud@v@2.00}{0} +\csdef{tud@v@2.01}{0} +\csdef{tud@v@2.01a}{0} +\csdef{tud@v@2.01b}{0} +\csdef{tud@v@2.02}{0} +\csdef{tud@v@2.02}{0} +\csdef{tud@v@2.03}{1} +\csdef{tud@v@2.03a}{1} +\csdef{tud@v@2.04}{2} +\csdef{tud@v@2.04a}{2} +\csdef{tud@v@2.04b}{2} +\csdef{tud@v@2.04c}{2} +\csdef{tud@v@2.04d}{2} +\csdef{tud@v@2.04e}{2} +\csdef{tud@v@2.05}{3} +\csdef{tud@v@2.05a}{3} +\csdef{tud@v@2.05b}{3} +\csdef{tud@v@2.05c}{3} +\csdef{tud@v@2.05d}{3} +\csdef{tud@v@2.05e}{3} +\csdef{tud@v@2.05f}{3} +\csdef{tud@v@2.05g}{3} +\csdef{tud@v@last}{3} +\newcommand*\tud@v@get[2]{% + \begingroup% + \def\@tempa{\kernel@ifnextchar v{\@tempb}{\@tempb v}}% + \def\@tempb v##1\@nil{\def\@tempc{##1}}% + \@tempa #2\@nil% + \edef\tud@reserved{% + \endgroup% + \etex@unexpanded{\def#1}{\@tempc}% + }% + \tud@reserved% +} +\newcommand*\tud@if@v@lower[1]{% + \begingroup% + \tud@v@get\@tempa{#1}% + \ifcsdef{tud@v@\@tempa}{% + \ifnum\tud@v@comp<\csuse{tud@v@\@tempa}\relax% + \def\tud@reserved{\endgroup\@firstoftwo}% + \else% + \def\tud@reserved{\endgroup\@secondoftwo}% + \fi% + }{% + \def\tud@reserved{% + \ClassWarningNoLine{\TUD@Class@Name}{%PackageWarning! + Erroneous usage of `\string\tud@if@v@lower'.\MessageBreak% + There's no defined macro `\string\tud@v@\@tempa'% + }% + \endgroup\@firstoftwo% + }% + }% + \tud@reserved% +} \TUD@key{fontspec}[true]{% \ClassWarning{\TUD@Class@Name}% {% @@ -1102,109 +1184,6 @@ \fi% } \TUD@key{colour}[true]{\TUDoptions{color=#1}} -\newcommand*\tud@v@comp{\tud@v@last} -\TUD@key{tudscrver}[last]{% - \tud@v@get\@tempa{#1}% - \ifcsundef{tud@v@\@tempa}{% - \ClassWarningNoLine{\TUD@Class@Name}% - {% - You have set option `tudscrver' to `\@tempa', but\MessageBreak% - this value is not supported. Because of this, the\MessageBreak% - value for `tudscrver' was set to `first'% - }% - \def\tud@v@comp{0}% - }{% - \ClassInfoNoLine{\TUD@Class@Name}% - {% - Switching compatibility level to `\@tempa'% - }% - \edef\tud@v@comp{\csuse{tud@v@\@tempa}}% - }% - \FamilyKeyStateProcessed% -} -\AtEndOfClass% -{% - \TUD@key{tudscrver}[]{% - \ClassError{\TUD@Class@Name}% - {Option `tudscrver' too late}{% - Option `tudscrver' can only be set while loading the\MessageBreak% - class `\TUD@Class@Name' - but you have tried to set it up later.% - }% - \FamilyKeyStateProcessed% - }% - \ifcsdef{scr@v@\TUD@Version@KOMA}{% - \ifnum\scr@compatibility<\csuse{scr@v@3.12}\relax% - \ClassError{\TUD@Class@Name}{% - KOMA-Script compatibility level too low% - }{% - \TUD@Version\space must be used at least with\MessageBreak% - KOMA-Script compatibility option `version=3.12'.% - }% - \fi% - }{% - \ClassError{\TUD@Class@Name}{% - KOMA-Script v\TUD@Version@KOMA is required% - }{% - \TUD@Version\space must at least be used with\MessageBreak% - KOMA-Script v\TUD@Version@KOMA. You're using \KOMAScriptVersion% - }% - }% -} -\csdef{tud@v@first}{0} -\csdef{tud@v@2.00}{0} -\csdef{tud@v@2.01}{0} -\csdef{tud@v@2.01a}{0} -\csdef{tud@v@2.01b}{0} -\csdef{tud@v@2.02}{0} -\csdef{tud@v@2.02}{0} -\csdef{tud@v@2.03}{1} -\csdef{tud@v@2.03a}{1} -\csdef{tud@v@2.04}{2} -\csdef{tud@v@2.04a}{2} -\csdef{tud@v@2.04b}{2} -\csdef{tud@v@2.04c}{2} -\csdef{tud@v@2.04d}{2} -\csdef{tud@v@2.04e}{2} -\csdef{tud@v@2.05}{3} -\csdef{tud@v@2.05a}{3} -\csdef{tud@v@2.05b}{3} -\csdef{tud@v@2.05c}{3} -\csdef{tud@v@2.05d}{3} -\csdef{tud@v@2.05e}{3} -\csdef{tud@v@2.05f}{3} -\csdef{tud@v@last}{3} -\newcommand*\tud@v@get[2]{% - \begingroup% - \def\@tempa{\kernel@ifnextchar v{\@tempb}{\@tempb v}}% - \def\@tempb v##1\@nil{\def\@tempc{##1}}% - \@tempa #2\@nil% - \edef\tud@reserved{% - \endgroup% - \etex@unexpanded{\def#1}{\@tempc}% - }% - \tud@reserved% -} -\newcommand*\tud@if@v@lower[1]{% - \begingroup% - \tud@v@get\@tempa{#1}% - \ifcsdef{tud@v@\@tempa}{% - \ifnum\tud@v@comp<\csuse{tud@v@\@tempa}\relax% - \def\tud@reserved{\endgroup\@firstoftwo}% - \else% - \def\tud@reserved{\endgroup\@secondoftwo}% - \fi% - }{% - \def\tud@reserved{% - \ClassWarningNoLine{\TUD@Class@Name}{%PackageWarning! - Erroneous usage of `\string\tud@if@v@lower'.\MessageBreak% - There's no defined macro `\string\tud@v@\@tempa'% - }% - \endgroup\@firstoftwo% - }% - }% - \tud@reserved% -} %%% From File: tudscr-misc.dtx \newif\if@tud@x@scr@paper@set \TUD@key{paper}{% @@ -1304,18 +1283,6 @@ \LoadClass{\TUD@Class@KOMA}[2015/04/23] %%% From File: tudscr-base.dtx \RequirePackage{environ}[2013/04/01] -\AtEndPreamble{% - \@ifpackageloaded{graphicx}{}{% - \@ifpackageloaded{graphics}{% - \ClassWarningNoLine{\TUD@Class@Name}{% - Package `graphics' was superseded by `graphicx',\MessageBreak% - which now will be loaded automatically% - }% - }{}% - }% - \RequirePackage{graphicx}[1999/02/16]% - \RequirePackage{tudscrcolor}[\TUD@Version]% -} \cs@lock{tud@x@multicol@num}{1} \newcommand*\tud@x@multicol@check{% \ifnum\tud@x@multicol@num>\@ne\relax% @@ -1327,6 +1294,18 @@ \fi% } \AfterPackage{multicol}{\renewcommand*\tud@x@multicol@check{\relax}} +\AtEndPreamble{% + \@ifpackageloaded{graphicx}{}{% + \@ifpackageloaded{graphics}{% + \ClassWarningNoLine{\TUD@Class@Name}{% + Package `graphics' was superseded by `graphicx',\MessageBreak% + which now will be loaded automatically% + }% + }{}% + \RequirePackage{graphicx}[1999/02/16]% + }% + \RequirePackage{tudscrcolor}[\TUD@Version]% +} %%% From File: tudscr-fonts.dtx \newcommand*\tud@univers{lun} \newif\if@tud@univers @@ -1416,6 +1395,19 @@ \fi% \undef\tud@font@check% } +\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}% +} +\newif\if@tud@x@bm@requested +\PreventPackageFromLoading[\@tud@x@bm@requestedtrue]{bm} \RequirePackage{trimspaces}[2009/09/17] \newif\if@tud@x@mweights@enabled \AfterPackage*{mweights}{\@tud@x@mweights@enabledtrue} @@ -1927,11 +1919,6 @@ \fi% \AtBeginDocument{\tud@font@math@init\let\tud@font@math@init\relax}% } -\newif\if@tud@x@bm@requested -\PreventPackageFromLoading[\@tud@x@bm@requestedtrue]{bm} -\AfterPackage*{siunitx}{% - \providecommand*\lseries{\fontseries{l}\selectfont}% -} \newrobustcmd*\ifdin{% \ifx\f@family\tud@dinbold% \expandafter\@firstoftwo% @@ -1946,14 +1933,6 @@ \sectfont#1% \fi% } -\newcommand*\tud@raggedright{\raggedright} -\newcommand*\tud@RaggedRight{\raggedright} -\AfterPackage*{ragged2e}{% - \ifdef{\LaTeXraggedright}{% - \renewcommand*\tud@raggedright{\LaTeXraggedright}% - }{}% - \renewcommand*\tud@RaggedRight{\RaggedRight}% -} \RequirePackage{textcase}[2004/10/07] \newcommand*\tud@makeuppercase[1]{% \ifdin{\begingroup\MakeTextUppercase{#1}\endgroup}{#1}% @@ -1994,21 +1973,29 @@ \let\footnote\@gobble% \def\newline{\space\ignorespaces}% \def\\{\space\ignorespaces}% - \def\@tempa##1{\csdef{##1}####1{\noexpand\relax}}% + \let\@tempc\relax% + \def\@tempa##1{\csedef{##1}####1{\@tempc}}% \let\@tempb\tud@split@author@list% \ifx\and\relax\else% \robustify\and% \fi% \expandafter\forcsvlist\expandafter\@tempa\expandafter{\@tempb}% + \def\@tempa##1##2{% + \def\@tempb####1##2####2\@nil{% + \IfArgIsEmpty{####2}{% + \def##1{####1}% + }{% + \@tempb####1####2\@nil% + }% + }% + \expandafter\@tempb##1##2\@nil% + }% \protected@edef\@@author{#1}% - \tud@replace\@@author{ \relax }{}% - \tud@replace\@@author{\relax }{}% - \tud@replace\@@author{ \relax}{}% - \tud@replace\@@author{\relax}{}% - \tud@replace\@@author{ \and }{\and}% - \tud@replace\@@author{ \and}{\and}% - \tud@replace\@@author{\and }{\and}% - \protected@xdef\@@author{\trim@spaces{\@@author}}% + \@tempa{\@@author}{ \@tempc }% + \@tempa{\@@author}{\@tempc }% + \@tempa{\@@author}{ \@tempc}% + \@tempa{\@@author}{\@tempc}% + \xdef\@@author{\expandonce\@@author}% \endgroup% } \newcommand*\@authormore{} @@ -2021,6 +2008,7 @@ \newcommand*\@thesis{} \newcommand*\@@thesis{} \newcommand*\thesis[1]{\tud@thesis@do{thesis}{#1}} +\renewcommand*\subject[1]{\tud@thesis@do{subject}{#1}} \newcommand*\tud@thanks{} \newcommand*\tud@thesis@do[2]{% \begingroup% @@ -2070,7 +2058,6 @@ \fi% \protected@xdef\@@thesis{\trim@spaces{#2}}% } -\renewcommand*\subject[1]{\tud@thesis@do{subject}{#1}} \newcommand*\@graduation{} \newcommand*\@@graduation{} \newcommand*\graduation[2][]{% @@ -2552,6 +2539,22 @@ \tud@locale@english{\@dotswap}{.}% } %%% From File: tudscr-area.dtx +\newif\if@tud@x@crop@center +\AfterPackage{crop}{% + \CheckCommand*\CROP@center{% + \voffset\stockheight + \advance\voffset-\paperheight + \voffset.5\voffset + \hoffset\stockwidth + \advance\hoffset-\paperwidth + \hoffset.5\hoffset + }% + \pretocmd{\CROP@center}{% + \@tud@x@crop@centertrue% + }{}{\tud@patch@wrn{CROP@center}} +} +\newif\if@tud@x@standalone@crop +\AfterClass*{standalone}{\let\if@tud@x@standalone@crop\ifsa@crop} \newlength\tud@len@widemargin \newlength\tud@len@slimmargin \newlength\tud@len@both @@ -2741,22 +2744,6 @@ \setlength\tud@len@footsep{\dimexpr.707107\tud@len@footsep\relax}% \fi% } -\newif\if@tud@x@crop@center -\AfterPackage{crop}{% - \CheckCommand*\CROP@center{% - \voffset\stockheight - \advance\voffset-\paperheight - \voffset.5\voffset - \hoffset\stockwidth - \advance\hoffset-\paperwidth - \hoffset.5\hoffset - }% - \pretocmd{\CROP@center}{% - \@tud@x@crop@centertrue% - }{}{\tud@patch@wrn{CROP@center}} -} -\newif\if@tud@x@standalone@crop -\AfterClass*{standalone}{\let\if@tud@x@standalone@crop\ifsa@crop} \newcommand*\tud@cdgeometry@process{} \newcommand*\tud@cdgeometry@@process{} \if@tud@x@standalone@crop @@ -3551,19 +3538,6 @@ \AtEndPreamble{% \if@tud@x@standalone@crop% \pagestyle{empty}% - \hoffset=-72.27pt% - \voffset=-72.27pt% - \topmargin=0pt% - \headheight=0pt% - \headsep=0pt% - \marginparsep=0pt% - \marginparwidth=0pt% - \footskip=0pt% - \marginparpush=0pt% - \oddsidemargin=0pt% - \evensidemargin=0pt% - \topskip=0pt% - \textheight=\maxdimen% \let\tud@AfterChangingArea\relax% \let\tud@cdgeometry@process\relax% \else% @@ -3971,16 +3945,43 @@ ]{tudheadings.pagecolor}% \AddLayersToPageStyle{@everystyle@}{tudheadings.pagecolor}% } +\newcommand*\tud@ps@list{} \listadd\tud@ps@list{tudheadings} \listadd\tud@ps@list{plain.tudheadings} \listadd\tud@ps@list{empty.tudheadings} -\PreventPackageFromLoading[% - \ClassWarning{\TUD@Class@Name}{% - The package `fancyhdr' must not be used with a\MessageBreak% - TUD-Script class. You should make use of the\MessageBreak% - capabilities of package `scrlayer-scrpage' instead% - }% -]{fancyhdr} +\newcommand*\tud@if@tudheadings[3]{% + \xifinlist{\GetRealPageStyle{#1}}{\tud@ps@list}{#2}{#3}% +} +\patchcmd{\thispagestyle}{\gdef\@specialstyle{#1}}{% + \xdef\@specialstyle{\GetRealPageStyle{#1}}% +}{}{\tud@patch@wrn{thispagestyle}} +\newcommand*\tud@pagestyle{} +\let\tud@pagestyle\pagestyle +\pretocmd{\tud@pagestyle}{% + \tud@BeforeSelectAnyPageStyle{#1}% + \edef\currentpagestyle{#1}% +}{}{\tud@patch@wrn{pagestyle}} +\tud@cmd@store{pagestyle} +\renewcommand*\pagestyle[1]{\AfterPackage!{scrlayer-scrpage}{\pagestyle{#1}}} +\BeforePackage{scrlayer-scrpage}{% + \tud@cmd@restore{pagestyle}% + \undef\tud@pagestyle% +} +\TUD@UnwindPackage{scrlayer-scrpage}{% + \ifcsundef{if@chapter}{% + \newif\if@chapter% + \ifcsundef{chapter}{\@chapterfalse}{\@chaptertrue}% + }{}% + \cslet{ps@tudheadings}{\ps@headings}% + \cslet{ps@plain.tudheadings}{\ps@plain}% + \cslet{ps@empty.tudheadings}{\ps@empty}% + \providecommand*\currentpagestyle{plain}% + \providecommand*\BeforeSelectAnyPageStyle[1]{}% + \providecommand*\GetRealPageStyle[1]{#1}% + \let\pagestyle\tud@pagestyle% + \undef\tud@pagestyle% + \tud@cdgeometry@init% +} \newcommand*\tud@ps@onselect{% \DeclarePageStyleAlias{plain}{plain.tudheadings}% \DeclarePageStyleAlias{headings}{tudheadings}% @@ -4056,36 +4057,6 @@ \ifstr{\tud@head@fontcolor}{white}{\let\tud@len@line\tud@len@heavyline}{}% \global\let\tud@foot@fontcolor\tud@foot@fontcolor% } -\newcommand*\tud@pagestyle{} -\let\tud@pagestyle\pagestyle -\pretocmd{\tud@pagestyle}{% - \tud@BeforeSelectAnyPageStyle{#1}% - \edef\currentpagestyle{#1}% -}{}{\tud@patch@wrn{pagestyle}} -\tud@cmd@store{pagestyle} -\renewcommand*\pagestyle[1]{\AfterPackage!{scrlayer-scrpage}{\pagestyle{#1}}} -\BeforePackage{scrlayer-scrpage}{% - \tud@cmd@restore{pagestyle}% - \undef\tud@pagestyle% -} -\TUD@UnwindPackage{scrlayer-scrpage}{% - \ifcsundef{if@chapter}{% - \newif\if@chapter% - \ifcsundef{chapter}{\@chapterfalse}{\@chaptertrue}% - }{}% - \cslet{ps@tudheadings}{\ps@headings}% - \cslet{ps@plain.tudheadings}{\ps@plain}% - \cslet{ps@empty.tudheadings}{\ps@empty}% - \providecommand*\currentpagestyle{plain}% - \providecommand*\BeforeSelectAnyPageStyle[1]{}% - \providecommand*\GetRealPageStyle[1]{#1}% - \let\pagestyle\tud@pagestyle% - \undef\tud@pagestyle% - \tud@cdgeometry@init% -} -\patchcmd{\thispagestyle}{\gdef\@specialstyle{#1}}{% - \xdef\@specialstyle{\GetRealPageStyle{#1}}% -}{}{\tud@patch@wrn{thispagestyle}} \newcommand*\tud@head@fontsize{} \newcommand*\tud@head@font@light{} \newcommand*\tud@head@font@bold{} @@ -4241,40 +4212,6 @@ \endgroup% \vbox to #1{#2}% } -\AtBeginDocument{% - \tud@if@v@lower{2.04}{% - \renewcommand*\tud@comp@clearpage{% - \if@tud@ddc@internal\else% - \tud@if@tudheadings{\currentpagestyle}{\clearpage}{}% - \fi% - }% - \renewcommand*\tud@comp@resetpagestyle{% - \if@tud@ddc@internal\else% - \tud@if@tudheadings{\currentpagestyle}{% - \expandafter\pagestyle\expandafter{\currentpagestyle}% - }{}% - \fi% - }% - }{}% -} -\newcommand*\tud@ddc@check{% - \let\@tempa\tud@ddc@head@num% - \let\@tempb\tud@ddc@foot@num% - \if@tud@ddc@auto% - \ifdefvoid{\tud@headlogo@filename}{% - \let\@tempa\tud@ddc@auto@num% - \let\@tempb\z@% - }{% - \let\@tempa\z@% - \let\@tempb\tud@ddc@auto@num% - }% - \fi% - \tud@if@v@lower{2.03}{% - \ifnum\@tempb=\z@\relax% - \ifdefvoid{\tud@footlogo@filenames}{}{\let\@tempb\m@ne}% - \fi% - }{}% -} \tud@newlayerbox{main@black} \tud@newlayerbox{main@HKS41} \tud@newlayerbox{main@white} @@ -4403,10 +4340,6 @@ \ifnum\@tempa>\z@\relax\tud@headlogo@wrn\fi% }% } -\tud@newlayerbox{foot@black} -\tud@newlayerbox{foot@HKS41} -\tud@newlayerbox{foot@white} -\tud@newlayerbox{foot@option} \AtEndOfClass{% \ifdefvoid{\tud@dim@footlogoheight}{% \tud@if@v@lower{2.03}{% @@ -4416,6 +4349,10 @@ }% }{}% } +\tud@newlayerbox{foot@black} +\tud@newlayerbox{foot@HKS41} +\tud@newlayerbox{foot@white} +\tud@newlayerbox{foot@option} \newcommand*\tud@footlogo@ddc@set[2]{% \tud@savelayerbox{foot@#1}{% \includegraphics[keepaspectratio,totalheight=\tud@dim@footlogoheight]{#2}% @@ -4629,6 +4566,40 @@ \hbox to #2{}% \fi% } +\AtBeginDocument{% + \tud@if@v@lower{2.04}{% + \renewcommand*\tud@comp@clearpage{% + \if@tud@ddc@internal\else% + \tud@if@tudheadings{\currentpagestyle}{\clearpage}{}% + \fi% + }% + \renewcommand*\tud@comp@resetpagestyle{% + \if@tud@ddc@internal\else% + \tud@if@tudheadings{\currentpagestyle}{% + \expandafter\pagestyle\expandafter{\currentpagestyle}% + }{}% + \fi% + }% + }{}% +} +\newcommand*\tud@ddc@check{% + \let\@tempa\tud@ddc@head@num% + \let\@tempb\tud@ddc@foot@num% + \if@tud@ddc@auto% + \ifdefvoid{\tud@headlogo@filename}{% + \let\@tempa\tud@ddc@auto@num% + \let\@tempb\z@% + }{% + \let\@tempa\z@% + \let\@tempb\tud@ddc@auto@num% + }% + \fi% + \tud@if@v@lower{2.03}{% + \ifnum\@tempb=\z@\relax% + \ifdefvoid{\tud@footlogo@filenames}{}{\let\@tempb\m@ne}% + \fi% + }{}% +} \newcommand*\tud@ps@parameters[1]{% \TUD@parameter@def{cdfont}[true]{\TUDoption{cdfont}{#1}}% \TUD@parameter@def{cdhead}[true]{\TUDoption{cdhead}{#1}}% @@ -4704,6 +4675,13 @@ \tud@ps@parameters{#1}% \TUD@parameter@handler@default{}% } +\PreventPackageFromLoading[% + \ClassWarning{\TUD@Class@Name}{% + The package `fancyhdr' must not be used with a\MessageBreak% + TUD-Script class. You should make use of the\MessageBreak% + capabilities of package `scrlayer-scrpage' instead% + }% +]{fancyhdr} %%% From File: tudscr-layout.dtx \newcommand*\tud@x@scr@headings@current{} \newcommand*\tud@sec@fontsize{} @@ -4884,15 +4862,17 @@ \let\tud@@startpart\scr@@startpart% \ifcsdef{scr@v@3.21}{\@tempswatrue}{\@tempswafalse}% \if@tempswa% - \patchcmd{\tud@@startpart}% - {\usekomafont{#1prefix}{\nobreak\@nameuse{#1format}}}% - {\usekomafont{#1prefix}{\nobreak\tud@makeuppercase{\@nameuse{#1format}}}}% - {}{\tud@patch@wrn{scr@@startpart}}% + \patchcmd{\tud@@startpart}{% + \usekomafont{#1prefix}{\nobreak\@nameuse{#1format}}% + }{% + \usekomafont{#1prefix}{\nobreak\tud@makeuppercase{\@nameuse{#1format}}}% + }{}{\tud@patch@wrn{scr@@startpart}}% \else% - \patchcmd{\tud@@startpart}% - {\usekomafont{#1prefix}{\@nameuse{#1format}}}% - {\usekomafont{#1prefix}{\tud@makeuppercase{\@nameuse{#1format}}}}% - {}{\tud@patch@wrn{scr@@startpart}}% + \patchcmd{\tud@@startpart}{% + \usekomafont{#1prefix}{\@nameuse{#1format}}% + }{% + \usekomafont{#1prefix}{\tud@makeuppercase{\@nameuse{#1format}}}% + }{}{\tud@patch@wrn{scr@@startpart}}% \fi% \else \newcommand*\tud@@part{}% @@ -4977,83 +4957,10 @@ \usekomafont{subject}% \mdseries% \large% + \tud@raggedright% } \robustify{\thanks} \robustify{\footnotemark} -\newcommand*\tud@title@uppercase[1]{% - \let\@tempa\relax% - \begingroup% - \let\\\newline% - \def\thanks##1{\gdef\@tempa{##1}}% - \let\footnote\thanks% - \sbox\z@{#1}% - \let\thanks\@gobble% - \let\footnote\@gobble% - \tud@makeuppercase{#1}% - \endgroup% - \ifx\@tempa\relax\else\thanks\@tempa\fi% -} -\newcommand*\tud@title@delimiter{:\nobreakspace} -\newcommand*\titledelimiter[1]{\gdef\tud@title@delimiter{#1}} -\newcommand*\tud@newline@title{} -\newcommand*\tud@split@author@title[2]{% - \tud@multiple@fields@store{@author}{#1}% - \renewcommand*\tud@newline@title{\vskip .5ex\let\tud@newline@title\newline}% - {\usekomafont{author}{\ignorespaces#1}}% - \if@tud@cover\else% - \ifx\@authormore\@empty\else% - \tud@newline@title% - \@authormore% - \fi% - \ifx\@dateofbirth\@empty\else% - \if@titlepage% - \tud@newline@title% - \ifxblank{\dateofbirthtext}{}{\dateofbirthtext\tud@title@delimiter}% - \@dateofbirth% - \ifx\@placeofbirth\@empty\else% - \nobreakspace\placeofbirthtext\nobreakspace\@placeofbirth% - \fi% - \else% - \tud@title@wrn{dateofbirth}% - \fi% - \fi% - \def\@tempc##1{% - \ifstr{\csuse{@##1}}{}{}{% - \if@titlepage% - \tud@newline@title% - \ifstr{\csuse{##1name}}{}{}{\csuse{##1name}\tud@title@delimiter}% - \csuse{@##1}% - \else% - \tud@title@wrn{##1}% - \fi% - }% - }% - \@tempc{course}% - \@tempc{discipline}% - \@tempc{matriculationnumber}% - \@tempc{matriculationyear}% - \fi% - \tud@multiple@fields@restore{@author}% - \tud@multiple@@@split{#2}{\vskip 2ex}% -} -\newcommand*\tud@title@wrn[1]{% - \ClassWarning{\TUD@Class@Name}{% - `\@backslashchar#1' has to be used with\MessageBreak% - activated titlepage option% - }% -} -\newcommand*\tud@thesis@tosubject{% - \if@tud@subjectthesis\ifx\@thesis\@empty\else% - \ifx\@subject\@empty\else% - \ClassWarning{\TUD@Class@Name}{% - The option `subjectthesis' was activated, so\MessageBreak% - the field `subject' will be overwritten with the\MessageBreak% - given thesis% - }% - \fi% - \let\@subject\@thesis% - \fi\fi% -} \newcommand*\tud@title@pagenumber{} \let\tud@title@pagenumber\relax \newcommand*\tud@maketitle[1][]{% @@ -5320,21 +5227,6 @@ \fi% \end{titlepage}% } -\newcommand*\tud@title@names[1]{% - \letcs\@tempa{@#1}% - \ifx\@tempa\@empty\else% - \def\and{% - \ifcsvoid{#1othername}{\par}{% - \vskip 1ex\@plus.5ex\@minus.5ex% - {\usekomafont{titlepage}{\csuse{#1othername}\par}}% - }% - \let\and\par% - }% - \vskip 1ex\@plus.5ex\@minus.5ex% - {\usekomafont{titlepage}{\csuse{#1name}\par}}% - {\usekomafont{author}{\csuse{@#1}\par}}% - \fi% -} \newcommand*\tud@make@titlehead{% \renewcommand*\tud@title@fontcolor{}% \ifcase\tud@layout@title@num\relax\or\else% *color @@ -5438,6 +5330,95 @@ \tud@if@v@lower{2.03}{\tud@ddc@enlargepage[\titlepagestyle]}{}% \endgroup% } +\newcommand*\tud@title@uppercase[1]{% + \let\@tempa\relax% + \begingroup% + \let\\\newline% + \def\thanks##1{\gdef\@tempa{##1}}% + \let\footnote\thanks% + \sbox\z@{#1}% + \let\thanks\@gobble% + \let\footnote\@gobble% + \tud@makeuppercase{#1}% + \endgroup% + \ifx\@tempa\relax\else\thanks\@tempa\fi% +} +\newcommand*\tud@thesis@tosubject{% + \if@tud@subjectthesis\ifx\@thesis\@empty\else% + \ifx\@subject\@empty\else% + \ClassWarning{\TUD@Class@Name}{% + The option `subjectthesis' was activated, so\MessageBreak% + the field `subject' will be overwritten with the\MessageBreak% + given thesis% + }% + \fi% + \let\@subject\@thesis% + \fi\fi% +} +\newcommand*\tud@title@names[1]{% + \letcs\@tempa{@#1}% + \ifx\@tempa\@empty\else% + \def\and{% + \ifcsvoid{#1othername}{\par}{% + \vskip 1ex\@plus.5ex\@minus.5ex% + {\usekomafont{titlepage}{\csuse{#1othername}\par}}% + }% + \let\and\par% + }% + \vskip 1ex\@plus.5ex\@minus.5ex% + {\usekomafont{titlepage}{\csuse{#1name}\par}}% + {\usekomafont{author}{\csuse{@#1}\par}}% + \fi% +} +\newcommand*\tud@title@delimiter{:\nobreakspace} +\newcommand*\titledelimiter[1]{\gdef\tud@title@delimiter{#1}} +\newcommand*\tud@newline@title{} +\newcommand*\tud@split@author@title[2]{% + \tud@multiple@fields@store{@author}{#1}% + \renewcommand*\tud@newline@title{\vskip .5ex\let\tud@newline@title\newline}% + {\usekomafont{author}{\ignorespaces#1\unskip}}% + \if@tud@cover\else% + \ifx\@authormore\@empty\else% + \tud@newline@title% + \@authormore% + \fi% + \ifx\@dateofbirth\@empty\else% + \if@titlepage% + \tud@newline@title% + \ifxblank{\dateofbirthtext}{}{\dateofbirthtext\tud@title@delimiter}% + \@dateofbirth% + \ifx\@placeofbirth\@empty\else% + \nobreakspace\placeofbirthtext\nobreakspace\@placeofbirth% + \fi% + \else% + \tud@title@wrn{dateofbirth}% + \fi% + \fi% + \def\@tempc##1{% + \ifstr{\csuse{@##1}}{}{}{% + \if@titlepage% + \tud@newline@title% + \ifstr{\csuse{##1name}}{}{}{\csuse{##1name}\tud@title@delimiter}% + \csuse{@##1}% + \else% + \tud@title@wrn{##1}% + \fi% + }% + }% + \@tempc{course}% + \@tempc{discipline}% + \@tempc{matriculationnumber}% + \@tempc{matriculationyear}% + \fi% + \tud@multiple@fields@restore{@author}% + \tud@multiple@@@split{#2}{\vskip 2ex}% +} +\newcommand*\tud@title@wrn[1]{% + \ClassWarning{\TUD@Class@Name}{% + `\@backslashchar#1' has to be used with\MessageBreak% + activated titlepage option% + }% +} \newcommand\maketitleonecolumn[2][]{% \if@twocolumn% \if@titlepage% |