From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/16240 Path: main.gmane.org!not-for-mail From: Brooks Moses Newsgroups: gmane.comp.tex.context Subject: Re: Metapost and TeX [OT] Date: Mon, 23 Aug 2004 23:08:33 -0700 Sender: ntg-context-bounces@ntg.nl Message-ID: <20040823230833.A1639@droplet.stanford.edu> References: <77347076e58b.76e58b773470@tampabay.rr.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 1093327737 27511 80.91.224.253 (24 Aug 2004 06:08:57 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 24 Aug 2004 06:08:57 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Tue Aug 24 08:08:49 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 1BzUUC-0006uR-00 for ; Tue, 24 Aug 2004 08:08:48 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9630212775; Tue, 24 Aug 2004 08:08:47 +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 05688-01; Tue, 24 Aug 2004 08:08:45 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id ED42B1276C; Tue, 24 Aug 2004 08:08:44 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B6EB71276C for ; Tue, 24 Aug 2004 08:08:43 +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 05555-04 for ; Tue, 24 Aug 2004 08:08:43 +0200 (CEST) Original-Received: from smtp3.Stanford.EDU (unknown [171.67.16.138]) by ronja.ntg.nl (Postfix) with ESMTP id BBC60126F8 for ; Tue, 24 Aug 2004 08:08:42 +0200 (CEST) Original-Received: from htgl-p6-moses.stanford.edu (htgl-p6-moses.Stanford.EDU [171.64.119.90]) by smtp3.Stanford.EDU (8.12.11/8.12.11) with ESMTP id i7O68ZQ3032501; Mon, 23 Aug 2004 23:08:35 -0700 Original-Received: (from brooks@localhost) by htgl-p6-moses.stanford.edu (8.9.3/8.9.3) id XAA01651; Mon, 23 Aug 2004 23:08:33 -0700 Original-To: mailing list for ConTeXt users Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <77347076e58b.76e58b773470@tampabay.rr.com>; from skhilji@tampabay.rr.com on Mon, Aug 23, 2004 at 10:48:42PM -0400 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:16240 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:16240 On Mon, Aug 23, 2004 at 10:48:42PM -0400, skhilji@tampabay.rr.com wrote: > 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. The following is as I understand it; others can I'm sure correct any misunderstandings: Metapost dumps out a TeX file, consisting of any header commands specified in the Metapost file, and whatever is between btex and etex tags. It also puts in stuff so that what's between each pair of tags gets put on its own page. (This is actually done with the mpto command, rather than in Metapost itself; if you just run that, you can examine the output to see what TeX commands it uses.) TeX is then run on this file, creating a .dvi file. Metapost then reads in the .dvi file, using that to create the typeset text that appears in the output Postscript file. - Brooks