diff options
Diffstat (limited to 'Master/texmf-dist/source/latex/koma-script/doc/english/scrlttr2-experts.tex')
-rw-r--r-- | Master/texmf-dist/source/latex/koma-script/doc/english/scrlttr2-experts.tex | 50 |
1 files changed, 48 insertions, 2 deletions
diff --git a/Master/texmf-dist/source/latex/koma-script/doc/english/scrlttr2-experts.tex b/Master/texmf-dist/source/latex/koma-script/doc/english/scrlttr2-experts.tex index ffb397b6d27..722183a7bd2 100644 --- a/Master/texmf-dist/source/latex/koma-script/doc/english/scrlttr2-experts.tex +++ b/Master/texmf-dist/source/latex/koma-script/doc/english/scrlttr2-experts.tex @@ -46,14 +46,14 @@ % ============================================================================ \KOMAProvidesFile{scrlttr2-experts.tex} - [$Date: 2019-01-15 08:29:44 +0100 (Tue, 15 Jan 2019) $ + [$Date: 2019-10-10 09:50:23 +0200 (Thu, 10 Oct 2019) $ KOMA-Script guide (chapter: scrlttr2 for experts)] \translator{Harald Bongartz\and Georg Grandke\and Raimund Kohl\and Jens-Uwe Morawski\and Stephan Hennig\and Gernot Hassenpflug\and Markus Kohm\and Karl Hagen} -% Date of the translated German file: 2018-07-20 +% Date of the translated German file: 2019-10-09 \chapter{Additional Information about the \Class{scrlttr2} Class and the \Package{scrletter} Package} @@ -400,6 +400,22 @@ exists for package authors.% \begin{Declaration} + \Macro{Ifplength}\Parameter{pseudo-length}% + \Parameter{then-code}\Parameter{else-code} +\end{Declaration} +This\ChangedAt{v3.27}{\Class{scrlttr2}\and \Class{scrletter}} command can be +used to determine whether a \PName{pseudo-length} has been defined. The +\PName{then-code} is executed if the \PName{pseudo-length} is defined and not +\Macro{relax}. Otherwise the \PName{else-code} is executed. + +% Note: In the English manual this information is not \iffree{}{...}! +\BeginIndex{Cmd}{if@plength}% +For reasons of consistency only, the internal command \Macro{if@plength}, +with the identical meaning, exists for the use of package authors.% +\EndIndexGroup + + +\begin{Declaration} \Macro{setplength}% \OParameter{factor}\Parameter{pseudo-length}\Parameter{value}% \Macro{addtoplength}% @@ -1280,6 +1296,36 @@ it is robust enough to be used as the argument of example.% % \EndIndexGroup + + +\begin{Declaration} + \Macro{foreachkomavar}\Parameter{list of variables}\Parameter{command} + \Macro{foreachnonemptykomavar}\Parameter{list of variables}\Parameter{command} + \Macro{foreachemptykomavar}\Parameter{list of variables}\Parameter{command} + \Macro{foreachkomavarifempty}\Parameter{list of variables} + \Parameter{then-code}\Parameter{else-code} +\end{Declaration} +The\ChangedAt{v3.27}{\Class{scrlttr2}\and \Package{scrletter}} +\Macro{foreachkomavar} command executes the specified \PName{command} for each +variable in the comma-separated \PName{list of variables}. The name of each +variable is added as parameter to the \PName{command}.% + +The \Macro{foreachnonemptykomavar} command does the same but only for those +variables that are not empty in sense of +\DescRef{\LabelBase.cmd.ifkomavarempty}. Empty variables in the \PName{list of + variables} are ignored. + +By contrast, the \Macro{foreachemptykomavar} command executes the +\PName{command} only for variables that are empty in sense of +\DescRef{\LabelBase.cmd.ifkomavarempty}. Accordingly, non-empty variables are +ignored. + +The \Macro{foreachkomavarifempty} command is a kind of combination of the two +previously described commands. It executes the \PName{then-command} only for +those variables in the \PName{list of variables} that are empty, and the +\PName{else-command} for the non empty variables. As with \PName{command}, the +name of each variable is added as a parameter in both cases.% +\EndIndexGroup % \EndIndexGroup |