From - Wed Jan 15 10:49:03 2003
Return-Path: <Martin_Buchmann@gmx.net>
Received: from mail.gmx.net (mail.gmx.de [213.165.64.20]) by nef.ens.fr
    (8.10.1/1.01.28121999) with SMTP id h0F9mq269396 for <metafont@nef.ens.fr>;
    Wed, 15 Jan 2003 10:48:52 +0100 (CET)
Received: (qmail 8922 invoked by uid 0); 15 Jan 2003 09:48:51 -0000
Received: from pm032.pm.mw.tu-darmstadt.de (HELO gmx.net) (130.83.205.232)
    by mail.gmx.net (mp017-rz3) with SMTP; 15 Jan 2003 09:48:51 -0000
Message-Id: <3E252E83.997D4979@gmx.net>
Date: Wed, 15 Jan 2003 10:48:55 +0100
From: Martin Buchmann <Martin_Buchmann@gmx.net>
Reply-To: Martin_Buchmann@gmx.net
Organization: ww.elpais.es
X-Mailer: Mozilla 4.79 (Macintosh; U; PPC)
X-Accept-Language: de,pdf
Mime-Version: 1.0
To: metafont@ens.fr
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Mime-Autoconverted: from quoted-printable to 8bit by nef.ens.fr id
    h0F9mq269396
X-Virus-Scanner: AMaVis 0.2.0-pre6 / Virus Scan
X-Loop: metafont@nef.ens.fr
X-Sequence: 589
Precedence: list
Subject: [metafont] [MetaPost] How to fill a closed path with a hatching?

Hello,

i hope this is the right place to ask but according to what i have read
MetaPost question are "allowed" here too :-)

I have a closed path between two paths which was build with the
'buildcycle' command and which i can fill with color using 'fill' etc...
But now i want to use a easy hatching to fill this path, just vertical
lines would be perfect at the moment. I found the 'mpattern' package but
it looks a bit overscaled for my purpose and i was asking myself if
there is a easier way to do it.

What do the professionals suggest?

Regards from Germany,
Martin

-- 
Diese finden jenes, jene dieses schön. Aber sie müssen es finden. 
Suchen will es keiner.
				-- Karl Kraus


From - Wed Jan 15 20:41:19 2003
Return-Path: <hartmut_henkel@gmx.de>
Received: from hahepc1.hahe (dialin-145-254-220-131.arcor-ip.net
    [145.254.220.131]) by nef.ens.fr (8.10.1/1.01.28121999) with ESMTP id
    h0FJf5286755 for <metafont@ens.fr>; Wed, 15 Jan 2003 20:41:05 +0100 (CET)
Received: from hahe (helo=localhost) by hahepc1.hahe with local-esmtp
    (Exim 4.10) id 18YtPM-0000nN-00; Wed, 15 Jan 2003 20:41:04 +0100
Date: Wed, 15 Jan 2003 20:41:04 +0100 (CET)
From: Hartmut Henkel <hartmut_henkel@gmx.de>
To: Martin Buchmann <Martin_Buchmann@gmx.net>
Cc: metafont@ens.fr
Subject: Re: [metafont] [MetaPost] How to fill a closed path with a hatching?
In-Reply-To: <3E252E83.997D4979@gmx.net>
Message-Id: <Pine.LNX.4.44.0301152034200.2794-100000@hahepc1.hahe>
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Mime-Autoconverted: from QUOTED-PRINTABLE to 8bit by nef.ens.fr id
    h0FJf5286755
X-Virus-Scanner: AMaVis 0.2.0-pre6 / Virus Scan
X-Loop: metafont@nef.ens.fr
X-Sequence: 590
Precedence: list

...don't know what the proffessionals suggest, here is a quick cludge
just from a MetaPost fan.

% A4 :-)
paperheight = sqrt(sqrt(2))/4*1000mm;
paperwidth = paperheight/sqrt(2);

beginfig(1)
path p,q;
picture v;

% p = whatever your surrounding path is, e. g.:
p = fullcircle scaled 30mm;
q = bbox p;

hashwidth = 1mm;
hashes = xpart(lrcorner q - llcorner q) / hashwidth;

v = image(
  for i=0 upto hashes:
   draw llcorner q -- ulcorner q;
   currentpicture := currentpicture shifted (hashwidth,0);
  endfor;
);

