diff options
Diffstat (limited to 'Master/texmf-dist/source/latex/koma-script/scrkernel-pseudolengths.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/koma-script/scrkernel-pseudolengths.dtx | 97 |
1 files changed, 90 insertions, 7 deletions
diff --git a/Master/texmf-dist/source/latex/koma-script/scrkernel-pseudolengths.dtx b/Master/texmf-dist/source/latex/koma-script/scrkernel-pseudolengths.dtx index 0f1a854f096..228fa2258a2 100644 --- a/Master/texmf-dist/source/latex/koma-script/scrkernel-pseudolengths.dtx +++ b/Master/texmf-dist/source/latex/koma-script/scrkernel-pseudolengths.dtx @@ -1,8 +1,8 @@ -% \CheckSum{98} +% \CheckSum{212} % \iffalse meta-comment % ====================================================================== % scrkernel-pseudolengths.dtx -% Copyright (c) Markus Kohm, 2006-2017 +% Copyright (c) Markus Kohm, 2006-2018 % % This file is part of the LaTeX2e KOMA-Script bundle. % @@ -55,7 +55,7 @@ % Right brace \} Tilde \~} % % \iffalse -%%% From File: $Id: scrkernel-pseudolengths.dtx 2753 2017-11-29 08:58:32Z kohm $ +%%% From File: $Id: scrkernel-pseudolengths.dtx 2980 2018-04-26 12:06:09Z kohm $ %<option>%%% (run: option) %<body>%%% (run: body) %<*dtx> @@ -63,7 +63,7 @@ \ifx\ProvidesFile\undefined\def\ProvidesFile#1[#2]{}\fi \begingroup \def\filedate$#1: #2-#3-#4 #5${\gdef\filedate{#2/#3/#4}} - \filedate$Date: 2017-11-29 09:58:32 +0100 (Wed, 29 Nov 2017) $ + \filedate$Date: 2018-04-26 14:06:09 +0200 (Thu, 26 Apr 2018) $ \def\filerevision$#1: #2 ${\gdef\filerevision{r#2}} \filerevision$Revision: 1872 $ \edef\reserved@a{% @@ -160,6 +160,14 @@ % \end{macrocode} % \end{macro} % +% \begin{macro}{\newplength} +% \changes{v3.26}{2018/04/26}{Neu} +% Anweisung auf Anwenderebene verfügbar. +% \begin{macrocode} +\newcommand*{\newplength}{\@newplength} +% \end{macrocode} +% \end{macro} +% % \begin{macro}{\useplength} % \changes{v2.8q}{2001/10/06}{Neu}^^A % \changes{v2.97c}{2007/09/17}{\cs{dimexpr} statt \cs{number} verwendet, @@ -187,6 +195,7 @@ \setlength{#2}{\useplength{#3}}% \setlength{#2}{#1#2}} % \end{macrocode} +% \end{macro} % % \begin{macro}{\@setplength} % \changes{v2.8q}{2001/10/06}{Neu}^^A @@ -204,12 +213,78 @@ \edef\@tempa{\noexpand\endgroup% \noexpand\expandafter\noexpand\renewcommand\noexpand\expandafter*% \noexpand\csname ltr@len@#2\noexpand\endcsname{\the\@tempskipa}% - }% - \@tempa% - } + }% + \@tempa +} +% \end{macrocode} +% \end{macro} +% +% \begin{macro}{\setplength} +% \changes{v3.26}{2018/04/26}{Neu}^^A +% Anweisung auf Anwenderebene verfügbar. +% \begin{macrocode} +\newcommand*{\setplength}{\@setplength} +% \end{macrocode} +% \end{macro} +% +% \begin{macro}{\setplengthtowidth} +% \changes{v3.26}{2018/04/26}{Neu} +% \begin{macro}{\setplengthtoheight} +% \changes{v3.26}{2018/04/26}{Neu} +% \begin{macro}{\setplengthtodepth} +% \changes{v3.26}{2018/04/26}{Neu} +% \begin{macro}{\setplengthtototalheight} +% \changes{v3.26}{2018/04/26}{Neu} +% Man kann auch die Breite, Höhe, Tiefe oder Höhe + Tiefe eines Inhalts +% verwenden, um eine Pseudolänge zu definieren. +% \begin{macrocode} +\newcommand*{\setplengthtowidth}[3][]{% + \begingroup + \settowidth{\@tempdima}{#3}% + \setlength{\@tempdima}{#1\@tempdima}% + \edef\@tempa{\noexpand\endgroup + \noexpand\expandafter\noexpand\renewcommand\noexpand\expandafter*% + \noexpand\csname ltr@len@#2\noexpand\endcsname{\the\@tempdima}% + }% + \@tempa +} +\newcommand*{\setplengthtoheight}[3][]{% + \begingroup + \settoheight{\@tempdima}{#3}% + \setlength{\@tempdima}{#1\@tempdima}% + \edef\@tempa{\noexpand\endgroup + \noexpand\expandafter\noexpand\renewcommand\noexpand\expandafter*% + \noexpand\csname ltr@len@#2\noexpand\endcsname{\the\@tempdima}% + }% + \@tempa +} +\newcommand*{\setplengthtodepth}[3][]{% + \begingroup + \settodepth{\@tempdima}{#3}% + \setlength{\@tempdima}{#1\@tempdima}% + \edef\@tempa{\noexpand\endgroup + \noexpand\expandafter\noexpand\renewcommand\noexpand\expandafter*% + \noexpand\csname ltr@len@#2\noexpand\endcsname{\the\@tempdima}% + }% + \@tempa +} +\newcommand*{\setplengthtototalheight}[3][]{% + \begingroup + \settoheight{\@tempdima}{#3}% + \settodepth{\@tempdimb}{#3}% + \addtolength{\@tempdima}{\@tempdimb}% + \setlength{\@tempdima}{#1\@tempdima}% + \edef\@tempa{\noexpand\endgroup + \noexpand\expandafter\noexpand\renewcommand\noexpand\expandafter*% + \noexpand\csname ltr@len@#2\noexpand\endcsname{\the\@tempdima}% + }% + \@tempa +} % \end{macrocode} % \end{macro} % \end{macro} +% \end{macro} +% \end{macro} % % \begin{macro}{\addtolengthplength} % \changes{v2.8q}{2001/10/06}{Neu}^^A @@ -247,6 +322,14 @@ % \end{macro} % \end{macro} % +% \begin{macro}{\addtoplength} +% \changes{v3.26}{2018/04/26}{Neu} +% Anweisung auf Anwenderebene verfügbar. +% \begin{macrocode} +\newcommand*{\addtoplength}{\@addtoplength} +% \end{macrocode} +% \end{macro} +% % \iffalse %</body> % \fi |