diff options
author | Karl Berry <karl@freefriends.org> | 2020-08-07 21:37:39 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2020-08-07 21:37:39 +0000 |
commit | d6a7e0e5536b4924edec286797ed38021b94509d (patch) | |
tree | 04407161e6a03a0698d3029183d3959a762a0bb2 /Master/texmf-dist/source/latex/l3kernel/l3names.dtx | |
parent | 5a14bab00bc59f46bdb92dcfc08ca2d331e3c3ec (diff) |
l3 (7aug20)
git-svn-id: svn://tug.org/texlive/trunk@56067 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/l3kernel/l3names.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/l3kernel/l3names.dtx | 45 |
1 files changed, 14 insertions, 31 deletions
diff --git a/Master/texmf-dist/source/latex/l3kernel/l3names.dtx b/Master/texmf-dist/source/latex/l3kernel/l3names.dtx index 03a9f2ae2b9..d070bb29528 100644 --- a/Master/texmf-dist/source/latex/l3kernel/l3names.dtx +++ b/Master/texmf-dist/source/latex/l3kernel/l3names.dtx @@ -43,7 +43,7 @@ % }^^A % } % -% \date{Released 2020-07-17} +% \date{Released 2020-08-07} % % \maketitle % @@ -56,7 +56,6 @@ % \begin{itemize} % \item defines new names for all \TeX{} primitives; % \item switches to the category code r{\'e}gime for programming; -% \item provides support settings for building the code as a \TeX{} format. % \end{itemize} % % This module is entirely dedicated to primitives, which should not be @@ -76,7 +75,7 @@ % \section{\pkg{l3names} implementation} % % \begin{macrocode} -%<*initex|package> +%<*package> % \end{macrocode} % % The prefix here is \texttt{kernel}. A few places need |@@| to be left @@ -86,8 +85,7 @@ % \end{macrocode} % % The code here simply renames all of the primitives to new, internal, -% names. In format mode, it also deletes all of the existing names (although -% some do come back later). +% names. % % The \tn{let} primitive is renamed by hand first as it is essential for % the entire process to follow. This also uses \tn{global}, as that way @@ -104,23 +102,17 @@ % \end{macrocode} % % \begin{macro}{\@@_primitive:NN} -% A temporary function to actually do the renaming. This also allows the -% original names to be removed in format mode. +% A temporary function to actually do the renaming. % \begin{macrocode} \long \def \@@_primitive:NN #1#2 - { - \tex_global:D \tex_let:D #2 #1 -%<*initex> - \tex_global:D \tex_let:D #1 \tex_undefined:D -%</initex> - } + { \tex_global:D \tex_let:D #2 #1 } % \end{macrocode} %\end{macro} % % To allow extracting \enquote{just the names}, a bit of DocStrip fiddling. % \begin{macrocode} -%</initex|package> -%<*initex|names|package> +%</package> +%<*names|package> % \end{macrocode} % % In the current incarnation of this package, all \TeX{} primitives @@ -675,8 +667,8 @@ % for \LuaTeX{} tracking all of that would be hard. Instead, we now check that % we only save primitives if they actually exist. % \begin{macrocode} -%</initex|names|package> -%<*initex|package> +%</names|package> +%<*package> \tex_long:D \tex_def:D \use_ii:nn #1#2 {#2} \tex_long:D \tex_def:D \use_none:n #1 { } \tex_long:D \tex_def:D \@@_primitive:NN #1#2 @@ -685,12 +677,9 @@ \tex_expandafter:D \use_ii:nn \tex_fi:D \use_none:n { \tex_global:D \tex_let:D #2 #1 } -%<*initex> - \tex_global:D \tex_let:D #1 \tex_undefined:D -%</initex> } -%</initex|package> -%<*initex|names|package> +%</package> +%<*names|package> % \end{macrocode} % \XeTeX{}-specific primitives. Note that \XeTeX{}'s \tn{strcmp} is % handled earlier and is \enquote{rolled up} into \tn{pdfstrcmp}. @@ -1197,8 +1186,8 @@ % \end{macrocode} % End of the \enquote{just the names} part of the source. % \begin{macrocode} -%</initex|names|package> -%<*initex|package> +%</names|package> +%<*package> % \end{macrocode} % % The job is done: close the group (using the primitive renamed!). @@ -1212,7 +1201,6 @@ % At the beginning of the \LaTeXe{} format, the primitives \tn{end} and % \tn{input} are renamed, and only later on the other ones. % \begin{macrocode} -%<*package> \tex_ifdefined:D \@@@@end \tex_let:D \tex_end:D \@@@@end \tex_let:D \tex_input:D \@@@@input @@ -1368,7 +1356,6 @@ \tex_let:D \tex_mapfile:D \tex_undefined:D \tex_let:D \tex_mapline:D \tex_undefined:D \tex_fi:D -%</package> % \end{macrocode} % A few packages do unfortunate things to date-related primitives. % \begin{macrocode} @@ -1403,13 +1390,11 @@ % confusing. Removing them means that \cs{tex_pdftexversion:D} is % a marker for \pdfTeX{} alone: useful in engine-dependent code later. % \begin{macrocode} -%<*initex|package> \tex_ifdefined:D \tex_luatexversion:D \tex_let:D \tex_pdftexbanner:D \tex_undefined:D \tex_let:D \tex_pdftexrevision:D \tex_undefined:D \tex_let:D \tex_pdftexversion:D \tex_undefined:D \tex_fi:D -%</initex|package> % \end{macrocode} % % For \ConTeXt{}, two tests are needed. Both Mark~II and Mark~IV move several @@ -1417,7 +1402,6 @@ % as a marker. For Mark~IV, a few more primitives are moved: they are % implemented using some Lua code in the current \ConTeXt{}. % \begin{macrocode} -%<*package> \tex_ifdefined:D \normalend \tex_let:D \tex_end:D \normalend \tex_let:D \tex_everyjob:D \normaleveryjob @@ -1444,11 +1428,10 @@ \tex_let:D \tex_middle:D \normalmiddle \tex_let:D \tex_right:D \normalright \tex_fi:D -%</package> % \end{macrocode} % % \begin{macrocode} -%</initex|package> +%</package> % \end{macrocode} % % \end{implementation} |