From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/78150 Path: news.gmane.org!not-for-mail From: Troy Henderson Newsgroups: gmane.comp.tex.context Subject: Nested Macro Date: Thu, 6 Sep 2012 23:38:01 -0500 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0810916628==" X-Trace: ger.gmane.org 1346992696 31237 80.91.229.3 (7 Sep 2012 04:38:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 7 Sep 2012 04:38:16 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Sep 07 06:38:19 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1T9qKe-00073w-Vl for gctc-ntg-context-518@m.gmane.org; Fri, 07 Sep 2012 06:38:17 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 960E510211; Fri, 7 Sep 2012 06:38:13 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id q22nvKzTw4O9; Fri, 7 Sep 2012 06:38:09 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 87B29101F4; Fri, 7 Sep 2012 06:38:09 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0D189101F4 for ; Fri, 7 Sep 2012 06:38:08 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id tX2LkKxrViXR for ; Fri, 7 Sep 2012 06:38:03 +0200 (CEST) Original-Received: from filter1-utr.mf.surf.net (filter1-utr.mf.surf.net [195.169.124.152]) by balder.ntg.nl (Postfix) with ESMTP id 92735101E5 for ; Fri, 7 Sep 2012 06:38:03 +0200 (CEST) Original-Received: from mail-ie0-f169.google.com (mail-ie0-f169.google.com [209.85.223.169]) by filter1-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q874c1eN018539 for ; Fri, 7 Sep 2012 06:38:02 +0200 Original-Received: by iec9 with SMTP id 9so5292150iec.14 for ; Thu, 06 Sep 2012 21:38:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=YempVmmN0cUoN0j3F5mSNkDTlq0NcQ+EADCbOPKgsyE=; b=p3txsMlSbJ9RVKjV9c4jpg0QzrDHioLHK00rDlHFT6PQ4D5D+GWnHpmqbdOon9kb+z Bm4ir+RmRW7BvY9JSx8LUm38UcNoxjdTGr7S5zX9d/7hd9hV5O0aOHsmd/b95GohqRXx dZRDQdC03IW9qHquD7t9s3GsbITDb1tijLW6jzltQp3TRCaBr/H+2Q7gbFXdaO9tbMtq AO19Yrl2PPSlzCcKfvnlteGSjI8PBeAU6KQxA2Rg48XufF3jqOyKD8pUaFTpmBlXsgD2 0jsza7lzQM5X718+9xd3FSHyK8tgYdk5LuY064d5i0OHTb7wP3UdRL60Wjo2AaifSdO1 myDA== Original-Received: by 10.43.106.69 with SMTP id dt5mr5129194icc.49.1346992681457; Thu, 06 Sep 2012 21:38:01 -0700 (PDT) Original-Received: by 10.64.27.161 with HTTP; Thu, 6 Sep 2012 21:38:01 -0700 (PDT) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.223.169; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 07HU4C2V5 - 80f3a7e3e68d - 20120907 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:78150 Archived-At: --===============0810916628== Content-Type: multipart/alternative; boundary=bcaec5171c794b182d04c9152c74 --bcaec5171c794b182d04c9152c74 Content-Type: text/plain; charset=ISO-8859-1 I would like to create a macro that defines a display formula, and then redefine the same macro such that the redefinition includes the original display formula followed by another display formula. Here is my attempt. \def\foo{\startformula a = b \stopformula} \foo \edef\foo{\foo \startformula c = d \stopformula} \foo This fails, and I would appreciate help in getting this to work. Thanks, Troy Henderson --bcaec5171c794b182d04c9152c74 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I would like to create a macro that defines a display formula, and then red= efine the same macro such that the redefinition includes the original displ= ay formula followed by another display formula.=A0 Here is my attempt.

\def\foo{\startformula a =3D b \stopformula} \foo
\edef\foo{\foo \st= artformula c =3D d \stopformula} \foo

This fails, and I would apprec= iate help in getting this to work.

Thanks,

Troy Henderson
--bcaec5171c794b182d04c9152c74-- --===============0810916628== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============0810916628==--