diff options
Diffstat (limited to 'Master/texmf-dist/source/latex/koma-script/doc/english/common-oddorevenpage.tex')
-rw-r--r-- | Master/texmf-dist/source/latex/koma-script/doc/english/common-oddorevenpage.tex | 45 |
1 files changed, 32 insertions, 13 deletions
diff --git a/Master/texmf-dist/source/latex/koma-script/doc/english/common-oddorevenpage.tex b/Master/texmf-dist/source/latex/koma-script/doc/english/common-oddorevenpage.tex index 8617a74e525..431d9f964b7 100644 --- a/Master/texmf-dist/source/latex/koma-script/doc/english/common-oddorevenpage.tex +++ b/Master/texmf-dist/source/latex/koma-script/doc/english/common-oddorevenpage.tex @@ -46,12 +46,12 @@ % ====================================================================== \KOMAProvidesFile{common-oddorevenpage.tex} - [$Date: 2019-10-10 10:04:30 +0200 (Thu, 10 Oct 2019) $ + [$Date: 2019-11-19 12:56:28 +0100 (Tue, 19 Nov 2019) $ KOMA-Script guide (common paragraph: Detection of Odd and Even Pages)] \translator{Markus Kohm\and Krickette Murabayashi\and Karl Hagen} -% Date of the translated German file: 2019-10-10 +% Date of the translated German file: 2019-11-19 \section{Detecting Odd and Even Pages} \seclabel{oddOrEven}% @@ -91,35 +91,54 @@ have an even page number, and right pages always have an odd page number. % \begin{Declaration} - \Macro{ifthispageodd}\Parameter{true part}\Parameter{false part} + \Macro{Ifthispageodd}\Parameter{true part}\Parameter{false part} \end{Declaration}% -If you want to determine whether text appears on an even or odd page, -\KOMAScript{} provides the \Macro {ifthispageodd} command. The \PName{true +If\IfThisCommonLabelBase{maincls}{% + \ChangedAt{v3.28}{\Class{scrbook}\and \Class{scrreprt}\and + \Class{scrartcl}}% +}{% + \IfThisCommonLabelBase{scrlttr2}{% + \ChangedAt{v3.28}{\Class{scrlttr2}}% + }{% + \IfThisCommonLabelBase{scrextend}{% + \ChangedAt{v3.28}{\Package{scrextend}}% + }{}% + }% +} % +you want to determine whether text appears on an even or odd page, +\KOMAScript{} provides the \Macro{Ifthispageodd} command. The \PName{true part} argument is executed only if you are currently on an odd page. Otherwise the \PName{false part} argument is executed. - +% +\IfThisCommonLabelBase{scrextend}{\iffalse}{\csname iftrue\endcsname}% \begin{Example} Suppose you simply want to show whether a text will be placed onto an - even or odd page. You may achieve that using + even or odd page. You may achieve that + using{\phantomsection\xmpllabel{Ifthispageodd}} \begin{lstcode} - This page has an \ifthispageodd{odd}{even} + This page has an \Ifthispageodd{odd}{even} page number. \end{lstcode} This results in the output \begin{quote} - This page has an \ifthispageodd{odd}{even} page number. + This page has an \Ifthispageodd{odd}{even} page number. \end{quote} \end{Example} +\fi -Because the \Macro{ifthispageodd} command uses a mechanism that is very +Because the \Macro{Ifthispageodd} command uses a mechanism that is very similar to a label and a reference to it, at least two {\LaTeX} runs are required after each change to the text. Only then will the decision be correct. In the first run, a heuristic is used to make the initial choice. -\iffree{}{In \autoref{sec:maincls-experts.addInfos}, -\DescPageRef{maincls-experts.cmd.ifthispageodd}, advanced users can find more +In \autoref{sec:maincls-experts.addInfos}, +\DescPageRef{maincls-experts.cmd.Ifthispageodd}, advanced users can find more information about the problems of detecting left and right pages, or even and -odd page numbers.}% +odd page numbers.% +\IfThisCommonLabelBase{scrextend}{% + An example for \Macro{Ifthispageodd} is shown on + \PageRefxmpl{maincls.Ifthispageodd} in \autoref{sec:maincls.oddOrEven}.% +}{}% % \EndIndexGroup % |