diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/tudscr/tudscrmanual.cls')
-rw-r--r-- | Master/texmf-dist/tex/latex/tudscr/tudscrmanual.cls | 96 |
1 files changed, 59 insertions, 37 deletions
diff --git a/Master/texmf-dist/tex/latex/tudscr/tudscrmanual.cls b/Master/texmf-dist/tex/latex/tudscr/tudscrmanual.cls index f9bde362988..5b662d73681 100644 --- a/Master/texmf-dist/tex/latex/tudscr/tudscrmanual.cls +++ b/Master/texmf-dist/tex/latex/tudscr/tudscrmanual.cls @@ -16,7 +16,7 @@ %% %% TUD-Script -- Corporate Design of Technische Universitaet Dresden %% -%% 2017/03/12 v2.05i TUD-Script +%% 2017/03/27 v2.05k TUD-Script %% %% Copyright (C) Falk Hanisch <hanisch.latex@outlook.com>, 2012-2017 %% @@ -59,13 +59,13 @@ \fi% } \fi - \TUD@Version@Check{2017/03/12 v2.05i TUD-Script} + \TUD@Version@Check{2017/03/27 v2.05k TUD-Script} \endgroup \NeedsTeXFormat{LaTeX2e} \providecommand*\tudscrmail{hanisch.latex@outlook.com} \newcommand*\TUD@ProvidesWrapperClass[3]{% \ProvidesClass{#1}[% - 2017/03/12 v2.05i TUD-Script + 2017/03/27 v2.05k TUD-Script ^^J#3 (#2)% ]% \newcommand*\TUD@Class@Parent{#2}% @@ -328,16 +328,19 @@ \renewcaptionname{ngerman}{\subsectionautorefname}{Abschnitt}% \renewcaptionname{ngerman}{\subsubsectionautorefname}{Unterabschnitt}% \newcommand*\tud@manualname{tudscr}% - \NewDocumentCommand\tudhyperdef{sm}{% - \IfBooleanTF{#1}{% - \raisebox{4\baselineskip}[0pt][0pt]{\hyperdef{\tud@manualname}{#2}{}}% + \NewDocumentCommand\tudhyperdef{st'm}{% + \@tempswafalse% + \IfBooleanT{#1}{\@tempswatrue\setlength\@tempdima{3\baselineskip}}% + \IfBooleanT{#2}{\@tempswatrue\setlength\@tempdima{15\baselineskip}}% + \if@tempswa% + \raisebox{\@tempdima}[0pt][0pt]{\hyperdef{\tud@manualname}{#3}{}}% \par\nobreak\vskip\dimexpr-\parskip-\baselineskip\relax% \@afterindentfalse\@afterheading% - }{% - \Hy@raisedlink{\hyperdef{\tud@manualname}{#2}{}}\ignorespaces% - }% - \label{#2}% - \tud@trace@lbl@created@add{#2}% + \else% + \Hy@raisedlink{\hyperdef{\tud@manualname}{#3}{}}\ignorespaces% + \fi% + \label{#3}% + \tud@trace@lbl@created@add{#3}% }% \newcommand*\tudhyperref[2]{\hyperref{}{\tud@manualname}{#1}{#2}}% \newcommand*\autorefname[1][current]{% @@ -390,7 +393,7 @@ \tud@locale@english{\sectionautorefname}{section}% \tud@locale@english{\subsectionautorefname}{subsection}% \tud@locale@english{\subsubsectionautorefname}{subsubsection}% - \ProvideDocumentCommand\tudhyperdef{sm}{\label{#2}}% + \ProvideDocumentCommand\tudhyperdef{st'm}{\label{#3}}% \providecommand*\tudhyperref[2]{#2}% \providecommand*\autorefname[1][]{??\xspace}% } @@ -472,7 +475,7 @@ \newcommand*\tud@additional@list{} \let\tud@additional@list\relax \newif\if@tud@additional@list -\NewDocumentCommand\tud@declare@start{omoog}{% +\NewDocumentCommand\tud@declare@start{omr[]r[]m}{% \Changed@At@CreateList[#2]{#1}% \IfValueTF{#3}{% \@tud@preset@listtrue% @@ -941,7 +944,7 @@ \let\NoCaseChange\@firstofone% } \NewDocumentCommand\tud@lbl@get@curr{% - sm>{\SplitArgument{2}{:}}>{\tud@lbl@create}md==% + sm>{\tud@lbl@create}>{\SplitArgument{2}{:}}md==% }{% \tud@lbl@get@@curr#2{#3}=#4=% \IfBooleanF{#1}{% @@ -967,16 +970,16 @@ \tud@doifPValue[\tud@lbl@fmt]{#3}{\noexpand\appto\noexpand#1{=#3}}% } \NewDocumentCommand\tud@lbl@get@dflt{m>{\SplitArgument{2}{:}}mr==}{% - \tud@lbl@get@@dflt{#1}#2{#3}% + \tud@lbl@get@@dflt{#1}#2=#3=% } -\NewDocumentCommand\tud@lbl@get@@dflt{mmmmm}{% +\NewDocumentCommand\tud@lbl@get@@dflt{mmmmr==}{% \edef\tud@reserved{\expandafter\detokenize\expandafter{\tud@bdl@dflt}}% \ifstr{\tud@reserved}{#2}{}{% \tud@lbl@get@curr#1{\tud@bdl@dflt:#3:#4}=#5=% }% } \NewDocumentCommand\tud@if@lbl@exists{% - >{\SplitArgument{2}{:}}>{\tud@lbl@create}m% + >{\tud@lbl@create}>{\SplitArgument{2}{:}}m% }{% \ifcsdef{r@#1}{% \expandafter\@firstoftwo% @@ -1138,10 +1141,10 @@ \endgroup% \Markup@ClearFormat% } -\NewDocumentCommand\Markup@Output{>{\SplitArgument{1}{!}}md==o}{% - \Markup@@Output#1{#2}{#3}% +\NewDocumentCommand\Markup@Output{>{\SplitArgument{1}{!}}mr==r[]}{% + \Markup@@Output#1=#2=[#3]% } -\NewDocumentCommand\Markup@@Output{mmmm}{% +\NewDocumentCommand\Markup@@Output{mmr==r[]}{% \if@tud@declare% \tud@toks@{\Markup@Declare}% \else% @@ -1422,7 +1425,10 @@ \IfArgIsEmpty{#3}{% \emph{#1}\space#2% }{% - #3, \emph{\alsoname}\space#2% + \begingroup% + \def\@tempa, ##1\@nil{##1,\space\emph{\alsoname}\space#2}% + \@tempa#3\@nil% + \endgroup% }% } \NewDocumentCommand\seeref{sm}{% @@ -1588,15 +1594,15 @@ \let\tud@changedat@list\relax \DeclareListParser*{\forssvlist}{;} \NewDocumentCommand\Changed@At@CreateList{od()m}{% - \IfValueT{#3}{\forssvlist{\Changed@At@@CreateList{#1}{#2}}{#3}}% + \IfValueT{#3}{\forssvlist{\Changed@At@@CreateList[#1](#2)}{#3}}% } -\NewDocumentCommand\Changed@At@@CreateList{mm>{\SplitArgument{1}{:}}m}{% - \Changed@At@@@CreateList{#1}{#2}#3% +\NewDocumentCommand\Changed@At@@CreateList{r[]r()>{\SplitArgument{1}{:}}m}{% + \Changed@At@@@CreateList[#1](#2)#3% } -\NewDocumentCommand\Changed@At@@@CreateList{mm>{\SplitArgument{1}{!}}mm}{% - \Changed@At@@@@CreateList{#1}{#2}#3{#4}% +\NewDocumentCommand\Changed@At@@@CreateList{r[]r()>{\SplitArgument{1}{!}}mm}{% + \Changed@At@@@@CreateList[#1](#2)#3{#4}% } -\NewDocumentCommand\Changed@At@@@@CreateList{mmmmm}{% +\NewDocumentCommand\Changed@At@@@@CreateList{r[]r()mmm}{% \def\@tempa##1{% \sbox\z@{% \let\tud@idx@fmt\relax% @@ -1979,14 +1985,27 @@ pdflatex -output-directory examples examples/#1.tex% }% }% + \filemodCmp{examples/#1_print.pdf}{examples/#1_print.tex}{}{% + \immediate\write18{% + pdflatex -output-directory examples examples/#1_print.tex^^J% + pdflatex -output-directory examples examples/#1_print.tex% + }% + }% \fi% - \IfFileExists{examples/#1.pdf}{% - \includepdf[% - pages=-,noautoscale,frame,keepaspectratio,pagecommand={},% - height=\textheight,width=\textwidth, offset=5mm 0mm% - ]{examples/#1.pdf}% + \def\@tempa{examples/#1.pdf}% + \ifdef{\tudprintflag}{% + \IfFileExists{examples/#1_print.pdf}{\def\@tempa{examples/#1_print.pdf}}{}% + }{}% + \IfFileExists{\@tempa}{% + \edef\@tempa{% + \noexpand\includepdf[% + pages=-,noautoscale,frame,keepaspectratio,pagecommand={},% + height=\noexpand\textheight,width=\noexpand\textwidth,offset=5mm 0mm% + ]{\@tempa}% + }% + \@tempa% }{% - \tud@shellescape@wrn{examples/#1.pdf}% + \tud@shellescape@wrn{\@tempa}% }% } \PassOptionsToPackage{obeyFinal}{todonotes} @@ -2084,9 +2103,12 @@ \RequirePackage{isodate}[2010/01/03] \RequirePackage{hologo}[2012/04/26] \RequirePackage{ragged2e}[2009/05/21] -\RequirePackage{chngcntr}[2009/09/02] -\counterwithout{footnote}{chapter} -\addtokomafont{footnote}{\tud@RaggedRight} +\@removefromreset{footnote}{chapter} +\ifcsdef{scr@v@3.23}{% + \renewcommand*\raggedfootnote{\tud@RaggedRight}% +}{% + \pretocmd{\@makefntext}{\tud@RaggedRight}{}{\tud@patch@wrn{@makefntext}}% +} \RequirePackage{booktabs}[2005/04/14] \RequirePackage{caption}[2015/09/17] \RequirePackage{floatrow}[2008/08/02] @@ -2306,7 +2328,7 @@ \write\tud@write@xdy{% (define-location-class^^J% \space\space"arabic-page-numbers" ("arabic-numbers")% - \space:min-range-length 2^^J% + \space:min-range-length 1^^J% )^^J% (markup-range :sep "--")% }% |