From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/16273 Path: main.gmane.org!not-for-mail From: Nikolai Weibull Newsgroups: gmane.comp.tex.context Subject: Re: btex ... etex in .mp Date: Fri, 27 Aug 2004 12:32:31 +0200 Sender: ntg-context-bounces@ntg.nl Message-ID: <20040827103231.GB2604@puritan.pcp.ath.cx> References: <20040826200723.GC30875@puritan.pcp.ath.cx> <20040827093200.7545bd81@glenlivet.elvenkind.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1093602764 4405 80.91.224.253 (27 Aug 2004 10:32:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 27 Aug 2004 10:32:44 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Fri Aug 27 12:32:36 2004 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1C0e28-000842-00 for ; Fri, 27 Aug 2004 12:32:36 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 099CB12783; Fri, 27 Aug 2004 12:32:36 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 01968-06; Fri, 27 Aug 2004 12:32:33 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9F8DD12777; Fri, 27 Aug 2004 12:32:33 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B0E4412777 for ; Fri, 27 Aug 2004 12:32:32 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 02002-05 for ; Fri, 27 Aug 2004 12:32:32 +0200 (CEST) Original-Received: from mxfep02.bredband.com (unknown [195.54.107.73]) by ronja.ntg.nl (Postfix) with ESMTP id 0473D12775 for ; Fri, 27 Aug 2004 12:32:31 +0200 (CEST) Original-Received: from puritan.pcp.ath.cx ([213.112.43.242] [213.112.43.242]) by mxfep02.bredband.com with ESMTP id <20040827103231.MXVN345.mxfep02.bredband.com@puritan.pcp.ath.cx> for ; Fri, 27 Aug 2004 12:32:31 +0200 Original-Received: by puritan.pcp.ath.cx (Postfix, from userid 1000) id BD491AE041; Fri, 27 Aug 2004 12:32:31 +0200 (CEST) Original-To: mailing list for ConTeXt users Content-Disposition: inline In-Reply-To: <20040827093200.7545bd81@glenlivet.elvenkind.com> User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 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 X-Virus-Scanned: by amavisd-new at ntg.nl Xref: main.gmane.org gmane.comp.tex.context:16273 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:16273 * Taco Hoekwater [Aug 27, 2004 11:28]: > > I remember reading somewhere that you can't use btex ... etex in > > "input" .mp files, as there is no possibility for them to be > > processed at that time. > That is somewhat incorrect information. You can not use btex ... etex > in a normal way in places where expansion is prohibited (i.e. > definitions), but whether or not this is inside an inputted file is > irrelevant. Ah, yes, that's what I read. Sorry for misunderstanding. > If you need run-time TeX labels, you can use the textext() macro from > metafun, or John Hobby's TEX() macro (available after "input tex;") Hm, I tried textext(). Can it be used in vardef's? I get ! Isolated expression. ; endfig->scantokens.extra_endfig; shipit;endgroup l.217 endfig ; ? from some of my pictures. I can't make sense of it. Anyway, the affected pictures aren't coming out right. Am I doing something terribly wronge here? I'm using trees.mp and have a couple of def_nonterminal(CONS, textext("$\mathstrut\circ$")); type lines I want to reuse placed in a file i "input". trees.mp can be found at http://www.cis.upenn.edu/~dchiang/software/trees.mp Thanks, nikolai -- ::: name: Nikolai Weibull :: aliases: pcp / lone-star / aka ::: ::: born: Chicago, IL USA :: loc atm: Gothenburg, Sweden ::: ::: page: www.pcppopper.org :: fun atm: gf,lps,ruby,lisp,war3 ::: main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}