LATEX-L Archives

Mailing list for the LaTeX3 project

LATEX-L@LISTSERV.UNI-HEIDELBERG.DE

Options: Use Forum View

Use Proportional Font
Show HTML Part by Default
Condense Mail Headers

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

Print Reply
Sender:
Mailing list for the LaTeX3 project <[log in to unmask]>
Date:
Thu, 11 Sep 2008 14:10:20 +0100
Reply-To:
Mailing list for the LaTeX3 project <[log in to unmask]>
Subject:
MIME-Version:
1.0
Content-Transfer-Encoding:
7bit
In-Reply-To:
Content-Type:
text/plain; charset=ISO-8859-1
From:
Joseph Wright <[log in to unmask]>
Parts/Attachments:
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

ATOM RSS1 RSS2