LATEX-L Archives

Mailing list for the LaTeX3 project


Options: Use Classic View

Use Monospaced Font
Show Text Part by Default
Condense Mail Headers

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

Print Reply
Mime-Version: 1.0 (Apple Message framework v928.1)
Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes
Date: Mon, 15 Sep 2008 15:54:15 +0930
Reply-To: Mailing list for the LaTeX3 project <[log in to unmask]>
From: Will Robertson <[log in to unmask]>
In-Reply-To: <[log in to unmask]>
Content-Transfer-Encoding: 7bit
Sender: Mailing list for the LaTeX3 project <[log in to unmask]>
Parts/Attachments: text/plain (20 lines)
On 15/09/2008, at 3:42 PM, Joseph Wright wrote:

> So my attempts to create a simple hook:
> \def:cpx {<key>} <arg spec.> {\exp_not:N\prehook <code>  
> \exp_not:posthook}
> fail when the added code contains #1, #2, ... My current approach at
> least does not give a TeX error under these circumstances (I've  
> added a
> custom one to warn of a problem).
> I'm sure I'm mossing something, but my knowledge of TeX's approach to
> doubling # characters, etc., is clearly insufficient to find it.

Maybe as a pre-cursor to this work we should port patchcmd to expl3?  
Even that package only handles "plain" argument specs, though.