[latex3-commits] [git/LaTeX3-latex3-latex2e] cmd: Improve the example (fa376e30)

Joseph Wright joseph.wright at morningstar2.co.uk
Thu Dec 3 08:38:32 CET 2020

Repository : https://github.com/latex3/latex2e
On branch  : cmd
Link       : https://github.com/latex3/latex2e/commit/fa376e3017d01be1a23226c658fb6dacf8a5e781


commit fa376e3017d01be1a23226c658fb6dacf8a5e781
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Thu Dec 3 07:38:32 2020 +0000

    Improve the example


 base/doc/usrguide3.tex | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/base/doc/usrguide3.tex b/base/doc/usrguide3.tex
index d527844d..4c3bde94 100644
--- a/base/doc/usrguide3.tex
+++ b/base/doc/usrguide3.tex
@@ -247,14 +247,15 @@ arguments created using \cs{NewDocumentCommand} may safely be nested. Thus for
 example, following
 \NewDocumentCommand\foo{om}{I grabbed `#1' and `#2'}
 using the command as
-\foo[[some stuff]]{more stuff}
+\foo[\baz[stuff]]{more stuff}
 will print
-I grabbed `[some stuff]' and `more stuff'
+I grabbed `stuff-stuff' and `more stuff'
 This is particularly useful when placing a command with an optional argument
 \emph{inside} the optional argument of a second command.

More information about the latex3-commits mailing list.