LATEX-L Archives

Mailing list for the LaTeX3 project


Options: Use Classic View

Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Topic: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Joseph Wright <[log in to unmask]>
Thu, 11 Sep 2008 14:10:20 +0100
text/plain (17 lines)
Another (sort of) related question.  I'm try to add something to an
existing delimited macro.  Given an initial macro:

\def:Npn \my-macro #1\q_stop {Stuff~here}

I can do:

\toks_set:Nn \l_tmpa_toks \exp_after:NN \exp_after:NN \exp_after:NN
{\cs:w my-macro \cs_end: ##1 \q_stop}

\def:cpn {my-macro} #1\q_stop {\toks_use:N\l_tmpa_toks Added~stuff}

to add things on.  However, I again wonder if I'm missing a better way
(I tried things with \exp_not:Nf and so on, but failed).
Joseph Wright