From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/15386 Path: main.gmane.org!not-for-mail From: Hans Hagen Outside Newsgroups: gmane.comp.tex.context Subject: Re: MPost: how to pass variables from mpost to TeX. Date: Sun, 13 Jun 2004 23:21:49 +0200 Sender: ntg-context-admin@ntg.nl Message-ID: <40CCC56D.4060506@wxs.nl> References: <20040613161419.7E5BC4160BD@ws5-2.us4.outblaze.com> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1087161845 16071 80.91.224.253 (13 Jun 2004 21:24:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 13 Jun 2004 21:24:05 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Sun Jun 13 23:24:01 2004 Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BZcSO-000639-00 for ; Sun, 13 Jun 2004 23:24:00 +0200 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 9879510C7D; Sun, 13 Jun 2004 23:23:56 +0200 (MEST) Original-Received: from mailrelay01.solcon.nl (maillb.solcon.nl [212.45.32.200]) by ref.ntg.nl (Postfix) with ESMTP id 6135410B8B for ; Sun, 13 Jun 2004 23:21:54 +0200 (MEST) Original-Received: from server-1.pragma-net.nl (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by mailrelay01.solcon.nl (8.12.11/SQL-8.12.11-5/8.12.11) with ESMTP id i5DLLmvP002743 for ; Sun, 13 Jun 2004 23:21:48 +0200 Original-Received: by server-1.pragma-net.nl (Postfix, from userid 65534) id D934D1A0AB; Sun, 13 Jun 2004 23:21:53 +0200 (CEST) Original-Received: from [127.0.0.1] (unknown [10.100.1.1]) by server-1.pragma-net.nl (Postfix) with ESMTP id 02D75189EA for ; Sun, 13 Jun 2004 21:21:52 +0000 (UTC) User-Agent: Mozilla Thunderbird 0.6 (Windows/20040502) X-Accept-Language: en-us, en Original-To: ntg-context@ntg.nl In-Reply-To: <20040613161419.7E5BC4160BD@ws5-2.us4.outblaze.com> X-Virus-Scanned: clamd / ClamAV version 0.70, clamav-milter version 0.70j Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:15386 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:15386 vinuth madinur wrote: >Hi everyone, > My mpost doesn’t have “textext” macro. >So, what are the other ways of doing it? > >What I want to do is this : > >%I have a variable “GbLableName” >GbLableName=”B_2”; > >%Now I want to use this variable like this: > >lable.bot( btex GbLableName etex , (0,0) ); > >But this will just display “GbLableName” instead of “B_2”. > >So can someone please tell how this can be done? I know too little about TeX. > >Someone suggested about using “Textext” macro. But my MPost version doesn’t have it. >So are there any other ways of doing it? > > btex ... etex is scanned by some mp tools and then tex'd; no expansion takes place then, so GBLableName becomes text textext is more clever; why not use metafun then? it has everything metapost + more also, \starttext \startMPpage your code \stopMPpage \stoptext with (texexec --pdf thatfile.tex) will work ok; from within metafun/context you can use text variables (\MPstring and such); see metafun manual Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------