summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/l3kernel/l3token.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/l3kernel/l3token.dtx')
-rw-r--r--Master/texmf-dist/source/latex/l3kernel/l3token.dtx30
1 files changed, 16 insertions, 14 deletions
diff --git a/Master/texmf-dist/source/latex/l3kernel/l3token.dtx b/Master/texmf-dist/source/latex/l3kernel/l3token.dtx
index 31d4d7fcde9..3db1f706c84 100644
--- a/Master/texmf-dist/source/latex/l3kernel/l3token.dtx
+++ b/Master/texmf-dist/source/latex/l3kernel/l3token.dtx
@@ -43,7 +43,7 @@
% }^^A
% }
%
-% \date{Released 2021-02-18}
+% \date{Released 2021-05-07}
%
% \maketitle
%
@@ -74,7 +74,7 @@
% tokens of different shapes with the same meaning, but not the
% converse.
%
-% For instance, \cs{if:w}, \cs{if_charcode:w}, and \cs{tex_if:D} are
+% For instance, \cs{if:w}, \cs{if_charcode:w}, and \cs[no-index]{tex_if:D} are
% three names for the same internal operation of \TeX{}, namely the
% primitive testing the next two characters for equality of their
% character code. They have the same meaning hence behave identically
@@ -146,6 +146,8 @@
% and other values raise an error. The \meta{charcode} may be any one valid
% for the engine in use.
% Active characters cannot be generated in older versions of \XeTeX{}.
+% Another way to build token lists with unusual category codes is
+% \cs{regex_replace:nnN} |{.*}| \Arg{replacement} \meta{tl~var}.
% \begin{texnote}
% Exactly two expansions are needed to produce the character.
% \end{texnote}
@@ -421,7 +423,7 @@
%
% \section{Generic tokens}
%
-% \begin{variable}
+% \begin{variable}[module = token]
% {
% \c_group_begin_token,
% \c_group_end_token,
@@ -1164,7 +1166,7 @@
% conditional is encountered before the conditional is evaluated.
% \item Expanding \tn{noexpand} \meta{token} (when the \meta{token} is
% expandable) results in an internal token, displayed (temporarily)
-% as \cs{notexpanded: \meta{token}}, whose shape coincides with the
+% as \cs[module = {}]{notexpanded: \meta{token}}, whose shape coincides with the
% \meta{token} and whose meaning differs from \tn{relax}.
% \item An |\outer endtemplate:| can be encountered when peeking ahead
% at the next token; this expands to another internal token,
@@ -1570,9 +1572,9 @@
{
\if_int_compare:w #2 = 10 \exp_stop_f:
\if_int_compare:w #1 = 0 \exp_stop_f:
- \__kernel_msg_expandable_error:nn { kernel } { char-null-space }
+ \__kernel_msg_expandable_error:nn { char } { null-space }
\else:
- \__kernel_msg_expandable_error:nn { kernel } { char-space }
+ \__kernel_msg_expandable_error:nn { char } { space }
\fi:
\else:
\if_int_odd:w 0
@@ -1580,14 +1582,14 @@
\if_int_compare:w #2 = 5 \exp_stop_f: 1 \fi:
\if_int_compare:w #2 = 9 \exp_stop_f: 1 \fi:
\if_int_compare:w #2 > 13 \exp_stop_f: 1 \fi: \exp_stop_f:
- \__kernel_msg_expandable_error:nn { kernel }
- { char-invalid-catcode }
+ \__kernel_msg_expandable_error:nn { char }
+ { invalid-catcode }
\else:
\if_int_odd:w 0
\if_int_compare:w #1 < 0 \exp_stop_f: 1 \fi:
\if_int_compare:w #1 > \c_max_char_int 1 \fi: \exp_stop_f:
- \__kernel_msg_expandable_error:nn { kernel }
- { char-out-of-range }
+ \__kernel_msg_expandable_error:nn { char }
+ { out-of-range }
\else:
\@@_generate_aux:nnw {#1} {#2}
\fi:
@@ -1630,7 +1632,7 @@
{
#3
\if_int_compare:w #2 = 13 \exp_stop_f:
- \__kernel_msg_expandable_error:nn { kernel } { char-active }
+ \__kernel_msg_expandable_error:nn { char } { active }
\else:
\@@_generate_auxii:nnw {#1} {#2}
\fi:
@@ -1681,10 +1683,10 @@
\tl_put_right:Nn \l_@@_tmp_tl { \or: ^^@ }
% \end{macrocode}
% Convert the above temporary list into a series of constant token
-% lists, one for each character code, using \tn{tex_lowercase:D} to
+% lists, one for each character code, using \cs{tex_lowercase:D} to
% convert |^^@| in each case. The \texttt{x}-type expansion ensures
-% that \tn{tex_lowercase:D} receives the contents of the token list.
-% |^^L| is awkward hence this is done in three parts: up to |^^L|,
+% that \cs{tex_lowercase:D} receives the contents of the token list.
+% |^^L| is awkward hence this is done in three parts: up to |^^L|,
% |^^L| itslef and above |^L|. Notice that at this stage |^^@| is active.
% \begin{macrocode}
\cs_set_protected:Npn \@@_tmp:n #1