clip v to p;
draw v;
draw p;

currentpicture := currentpicture
  shifted -0.5[lrcorner currentpicture, urcorner currentpicture]
  shifted 0.5(paperwidth,paperheight);
endfig;
end

Greetings Hartmut


On Wed, 15 Jan 2003, Martin Buchmann wrote:

> Hello,
>
> i hope this is the right place to ask but according to what i have read
> MetaPost question are "allowed" here too :-)
>
> I have a closed path between two paths which was build with the
> 'buildcycle' command and which i can fill with color using 'fill' etc...
> But now i want to use a easy hatching to fill this path, just vertical
> lines would be perfect at the moment. I found the 'mpattern' package but
> it looks a bit overscaled for my purpose and i was asking myself if
> there is a easier way to do it.
>
> What do the professionals suggest?
>
> Regards from Germany,
> Martin
>
> --
> Diese finden jenes, jene dieses schön. Aber sie müssen es finden.
> Suchen will es keiner.
> 				-- Karl Kraus


From - Wed Jan 15 23:00:41 2003
Return-Path: <Martin_Buchmann@gmx.net>
Received: from mail.gmx.net (pop.gmx.net [213.165.65.60]) by nef.ens.fr
    (8.10.1/1.01.28121999) with SMTP id h0FM0U203932 for <metafont@nef.ens.fr>;
    Wed, 15 Jan 2003 23:00:30 +0100 (CET)
Received: (qmail 24345 invoked by uid 0); 15 Jan 2003 22:00:28 -0000
Received: from dialin-145-254-210-200.arcor-ip.net (HELO ?130.83.176.12?)
    (145.254.210.200) by mail.gmx.net (mp006-rz3) with SMTP; 15 Jan 2003
    22:00:28 -0000
Mime-Version: 1.0
X-Sender: 1474225@pop.gmx.de
Message-Id: <p05200f04ba4b87e94efe@[130.83.176.12]>
In-Reply-To: <Pine.LNX.4.44.0301152034200.2794-100000@hahepc1.hahe>
References: <Pine.LNX.4.44.0301152034200.2794-100000@hahepc1.hahe>
Date: Wed, 15 Jan 2003 22:57:23 +0100
To: metafont@ens.fr
From: Martin Buchmann <Martin_Buchmann@gmx.net>
Content-Type: text/plain; charset="us-ascii" ; format="flowed"
X-Virus-Scanner: AMaVis 0.2.0-pre6 / Virus Scan
X-Loop: metafont@nef.ens.fr
X-Sequence: 591
Precedence: list
Subject: [metafont] Re: [MetaPost] How to fill a closed path with a
    hatching -- Solved!

Hello,

first of all thanks for all the friendly help i got so far from Hans, 
Martti and Harmut (I hope i have not forgotten someone)! I've learned 
a lot about what could be done in which way from all the examples i 
recieved.

Boguslaw Jackowski sent me his hatching package which does exactly 
what i need and more. It's great and i can only recommend it for this 
purpose. I got exactly what i wanted with just adding one line and 
changing another :-)

Best regards,
Martin

-- 
The nice thing about standards is that there are so many of them to
choose from.
		-- Andrew S. Tanenbaum


From - Sat Jan 18 04:11:56 2003
Return-Path: <laurent@math.toronto.edu>
Received: from coxeter.math.toronto.edu (coxeter.math.toronto.edu
    [128.100.68.3]) by nef.ens.fr (8.10.1/1.01.28121999) with ESMTP id
    h0I3Bi247219 for <metafont@ens.fr>; Sat, 18 Jan 2003 04:11:45 +0100 (CET)
Received: (from laurent@localhost) by coxeter.math.toronto.edu
    (8.11.0/8.11.0/UTMath 1.0) id h0I3Bh110030; Fri, 17 Jan 2003 22:11:43
    -0500
Date: Fri, 17 Jan 2003 22:11:43 -0500
From: Larry Siebenmann <laurent@math.toronto.edu>
Message-Id: <200301180311.h0I3Bh110030@coxeter.math.toronto.edu>
To: laurent@math.toronto.edu, metafont@ens.fr
X-Virus-Scanner: AMaVis 0.2.0-pre6 / Virus Scan
X-Loop: metafont@nef.ens.fr
X-Sequence: 592
Precedence: list
Subject: [metafont] Re: [MetaPost] How to fill a closed path with a
    hatching -- Solved!



