summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/tudscr/tudscrman.cls
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/tudscr/tudscrman.cls')
-rw-r--r--Master/texmf-dist/tex/latex/tudscr/tudscrman.cls301
1 files changed, 197 insertions, 104 deletions
diff --git a/Master/texmf-dist/tex/latex/tudscr/tudscrman.cls b/Master/texmf-dist/tex/latex/tudscr/tudscrman.cls
index c290aed875f..b5b98350816 100644
--- a/Master/texmf-dist/tex/latex/tudscr/tudscrman.cls
+++ b/Master/texmf-dist/tex/latex/tudscr/tudscrman.cls
@@ -15,7 +15,7 @@
%% ============================================================================
%%
%% TUD-KOMA-Script
-%% Copyright (c) Falk Hanisch <tudscr[at]gmail.com>, 2012-2014
+%% Copyright (c) Falk Hanisch <tudscr@gmail.com>, 2012-2015
%%
%% ============================================================================
%%
@@ -29,13 +29,13 @@
%%
%% ----------------------------------------------------------------------------
%%
-%% 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.
+%% 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.
%%
%% ============================================================================
%%
@@ -57,7 +57,7 @@
\fi%
}%
\fi%
- \@TUDVersion{2014/12/17 v2.02 TUD-KOMA-Script}%
+ \@TUDVersion{2015/02/15 v2.03 TUD-KOMA-Script}%
\endgroup%
\providecommand*\tudscrmail{tudscr@gmail.com}
\newcommand*\tudinh@name{tudscrreprt}
@@ -71,7 +71,7 @@
%%% From File: tudscr-manual.dtx
\NeedsTeXFormat{LaTeX2e}[2011/06/27]
\ProvidesClass{tudscrman}[%
- 2014/12/17 v2.02 TUD-KOMA-Script
+ 2015/02/15 v2.03 TUD-KOMA-Script
class (internal manual)%
]
%%% From File: tudscr-base.dtx
@@ -79,7 +79,17 @@
%%% From File: tudscr-manual.dtx
\newif\if@tud@todo
\@tud@todotrue
-\TUD@ifkey{ToDo}{@tud@todo}
+\newcommand*\tud@todo@type{}
+\TUD@key{ToDo}[true]{%
+ \TUD@set@ifkey{ToDo}{@tud@todo}{#1}%
+ \ifx\FamilyKeyState\FamilyKeyStateProcessed%
+ \let\tud@todo@type\relax%
+ \else%
+ \def\tud@todo@type{#1}%
+ \@tud@todotrue%
+ \FamilyKeyStateProcessed%
+ \fi%
+}
\PassOptionsToClass{%
cdfoot=true,%
chapterpage=true,%
@@ -87,14 +97,17 @@
headings=optiontoheadandtoc,%
captions=tableheading,%
numbers=noenddot,%
- color=true,%
+ cd=color,%
}{\tudinh@name}
\PassOptionsToPackage{automark}{scrlayer-scrpage}
\DeclareOption{final}{\let\tudfinalflag\relax}
\DeclareOption{print}{\let\tudprintflag\relax}
\AtBeginDocument{%
\ifdef{\tudfinalflag}{\TUDoptions{ToDo=false}}{}%
- \ifdef{\tudprintflag}{\hypersetup{hidelinks}\TUDoptions{color=no}}{}%
+ \ifdef{\tudprintflag}{%
+ \TUDoptions{color=no}%
+ \PassOptionsToPackage{hidelinks}{hyperref}%
+ }{}%
}
%%% From File: tudscr-base.dtx
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{\tudinh@name}}
@@ -114,7 +127,14 @@
\providecommand\enquote[1]{\glqg#1\grqq{}}%
}%
}
-\RequirePackage[babel]{microtype}[2013/05/23]
+\AfterPackage*{hyperref}{\RequirePackage[babel]{microtype}[2013/05/23]}
+\newlength\baselineskipglue
+\AtBeginDocument{%
+ \setlength\baselineskipglue{%
+ .4\baselineskip plus .4\baselineskip minus .2\baselineskip%
+ }%
+}
+\PassOptionsToPackage{vskip=.5\baselineskipglue}{quoting}
\RequirePackage{quoting}[2014/01/28]
\RequirePackage{isodate}[2010/01/03]
\RequirePackage{hologo}[2012/04/26]
@@ -140,10 +160,11 @@
\fi
\WarningFilter*{ifplatform}{^^J \space\space\space shell escape is disabled}
\RequirePackage{ifplatform}[2010/10/22]
-\PassOptionsToPackage{hyperindex=false}{hyperref}
-\AtEndPreamble{%
+\PassOptionsToPackage{hyperindex=false,colorlinks,linkcolor=blue}{hyperref}
+\PassOptionsToPackage{open,openlevel=0}{bookmark}
+\AtBeginDocument{%
\RequirePackage{hyperref}[2012/11/06]
- \hypersetup{colorlinks,linkcolor=blue}
+ \RequirePackage{bookmark}[2011/12/02]
\newcommand*\Email[1]{\href{mailto:#1}{\nolinkurl{#1}}}
\renewcaptionname{ngerman}{\sectionautorefname}{Unterkapitel}
\renewcaptionname{ngerman}{\subsectionautorefname}{Abschnitt}
@@ -169,7 +190,7 @@
\NewDocumentCommand\manualhyperdef{st'm}{%
\IfBooleanTF{#2}{%
\raisebox{4\baselineskip}[0pt][0pt]{\hyperdef{\jobname}{#3}{}}%
- \par\nobreak\vskip\dimexpr-\parskip-\baselineskip%
+ \par\nobreak\vskip\dimexpr-\parskip-\baselineskip\relax%
\@afterindentfalse\@afterheading%
}{%
\Hy@raisedlink{\hyperdef{\jobname}{#3}{}}%
@@ -183,7 +204,8 @@
\RequirePackage{imakeidx}[2013/07/11]%
\indexsetup{%
level=\addsec,%
- noclearpage,firstpagestyle=headings,headers={\indexname}{\indexname}%
+ noclearpage,firstpagestyle=headings,headers={\indexname}{\indexname},%
+ othercode={\renewcommand*\subitem{\@idxitem\hspace*{15\p@}}}%
}
\newcommand*\xdyopt{-M tudscrman-temp.xdy -L german-din}
\newcommand*\tud@write@i{}
@@ -198,7 +220,7 @@
\write\tud@write@i{(markup-range :sep "--")}
\write\tud@write@i{(merge-rule "\[(.*)\]" "" :eregexp)}
\write\tud@write@i{%
- (define-attributes (("declare" "!" "important" "?" "default")))%
+ (define-attributes (("declare" "!" "important" "?" "deprecated" "default")))%
}
\write\tud@write@i{(merge-to "important" "default")}
\write\tud@write@i{(merge-to "?" "default")}
@@ -238,6 +260,13 @@
)%
}
\write\tud@write@i{%
+(markup-locref^^J%
+\space\space :open "\string\deprecatedhyperpage{"^^J%
+\space\space :close "}"^^J%
+\space\space :attr "deprecated"^^J%
+)%
+}
+\write\tud@write@i{%
(markup-locclass-list :open "\string\,\string\dotfill\string\,")%
}
\write\tud@write@i{(define-crossref-class "seeidx")}
@@ -275,15 +304,16 @@
\RequirePackage{pdfpages}[2013/08/25]
\RequirePackage{units}[1998/08/04]
\RequirePackage{tudscrsupervisor}[\TUDVersion]
+\newrobustcmd*\textOR{\,\textbardbl\,}
\newrobustcmd*\PName[1]{\mbox{\texttt{\textsl{<#1>}}}}
\newrobustcmd*\PBoolean{\PName{Ein-Aus-Wert}}
-\newrobustcmd*\PBName[1]{\PBoolean|\PName{#1}}
+\newrobustcmd*\PBName[1]{\PBoolean\textOR\PName{#1}}
\newrobustcmd*\PSet{\PName{Einstellung}}
\newrobustcmd*\Parameter[1]{\mbox{\texttt{\{}\PName{#1}\texttt{\}}}}
\newrobustcmd*\OParameter[1]{\mbox{\texttt{[}\PName{#1}\texttt{]}}}
\newrobustcmd*\LParameter{\mbox{\texttt{[}\PName{Parameterliste}\texttt{]}}}
\newrobustcmd*\OLParameter[1]{%
- \mbox{\texttt{[}\PName{#1}|\PName{Parameterliste}\texttt{]}}%
+ \mbox{\texttt{[}\PName{#1}\textOR\PName{Parameterliste}\texttt{]}}%
}
\newrobustcmd*\PValue[1]{\mbox{\texttt{#1}}}
\newrobustcmd*\PParameter[1]{\mbox{\texttt{\{#1\}}}}
@@ -291,17 +321,17 @@
\newrobustcmd*\hypertut[2]{%
\hyperref{tutorials/#1.pdf}{\jobname}{tutorials:#1}{\textsbn{#1.pdf}#2}%
}
-\NewDocumentCommand\Tutorial{som}{%
+\NewDocumentCommand\Tutorial{smd||}{%
\ifnum\pdfshellescape=1\relax%
- \filemodCmp{tutorials/#3.pdf}{tutorials/#3.tex}{}{%
+ \filemodCmp{tutorials/#2.pdf}{tutorials/#2.tex}{}{%
\immediate\openout\tud@write@i=tutorials.sh%
\immediate\write\tud@write@i{%
cd tutorials^^J%
- pdflatex -shell-escape #3^^J%
- biber #3^^J%
- makeglossaries #3^^J%
- pdflatex #3^^J%
- pdflatex #3%
+ pdflatex -shell-escape #2^^J%
+ biber #2^^J%
+ makeglossaries #2^^J%
+ pdflatex #2^^J%
+ pdflatex #2%
}%
\immediate\closeout\tud@write@i%
\ifwindows%
@@ -314,14 +344,14 @@
\fi%
}%
\fi%
- \IfFileExists{tutorials/#3.pdf}{%
- \hypertut{#3}{}%
+ \IfFileExists{tutorials/#2.pdf}{%
+ \hypertut{#2}{}%
}{%
- \textsbn{#3.pdf}%
+ \textsbn{#2.pdf}%
\tud@shellescape@wrn%
}%
\IfBooleanF{#1}{%
- \index[files]{\hypertut{#3}{~{\idxfont(Tutorial)}\IfValueT{#2}{|#2}}}%
+ \index[files]{\hypertut{#2}{~{\idxfont(Tutorial)}}\IfValueT{#3}{|#3}}%
}%
}
\newcommand*\IncludeExample[1]{%
@@ -366,17 +396,24 @@
}{%
\IfBooleanT{#1}{\edef\@ToDo{nolist}}%
}%
- \renewcommand*\marginpar[2][]{\marginnote[##1]{##2}[\dimexpr-1.6ex+1pt]}%
- \vskip.8ex%
- \IfValueT{#4}{%
- \settowidth\marginparwidth{#4}%
- \addtolength\marginparwidth{\dimexpr1.6ex+1pt}%
- \let\par\relax\noindent%
- \edef\@tempa{\noexpand\todo[\@ToDo,noline,nolist]}%
- \@tempa{#4}%
+ \renewcommand*\marginpar[2][]{%
+ \marginnote[##1]{##2}[\dimexpr-1.6ex+1pt\relax]%
}%
- \edef\@tempa{\noexpand\todo[\@ToDo,inline]}%
- \@tempa{#3}%
+ \@tempswafalse
+ \ifdefvoid{\tud@todo@type}{\@tempswatrue}{}%
+ \IfValueT{#2}{\ifstr{#2}{\tud@todo@type}{\@tempswatrue}{}}%
+ \if@tempswa%
+ \vskip.8ex%
+ \IfValueT{#4}{%
+ \settowidth\marginparwidth{#4}%
+ \addtolength\marginparwidth{\dimexpr1.6ex+1pt\relax}%
+ \let\par\relax\noindent%
+ \edef\@tempa{\noexpand\todo[\@ToDo,noline,nolist]}%
+ \@tempa{#4}%
+ }%
+ \edef\@tempa{\noexpand\todo[\@ToDo,inline]}%
+ \@tempa{#3}%
+ \fi%
\endgroup%
\par\noindent%
}{}%
@@ -385,10 +422,6 @@
\newcommand*\ListOfToDo{\if@tud@todo\listoftodos\fi}
\reversemarginpar
\newrobustcmd*\bsc{\@backslashchar}
-\newlength\baselineskipglue
-\setlength\baselineskipglue{%
- .4\baselineskip plus .4\baselineskip minus .2\baselineskip%
-}
\newcommand*\tud@shellescape@wrn{%
\ClassWarning{\tudcls@name}{%
You have to recompile this document with\MessageBreak%
@@ -563,10 +596,10 @@
\@afterindentfalse\@afterheading%
\IfBooleanTF{#1}{%
\IfValueTF{#3}{\setlength\@tempdima{#3}}{\setlength\@tempdima{\linewidth}}%
- \setlength{\@tempdimc}{-.7\baselineskip}%
+ \setlength\@tempdimc{-.7\baselineskip}%
\begin{tabularx}{\@tempdima}{lXX}\@TermTable\end{tabularx}%
}{%
- \setlength{\@tempdimc}{\z@}%
+ \setlength\@tempdimc{\z@}%
\begin{tabular}{lll}\@TermTable\end{tabular}%
}%
\let\@termlist\relax%
@@ -627,7 +660,7 @@
\newif\if@declare
\newif\if@stareddeclare
\newif\if@openindex
-\newif\if@noindex
+\newif\if@deprecated
\NewDocumentCommand\@ProcessOutput{mod''d()md()omo}{%
\if@declare%
\if@openindex%
@@ -638,15 +671,19 @@
the environment `Declaration'%
}%
}%
- \ifx\@IndexFormat\@empty\else%
- \ClassWarning{\tudcls@name}{%
+ \IfValueTF{#6}{\edef\@tempa{#5:#6:#8}}{\edef\@tempa{#5:#8}}%
+ \if@deprecated%
+ \expandafter\IfBooleanF\expandafter{\@IndexFormat}{%
+ \manualhyperdef{\@tempa}%
+ }%
+ \else%
+ \ifx\@IndexFormat\@empty\else%
+ \ClassWarning{\tudcls@name}{%
It is not possible to use any indexing format\MessageBreak%
like |\@IndexFormat| within the arguments of the\MessageBreak%
environment `Declaration'%
- }%
- \fi%
- \if@noindex\else%
- \IfValueTF{#6}{\edef\@tempa{#5:#6:#8}}{\edef\@tempa{#5:#8}}%
+ }%
+ \fi%
\if@stareddeclare%
\manualhyperdef'{\@tempa}%
\else%
@@ -658,7 +695,7 @@
#1\IfValueT{#2}{#2}%
\fi%
\else%
- \if@noindex\else%
+ \if@deprecated\else%
\@HyperIndex{#5}{#6}{#7}{#8}{#9}{declare)}%
\fi%
\fi%
@@ -686,6 +723,7 @@
}%
\ifstr{#3}{auto}{\def\@tempb{ in \autoref{\@tempa}}}{}%
\ifstr{#3}{page}{\def\@tempb{ \vpageref{\@tempa}}}{}%
+ \ifstr{#3}{ppage}{\def\@tempb{ \reftextfaraway{\@tempa}}}{}%
\ifstr{#3}{full}{\def\@tempb{ in \fullref{\@tempa}}}{}%
\ifstr{#3}{none}{%
\let\@tempb\relax%
@@ -766,13 +804,13 @@
\newif\if@additionallist
\newcommand*\@gobbleparameters{%
\let\PName\@gobble%
- \let\PBoolean\relax%
+ \let\PBoolean\@empty%
\let\PBName\@gobble%
- \let\PSet\relax%
+ \let\PSet\@empty%
\let\PValue\@gobble%
\let\Parameter\@gobble%
\let\OParameter\@gobble%
- \let\LParameter\relax%
+ \let\LParameter\@empty%
\let\OLParameter\@gobble%
\let\PParameter\@gobble%
\let\POParameter\@gobble%
@@ -795,9 +833,11 @@
\@additionallisttrue%
\listadd\@additionallist{\hspace*{\tabcolsep}\small(#5)}%
\in@{\Environment}{#2}%
- \ifin@ \listadd\@additionallist{\tabularnewline}\fi%
+ \ifin@\listadd\@additionallist{\tabularnewline}\fi%
}{%
\listadd\@additionallist{\relax}%
+ \in@{\Environment}{#2}%
+ \ifin@\listadd\@additionallist{\relax}\listadd\@additionallist{\relax}\fi%
}%
}{%
\ifx\@declarationlist\relax\else%
@@ -817,12 +857,30 @@
\addpenalty{\@beginparpenalty}%
\addvspace{1.5\baselineskipglue}%
\IfBooleanTF{#1}{%
- \global\@noindextrue%
- \renewcommand*\@changedatdeclaredefault{\emph{entf\"allt}}%
+ \global\@deprecatedtrue%
+ \renewcommand*\@changedatdeclaredefault{\emph{entf\"allt}|deprecated}%
}{%
- \global\@noindexfalse%
+ \global\@deprecatedfalse%
+ }%
+ \IfValueT{#2}{%
+ \if@additionallist%
+ \ClassWarning{\tudcls@name}{%
+ It is not possible to use the optional argument\MessageBreak%
+ of \string\printdeclarationlist due to the given\MessageBreak%
+ additional information as argument of the\MessageBreak%
+ environment `Declaration'%
+ }%
+ \else%
+ \@additionallisttrue%
+ \let\@additionallist\relax%
+ \protected@edef\@tempa{#2}%
+ \protected@edef\@tempb{\hspace*{\tabcolsep}\protect\small}%
+ \def\@tempc##1{%
+ \listeadd\@additionallist{\expandonce\@tempb(\expandonce\@tempa)}%
+ }%
+ \forlistloop\@tempc{\@declarationlist}%
+ \fi%
}%
- \IfValueT{#2}{\renewcommand*\@changedatdeclaredefault{\emph{#2}}}%
\@declaretrue\@openindextrue%
\@afterindentfalse\@afterheading%
\def\@tempa##1{\ignorespaces##1\tabularnewline}%
@@ -867,7 +925,7 @@
\NewDocumentEnvironment{Declaration*}{om}{%
\@changedatdeclare{#1}{#2}%
\@stareddeclaretrue%
- \global\@noindexfalse%
+ \global\@deprecatedfalse%
\@declaretrue\@openindextrue#2\@declarefalse%
\@stareddeclarefalse%
}{%
@@ -877,6 +935,7 @@
forget to print this list with \string\printchangedatlist?%
}%
\fi%
+ \global\@deprecatedfalse%
\@gobbleparameters%
\@declaretrue\@openindexfalse#2\@declarefalse%
}
@@ -888,7 +947,7 @@
\let\allcolumnpar\@gobble%
\begin{tabular}{*{#1}l}\BODY\end{tabular}%
\end{lrbox}%
- \setlength{\tabularm@wd}{\wd\tabularm@box}%
+ \setlength\tabularm@wd{\wd\tabularm@box}%
\def\tabularm@num{#1}%
\let\allcolumnpar\@allcolumnpar%
\begin{tabular}{*{#1}l}\BODY\end{tabular}%
@@ -923,7 +982,7 @@
}%
}
\newcommand*\tud@@item[1][]{%
- \ifstrempty{#1}%
+ \ifblank{#1}%
{\edef\@tempa{\tud@item@val}}%
{\ifstr{\tud@item@val}{}%
{\edef\@tempa{#1}}%
@@ -933,11 +992,11 @@
\ifstr{\@tempa}{}{\item@values}{\tud@@@item}%
}
\newcommand*\tud@@@item[1][]{%
- \ifstrempty{#1}{}{%
+ \ifblank{#1}{}{%
\ifx\tud@item@add\relax%
\def\tud@item@add{#1}%
\else%
- \apptocmd{\tud@item@add}{~#1}{}{}%
+ \appto\tud@item@add{~#1}%
\fi%
}%
\item@values[%
@@ -992,37 +1051,57 @@
\newcommand*\@changedatdeclare[2]{%
\IfValueT{#1}{%
\@for\@tempa:=#1\do{%
- \protected@expandtwoargs\in@{!}{\@tempa}%
- \ifin@%
- \expandafter\listadd\expandafter\@changedatdeclarelist%
- \expandafter{\@tempa!#2}%
- \else%
- \expandafter\listadd\expandafter\@changedatdeclarelist%
- \expandafter{\@tempa!\@changedatdeclaredefault!#2}%
+ \ifx\@tempa\@empty\else%
+ \preto{\@tempa}{#2!}%
+ \expandafter\ChangedAt@Split\expandafter{\@tempa}%
\fi%
}%
}%
}
+\NewDocumentCommand\ChangedAt@Split{>{\SplitArgument{2}{!}}m}{%
+ \ChangedAt@@Split#1%
+}
+\newcommand*\ChangedAt@@Split[3]{%
+ \in@{*}{#1}%
+ \ifin@%
+ \listadd\@changedatdeclarelist{Allgemein!#2}%
+ \else%
+ \listadd\@changedatdeclarelist{%
+ Implementierung!#2!\IfValueTF{#3}{#3}{\@changedatdeclaredefault}!#1%
+ }%
+ \fi%
+}
\NewDocumentCommand\printchangedatlist{sO{\z@}}{%
\ifx\@changedatdeclarelist\relax\else%
- \ChangedAt@Process{#2}{\@changedatdeclarelist}%
+ \if@deprecated%
+ \ChangedAt@Process[#1]{#2}{\@changedatdeclarelist}%
+ \else%
+ \ChangedAt@Process{#2}{\@changedatdeclarelist}%
+ \fi%
\global\let\@changedatdeclarelist\relax%
\IfBooleanF{#1}{%
- \par\nobreak\vskip\dimexpr-\parskip-\baselineskip%
+ \par\nobreak\vskip\dimexpr-\parskip-\baselineskip\relax%
\@afterindentfalse\@afterheading%
}%
\fi%
}
-\NewDocumentCommand\ChangedAt{sO{\z@}m}{\ChangedAt@Process[#1]{#2}{#3}}
+\NewDocumentCommand\ChangedAt{sO{\z@}mO{Allgemein}}{%
+ \ChangedAt@Process[#1]{#2}[#4]{#3}%
+}
\newcommand*\@changedatlist{}
\newcommand*\ChangedAt@Default{}
\newcommand*\@changedatversionlist{}
\let\@changedatversionlist\relax
-\newcommand*\ChangedAt@Process[3][]{%
+\NewDocumentCommand\ChangedAt@Process{omom}{%
\let\@changedatlist\relax%
\let\@changedatversionlist\relax%
- \@for\@tempa:=#3\do{\listeadd{\@changedatlist}{\expandonce\@tempa}}%
- \forlistloop\ChangedAt@Split{\@changedatlist}%
+ \@for\@tempa:=#4\do{%
+ \ifx\@tempa\@empty\else%
+ \IfValueT{#3}{\preto\@tempa{#3!}}%
+ \listeadd{\@changedatlist}{\expandonce\@tempa}%
+ \fi%
+ }%
+ \forlistloop\ChangedAt@Process@Split{\@changedatlist}%
\IfBooleanF{#1}{%
\sortlist{\@changedatversionlist}%
\strut%
@@ -1039,20 +1118,20 @@
\ignorespaces%
}%
}
-\NewDocumentCommand\ChangedAt@Split{>{\SplitArgument{2}{!}}m}{%
+\NewDocumentCommand\ChangedAt@Process@Split{>{\SplitArgument{3}{!}}m}{%
\ChangedAt@@Process#1%
}
-\newcommand*\ChangedAt@@Process[3]{%
- \IfValueTF{#3}{%
+\newcommand*\ChangedAt@@Process[4]{%
+ \IfValueTF{#4}{%
\begingroup%
\@gobbleparameters%
- \xdef\ChangedAt@Default{#3}%
+ \xdef\ChangedAt@Default{#4}%
\endgroup%
- \ChangedAt@@@Process{#1}{Implementierung}{\ChangedAt@Default: #2}%
+ \ChangedAt@@@Process{#2}{#1}{\ChangedAt@Default: #3}%
}{%
- \IfValueT{#2}{\ChangedAt@@@Process{#1}{Allgemein}{#2}}%
+ \IfValueT{#3}{\ChangedAt@@@Process{#2}{#1}{#3}}%
}%
- \xifinlist{#1}{\@changedatversionlist}{}{\listeadd\@changedatversionlist{#1}}%
+ \xifinlist{#2}{\@changedatversionlist}{}{\listeadd\@changedatversionlist{#2}}%
}
\newcommand*\ChangedAt@@@Process[3]{%
\begingroup%
@@ -1068,24 +1147,27 @@
\setbox0\hbox{#3}%
\endgroup%
\index[changelog]{%
- #1 \manualhyperdef*{#1}!\manualhyperdef*{#1:#2}{#2}!\@TempKey\ #3%
+ #1\manualhyperdef*{#1}!\manualhyperdef*{#1:#2}#2!\@TempKey\ #3%
}%
\else%
\index[changelog]{%
- #1 \manualhyperdef*{#1}!\manualhyperdef*{#1:#2}{#2}!#3%
+ #1\manualhyperdef*{#1}!\manualhyperdef*{#1:#2}#2!#3%
}%
\fi%
\endgroup%
}
-\newcommand*\Rename[4][]{%
- \ChangedAt@@@Process{#2}{Umbenennungen}{%
- #3: \emph{umbenannt}~\textrightarrow~siehe #4%
- }%
- \ChangedAt@@@Process{#2}{Implementierung}{%
- #4: \emph{neu}~\textrightarrow~ersetzt #3%
+\NewDocumentCommand\Replace{ommm}{%
+ \@for\@tempa:={,#4}\do{%
+ \ifx\@tempa\@empty\else%
+ \protected@edef\@tempb{%
+ Implementierung!#2!\emph{entf\"allt}|see{#3}!\@tempa%
+ }%
+ \expandafter\listadd\expandafter\@changedatdeclarelist\expandafter{%
+ \@tempb%
+ }%
+ \IfValueT{#1}{\index[#1]{\@tempa|see{#3}}}%
+ \fi%
}%
- \listeadd\@changedatdeclarelist{#2}%
- \index[#1]{#3|see{#4}}%
}
\NewDocumentCommand\@ProcessChangedAt{mmd()mmm}{%
\begingroup%
@@ -1157,10 +1239,10 @@
\@printindex[macros]%
\@printindex[keys]%
\@printindex[terms]%
+ \@printindex[fonts]%
\begingroup%
\let\lettergroup\@gobble%
\let\indexspace\par%
- \@printindex[fonts]%
\@printindex[colors]%
\endgroup%
\@printindex[files]%
@@ -1171,7 +1253,6 @@
\newcommand*\@printindexskip{\ifnum\imki@columns>\@ne\vspace{-\multicolsep}\fi}
\newcommand*\@printindex[1][]{%
\pagebreak[3]%
- \apptocmd{\prepare@multicols}{\hbadness10000}{}{}%
\ifblank{#1}{%
\ifx\@printindexprologue\@empty%
\indexprologue[\@printindexskip]{\manualhyperdef'{idx:main}}%
@@ -1195,11 +1276,16 @@
\manualhyperref{idx:#3}{Index der \IfValueTF{#2}{#2}{#1}}|seeidx{#3}%
}%
}
+\newcommand*\deprecatedhyperpage{}
\newif\if@changelog
\newcommand*\PrintChangelog{%
\begingroup%
\let\lettergroup\@gobble%
\@changelogtrue%
+ \let\deprecatedhyperpage\hyperpage%
+ \preto\item{\let\deprecatedhyperpage\hyperpage}%
+ \preto\subitem{\let\deprecatedhyperpage\hyperpage}%
+ \preto\subsubitem{\let\deprecatedhyperpage\hyperpage}%
\@printindex[changelog]%
\endgroup%
}
@@ -1209,6 +1295,13 @@
\manualhyperref{idx:changelog}{\"Anderungsliste}|seeidx{changelog}%
}%
}
+\renewrobustcmd*\see[2]{%
+ \ifstr{#1}{*}{\emph{\seename}~#2}{\emph{\seename}~#1}%
+ \if@changelog\let\deprecatedhyperpage\@gobble\fi%
+}
+\renewrobustcmd*\seealso[2]{%
+ \ifstr{#1}{*}{\emph{\alsoname}~#2}{\emph{\alsoname}~#1}%
+}
%%% From File: tudscr-misc.dtx
\RequirePackage{xspace}[2009/10/20]
\xspaceaddexceptions{"=}
@@ -1219,7 +1312,7 @@
\expandafter\@tempb\@tempa\relax? ? \relax\relax%
}
\newcommand*\vKOMAScript{v3.12\xspace}
-\RequirePackage{scrhack}[2014/07/07]
+\RequirePackage{scrhack}[2014/02/27]
\newcommand*\Attention[1]{\marginnote{\fbox{Achtung!}}\emph{#1}}
\NewDocumentCommand\Forum{s}{%
\IfBooleanTF{#1}{%
@@ -1255,7 +1348,7 @@
\newcommand*\notudscrartcl{%
F\"ur die Klasse \Class{tudscrartcl} ist diese Einstellung nicht verf\"ugbar.
}
-\newlength{\tempdim}
+\newlength\tempdim
\newcommand*\CD{Corporate Design\xspace}
\newcommand*\CDs{Corporate Designs\xspace}
\newcommand*\TUD{Technische Universit\"at Dresden\xspace}