[latex3-commits] [git/LaTeX3-latex3-latex3] master: In xparse, add reference to environ package and clarify nesting [ci skip] (d12e5cf)

Joseph Wright joseph.wright at morningstar2.co.uk
Mon Mar 4 14:54:38 CET 2019


Repository : https://github.com/latex3/latex3
On branch  : master
Link       : https://github.com/latex3/latex3/commit/d12e5cfa2664d2cb1970a649a71b004c5fee587f

>---------------------------------------------------------------

commit d12e5cfa2664d2cb1970a649a71b004c5fee587f
Author: Bruno Le Floch <bruno at le-floch.fr>
Date:   Wed Feb 27 00:51:53 2019 +0100

    In xparse, add reference to environ package and clarify nesting [ci skip]


>---------------------------------------------------------------

d12e5cfa2664d2cb1970a649a71b004c5fee587f
 l3packages/xparse/xparse.dtx |   13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/l3packages/xparse/xparse.dtx b/l3packages/xparse/xparse.dtx
index c5781c9..d6ff1c8 100644
--- a/l3packages/xparse/xparse.dtx
+++ b/l3packages/xparse/xparse.dtx
@@ -398,7 +398,13 @@
 % useful to have the body as a standard argument.
 %
 % This is achieved in \pkg{xparse} by ending the argument specification
-% with \texttt{b}\marg{code}.  For instance
+% with \texttt{b}\marg{code}. The approach taken in \pkg{xparse} is
+% different from the earlier packages \pkg{environ} or \pkg{newenviron}:
+% the body of the environment is provided to the code part as a usual
+% argument |#1|, |#2| etc.\@, rather than stored in a macro such as
+% \cs[no-index]{BODY}.
+%
+% For instance
 % \begin{verbatim}
 %   \NewDocumentEnvironment { twice }
 %     { O{\ttfamily} +b{} }
@@ -429,6 +435,11 @@
 % \meta{start code}.  Nevertheless this (empty) \meta{end code} must be
 % provided.
 %
+% Environments that use this feature can be nested.
+%
+% Users should note that this feature is somewhat experimental. Feedback
+% is therefore very welcome on the \texttt{LaTeX-L} mailing list.
+%
 % \subsection{Backwards Compatibility}
 % \label{sec:backwards}
 %





More information about the latex3-commits mailing list