I have just spotted Boguslaw Jackowski solution to
Martin Buchmann's hatching problem:

 > Reception: owner-ctan-ann@dante.de Fri Jan 17 13:04:42 2003  
 > To: ctan-ann@dante.de
 > Subject: Re: hatching.zip on DANTE:/incoming 
 > Date: Fri, 17 Jan 2003 11:45:56 +0000
 > From: Robin Fairbairns <Robin.Fairbairns@cl.cam.ac.uk>
 > 
 > Staszek Wawrykiewicz writes:
 > 
 > >  > I've just uploaded to DANTE:/incoming/hatching.zip
 > >  > Please unpack it in graphics/metapost/macros/
 > >  > 
 > >  > The file HATCHING.MP contains a set of METAPOST macros for hatching
 > >  > interior of closed paths. The examples of usage included.
 > >  > Licence: PD
 > 
 > i have installed the files as requested (at the cambridge ctan, for
 > ctan internal reasons...).  thanks for the upload.
 > 
 > Robin Fairbairns
 > 
 > For the CTAN team

On the other hand, although Hartmut Henkel's solution reached 
the list, I fear those of Hans and  Martti did not (? yet). 

Cheers

Laurent S.

The readme file: (English!)

 | The file HATCHING.MP contains a set of METAPOST macros for
 | hatching interior of closed paths.
 | 
 |  made in BOP s.c.
 |  e-mail: B.Jackowski@gust.org.pl
 |  public domain software
 |  (no copyrights, copylefts, copyups, copydowns, or whatsoever)
 | 
 |  21.09.2000 -- ver 0.11 (pre-release)
 | 
 | The basic macro, hatchfill, works very much like the standard
 | fill command. The general form of the hatchfill command call is
 | as follows:
 |  
 |   hatchfill path_expression withcolor c1 withcolor c2 ...
 | 
 | The trick is that for hatching special ``colors'' are used,
 | namely, if bluepart(c)<0, the colour c is interpreted as hatching
 | data:
 |  
 | 
 |  hatching angle redpart(c)
 |  distance between lines greenpart(c)
 |  thickness of lines -bluepart(c)
 | 
 | Dashing and colouring of the hatch pattern can be accomplished by
 | using hatchoptions command (cf. drawoptions in plain.mp).
 | Actually, an arbitrary pattern can be used instead of straight
 | lines: it suffices to redefine the macro draw_hatched_band (cf.
 | htchuse.mp, figure 103), although one should be aware that
 | METAPOST memory can be easily overloaded and that the resulting
 | EPS files are usually annoyingly large.
 | 
 | The examples of usage can be found in htchuse.mp; for
 | convenience, a trivial TeX file for typesetting the figures,
 | htchuse_.tex, is included.
 


From - Sun Jan 19 05:33:02 2003
Return-Path: <marcus.harnisch@gmx.net>
Received: from harnisch.dyndns.org (cpe-66-189-91-161.ma.charter.com
    [66.189.91.161]) by nef.ens.fr (8.10.1/1.01.28121999) with SMTP id
    h0J4WoU97677 for <metafont@ens.fr>; Sun, 19 Jan 2003 05:32:50 +0100 (CET)
Received: (qmail 16386 invoked by uid 1001); 19 Jan 2003 04:33:11 -0000
From: Marcus Harnisch <marcus.harnisch@gmx.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-Id: <15914.10887.96232.195843@harnisch.dyndns.org>
Date: Sat, 18 Jan 2003 23:33:11 -0500
To: metafont@ens.fr
X-Mailer: VM 7.07 under 21.4 (patch 10) "Military Intelligence" XEmacs Lucid
X-Face: 9LaBG,eEW^IB);=a+ebK4!}.:,ah"Uj-<y\;(Yf8~Vp'sXocHMA?%H2~"Tz(@^WorQa_ZU^
 qv39dn7?U6/!;Qe`+I)l}&5Ll8:*$3`M)m7/+Z%5\Hw=*(+bub|J2}JV*y7Qr_N~@&M4Hv_%uJ.fLJ
 h'HmEO5)L>_AmwCi<f1UNJR|V:+~edphM@'ch#jpf`5R}&5@Zwj9)A8=CB_%^*tjU`*~Le$W}ykO7l
 g1NYfUo"7K?e`&l
