summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/l3kernel/l3expan.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/l3kernel/l3expan.dtx')
-rw-r--r--Master/texmf-dist/source/latex/l3kernel/l3expan.dtx23
1 files changed, 12 insertions, 11 deletions
diff --git a/Master/texmf-dist/source/latex/l3kernel/l3expan.dtx b/Master/texmf-dist/source/latex/l3kernel/l3expan.dtx
index d912433ee8d..739acab95e5 100644
--- a/Master/texmf-dist/source/latex/l3kernel/l3expan.dtx
+++ b/Master/texmf-dist/source/latex/l3kernel/l3expan.dtx
@@ -35,7 +35,7 @@
%
%<*driver|package>
\RequirePackage{l3bootstrap}
-\GetIdInfo$Id: l3expan.dtx 4149 2012-08-28 10:50:40Z bruno $
+\GetIdInfo$Id: l3expan.dtx 4458 2013-02-03 15:49:37Z bruno $
{L3 Argument expansion}
%</driver|package>
%<*driver>
@@ -78,6 +78,7 @@
% variants.
%
% \section{Defining new variants}
+% \label{sec:defining-variants}
%
% The definition of variant forms for base functions may be necessary
% when writing new functions or when applying a kernel function in a
@@ -193,22 +194,22 @@
% specific expansion steps are needed, such as when using delimited
% arguments, should the lower-level functions with |o| specifiers be employed.
%
-% The |f| type is so special that it deserves an example.
-% Let's pretend we want to set |\aaa| equal to the control sequence
-% stemming from turning |b \l_tmpa_tl b| into a control
-% sequence. Furthermore we want to store the execution of it in a
+% The |f| type is so special that it deserves an example. Let's pretend
+% we want to set the control sequence whose name is given by
+% |b \l_tmpa_tl b| equal to the list of tokens |\aaa a|. Furthermore we
+% want to store the execution of it in a
% \meta{tl~var}. In this example we assume |\l_tmpa_tl| contains
% the text string |lur|. The straightforward approach is
% \begin{quote}
-% |\tl_set:No \l_tmpb_tl { \cs_set_eq:Nc \aaa { b \l_tmpa_tl b } }|
+% |\tl_set:No \l_tmpb_tl { \tl_set:cn { b \l_tmpa_tl b } { \aaa a } }|
% \end{quote}
% Unfortunately this only puts
-% |\exp_args:NNc \cs_set_eq:NN \aaa {b \l_tmpa_tl b}| into |\l_tmpb_tl|
-% and not |\cs_set_eq:NN \aaa = \blurb| as we probably wanted. Using
-% \cs{tl_set:Nx} is not an option as that will die horribly. Instead
-% we can do a
+% |\exp_args:Nc \tl_set:Nn {b \l_tmpa_tl b} { \aaa a }| into
+% |\l_tmpb_tl| and not |\tl_set:Nn \blurb { \aaa a }| as we probably
+% wanted. Using \cs{tl_set:Nx} is not an option as that will die
+% horribly. Instead we can do a
% \begin{quote}
-% |\tl_set:Nf \l_tmpb_tl { \cs_set_eq:Nc \aaa { b \l_tmpa_tl b } }|
+% |\tl_set:Nf \l_tmpb_tl { \tl_set:cn { b \l_tmpa_tl b } { \aaa a } }|
% \end{quote}
% which puts the desired result in |\l_tmpb_tl|. It requires
% \cs{tl_set:Nf} to be defined as