From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/16242 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Metapost and TeX [OT] Date: Tue, 24 Aug 2004 10:18:23 +0200 Sender: ntg-context-bounces@ntg.nl Message-ID: <412AF9CF.2020500@wxs.nl> References: <77347076e58b.76e58b773470@tampabay.rr.com> <20040823230833.A1639@droplet.stanford.edu> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1093335520 10372 80.91.224.253 (24 Aug 2004 08:18:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 24 Aug 2004 08:18:40 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Tue Aug 24 10:18:30 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 1BzWVi-0005A0-00 for ; Tue, 24 Aug 2004 10:18:30 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A63841277B; Tue, 24 Aug 2004 10:18:29 +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 06100-02-3; Tue, 24 Aug 2004 10:18:27 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 916FB12775; Tue, 24 Aug 2004 10:18:27 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1C06A12775 for ; Tue, 24 Aug 2004 10:18:26 +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 06100-02-2 for ; Tue, 24 Aug 2004 10:18:25 +0200 (CEST) Original-Received: from mailrelay01.solcon.nl (unknown [212.45.32.200]) by ronja.ntg.nl (Postfix) with ESMTP id 8693812772 for ; Tue, 24 Aug 2004 10:18:25 +0200 (CEST) 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 i7O8INb5027322 for ; Tue, 24 Aug 2004 10:18:23 +0200 Original-Received: by server-1.pragma-net.nl (Postfix, from userid 65534) id 218752EA2A; Tue, 24 Aug 2004 10:18:25 +0200 (CEST) Original-Received: from [10.100.1.191] (unknown [10.100.1.191]) by server-1.pragma-net.nl (Postfix) with ESMTP id 1DA9B2E746 for ; Tue, 24 Aug 2004 08:18:24 +0000 (UTC) User-Agent: Mozilla Thunderbird 0.6 (Windows/20040502) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <20040823230833.A1639@droplet.stanford.edu> X-Virus-Scanned: clamd / ClamAV version 0.73, clamav-milter version 0.73a on mailrelay01.solcon.nl X-Virus-Status: Clean 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:16242 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:16242 Brooks Moses wrote: >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. > > you miss a step: a mpx file is created from the dvi file; an mpx file is a bunch of metapost pictures that will replace the btex..etex's in the mp file 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 -----------------------------------------------------------------