X-Virus-Scanner: AMaVis 0.2.0-pre6 / Virus Scan
X-Loop: metafont@nef.ens.fr
X-Sequence: 593
Precedence: list
Subject: [metafont] Graph layout with Metapost?

Hi List,

I was wondering if anyone had ever tried to implement graph layout
features (like Graphviz, see http://www.graphviz.org) using
Metapost. I really like the graphviz tools but I think the most
annoying deficiencies are:

1. Text layout capabilities are poor. I started working on
   improvements, but Graphviz' support of a gazillion output drivers
   doesn't make things easier.

2. You cannot add anything to the graph

The existing Metapost output driver is not an option for me since it
doesn't solve any of the two problems.

Ideally, there would be add-ons to Metaobj... Denis?

Best regards,
     Marcus


From - Sun Jan 19 09:13:14 2003
Return-Path: <alibeck.ratzka@berlinet.de>
Received: from abraxas.berlinet.de (abraxas.berlinet.de [62.8.206.8]) by
    nef.ens.fr (8.10.1/1.01.28121999) with ESMTP id h0J8D4U16832 for
    <metafont@ens.fr>; Sun, 19 Jan 2003 09:13:04 +0100 (CET)
Received: from localhost (localhost [127.0.0.1]) by abraxas.berlinet.de
    (Postfix on SuSE Linux 8.1 (i386)) with ESMTP id DA25D722E for
    <metafont@ens.fr>; Sun, 19 Jan 2003 09:09:51 +0100 (CET)
Received: from crowly.berlinet.de (crowly.berlinet.de [62.8.206.6]) by
    abraxas.berlinet.de (Postfix on SuSE Linux 8.1 (i386)) with ESMTP id
    D7688720F for <metafont@ens.fr>; Sun, 19 Jan 2003 09:09:50 +0100 (CET)
Received: from zelator.berlinet.de(really [62.8.206.1]) by
    crowly.berlinet.de via smtpd with esmtp id
    <m18aAZi-0019Q3C@crowly.berlinet.de> for <metafont@ens.fr>; Sun,
    19 Jan 2003 09:13:02 +0100 (CET) (Smail-3.2.0.111 2000-Feb-17 #3)
Received: from linux(really [62.8.206.72]) by zelator.berlinet.de via
    smtpd with esmtp id <m18aIOH-002t5OC@zelator.berlinet.de> for
    <metafont@ens.fr>; Sun, 19 Jan 2003 09:33:45 -0700 (MST) (Smail-3.2.0.111
    2000-Feb-17 #2)
Content-Type: text/plain; charset="us-ascii"
From: alibeck <alibeck.ratzka@berlinet.de>
Reply-To: alibeck.ratzka@berlinet.de
Organization: privat
To: metafont@ens.fr
Date: Sun, 19 Jan 2003 09:08:46 +0100
X-Mailer: KMail [version 1.4]
Mime-Version: 1.0
Content-Transfer-Encoding: 8bit
Message-Id: <200301190908.46927.alibeck.ratzka@berlinet.de>
X-Virus-Scanned: by AMaViS 0.3.12pre8
X-Virus-Scanner: AMaVis 0.2.0-pre6 / Virus Scan
X-Loop: metafont@nef.ens.fr
X-Sequence: 594
Precedence: list
Subject: [metafont] Metfont command mfw show empty window

Dear METAFONT community,

I've tried to let show the mfw command with the following commands:
mfw <RETURN>
**\relax
*draw (0,0)--(0,150)--(150,75)--(0,0); showit; <RETURN>

This should lead to a window displaying a triangle. But all what I get, is an 
empty X-Window, independet of the background color of this window, which I've 
customized via *Background in my ~/.Xresources. Beside this, I also get no 
window, if I run mfw with the mode=proof.

I use teTeX with SuSE Linux 8.0. Does anyone have an idea, what mitgh be the 
reason for these errors?

Best wishes

Alexander
-- 
++++++++++++++++++++++++++++++++++++++++++++++++++++
           Dr. Alexander Beck-Ratzka
           Spandauer Strasse 52
           D-13581 Berlin
           Tel: 0049 / (0)30 / 366 95 47
           email: alibeck.ratzka@berlinet.de
++++++++++++++++++++++++++++++++++++++++++++++++++++


From - Sun Jan 19 16:55:08 2003
Return-Path: <Denis.Roegel@loria.fr>
Received: from macker.loria.fr (macker.loria.fr [152.81.1.70]) by
    nef.ens.fr (8.10.1/1.01.28121999) with ESMTP id h0JFssU61488 for
    <metafont@ens.fr>; Sun, 19 Jan 2003 16:54:54 +0100 (CET)
Received: from localhost.loria.fr (localhost [127.0.0.1]) by localhost
    (Postfix) with ESMTP id EE6AF6EF9; Sun, 19 Jan 2003 16:54:49 +0100 (MET)
X-Amavix: Anti-virus check done by McAfee
X-Amavix: Scanned by Amavix
Received: from bar.loria.fr (bar.loria.fr [152.81.2.13]) by
    macker.loria.fr (Postfix) with ESMTP id BDAC17272; Sun, 19 Jan 2003
    16:54:48 +0100 (MET)
Received: (from roegel@localhost) by bar.loria.fr
    (8.9.3/8.9.3/8.9.3-client/JCG) id QAA18111; Sun, 19 Jan 2003 16:54:48
    +0100 (MET)
Date: Sun, 19 Jan 2003 16:54:48 +0100
From: Denis Roegel <Denis.Roegel@loria.fr>
To: Marcus Harnisch <marcus.harnisch@gmx.net>
Cc: metafont@ens.fr, Denis Roegel <Denis.Roegel@loria.fr>
Subject: Re: [metafont] Graph layout with Metapost?
Message-Id: <20030119165448.A18065@bar.loria.fr>
References: <15914.10887.96232.195843@harnisch.dyndns.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.1i
In-Reply-To: <15914.10887.96232.195843@harnisch.dyndns.org>;
    from marcus.harnisch@gmx.net on Sat, Jan 18, 2003 at 11:33:11PM -0500
X-Virus-Scanner: AMaVis 0.2.0-pre6 / Virus Scan
X-Loop: metafont@nef.ens.fr
X-Sequence: 595
Precedence: list

On Sat, Jan 18, 2003 at 11:33:11PM -0500, Marcus Harnisch wrote:
> Hi List,
> 
> I was wondering if anyone had ever tried to implement graph layout
> features (like Graphviz, see http://www.graphviz.org) using
> Metapost. I really like the graphviz tools but I think the most
> annoying deficiencies are:
> 
> 1. Text layout capabilities are poor. I started working on
>    improvements, but Graphviz' support of a gazillion output drivers
>    doesn't make things easier.
> 
> 2. You cannot add anything to the graph
> 
> The existing Metapost output driver is not an option for me since it
> doesn't solve any of the two problems.

But you can certainly add text that doesn't change the layout, no?
I guess the problem is acting on the layout.

> Ideally, there would be add-ons to Metaobj... Denis?

It doesn't seem simple. Why not stick to a specialized tool
and enhance it?

Denis


From - Sun Jan 19 21:52:50 2003
Return-Path: <marcus.harnisch@gmx.net>
Received: from harnisch.dyndns.org (cpe-66-189-91-161.ma.charter.com
    [66.189.91.161]) by nef.ens.fr (8.10.1/1.01.28121999) with SMTP id
    h0JKqbU93665 for <metafont@ens.fr>; Sun, 19 Jan 2003 21:52:37 +0100 (CET)
Received: (qmail 651 invoked by uid 1001); 19 Jan 2003 20:52:58 -0000
From: Marcus Harnisch <marcus.harnisch@gmx.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-Id: <15915.4138.464990.735480@harnisch.dyndns.org>
Date: Sun, 19 Jan 2003 15:52:58 -0500
To: metafont@ens.fr
Subject: Re: [metafont] Graph layout with Metapost?
In-Reply-To: <20030119165448.A18065@bar.loria.fr>
References: <15914.10887.96232.195843@harnisch.dyndns.org>
    <20030119165448.A18065@bar.loria.fr>
X-Mailer: VM 7.07 under 21.4 (patch 10) "Military Intelligence" XEmacs Lucid
X-Face: 9LaBG,eEW^IB);=a+ebK4!}.:,ah"Uj-<y\;(Yf8~Vp'sXocHMA?%H2~"Tz(@^WorQa_ZU^
 qv39dn7?U6/!;Qe`+I)l}&5Ll8:*$3`M)m7/+Z%5\Hw=*(+bub|J2}JV*y7Qr_N~@&M4Hv_%uJ.fLJ
 h'HmEO5)L>_AmwCi<f1UNJR|V:+~edphM@'ch#jpf`5R}&5@Zwj9)A8=CB_%^*tjU`*~Le$W}ykO7l
 g1NYfUo"7K?e`&l
X-Virus-Scanner: AMaVis 0.2.0-pre6 / Virus Scan
X-Loop: metafont@nef.ens.fr
X-Sequence: 596
Precedence: list

Hi Denis,

Denis Roegel writes:
 > But you can certainly add text that doesn't change the layout, no?
 > I guess the problem is acting on the layout.

And how would I determine the size of the text and whether my
replacement text would change the layout?

[sorry for getting Graphviz specific here. I am trying to make my
 point clear.]

There are two main issues. First is that edge labels can only contain
text. Node labels can be of a "record" type which adds some basic
table support. Node shapes can be selected from a variety of different
geometric shapes. Or node labels can be Postscript files (for the
Postscript and SVG drivers anyway).

I thought about adding support for edge labels to be arbitrary
Postscript files. That way I could use user defined node/edge
attributes containing (La)TeX code. A preprocessor mechanism could
render the graphics and include the resulting Postscript files as
node/edge labels accordingly. For nodes this worked in a
proof-of-concept study I came up with. I was the preprocessor, BTW ;-)

 > It doesn't seem simple. Why not stick to a specialized tool
 > and enhance it?

First of all Graphviz' code base is, well, mature ;-) One of the
developers I discussed that issue with agreed that it is quite
messy. Particularly the Postscript file handling is inefficient and
full of bugs. Fixing that is a task that would probably be not much
easier than implementing the layout features in Metapost.

And in the end I still haven't solved the problem that I might want to
have more than just a graph in my picture. Post-editing is a manual
process since other objects don't have any knowledge about the graph
objects. Each time I make a minor change to the graph, all the code I
added might be worthless.

Anyway, I was just curious if anybody had the same idea.

Thanks,
	Marcus


From - Sat Jan 25 22:00:09 2003
Return-Path: <smidi@gmx.at>
Received: from octopussy.utanet.at (octopussy.utanet.at [213.90.36.45]) by
    nef.ens.fr (8.10.1/1.01.28121999) with ESMTP id h0PKxxM75646 for
    <metafont@ens.fr>; Sat, 25 Jan 2003 21:59:59 +0100 (CET)
Received: from paris.utanet.at ([213.90.36.7]) by octopussy.utanet.at with
    esmtp (Exim 4.10) id 18cXPD-0003k4-00 for metafont@ens.fr; Sat,
    25 Jan 2003 21:59:59 +0100
Received: from linzu3-216-106.utaonline.at ([212.152.216.106] helo=gmx.at)
    by paris.utanet.at with esmtp (Exim 4.10) id 18cXP7-0006rL-00 for
    metafont@ens.fr; Sat, 25 Jan 2003 21:59:56 +0100
Message-Id: <3E32FAA1.3A7734DB@gmx.at>
Date: Sat, 25 Jan 2003 21:59:13 +0100
From: Roland Smiderkal <smidi@gmx.at>
X-Mailer: Mozilla 4.7 [de]C-CCK-MCD QXW0322g  (Win95; I)
X-Accept-Language: de,en
Mime-Version: 1.0
To: "metafont@ens.fr" <metafont@ens.fr>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Virus-Scanner: AMaVis 0.2.0-pre6 / Virus Scan
X-Loop: metafont@nef.ens.fr
X-Sequence: 597
Precedence: list
Subject: [metafont] Passing command line arguments to MetaPost programs?

Hi!

I want to pass command line arguments to metapost programs (not to
metapost itself). For instance I'd like to set the prologues variable
from the command line. Is there a way to achieve this?

Thanks,

Roland Smiderkal


From - Sun Jan 26 19:53:43 2003
Return-Path: <ingvast@md.kth.se>
Received: from ares.md.kth.se (ares.md.kth.se [130.237.57.10]) by
    nef.ens.fr (8.10.1/1.01.28121999) with ESMTP id h0QIrWM80273 for
    <metafont@ens.fr>; Sun, 26 Jan 2003 19:53:33 +0100 (CET)
Received: from tinytim.md.kth.se (ares.md.kth.se [130.237.57.10]) by
    ares.md.kth.se (Postfix) with ESMTP id 41005A7599; Sun, 26 Jan 2003
    19:53:31 +0100 (CET)
Date: Sun, 26 Jan 2003 19:53:32 +0100 (CET)
From: Johan Ingvast <ingvast@md.kth.se>
To: "metafont@ens.fr" <metafont@ens.fr>
Cc: Roland Smiderkal <smidi@gmx.at>
Subject: Re: [metafont] Passing command line arguments to MetaPost programs?
In-Reply-To: <3E32FAA1.3A7734DB@gmx.at>
Message-Id: <Pine.LNX.4.44.0301261946370.2048-100000@pippin>
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Virus-Scanner: AMaVis 0.2.0-pre6 / Virus Scan
X-Loop: metafont@nef.ens.fr
X-Sequence: 598
Precedence: list

Hi
Try something like:
	mpost '\prologues :=1; input file.mp'
	
I picked the line up from another maillist (lyx-users) but have not
tried it myself. (But I'd be surprised if it doesn't work.)
/johan

On Sat, 25 Jan 2003, Roland Smiderkal wrote:

> Hi!
> 
> I want to pass command line arguments to metapost programs (not to
> metapost itself). For instance I'd like to set the prologues variable
> from the command line. Is there a way to achieve this?
> 
> Thanks,
> 
> Roland Smiderkal
> 
> 

-- 
Johan Ingvast, PhD student http://www.md.kth.se/~ingvast
Department of Machine Design, Royal Institute of Technology, Sweden
http://www.md.kth.se, http://www.md.kth.se/~cas	<--- Walking robot proj
tel +46 (0)8 790 95 36	mob. +46 (0)70 34 34 498



From - Mon Jan 27 23:36:17 2003
Return-Path: <smidi@gmx.at>
Received: from octopussy.utanet.at (octopussy.utanet.at [213.90.36.45]) by
    nef.ens.fr (8.10.1/1.01.28121999) with ESMTP id h0RMa5M01618 for
    <metafont@ens.fr>; Mon, 27 Jan 2003 23:36:05 +0100 (CET)
Received: from plenty.utanet.at ([213.90.36.9]) by octopussy.utanet.at
    with esmtp (Exim 4.10) id 18dHrJ-0000Fr-00 for metafont@ens.fr;
    Mon, 27 Jan 2003 23:36:05 +0100
Received: from linzu1-209-153.utaonline.at ([212.152.209.153] helo=gmx.at)
    by plenty.utanet.at with esmtp (Exim 4.10) id 18dHrI-0003Tz-00 for
    metafont@ens.fr; Mon, 27 Jan 2003 23:36:04 +0100
Message-Id: <3E35B437.912C73CC@gmx.at>
Date: Mon, 27 Jan 2003 23:35:35 +0100
From: Roland Smiderkal <smidi@gmx.at>
X-Mailer: Mozilla 4.7 [de]C-CCK-MCD QXW0322g  (Win95; I)
X-Accept-Language: de,en
Mime-Version: 1.0
To: "metafont@ens.fr" <metafont@ens.fr>
Subject: Re: [metafont] Passing command line arguments to MetaPost programs?
References: <Pine.LNX.4.44.0301261946370.2048-100000@pippin>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Virus-Scanner: AMaVis 0.2.0-pre6 / Virus Scan
X-Loop: metafont@nef.ens.fr
X-Sequence: 599
Precedence: list

Hi!

Johan Ingvast schrieb:

> Try something like:
>         mpost '\prologues :=1; input file.mp'
> 
> I picked the line up from another maillist (lyx-users) but have not
> tried it myself. (But I'd be surprised if it doesn't work.)

It works fine. Thank you!

Roland Smiderkal


