summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2010-01-15 00:22:17 +0000
committerKarl Berry <karl@freefriends.org>2010-01-15 00:22:17 +0000
commitd2c9abc412c2f0c16609b23cafea3f64c43089d0 (patch)
tree4ab083429197fe57621940a2f454748214cc3146 /Master/texmf-dist/source
parent9a67e99a67abb5407d276cea4024eaa8c0ee23f9 (diff)
expl3 1766 (12jan10)
git-svn-id: svn://tug.org/texlive/trunk@16718 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source')
-rw-r--r--Master/texmf-dist/source/latex/expl3/l3doc.dtx4
-rw-r--r--Master/texmf-dist/source/latex/expl3/l3keys.dtx72
2 files changed, 71 insertions, 5 deletions
diff --git a/Master/texmf-dist/source/latex/expl3/l3doc.dtx b/Master/texmf-dist/source/latex/expl3/l3doc.dtx
index 6360be85f54..c78b348da4a 100644
--- a/Master/texmf-dist/source/latex/expl3/l3doc.dtx
+++ b/Master/texmf-dist/source/latex/expl3/l3doc.dtx
@@ -77,7 +77,7 @@ Do not distribute a modified version of this file.
% \end{macrocode}
%
%<*driver|class>
-\GetIdInfo$Id: l3doc.dtx 1755 2009-12-23 07:07:48Z joseph $
+\GetIdInfo$Id: l3doc.dtx 1762 2010-01-09 10:05:37Z joseph $
{L3 Experimental documentation class}
%</driver|class>
%
@@ -926,7 +926,7 @@ Do not distribute a modified version of this file.
% \end{arguments}
% \begin{macrocode}
\cs_set_nopar:Npn \doc_macro_single #1 {
-
+ \tl_set:Nx \saved@macroname { \token_to_str:N #1 }
\topsep\MacroTopsep
\trivlist
\cs_set_nopar:Npn \makelabel ##1 { \llap{##1} }
diff --git a/Master/texmf-dist/source/latex/expl3/l3keys.dtx b/Master/texmf-dist/source/latex/expl3/l3keys.dtx
index a33a1ff1c28..e67d54223de 100644
--- a/Master/texmf-dist/source/latex/expl3/l3keys.dtx
+++ b/Master/texmf-dist/source/latex/expl3/l3keys.dtx
@@ -35,7 +35,7 @@
\RequirePackage{l3names}
%</driver|package>
%\fi
-\GetIdInfo$Id: l3keys.dtx 1748 2009-11-18 08:48:04Z joseph $
+\GetIdInfo$Id: l3keys.dtx 1766 2010-01-12 08:59:24Z joseph $
{L3 Experimental key-value support}
%\iffalse
%<*driver>
@@ -238,7 +238,9 @@
%
%\begin{function}{
% .dim_set:N |
+% .dim_set:c |
% .dim_gset:N |
+% .dim_gset:c |
%}
% \begin{syntax}
% <key> .dim_set:N = <dimension>
@@ -259,7 +261,9 @@
%
%\begin{function}{
% .int_set:N |
+% .int_set:c |
% .int_gset:N |
+% .int_gset:c |
%}
% \begin{syntax}
% <key> .int_set:N = <integer>
@@ -282,7 +286,9 @@
%
%\begin{function}{
% .skip_set:N |
+% .skip_set:c |
% .skip_gset:N |
+% .skip_gset:c |
%}
% \begin{syntax}
% <key> .skip_set:N = <skip>
@@ -293,9 +299,13 @@
%
%\begin{function}{
% .tl_set:N |
+% .tl_set:c |
% .tl_set_x:N |
+% .tl_set_x:c |
% .tl_gset:N |
+% .tl_gset:c |
% .tl_gset_x:N |
+% .tl_gset_x:c |
%}
% \begin{syntax}
% <key> .tl_set:N = <token list variable>
@@ -621,9 +631,12 @@
% Sets <key> to have <requirement> concerning <value>.
%\end{function}
%
-%\begin{function}{\keys_variable_set:NnNN}
+%\begin{function}{
+% \keys_variable_set:NnNN |
+% \keys_variable_set:cnNN |
+%}
% \begin{syntax}
-% "\keys_variable_set:NN" <var> <type> <scope> <expansion>
+% "\keys_variable_set:NnNN" <var> <type> <scope> <expansion>
% \end{syntax}
% Sets <key> to assign <value> to <variable>. The <scope> (blank
% for local, \texttt{g} for global) and <type> (\texttt{tl},
@@ -1242,6 +1255,7 @@
%\end{macro}
%
%\begin{macro}{\keys_variable_set:NnNN}
+%\begin{macro}{\keys_variable_set:cnNN}
% Setting a variable takes the type and scope separately so that
% it is easy to make a new variable if needed.
% \begin{macrocode}
@@ -1253,8 +1267,10 @@
\exp_not:c { #2 _ #3 set:N #4 } \exp_not:N #1 {##1}
}
}
+\cs_generate_variant:Nn \keys_variable_set:NnNN { c }
% \end{macrocode}
%\end{macro}
+%\end{macro}
%
%\subsubsection{Properties}
%
@@ -1327,18 +1343,28 @@
%\end{macro}
%
%\begin{macro}{.dim_set:N}
+%\begin{macro}{.dim_set:c}
%\begin{macro}{.dim_gset:N}
+%\begin{macro}{.dim_gset:c}
% Setting a variable is very easy: just pass the data along.
% \begin{macrocode}
\keys_property_new_arg:nn { .dim_set:N } {
\keys_variable_set:NnNN #1 { dim } { } n
}
+\keys_property_new_arg:nn { .dim_set:c } {
+ \keys_variable_set:cnNN {#1} { dim } { } n
+}
\keys_property_new_arg:nn { .dim_gset:N } {
\keys_variable_set:NnNN #1 { dim } g n
}
+\keys_property_new_arg:nn { .dim_gset:c } {
+ \keys_variable_set:cnNN {#1} { dim } g n
+}
% \end{macrocode}
%\end{macro}
%\end{macro}
+%\end{macro}
+%\end{macro}
%
%\begin{macro}{.generate_choices:n}
% Making choices is easy.
@@ -1350,18 +1376,28 @@
%\end{macro}
%
%\begin{macro}{.int_set:N}
+%\begin{macro}{.int_set:c}
%\begin{macro}{.int_gset:N}
+%\begin{macro}{.int_gset:c}
% Setting a variable is very easy: just pass the data along.
% \begin{macrocode}
\keys_property_new_arg:nn { .int_set:N } {
\keys_variable_set:NnNN #1 { int } { } n
}
+\keys_property_new_arg:nn { .int_set:c } {
+ \keys_variable_set:cnNN {#1} { int } { } n
+}
\keys_property_new_arg:nn { .int_gset:N } {
\keys_variable_set:NnNN #1 { int } g n
}
+\keys_property_new_arg:nn { .int_gset:c } {
+ \keys_variable_set:cnNN {#1} { int } g n
+}
% \end{macrocode}
%\end{macro}
%\end{macro}
+%\end{macro}
+%\end{macro}
%
%\begin{macro}{.meta:n}
%\begin{macro}{.meta:x}
@@ -1378,42 +1414,72 @@
%\end{macro}
%
%\begin{macro}{.skip_set:N}
+%\begin{macro}{.skip_set:c}
%\begin{macro}{.skip_gset:N}
+%\begin{macro}{.skip_gset:c}
% Setting a variable is very easy: just pass the data along.
% \begin{macrocode}
\keys_property_new_arg:nn { .skip_set:N } {
\keys_variable_set:NnNN #1 { skip } { } n
}
+\keys_property_new_arg:nn { .skip_set:c } {
+ \keys_variable_set:cnNN {#1} { skip } { } n
+}
\keys_property_new_arg:nn { .skip_gset:N } {
\keys_variable_set:NnNN #1 { skip } g n
}
+\keys_property_new_arg:nn { .skip_gset:c } {
+ \keys_variable_set:cnNN {#1} { skip } g n
+}
% \end{macrocode}
%\end{macro}
%\end{macro}
+%\end{macro}
+%\end{macro}
%
%\begin{macro}{.tl_set:N}
+%\begin{macro}{.tl_set:c}
%\begin{macro}{.tl_set_x:N}
+%\begin{macro}{.tl_set_x:c}
%\begin{macro}{.tl_gset:N}
+%\begin{macro}{.tl_gset:c}
%\begin{macro}{.tl_gset_x:N}
+%\begin{macro}{.tl_gset_x:c}
% Setting a variable is very easy: just pass the data along.
% \begin{macrocode}
\keys_property_new_arg:nn { .tl_set:N } {
\keys_variable_set:NnNN #1 { tl } { } n
}
+\keys_property_new_arg:nn { .tl_set:c } {
+ \keys_variable_set:cnNN {#1} { tl } { } n
+}
\keys_property_new_arg:nn { .tl_set_x:N } {
\keys_variable_set:NnNN #1 { tl } { } x
}
+\keys_property_new_arg:nn { .tl_set_x:c } {
+ \keys_variable_set:cnNN {#1} { tl } { } x
+}
\keys_property_new_arg:nn { .tl_gset:N } {
\keys_variable_set:NnNN #1 { tl } g n
}
+\keys_property_new_arg:nn { .tl_gset:c } {
+ \keys_variable_set:cnNN {#1} { tl } g n
+}
\keys_property_new_arg:nn { .tl_gset_x:N } {
\keys_variable_set:NnNN #1 { tl } g x
}
+\keys_property_new_arg:nn { .tl_gset_x:c } {
+ \keys_variable_set:cnNN {#1} { tl } g x
+}
% \end{macrocode}
%\end{macro}
%\end{macro}
%\end{macro}
%\end{macro}
+%\end{macro}
+%\end{macro}
+%\end{macro}
+%\end{macro}
%
%\begin{macro}{.value_forbidden:}
%\begin{macro}{.value_required:}