From 9ed2be15b632f76247ead6f36a0cbc913057fa48 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Fri, 22 May 2020 03:00:58 +0000 Subject: CTAN sync 202005220300 --- macros/luatex/optex/base/colors.opm | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'macros/luatex/optex/base/colors.opm') diff --git a/macros/luatex/optex/base/colors.opm b/macros/luatex/optex/base/colors.opm index 2745e0fc51..eb57d0d9a8 100644 --- a/macros/luatex/optex/base/colors.opm +++ b/macros/luatex/optex/base/colors.opm @@ -74,15 +74,16 @@ \_doc ----------------------------- The \`\_setcolor` macro redefines empty `\_ensureblack` macro (used in - output routine for headres and footers) to `\_ensureblackA` which sets - Black at the start of its parameter and retunrs to the current color at the - end of its parameter. The current color - is saved into `\_currentcolor` macro and colorstack is pushed. + output routine for headers and footers) to `\_ensureblackA` which sets + Black at the start of its parameter and returns to the current color at the + end of its parameter. + + The current color is saved into `\_currentcolor` macro and colorstack is pushed. Finally, the `\_colorstackpop` is initialized by `\aftergroup` if `\localcolor` is declared. You can save current color to your macro by `\let\yourmacro=\_currentcolor` - and you can return to this color by the command `\_setcmykcolor\yourmacro`. + and you can return to this color by the command `\_setcolor\yourmacro`. \_cod ----------------------------- \_protected\_def \_setcolor #1{\_global\_let\_ensureblack=\_ensureblackA @@ -111,7 +112,7 @@ can follow on next pages and their colors are independent on colors used in the main page-body. The \`\_openfnotestack` is defined as \`\_openfnotestackA` when the \^`\_setcolor` is used first. - The \`\_fnotestack` is initializedin in `\everyjob` because the + The \`\_fnotestack` is initialized in in `\everyjob` because the initialization is not saved to the format. \_cod ----------------------------- -- cgit v1.2.3