From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/24485 Path: news.gmane.org!not-for-mail From: =?ISO-8859-2?Q?Michal_Kvasni=E8ka?= Newsgroups: gmane.comp.tex.context Subject: Offtopic: TeX in MetaPost? Date: Mon, 19 Dec 2005 16:28:37 +0100 Message-ID: <43A6D1A5.9010902@econ.muni.cz> Reply-To: quasar@econ.muni.cz, mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1135006354 15027 80.91.229.2 (19 Dec 2005 15:32:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 19 Dec 2005 15:32:34 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Mon Dec 19 16:32:32 2005 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1EoMwP-0003MQ-0g for gctc-ntg-context-518@m.gmane.org; Mon, 19 Dec 2005 16:28:45 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id F30CF12810; Mon, 19 Dec 2005 16:28:41 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 11993-01-5; Mon, 19 Dec 2005 16:28:37 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4931C127DE; Mon, 19 Dec 2005 16:28:37 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8CBC7127DE for ; Mon, 19 Dec 2005 16:28:35 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 11993-01-4 for ; Mon, 19 Dec 2005 16:28:34 +0100 (CET) Original-Received: from tirith.ics.muni.cz (tirith.ics.muni.cz [147.251.4.36]) by ronja.ntg.nl (Postfix) with ESMTP id 7757D127A7 for ; Mon, 19 Dec 2005 16:28:34 +0100 (CET) Original-Received: from merkur.econ.muni.cz (merkur.econ.muni.cz [147.251.189.10]) by tirith.ics.muni.cz (8.13.2/8.13.2) with ESMTP id jBJFSWjd009391 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Mon, 19 Dec 2005 16:28:33 +0100 Original-Received: from [147.251.224.167] (ke-kvasnicka.econ.muni.cz [147.251.224.167]) by merkur.econ.muni.cz (8.12.10/8.12.10/SuSE Linux 0.7) with ESMTP id jBJFSWhx027521 for ; Mon, 19 Dec 2005 16:28:32 +0100 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050921 X-Accept-Language: cs, en-us, en Original-To: ConTeXt X-Enigmail-Version: 0.86.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime X-Muni-Spam-TestIP: 147.251.189.10 X-Muni-Envelope-From: quasar@econ.muni.cz X-Muni-Virus-Test: Clean X-Virus-Scanned: 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: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:24485 Archived-At: Good evening. I apologize that I dare to post here such offtopic, but I feel this is the right place to get an answer. I try to write some general-purpose MetaPost macros for me with ConTeXt-like interface. For instance, I'd like something like this: label(point, "label=$A$, xlabel=$x_A$, ylabel=$y_A$, ylabelshift=left, lines=no, dotstyle=bigdot, ..."); I've done a lot of work and it almost works, but ... I failed to notice that TeX sequences are in normal cases included between btex ... etex and are preprocessed. In other words, they cannot be typeset as a string. I could use TEX macro, but it slows the process down in a horrible way. I think the best way is this: In the first run of MetaPost to flush out all TeX codes, then process it with TeX (texexec), and then to include it in the second MetaPost run. But I don't know how to do it? Can you help me or at least hint where I could find an answer? And BTW, is this a good idea at all? Isn't there a better/faster way? Many thanks for you kind help. Michal Kvasnicka