Received: from mx0.gmx.net (mx0.gmx.net [213.165.64.100]) by h1439878.stratoserver.net (8.14.2/8.14.2/Debian-2build1) with SMTP id q16BGuoF007231 for ; Mon, 6 Feb 2012 12:16:57 +0100 Received: (qmail 31578 invoked by alias); 6 Feb 2012 11:16:50 -0000 Delivered-To: GMX delivery to rainer.schoepf@gmx.net Received: (qmail invoked by alias); 06 Feb 2012 11:16:49 -0000 Received: from relay.uni-heidelberg.de (EHLO relay.uni-heidelberg.de) [129.206.100.212] by mx0.gmx.net (mx016) with SMTP; 06 Feb 2012 12:16:49 +0100 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 q16BExBV008511 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 6 Feb 2012 12:15:00 +0100 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 q16AqVsn014479; Mon, 6 Feb 2012 12:14:59 +0100 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 16.0) with spool id 1979113 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Mon, 6 Feb 2012 12:14:59 +0100 Received: from relay.uni-heidelberg.de (relay.uni-heidelberg.de [129.206.100.212]) by listserv.uni-heidelberg.de (8.13.1/8.13.1) with ESMTP id q16BEwdb001586 for ; Mon, 6 Feb 2012 12:14:58 +0100 Received: from neptune.ucc.ie (neptune.ucc.ie [143.239.153.183]) by relay.uni-heidelberg.de (8.14.1/8.14.1) with ESMTP id q16BEjQu008355 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 6 Feb 2012 12:14:49 +0100 Received: from csmvddesktop (csmvddesktop.ucc.ie [143.239.74.97]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: dongen) by neptune.ucc.ie (Postfix) with ESMTPSA id 6525B200AD for ; Mon, 6 Feb 2012 11:15:06 +0000 (GMT) References: <20120203151218.GA30208@csmvddesktop> <4F2BFFA6.1020306@morningstar2.co.uk> <20120203155926.GA30436@csmvddesktop> <20120205160826.GA6939@csmvddesktop> <20120206054259.GB9462@csmvddesktop> <20120206105103.GA10777@csmvddesktop> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Message-ID: <20120206111933.GA11183@csmvddesktop> Date: Mon, 6 Feb 2012 11:19:33 +0000 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: dongen Subject: Re: Mapping Functions Versions for All and Some To: LATEX-L@listserv.uni-heidelberg.de In-Reply-To: <20120206105103.GA10777@csmvddesktop> Precedence: list List-Help: , List-Unsubscribe: List-Subscribe: List-Owner: List-Archive: X-GMX-Antispam: 0 (eXpurgate); Detail=5D7Q89H36p6sJLDpZh614Kjz2nt6F3tH+bcpE119mgZvdcStHPiQafdOfW04CkPpjeXdg iyUamBBFtiNThesmJHqbqXP9ltR0ynnAZRNZsifZTC5ZgVomX4BUJNgfqq/zBYlrD2zaH67POWUL IwKMsT7Eh6U8kvrIFjSJhwlhFRYLcTOLUJjpYKqTVruI+ZD7jR2VaGYl9o=V1; X-Resent-By: Forwarder X-Resent-For: rainer.schoepf@gmx.net X-Resent-To: rainer@rainer-schoepf.de Status: R X-Status: X-Keywords: X-UID: 7027 * dongen [2012-02-06 10:51:03 +0000]: Hi again, I think I found the cause of the problem. The following should explain it. \documentclass{article} % too many includes here. \usepackage{xparse} \usepackage{expl3} \usepackage{l3regex} \usepackage{l3int} \begin{document} \ExplSyntaxOn \tl_new:N \l_name_tl \tl_set:Nn \l_name_tl {f} \tl_new:N \l_expr_tl \tl_set:Nn \l_expr_tl {f{i}} % uncomment and (only) and this works. % \cs_new_nopar:cpx { \l_name_tl :n } #1{} \noindent before:(\tl_use:N \l_expr_tl)\par and:(\tl_use:N \l_name_tl)\par \regex_replace_all:nnN {\b\u{l_name_tl}\b} {\c{\u{l_name_tl}:n}} \l_expr_tl after(\tl_use:N \l_expr_tl) % uncomment and (only) and this won't work. % \cs_new_nopar:cpx { \l_name_tl :n } #1{} \end{document} In the equivalent of my recurrence equations implementation, the macro \f:n is defined _after_ the substitution. The error complains about \f:n not being defined. Defining \f:n _before_ the substitution works fine. In my recurrence equation implementation, defining \f:n _after_ the substitution is possible, but it requires a bit more work. Does \f:n have to be known at substitution time? Regards, Marc