From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/16238 Path: main.gmane.org!not-for-mail From: skhilji@tampabay.rr.com Newsgroups: gmane.comp.tex.context Subject: Metapost and TeX [OT] Date: Mon, 23 Aug 2004 22:48:42 -0400 Sender: ntg-context-bounces@ntg.nl Message-ID: <77347076e58b.76e58b773470@tampabay.rr.com> Reply-To: skhilji@tampabay.rr.com, mailing list for ConTeXt users NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7BIT X-Trace: sea.gmane.org 1093315742 8030 80.91.224.253 (24 Aug 2004 02:49:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 24 Aug 2004 02:49:02 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Tue Aug 24 04:48:54 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 1BzRMk-0007gZ-00 for ; Tue, 24 Aug 2004 04:48:54 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9B72512775; Tue, 24 Aug 2004 04:48:52 +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 04319-07; Tue, 24 Aug 2004 04:48:48 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B808A1276C; Tue, 24 Aug 2004 04:48:48 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9F54B1276C for ; Tue, 24 Aug 2004 04:48:46 +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 04465-03 for ; Tue, 24 Aug 2004 04:48:46 +0200 (CEST) Original-Received: from ms-smtp-04.tampabay.rr.com (unknown [65.32.5.134]) by ronja.ntg.nl (Postfix) with ESMTP id 0F44C126F8 for ; Tue, 24 Aug 2004 04:48:45 +0200 (CEST) Original-Received: from ms-mss-05 (ms-mss-05-smtp-bk [10.10.4.15]) by ms-smtp-04.tampabay.rr.com (8.12.10/8.12.7) with ESMTP id i7O2mg7t009987 for ; Mon, 23 Aug 2004 22:48:43 -0400 (EDT) Original-Received: from tampabay.rr.com (localhost [127.0.0.1]) by ms-mss-05.tampabay.rr.com (iPlanet Messaging Server 5.2 HotFix 1.21 (built Sep 8 2003)) with ESMTP id <0I2X004IAJT6UI@ms-mss-05.tampabay.rr.com> for ntg-context@ntg.nl; Mon, 23 Aug 2004 22:48:42 -0400 (EDT) Original-Received: from [10.10.6.22] (Forwarded-For: [65.35.125.36]) by ms-mss-05.tampabay.rr.com (mshttpd); Mon, 23 Aug 2004 22:48:42 -0400 Original-To: mailing list for ConTeXt users X-Mailer: iPlanet Messenger Express 5.2 HotFix 1.21 (built Sep 8 2003) Content-language: en Content-Disposition: inline X-Accept-Language: en Priority: normal X-Virus-Scanned: Symantec AntiVirus Scan Engine 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:16238 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:16238 I don't have any experience in metapost. I would appreciate if someone would please answer this question without me having to do thru tutorials and metapost source code. I was wondering how does metapost talk to TeX? Quicky glancing through the metafun book, I found out that you can super-impose text typeset by TeX on top of a diagram. I imagine you could do the same with mathematical equations too. So how does metapost interact with TeX? Let me guess: 1) Metapost could first write down to a file the text that it wan't TeX to typeset. It could then run TeX on the file. TeX produces a DVI file and metapost reads it back. It can then superimpose it on top of a picture. 2) Metapost could also be including within itself a simplified version of TeX. But that would be reinventing the wheel. So how does it happen in reality? The reason that I am asking is that I am interested in producing some diagrams using the libHARU PDF library (a C++ library to produce PDF files). Beautiful Text support, however, is missing from the library. I was wondering if I could hack it up so that I could somehow use TeX for the text part and C++ calls for the graphics part.