From 1764edc3b60a2c9fb210ca74b758f3e8e8a53692 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Tue, 25 May 2021 20:48:22 +0000 Subject: l3kernel (25may21) git-svn-id: svn://tug.org/texlive/trunk@59345 c570f23f-e606-0410-a88d-b1316a301751 --- .../texmf-dist/source/latex/l3kernel/l3color.dtx | 27 +++++++++++++--------- 1 file changed, 16 insertions(+), 11 deletions(-) (limited to 'Master/texmf-dist/source/latex/l3kernel/l3color.dtx') diff --git a/Master/texmf-dist/source/latex/l3kernel/l3color.dtx b/Master/texmf-dist/source/latex/l3kernel/l3color.dtx index 9b72bdc466a..8efa83b1abc 100644 --- a/Master/texmf-dist/source/latex/l3kernel/l3color.dtx +++ b/Master/texmf-dist/source/latex/l3kernel/l3color.dtx @@ -43,7 +43,7 @@ % }^^A % } % -% \date{Released 2021-05-11} +% \date{Released 2021-05-25} % % \maketitle % @@ -235,12 +235,13 @@ % it to be saved to a name. % \end{function} % -% \begin{function}{\color_show:n} +% \begin{function}[added = 2021-05-11]{\color_show:n, \color_log:n} % \begin{syntax} % \cs{color_show:n} \Arg{name} +% \cs{color_log:n} \Arg{name} % \end{syntax} % Displays the color specification stored in the \meta{name} on the -% terminal. +% terminal or log file. % \end{function} % % \section{Selecting colors} @@ -2508,21 +2509,25 @@ % % \subsection{Diagnostics} % -% \begin{macro}{\color_show:n} -% \begin{macro}{\@@_show:n} +% \begin{macro}{\color_show:n, \color_log:n, \@@_show:Nn} +% \begin{macro}[EXP]{\@@_show:n} % Extract the information about a color and format for the user: the approach % is similar to the keys module here. % \begin{macrocode} -\cs_new_protected:Npn \color_show:n #1 +\cs_new_protected:Npn \color_show:n + { \@@_show:Nn \__kernel_msg_show:nnxxxx } +\cs_new_protected:Npn \color_log:n + { \@@_show:Nn \__kernel_msg_log:nnxxxx } +\cs_new_protected:Npn \@@_show:Nn #1#2 { - \__kernel_msg_show:nnxxxx { color } { show } - {#1} + #1 { color } { show } + {#2} { - \@@_if_defined:nT {#1} + \@@_if_defined:nT {#2} { - \exp_args:Nv \@@_show:n { l_@@_named_ #1 _tl } + \exp_args:Nv \@@_show:n { l_@@_named_ #2 _tl } \prop_map_function:cN - { l_@@_named_ #1 _prop } + { l_@@_named_ #2 _prop } \msg_show_item_unbraced:nn } } -- cgit v1.2.3