Received: from mail.proteosys.com ([213.139.130.197]) by nummer-3.proteosys with Microsoft SMTPSVC(6.0.3790.3959); Mon, 15 Sep 2008 14:40:36 +0200 Received: by mail.proteosys.com (8.13.8/8.13.8) with ESMTP id m8FCeS77021937 for ; Mon, 15 Sep 2008 14:40:29 +0200 Received: from listserv.uni-heidelberg.de (listserv.uni-heidelberg.de [129.206.100.94]) by relay.uni-heidelberg.de (8.14.1/8.14.1) with ESMTP id m8FCXHu0013583 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 15 Sep 2008 14:33:17 +0200 Received: from listserv.uni-heidelberg.de (localhost.localdomain [127.0.0.1]) by listserv.uni-heidelberg.de (8.13.1/8.13.1) with ESMTP id m8FBiQ1r006237; Mon, 15 Sep 2008 14:33:05 +0200 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 15.5) with spool id 35850 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Mon, 15 Sep 2008 14:33:05 +0200 Received: from relay2.uni-heidelberg.de (relay2.uni-heidelberg.de [129.206.210.211]) by listserv.uni-heidelberg.de (8.13.1/8.13.1) with ESMTP id m8FCX5HG013639 for ; Mon, 15 Sep 2008 14:33:05 +0200 Received: from mailgate5.uea.ac.uk (mailgate5.uea.ac.uk [139.222.130.185]) by relay2.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id m8FCWsTt021806 for ; Mon, 15 Sep 2008 14:32:57 +0200 Received: from [139.222.128.187] (helo=ueams04.uea.ac.uk) by mailgate5.uea.ac.uk with esmtp (Exim 4.50) id 1KfDG8-0001xs-QU for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Mon, 15 Sep 2008 13:32:52 +0100 Received: from [139.222.114.14] by ueams04.uea.ac.uk with esmtp (Exim 4.69) (envelope-from ) id 1KfDG8-0001Kc-Nb for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Mon, 15 Sep 2008 13:32:52 +0100 User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 References: <48CC30E3.9020308@morningstar2.co.uk> <48CD7104.4000103@residenset.net> <48CDFCBB.8050509@morningstar2.co.uk> <5F3DB0EC-4917-4354-8D90-2237C6D4F685@gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Message-ID: <48CE55F1.9030804@morningstar2.co.uk> Date: Mon, 15 Sep 2008 13:32:49 +0100 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: Joseph Wright Subject: Re: Suggestions sought To: LATEX-L@LISTSERV.UNI-HEIDELBERG.DE In-Reply-To: <5F3DB0EC-4917-4354-8D90-2237C6D4F685@gmail.com> Precedence: list List-Help: , List-Unsubscribe: List-Subscribe: List-Owner: List-Archive: X-ProteoSys-SPAM-Score: -2.599 () BAYES_00 X-Scanned-By: MIMEDefang 2.64 on 213.139.130.197 Return-Path: owner-latex-l@LISTSERV.UNI-HEIDELBERG.DE X-OriginalArrivalTime: 15 Sep 2008 12:40:36.0301 (UTC) FILETIME=[406527D0:01C91730] Status: R X-Status: X-Keywords: X-UID: 5321 Will Robertson wrote: > On 15/09/2008, at 3:42 PM, Joseph Wright wrote: > >> So my attempts to create a simple hook: >> >> \def:cpx {} {\exp_not:N\prehook >> \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. > > W That is a somewhat different issue, I think. As I said, the problem here is my lack of knowledge of how to get the "hooks" to reproduce exactly the input, including the "#1", etc., signs. Of course, \patchcmd would be nice for other things (as I've already said). -- Joseph Wright