diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/tudscr/tudscrartcl.cls')
-rw-r--r-- | Master/texmf-dist/tex/latex/tudscr/tudscrartcl.cls | 126 |
1 files changed, 72 insertions, 54 deletions
diff --git a/Master/texmf-dist/tex/latex/tudscr/tudscrartcl.cls b/Master/texmf-dist/tex/latex/tudscr/tudscrartcl.cls index 56ec33aa249..7c3dbaf5bee 100644 --- a/Master/texmf-dist/tex/latex/tudscr/tudscrartcl.cls +++ b/Master/texmf-dist/tex/latex/tudscr/tudscrartcl.cls @@ -30,7 +30,7 @@ %% %% TUD-Script -- Corporate Design of Technische Universitaet Dresden %% -%% 2019/07/17 v2.06b TUD-Script +%% 2019/08/20 v2.06c TUD-Script %% %% Copyright (C) Falk Hanisch <hanisch.latex@outlook.com>, 2012-2019 %% @@ -73,14 +73,14 @@ \fi% } \fi - \TUD@Version@Check{2019/07/17 v2.06b TUD-Script} + \TUD@Version@Check{2019/08/20 v2.06c TUD-Script} \endgroup \NeedsTeXFormat{LaTeX2e} \providecommand*\tudscrmail{hanisch.latex@outlook.com} \newcommand*\TUD@ProvidesClass[3]{% \ProvidesClass{#1}[% - 2019/07/17 v2.06b TUD-Script - ^^J#3 (#2)% + 2019/08/20 v2.06c TUD-Script + #3 (#2)% ]% \newcommand*\TUD@Class@KOMA{#2}% \ifx\TUD@Class@Parent\@undefined% @@ -1066,7 +1066,7 @@ \ifcsundef{#1}{% \begingroup% \def\tud@res@a{% - The command `\@backslashchar#1' is deprecated.\MessageBreak% + The command `\@backslashchar#1' is deprecated. \MessageBreak% }% \def\tud@res@b##1@##2\@nil{% \IfArgIsEmpty{##2}{% @@ -1096,7 +1096,7 @@ \newcommand*\TUD@deprecated@lengthcs[2][]{% \ifdim\csuse{#2}<\maxdimen\relax% \ClassWarning{\TUD@Class@Name}{% - Using the length `\@backslashchar#2' is deprecated.\MessageBreak% + Using the length `\@backslashchar#2' is deprecated. \MessageBreak% You should use option `#2' instead% }% \csxdef{tud@dim@#2}{\the\csuse{#2}}% @@ -1112,8 +1112,8 @@ \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'% + this value is not supported. Because of this,\MessageBreak% + `tudscrver=first' was set% }% \renewcommand*\tud@v@comp{0}% }{% @@ -1129,15 +1129,7 @@ \AtEndOfClass% {% \RelaxFamilyKey[.comp]{TUD}{tudscrver}% - \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'\space% - but you have tried to set it up later.% - }% - \FamilyKeyStateProcessed% - }% + \TUD@key@toolate{tudscrver}% \ifcsdef{scr@v@\TUD@Version@KOMA}{% \ifnum\scr@compatibility<\csuse{scr@v@3.12}\relax% \ClassError{\TUD@Class@Name}{% @@ -1186,6 +1178,7 @@ \csdef{tud@v@2.06}{4} \csdef{tud@v@2.06a}{4} \csdef{tud@v@2.06b}{4} +\csdef{tud@v@2.06c}{4} \csdef{tud@v@last}{4} \newcommand*\tud@v@get[2]{% \begingroup% @@ -1211,7 +1204,7 @@ \def\tud@reserved{% \ClassWarningNoLine{\TUD@Class@Name}% {% - Erroneous usage of `\string\tud@if@v@lower'.\MessageBreak% + Erroneous usage of `\string\tud@if@v@lower'. \MessageBreak% There's no defined macro `\string\tud@v@\@tempa'% }% \endgroup\@firstoftwo% @@ -1364,23 +1357,14 @@ \ifx\FamilyKeyState\FamilyKeyStateProcessed% \ClassWarningNoLine{\TUD@Class@Name}% {% - The key `fontspec' is deprecated.\MessageBreak% + The key `fontspec' is deprecated. \MessageBreak% You should load the package `fontspec' manually% }% \fi% } \AtEndOfClass% {% - \TUD@key{fontspec}[]% - {% - \ClassError{\TUD@Class@Name}% - {Option `fontspec' too late}{% - Option `fontspec' can only be set while loading the\MessageBreak% - class `\TUD@Class@Name'\space% - but you have tried to set it up later.% - }% - \FamilyKeyStateProcessed% - }% + \TUD@key@toolate{fontspec}% \if@tud@x@fontspec@requested% \RequirePackage{fontspec}[2017/01/24]% \fi% @@ -1408,6 +1392,26 @@ } \TUDProcessOptions\relax \LoadClass{\TUD@Class@KOMA}[2018/03/30] +\newcommand*\TUD@key@toolate[1]{% + \csedef{tud@key@#1@error}{% + \noexpand\ClassError{\noexpand\TUD@Class@Name}% + {Option `#1' too late}{% + Option `#1' can only be set\space% + \ifcsname \@currname.\@currext-h@@k\endcsname% + as optional \MessageBreak argument while loading\space% + class `\noexpand\TUD@Class@Name'% + \else% + in the preamble + \fi% + \MessageBreak but you have tried to set it up later.% + }% + }% + \TUD@key{#1}[]% + {% + \csuse{tud@key@#1@error} + \FamilyKeyStateProcessed% + }% +} %%% From File: tudscr-base.dtx \RequirePackage{environ}[2013/04/01] \newcommand*\tud@x@multicol@num{1} @@ -1579,7 +1583,7 @@ \if@tud@cdmath@active% \ClassWarning{\TUD@Class@Name}% {% - Some math font encodings are missing.\MessageBreak% + Some math font encodings are missing. \MessageBreak% The option `cdmath=false' is executed. You should\MessageBreak% either use this option by yourself or install\MessageBreak% all necessary fonts with a installation script\MessageBreak% @@ -1594,7 +1598,7 @@ \begingroup% \def\tud@res@a{% `#2' font\MessageBreak% - not found for `#1' encoding.\MessageBreak% + not found for `#1' encoding. \MessageBreak% }% \if@tud@x@fontspec@enabled% \ifstr{\encodingdefault}{#1}{% @@ -1626,7 +1630,7 @@ \else% install package `opensans'% \fi% - .\MessageBreak% + . \MessageBreak% }% \else% \ifstr{\encodingdefault}{#1}{% @@ -1640,7 +1644,7 @@ }% \appto\tud@res@a{% choose a possible encoding with package\MessageBreak% - `fontenc' (\tud@res@b).\MessageBreak% + `fontenc' (\tud@res@b). \MessageBreak% }% }{}% \fi% @@ -1936,7 +1940,10 @@ \ifcsundef{textrightarrow}{}{% \tud@cs@store{textrightarrow}% \renewrobustcmd*{\textrightarrow}{% - {\fontfamily{iwona}\selectfont\tud@cs@use{textrightarrow}}% + \begingroup% + \if@tud@cdfont@active\fontfamily{iwona}\selectfont\fi% + \tud@cs@use{textrightarrow}% + \endgroup% }% }% }% @@ -2646,19 +2653,30 @@ \newcommand*\mv@tudbold{} \newcommand*\mv@tuddin{} \AfterPackage*{mathastext}{% - \CheckCommand*\MTversion{\@ifstar\MTversion@s\MTversion@}% - \CheckCommand*\MTversion@s[1]{\mathversion{#1}\MTversion@@{#1}}% \newrobustcmd*\tud@mathversion[1]{% - \tud@cs@use{mathversion}{#1}% - \if@tud@cdmath@active% - \ifstr{#1}{normal}{% - \MTversion@@{tudnormal}% - }{% - \ifstr{#1}{bold}{% - \MTversion@@{tudbold}% - }{}% + \begingroup% + \let\tud@res@a\relax% + \if@tud@cdmath@active% + \ifstr{#1}{normal}{% + \def\tud@res@a{tudnormal}% + }{% + \ifstr{#1}{bold}{% + \def\tud@res@a{tudbold}% + }{}% + }% + \fi% + \edef\tud@res@a{% + \endgroup% + \noexpand\tud@cs@restore{mathversion}% + \ifx\tud@res@a\relax% + \noexpand\mathversion{#1}% + \else% + \noexpand\MTversion*{\tud@res@a}% + \fi% + \noexpand\tud@cs@store{mathversion}% + \noexpand\tud@cs@letltx{mathversion}{tud@mathversion}% }% - \fi% + \tud@res@a% }% \AtEndPreamble{% \tud@cs@store{mathversion}% @@ -3248,7 +3266,7 @@ } \newrobustcmd*\tud@emailaddress@simple[1]{\gdef\@emailaddress{#1}} \newrobustcmd*\tud@emailaddress@hyper[2][]{\gdef\@emailaddress{#2}} -\AfterPackage*{hyperref}{% +\AfterPackage{hyperref}{% \renewrobustcmd*\tud@emailaddress@hyper[2][hidelinks]{% \gdef\@emailaddress{% \begingroup% @@ -3385,7 +3403,7 @@ \ClassWarning{\TUD@Class@Name}{% `\string\date' was not given\MessageBreak% Since a thesis is a self-contained work, an end\MessageBreak% - date should be specified by the author.\MessageBreak% + date should be specified by the author. \MessageBreak% Nevertheless, today's date is used% }% }{% @@ -4237,7 +4255,7 @@ \noexpand\paperheight=\the\paperheight\relax% }% \tud@x@geometry@getlayout{\tud@res@a}% - \epreto{\tud@x@geometry@parameter}{\tud@res@a,}% + \epreto\tud@x@geometry@parameter{\tud@res@a,}% \def\tud@res@a{\tud@cs@use{newgeometry}}% \expandafter\tud@res@a\expandafter{\tud@x@geometry@parameter}% \edef\tud@x@geometry@init{\tud@x@geometry@parameter}% @@ -5522,7 +5540,7 @@ \ifdim##1<\ta@bcor\relax% \ClassWarning{\TUD@Class@Name}{% The selected page layout means that the\MessageBreak% - logo of TUD extends beyond the printing area.\MessageBreak% + logo of TUD extends beyond the printing area. \MessageBreak% The inner margin is smaller than BCOR\MessageBreak% (`BCOR=\the\ta@bcor', inner margin is \the##1)\MessageBreak% Maybe you should decrease the current value\MessageBreak% @@ -5742,7 +5760,7 @@ \def\@tempa{##1}% \@tempswafalse% \else% - \expandafter\def\expandafter\@tempb\expandafter{\@tempb,##1}% + \l@addto@macro\@tempb{,##1}% \fi% }% \let\@tempc\relax% @@ -5751,9 +5769,9 @@ \preto\tud@footlogo@fileoptions{% keepaspectratio,totalheight=\tud@dim@footlogoheight,% }% - \appto\tud@footlogo@fileoptions{\@tempb}% + \eappto\tud@footlogo@fileoptions{\expandonce\@tempb}% \protected@edef\@tempc{% - \noexpand\includegraphics[\tud@footlogo@fileoptions]{\@tempa}% + \noexpand\includegraphics[\expandonce\tud@footlogo@fileoptions]{\@tempa}% }% \tud@vlayerbox{#2}{\vss\hbox{\@tempc}\vss\vss}{% The given `\string\footlogo{\@tempa}' is too large.% @@ -6854,7 +6872,7 @@ `\string\makecover' together isn't supported. The\MessageBreak% option `titlepage=firstiscover' will be ignored. If you\MessageBreak% want to create an individual cover, you have to use\MessageBreak% - `\string\extratitle' instead of `\string\makecover'.\MessageBreak% + `\string\extratitle' instead of `\string\makecover'. \MessageBreak% See also the documentation of KOMA-Script% }% \@titlepageiscoverpagefalse% @@ -7526,7 +7544,7 @@ \ClassWarningNoLine{\TUD@Class@Name}{% You've set a layout size, which is different from\MessageBreak% default (paper=a4, paper=portrait). Therefore you\MessageBreak% - should additionally specify an explicit font size.\MessageBreak% + should additionally specify an explicit font size. \MessageBreak% See the manual for further information% }% \fi% |