From - Tue Sep  9 15:20:34 2003
Return-Path: <beebe@sunshine.math.utah.edu>
Received: from sunshine.math.utah.edu (sunshine.math.utah.edu [128.110.198.2])
          by nef.ens.fr (8.12.9/1.01.28121999) with ESMTP id h89DKPlL075531
          for <metafont@ens.fr>; Tue, 9 Sep 2003 15:20:29 +0200 (CEST)
Received: from psi.math.utah.edu (IDENT:am+6s2XXWEMjSJHNQs8nWhs7D9HZnTB8@psi.math.utah.edu [128.110.198.32])
	by sunshine.math.utah.edu (8.9.3p2/8.9.3) with ESMTP id HAA22180;
	Tue, 9 Sep 2003 07:20:21 -0600 (MDT)
Received: (from beebe@localhost)
	by psi.math.utah.edu (8.9.3p2/8.9.3) id HAA16671;
	Tue, 9 Sep 2003 07:20:21 -0600 (MDT)
Date: Tue, 9 Sep 2003 07:20:21 -0600 (MDT)
From: "Nelson H. F. Beebe" <beebe@math.utah.edu>
To: metafont@ens.fr
Cc: beebe@math.utah.edu
X-US-Mail: "Center for Scientific Computing, Department of Mathematics, 110
        LCB, University of Utah, 155 S 1400 E RM 233, Salt Lake City, UT
        84112-0090, USA"
X-Telephone: +1 801 581 5254
X-FAX: +1 801 585 1640, +1 801 581 4148
X-URL: http://www.math.utah.edu/~beebe
Subject: Fonts needed for minority scripts in the Script Encoding Initiative
        for Unicode
Message-ID: <CMM.0.92.0.1063113621.beebe@psi.math.utah.edu>

Some readers of this list may be interested in looking at

	http://www.linguistics.berkeley.edu/~dwanders/

which describes the Script Encoding Initiative, which is working on
creating support in Unicode for about 100 minority scripts.

It seems to me that this is a case where some useful community service
could be carried out by Metafont/Metapost experts in the design of
fonts for some of these scripts.  I suspect that the Script Encoding
Initiative is busy with identifying exactly what glyphs are needed for
the minority scripts, but may not have resources to generate fonts to
display them.

-------------------------------------------------------------------------------
- Nelson H. F. Beebe                    Tel: +1 801 581 5254                  -
- Center for Scientific Computing       FAX: +1 801 581 4148                  -
- University of Utah                    Internet e-mail: beebe@math.utah.edu  -
- Department of Mathematics, 110 LCB        beebe@acm.org  beebe@computer.org -
- 155 S 1400 E RM 233                                                         -
- Salt Lake City, UT 84112-0090, USA    URL: http://www.math.utah.edu/~beebe  -
-------------------------------------------------------------------------------

From - Tue Sep  9 16:02:00 2003
Return-Path: <be@mek.dtu.dk>
Received: from mes1.mek.dtu.dk (mes1.mek.dtu.dk [130.226.16.6])
          by nef.ens.fr (8.12.9/1.01.28121999) with ESMTP id h89E1xlL089871
          for <metafont@ens.fr>; Tue, 9 Sep 2003 16:01:59 +0200 (CEST)
Received: from mek.dtu.dk ([130.226.18.82]) by mes1.mek.dtu.dk with Microsoft SMTPSVC(5.0.2195.6713);
	 Tue, 9 Sep 2003 16:01:58 +0200
Message-ID: <3F5DDD56.40807@mek.dtu.dk>
Date: Tue, 09 Sep 2003 16:01:58 +0200
From: Brian Elmegaard <be@mek.dtu.dk>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3) Gecko/20030312
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: MetaPost <metapost@ntg.nl>, Metafont mailing list <metafont@ens.fr>
Subject: Graph.mp annoyances
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-OriginalArrivalTime: 09 Sep 2003 14:01:58.0795 (UTC) FILETIME=[EF66DDB0:01C376DA]

Hi all,

I am using the metapost graph macro a lot, but it has a few minor 
annoyances. Maybe some of you have already solved the following problems:

* The direction of arrowheads in gdrawarrow does not follow the curve it 
is on.

* Reading data from a file only works if there is exactly one empty line 
between data for each curve and the error message is not helpful

* Data with exponent as 1e4 cannot have a capital E.

* Curves from data are always polygonal, unless one changes the true 
argument to GMcvi_ in Gdraw_. If this is set to false a very special 
kind of curve is created. Why does the branch for false have post- and 
precontrol of the curve, not just .. which makes a nice, smooth curve?

* Axes can only be in the llft of the graph, not through the origin.

* Frames can only be avoided if the internal variable  Gneedfr_  is set 
to false. An empty argument to frame would be nice.

I am very interested in any remedies to these issues.

regards,
-- 
Brian Elmegaard (be@mek.dtu.dk)
Dept. of Mechanical Engineering, Energy Engineering,
Technical University of Denmark, Phone +45 4525 4169  Fax +45 4593 5215
http://www.et.dtu.dk/staff/be


From - Tue Sep  9 18:23:22 2003
Return-Path: <romeomedina@libero.it>
Received: from smtp1.libero.it (smtp1.libero.it [193.70.192.51])
          by nef.ens.fr (8.12.9/1.01.28121999) with ESMTP id h89GNHlL037615
          for <metafont@ens.fr>; Tue, 9 Sep 2003 18:23:17 +0200 (CEST)
Received: from a3i3g5 (151.26.57.187) by smtp1.libero.it (7.0.019)
        id 3F58A1E00010ADA5 for metafont@ens.fr; Tue, 9 Sep 2003 18:23:46 +0200
From: "Rodolfo Medina" <romeomedina@libero.it>
To: <metafont@ens.fr>
Subject: Problems running the file calu.mf
Date: Tue, 9 Sep 2003 18:24:46 +0200
Message-ID: <MBBBJFILCHONLINKEBBKOEFICBAA.romeomedina@libero.it>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0)
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
Disposition-Notification-To: "Rodolfo Medina" <romeomedina@libero.it>

Hi, everyone.

I'm new to Metafont. From CTAN I downloaded a file called calu.mf, because I
wanted to use
a calligraphic font. On my PC I have Mandrake Linux 9.0.
So: from the linux console I type

 mf

Then, in response to **, I type

 \mode=localfont; input calu

as explained in the Metafontbook on p.39. Then I get the following error
message:

 (calu.mf
 >> cmchar
 ! Isolated expression.
 <to be read again>
                   "Calligraphic A"
 l.10 cmchar "Calligraphic A"
                             ;
 ?

When I ask for help, it says:

 I couldn't find an `=' or `:=' after the
 expression that is shown above this error message,
 so I guess I'll just ignore it and carry on.

I know it's something to do with the cm.base file, which I didn't manage to
create in any way,
although on my PC there is the file cmbase.mf.
Please, could you tell me what I can do?
But, since I'm really new to Metafont, I'd need to be explained every step
one by one!

Thanks in advance,
Rodolfo
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.502 / Virus Database: 300 - Release Date: 18/07/03


From - Tue Sep  9 21:38:05 2003
Return-Path: <luecking@uark.edu>
Received: from mailhost.uark.edu (mail.uark.edu [130.184.5.66])
          by nef.ens.fr (8.12.9/1.01.28121999) with ESMTP id h89JbwlL000830
          for <metafont@ens.fr>; Tue, 9 Sep 2003 21:37:59 +0200 (CEST)
Received: from comp.uark.edu (comp.uark.edu [130.184.5.197])
 by mailhost.uark.edu
 (iPlanet Messaging Server 5.2 HotFix 1.04 (built Oct 21 2002))
 with ESMTP id <0HKY00GILP0EQP@mailhost.uark.edu> for metafont@ens.fr; Tue,
 09 Sep 2003 14:33:50 -0500 (CDT)
Date: Tue, 09 Sep 2003 14:33:50 -0500 (CDT)
From: "Daniel H. Luecking" <luecking@uark.edu>
Subject: Re: [metafont] Graph.mp annoyances
In-reply-to: <3F5DDD56.40807@mek.dtu.dk>
To: MetaPost <metapost@ntg.nl>
Cc: Metafont mailing list <metafont@ens.fr>
Message-id: <Pine.SOL.4.55.0309091353460.1199@comp.uark.edu>
MIME-version: 1.0
Content-type: TEXT/PLAIN; charset=US-ASCII
Content-transfer-encoding: 7BIT
References: <3F5DDD56.40807@mek.dtu.dk>

On Tue, 9 Sep 2003, Brian Elmegaard wrote:

> Hi all,
>
> I am using the metapost graph macro a lot, but it has a few minor
> annoyances. Maybe some of you have already solved the following problems:
>
> * The direction of arrowheads in gdrawarrow does not follow the curve it
> is on.

This may be because the direction is undefined at corners of a path. MP
usually uses (postcontrol - precontrol), which doesn't usually match
either the in or the out direction. graph.mp uses instead (point -
precontrol) as the direction, generally a better choice. However, if the
path is rather curved near the head, it may seem to be incorrect, with
the edge of the head closer to the path on the inside of the curve.
Still, the head does point in the direction of the tangent at the
endpoint of the curve.

It is really quite difficult to algorithmically choose an arrowhead.
(I know, I've tried.) The best looking results can be achieved by
putting the *base* of the arrowhead (rather than the tip) at the path's
endpoint. But most people don't want to allow that.

>
> * Reading data from a file only works if there is exactly one empty line
> between data for each curve and the error message is not helpful

All graphing programs I know of require a particular format for the data
file. Some give no error and simply stop at a double blank line. One
simply has to know the rquirements for input.

>
> * Data with exponent as 1e4 cannot have a capital E.
>
> * Curves from data are always polygonal, unless one changes the true
> argument to GMcvi_ in Gdraw_. If this is set to false a very special
> kind of curve is created. Why does the branch for false have post- and
> precontrol of the curve, not just .. which makes a nice, smooth curve?

Because ".." will often not make a *nice* smooth curve. Without
selecting the controls, such a connection will often make S-shapes in
the graph (where the curve turns in the negative horizontal direction
briefly) if the data varies rapidly. In such cases the graph should not
be too smooth. Admittedly, I don't know how graph.mp chooses controls,
nor whether there might be better choices, but for general purposes,
some choice is unavoidable.

Regards,

-- 
Dan Luecking                           Dept. of Mathematical Sciences
luecking@uark.edu                      University of Arkansas
http://comp.uark.edu/~luecking/        Fayetteville, AR 72101

From - Tue Sep  9 23:25:53 2003
Return-Path: <romeomedina@libero.it>
Received: from smtp0.libero.it (smtp0.libero.it [193.70.192.33])
          by nef.ens.fr (8.12.9/1.01.28121999) with ESMTP id h89LPXlL031533
          for <metafont@ens.fr>; Tue, 9 Sep 2003 23:25:33 +0200 (CEST)
Received: from a3i3g5 (151.26.54.81) by smtp0.libero.it (7.0.019)
        id 3F589BB70011F921 for metafont@ens.fr; Tue, 9 Sep 2003 23:25:32 +0200
From: "Rodolfo Medina" <romeomedina@libero.it>
To: <metafont@ens.fr>
Subject: Re: [metafont] Problems running the file calu.mf
Date: Tue, 9 Sep 2003 23:27:06 +0200
Message-ID: <MBBBJFILCHONLINKEBBKAEFKCBAA.romeomedina@libero.it>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0)
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
Disposition-Notification-To: "Rodolfo Medina" <romeomedina@libero.it>

To Mr Christophe Grandsire:

Thank you for your kind reply.

>Now, a second problem is that calu.mf belongs to the driver files necessary
>to create the Computer Modern fonts families. As such, it is optimised to
>create calligraphic letters to use in math environments only. You cannot
>use it to create a normal calligraphic font.

To use calligraphic letters in math environments only is exactly what I
meant to do!
As far as you know, are there any parameter files which call calu.mf and can
be used?
Or, if there aren't, maybe one could think of creating one himself? Would it
be difficult?
You see, now I'd be curious to see the end of the history.
Besides, among all the .mf files for calligraphic letters that I found
looking around
(and they were a lot), there was just one that I was able to compile by
Metafont, that is callig15.mf inputting calligra.mf. For all the others I
got error messages.

Cheers,
Rodolfo
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.502 / Virus Database: 300 - Release Date: 18/07/03


From - Wed Sep 10 08:31:50 2003
Return-Path: <be@mek.dtu.dk>
Received: from mes1.mek.dtu.dk (mes1.mek.dtu.dk [130.226.16.6])
          by nef.ens.fr (8.12.9/1.01.28121999) with ESMTP id h8A6VnlL071978
          for <metafont@ens.fr>; Wed, 10 Sep 2003 08:31:49 +0200 (CEST)
Received: from mek.dtu.dk ([130.226.18.82]) by mes1.mek.dtu.dk with Microsoft SMTPSVC(5.0.2195.6713);
	 Wed, 10 Sep 2003 08:31:49 +0200
Message-ID: <3F5EC554.6010907@mek.dtu.dk>
Date: Wed, 10 Sep 2003 08:31:48 +0200
From: Brian Elmegaard <be@mek.dtu.dk>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3) Gecko/20030312
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Metafont mailing list <metafont@ens.fr>, MetaPost <metapost@ntg.nl>
Subject: Re: [Metapost] Re: [metafont] Graph.mp annoyances
References: <3F5DDD56.40807@mek.dtu.dk> <Pine.SOL.4.55.0309091353460.1199@comp.uark.edu>
In-Reply-To: <Pine.SOL.4.55.0309091353460.1199@comp.uark.edu>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-OriginalArrivalTime: 10 Sep 2003 06:31:49.0154 (UTC) FILETIME=[36D07820:01C37765]

Daniel,

I know from experience that the bezier curves very different from what 
was expected. And, generally I would not want to have make a curved 
graph from a set of data points. However, if I would like to plot the 
sine-function, it would be easier to have just a few points on it and 
still have a curve.

One reason for asking was also, that there might be good reasons for the 
way it was written, so please explain.

The following shows up as a polygonal curve in the .1 (and also shows a 
bad arrowhead):

% -90	0
% -70	0.342
% -50	0.6428
% -30	0.866
% -10	0.9848
% 0	1
% 10	0.9848
% 30	0.866
% 50	0.6428
% 70	0.342
% 90	0

beginfig(1);
draw begingraph(5cm,5cm);
   gdraw "mpgraph.mp";
   gdrawarrow (10,1)--(12,2); % BTW, this shows that even straigth line
                              % arrowheads looks odd.
endgraph;
endfig;

If instead I change the boolean argument to GMcvi_ in Gdraw_ to false:
% Handle the part of a Gdraw command that uses path or data file p.
def Gdraw_ expr p =
   if string p: GMcvi_(false) Mreadpath(p) % argument changed to false
   elseif path p or pair p: Gucvi_ p
   else: Gerr_(p,"gdraw argument should be a data file or a path")
         origin
   fi
   withpen currentpen Gwithlist_ _op_
enddef;

I get a very (very, very IMHO) strange curve.

If in addition, I change the ..controls line in Gscan_ by removing the 
controls it looks as expected:
vardef Gscan_(expr p, c)(suffix tx, ty) =
   if (str tx="") and (str ty=""):  p
   else:
     save r_; path r_;
     forever:
       Gdidsc_ := false;
       r_ := Gpp_(point 0 of p, tx, ty)
       if path p:
         for t=1 upto length p:
           if c: --
           else: .. % looks better for a simple curve
           fi
           Gpp_(point t of p, tx, ty)
         endfor
         if cycle p: &cycle fi
       fi;
       exitunless Gdidsc_;
     endfor
     if pair p: point 0 of fi r_
   fi
enddef;

regards,
Brian



Daniel H. Luecking wrote:
> On Tue, 9 Sep 2003, Brian Elmegaard wrote:
> 
> 
>>Hi all,
>>
>>I am using the metapost graph macro a lot, but it has a few minor
>>annoyances. Maybe some of you have already solved the following problems:
>>
>>* The direction of arrowheads in gdrawarrow does not follow the curve it
>>is on.
> 
> 
> This may be because the direction is undefined at corners of a path. MP
> usually uses (postcontrol - precontrol), which doesn't usually match
> either the in or the out direction. graph.mp uses instead (point -
> precontrol) as the direction, generally a better choice. However, if the
> path is rather curved near the head, it may seem to be incorrect, with
> the edge of the head closer to the path on the inside of the curve.
> Still, the head does point in the direction of the tangent at the
> endpoint of the curve.
> 
> It is really quite difficult to algorithmically choose an arrowhead.
> (I know, I've tried.) The best looking results can be achieved by
> putting the *base* of the arrowhead (rather than the tip) at the path's
> endpoint. But most people don't want to allow that.
> 
> 
>>* Reading data from a file only works if there is exactly one empty line
>>between data for each curve and the error message is not helpful
> 
> 
> All graphing programs I know of require a particular format for the data
> file. Some give no error and simply stop at a double blank line. One
> simply has to know the rquirements for input.
> 
> 
>>* Data with exponent as 1e4 cannot have a capital E.
>>
>>* Curves from data are always polygonal, unless one changes the true
>>argument to GMcvi_ in Gdraw_. If this is set to false a very special
>>kind of curve is created. Why does the branch for false have post- and
>>precontrol of the curve, not just .. which makes a nice, smooth curve?
> 
> 
> Because ".." will often not make a *nice* smooth curve. Without
> selecting the controls, such a connection will often make S-shapes in
> the graph (where the curve turns in the negative horizontal direction
> briefly) if the data varies rapidly. In such cases the graph should not
> be too smooth. Admittedly, I don't know how graph.mp chooses controls,
> nor whether there might be better choices, but for general purposes,
> some choice is unavoidable.
> 
> Regards,
> 


-- 
Brian Elmegaard (be@mek.dtu.dk)
Dept. of Mechanical Engineering, Energy Engineering,
Technical University of Denmark, Phone +45 4525 4169  Fax +45 4593 5215
http://www.et.dtu.dk/staff/be


From - Wed Sep 10 22:28:19 2003
Return-Path: <romeomedina@libero.it>
Received: from smtp2.libero.it (smtp2.libero.it [193.70.192.52])
          by nef.ens.fr (8.12.9/1.01.28121999) with ESMTP id h8AKSHlL090414
          for <metafont@ens.fr>; Wed, 10 Sep 2003 22:28:17 +0200 (CEST)
Received: from a3i3g5 (151.26.52.41) by smtp2.libero.it (7.0.019)
        id 3F58A2C3001608F7 for metafont@ens.fr; Wed, 10 Sep 2003 22:28:51 +0200
From: "Rodolfo Medina" <romeomedina@libero.it>
To: <metafont@ens.fr>
Subject: Re: [metafont] Problems running the file calu.mf
Date: Wed, 10 Sep 2003 22:29:19 +0200
Message-ID: <MBBBJFILCHONLINKEBBKEEFMCBAA.romeomedina@libero.it>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0)
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
Disposition-Notification-To: "Rodolfo Medina" <romeomedina@libero.it>

To Mr. Christophe Grandsire:

Your messages taught me a lot, thanks for that.

But now a question: maybe do you know and could you suggest a calligraphic
font
which is not as "rich" as callig*.mf and not as "essential" as cmsy*.mf?

Cheers,
Rodolfo M.
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.502 / Virus Database: 300 - Release Date: 18/07/03


From - Thu Sep 11 17:39:42 2003
Return-Path: <luecking@uark.edu>
Received: from mailhost.uark.edu (mailhost.uark.edu [130.184.5.66])
          by nef.ens.fr (8.12.9/1.01.28121999) with ESMTP id h8BFddlL066213
          for <metafont@ens.fr>; Thu, 11 Sep 2003 17:39:39 +0200 (CEST)
Received: from comp.uark.edu (comp.uark.edu [130.184.5.197])
 by mailhost.uark.edu
 (iPlanet Messaging Server 5.2 HotFix 1.04 (built Oct 21 2002))
 with ESMTP id <0HL2003TG33SMA@mailhost.uark.edu> for metafont@ens.fr; Thu,
 11 Sep 2003 10:31:04 -0500 (CDT)
Date: Thu, 11 Sep 2003 10:31:04 -0500 (CDT)
From: "Daniel H. Luecking" <luecking@uark.edu>
Subject: Re: [Metapost] Re: [metafont] Graph.mp annoyances
In-reply-to: <3F5EC554.6010907@mek.dtu.dk>
To: Metafont mailing list <metafont@ens.fr>
Cc: MetaPost <metapost@ntg.nl>
Message-id: <Pine.SOL.4.55.0309111020460.3565@comp.uark.edu>
MIME-version: 1.0
Content-type: TEXT/PLAIN; charset=US-ASCII
Content-transfer-encoding: 7BIT
References: <3F5DDD56.40807@mek.dtu.dk>
 <Pine.SOL.4.55.0309091353460.1199@comp.uark.edu> <3F5EC554.6010907@mek.dtu.dk>

On Wed, 10 Sep 2003, Brian Elmegaard wrote:

> Daniel,
>
> The following shows up as a polygonal curve in the .1 (and also shows a
> bad arrowhead):
>
>    gdrawarrow (10,1)--(12,2); % BTW, this shows that even straigth line
>                               % arrowheads looks odd.
>
> I get a very (very, very IMHO) strange curve.

I think both problems may be a bug. It would appear (and I'm partly
guessing here) that the code is not accounting for the vastly different
horizontal and vertical scales in your graph. The arrowhead appears on
my screen to have a slope equal to 1/2, and the line above (at first
glance) also apears to have the same slope. However, the line is nearly
vertical because the horizontal scale and vertical scale differ by a
factor of about 100. I guess I've never noticed this because I've never
had much difference in scales.

I would guess the choice of controls in the "false" case is similarly
affected by the different scales. I'll look into it further when I have
time. But perhaps some expert could suggest a fix.


Dan

P.S. Please don't return a full quote in your replies.

-- 
Dan Luecking                           Dept. of Mathematical Sciences
luecking@uark.edu                      University of Arkansas
http://comp.uark.edu/~luecking/        Fayetteville, AR 72101

From - Thu Sep 18 11:37:41 2003
Return-Path: <ziari@aria.schoolnet.ir>
Received: from aria.schoolnet.ir (aria.schoolnet.ir [81.31.175.2])
          by nef.ens.fr (8.12.10/1.01.28121999) with ESMTP id h8I9bZmj023702
          for <metafont@ens.fr>; Thu, 18 Sep 2003 11:37:36 +0200 (CEST)
Received: from aria.schoolnet.ir (localhost.localdomain [127.0.0.1])
	by aria.schoolnet.ir (8.12.8/8.12.8) with ESMTP id h8I9eDvR032243;
	Thu, 18 Sep 2003 14:10:13 +0430
Received: from localhost (ziari@localhost)
	by aria.schoolnet.ir (8.12.8/8.12.8/Submit) with ESMTP id h8I9e7t5032238;
	Thu, 18 Sep 2003 14:10:10 +0430
Date: Thu, 18 Sep 2003 14:10:07 +0430 (IRST)
From: Jafar Ziari <ziari@schoolnet.ir>
To: metafont@ens.fr, <metapost@ntg.nl>
Subject: Chemistry's  Figures
Message-ID: <Pine.LNX.4.44.0309181400480.31849-100000@aria.schoolnet.ir>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-MailScanner-Information: Please contact the ISP for more information
X-MailScanner: Found to be clean

Dear Friends,

I hope that you are fine, I need many  chemistry's figures (that drawn by
metapost), Would  you  send me these samples please (or introduce me  
link of this samples)


With Reghards,
Jafar Ziari   


From - Sun Sep 21 17:09:43 2003
Return-Path: <b.scharpf@tesionmail.de>
Received: from smtp-50v.tesionmail.de (smtp-50v.tesionmail.de [213.182.133.15])
          by nef.ens.fr (8.12.10/1.01.28121999) with ESMTP id h8LF9fv1003554
          for <metafont@ens.fr>; Sun, 21 Sep 2003 17:09:41 +0200 (CEST)
Received: from homer.bertram-scharpf ([195.226.103.44]) by
          smtp-50v.tesionmail.de (Netscape Messaging Server 4.15) with
          ESMTP id HLKKS400.FV9 for <metafont@ens.fr>; Sun, 21 Sep 2003
          15:09:40 +0000 
Received: from berti by homer.bertram-scharpf with local (Exim 3.35 #1 (Debian))
	id 1A15q2-00030M-00
	for <metafont@ens.fr>; Sun, 21 Sep 2003 17:09:26 +0200
Date: Sun, 21 Sep 2003 17:09:26 +0200
From: Bertram Scharpf <b.scharpf@tesionmail.de>
To: metafont@ens.fr
Subject: Right Angle in logocomplet's K
Message-ID: <20030921150926.GA20680@homer.bertram-scharpf>
Mail-Followup-To: metafont@ens.fr
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
User-Agent: Mutt/1.3.28i
Sender: Bertram Scharpf <b.scharpf@tesionmail.de>

Hi,

through this list my attention was attracted onto
the book 'METAFONT - Guide pratique' by Bernard
Desgraupes. I bought it and I like it very much;
thank you, Bernard!

Now I have a question about the letter "K" of
the font `logocomplet' described on p. 132.

The angle z4z5z6 is defined to be 90°, but
when I am measuring in the image on page 137,
I find that the angle comes out to be 86°.

Is the `solve'-algorithm that unexact or
did I unterstand something wrong?

Thanks in advance,

Bertram

-- 
Bertram Scharpf
Stuttgart, Deutschland/Germany

From - Sun Sep 21 17:40:00 2003
Return-Path: <bdesgraupes@easyconnect.fr>
Received: from smarthost1.mail.easynet.fr (smarthost1.mail.easynet.fr [212.180.1.68])
          by nef.ens.fr (8.12.10/1.01.28121999) with ESMTP id h8LFdwv1009342
          for <metafont@ens.fr>; Sun, 21 Sep 2003 17:39:58 +0200 (CEST)
Received: from [212.180.17.179] (helo=easyconnect.fr)
	by smarthost1.mail.easynet.fr with esmtp (Exim 3.35 #1 (Debian))
	id 1A16Ja-0000QN-00; Sun, 21 Sep 2003 17:39:58 +0200
Message-ID: <3F6DC64D.9060306@easyconnect.fr>
Date: Sun, 21 Sep 2003 17:39:57 +0200
From: Bernard Desgraupes <bdesgraupes@easyconnect.fr>
User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.4) Gecko/20030624 Netscape/7.1
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Bertram Scharpf <b.scharpf@tesionmail.de>
CC: metafont@ens.fr
Subject: Re: [metafont] Right Angle in logocomplet's K
References: <20030921150926.GA20680@homer.bertram-scharpf>
In-Reply-To: <20030921150926.GA20680@homer.bertram-scharpf>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit



Bertram,

did you try to set "tolerance" to a smaller value to get a more accurate 
solution. It is explained on page 104. You could set:
tolerance := 0.05;
The default value is 0.1.

I probably should have done it myself in the code for letter K.

It might also be that the Postscript representation is not 100% acurate 
either.

Cheers

Bernard

>Hi,
>
>through this list my attention was attracted onto
>the book 'METAFONT - Guide pratique' by Bernard
>Desgraupes. I bought it and I like it very much;
>thank you, Bernard!
>
>Now I have a question about the letter "K" of
>the font `logocomplet' described on p. 132.
>
>The angle z4z5z6 is defined to be 90°, but
>when I am measuring in the image on page 137,
>I find that the angle comes out to be 86°.
>
>Is the `solve'-algorithm that unexact or
>did I unterstand something wrong?
>
>Thanks in advance,
>
>Bertram
>
>  
>


From - Fri Sep 26 11:20:48 2003
Return-Path: <rambiusparkisanius@yahoo.com>
Received: from web40601.mail.yahoo.com (web40601.mail.yahoo.com [66.218.78.138])
          by nef.ens.fr (8.12.10/1.01.28121999) with SMTP id h8Q9Kiv1092019
          for <metafont@ens.fr>; Fri, 26 Sep 2003 11:20:45 +0200 (CEST)
Message-ID: <20030926092044.79911.qmail@web40601.mail.yahoo.com>
Received: from [62.44.96.2] by web40601.mail.yahoo.com via HTTP; Fri, 26 Sep 2003 02:20:44 PDT
Date: Fri, 26 Sep 2003 02:20:44 -0700 (PDT)
From: Ivan Ivanov <rambiusparkisanius@yahoo.com>
Subject: MetaPost variables used as labels
To: metafont@ens.fr, metapost@ntg.nl
In-Reply-To: <3F5EC554.6010907@mek.dtu.dk>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii

Dear colleagues,

I have the following question concerning MetaPost. If
I have a numeric variable defined in a MetaPost file
is it possible to use its value as a label? For
examle:
n := 5;
pair p;
p := (100,100);
label(value_of_n, p);

or more complex:
n := 5;
pair p[];
for i=0 upto n-1:
  p[i] := (i+1)*(100,100);
  label(value_of_i, p[i]);
endfor;

I am interesting in it because some of my labels
follow some rules that can be described in a for
clause and this will save me the manual labeling of
each point (I had about 50 labels in my last figure).
I read carefully "Integrating Text and Graphics" from
John Hobby's manual and other docs too, but didn't fnd
it.
I will appreciate any help.
Regards 
Ivan Ivanov
Department of Mathematcis and Computer Science
Sofia University

__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

From - Fri Sep 26 13:32:43 2003
Return-Path: <pth.thomas@wanadoo.fr>
Received: from mwinf0503.wanadoo.fr (smtp4.wanadoo.fr [193.252.22.26])
          by nef.ens.fr (8.12.10/1.01.28121999) with ESMTP id h8QBWfv1019847
          for <metafont@ens.fr>; Fri, 26 Sep 2003 13:32:41 +0200 (CEST)
Received: from oemcomputer (ABrest-103-1-2-113.w217-128.abo.wanadoo.fr [217.128.51.113])
	by mwinf0503.wanadoo.fr (SMTP Server) with SMTP
	id 925576800121; Fri, 26 Sep 2003 13:32:40 +0200 (CEST)
Message-ID: <001b01c38421$efe42780$713380d9@oemcomputer>
From: "pth" <pth.thomas@wanadoo.fr>
To: "Ivan Ivanov" <rambiusparkisanius@yahoo.com>, <metafont@ens.fr>,
        <metapost@ntg.nl>
References: <20030926092044.79911.qmail@web40601.mail.yahoo.com>
Subject: Re: [metafont] MetaPost variables used as labels
Date: Fri, 26 Sep 2003 13:32:54 +0200
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400


----- Original Message -----
From: "Ivan Ivanov" <rambiusparkisanius@yahoo.com>
To: <metafont@ens.fr>; <metapost@ntg.nl>
Sent: Friday, September 26, 2003 11:20 AM
Subject: [metafont] MetaPost variables used as labels


> Dear colleagues,
>
> I have the following question concerning MetaPost. If
> I have a numeric variable defined in a MetaPost file
> is it possible to use its value as a label? For
> examle:
> n := 5;
> pair p;
> p := (100,100);
> label(value_of_n, p);
>
> or more complex:
> n := 5;
> pair p[];
> for i=0 upto n-1:
>   p[i] := (i+1)*(100,100);
>   label(value_of_i, p[i]);
> endfor;
>

n := 5;
pair p[];
for i=0 upto n-1:
   p[i] := (i+1)*(100,100);
 write "label(btex $"&decimal(i)&"$
etex,("&decimal(xpart(p[i]))&","&decimal(ypart(p[i]))&"));"
      to "mptextmp.mp";
endfor
write EOF to "mptextmp.mp";
scantokens "input mptextmp";


pth


From - Fri Sep 26 13:52:49 2003
Return-Path: <rambiusparkisanius@yahoo.com>
Received: from web40610.mail.yahoo.com (web40610.mail.yahoo.com [66.218.78.147])
          by nef.ens.fr (8.12.10/1.01.28121999) with SMTP id h8QBqhv1023545
          for <metafont@ens.fr>; Fri, 26 Sep 2003 13:52:43 +0200 (CEST)
Message-ID: <20030926115242.21540.qmail@web40610.mail.yahoo.com>
Received: from [62.44.96.2] by web40610.mail.yahoo.com via HTTP; Fri, 26 Sep 2003 04:52:42 PDT
Date: Fri, 26 Sep 2003 04:52:42 -0700 (PDT)
From: Ivan Ivanov <rambiusparkisanius@yahoo.com>
Subject: Re: [metafont] MetaPost variables used as labels
To: metafont@ens.fr
In-Reply-To: <001b01c38421$efe42780$713380d9@oemcomputer>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii

Thank you it works. I understand from your examples
what write and scantokens commands do but where one
can get more information about them and the other
"hidden features" of MetaPost?

Greetings Ivan

--- pth <pth.thomas@wanadoo.fr> wrote:
> 
> ----- Original Message -----
> From: "Ivan Ivanov" <rambiusparkisanius@yahoo.com>
> To: <metafont@ens.fr>; <metapost@ntg.nl>
> Sent: Friday, September 26, 2003 11:20 AM
> Subject: [metafont] MetaPost variables used as
> labels
> 
> 
> n := 5;
> pair p[];
> for i=0 upto n-1:
>    p[i] := (i+1)*(100,100);
>  write "label(btex $"&decimal(i)&"$
>
etex,("&decimal(xpart(p[i]))&","&decimal(ypart(p[i]))&"));"
>       to "mptextmp.mp";
> endfor
> write EOF to "mptextmp.mp";
> scantokens "input mptextmp";
> 
> 
> pth
> 


__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

From - Mon Sep 29 20:18:32 2003
Return-Path: <rambiusparkisanius@yahoo.com>
Received: from web40607.mail.yahoo.com (web40607.mail.yahoo.com [66.218.78.144])
          by nef.ens.fr (8.12.10/1.01.28121999) with SMTP id h8TIIRjw004786
          for <metafont@ens.fr>; Mon, 29 Sep 2003 20:18:27 +0200 (CEST)
Message-ID: <20030929181826.59428.qmail@web40607.mail.yahoo.com>
Received: from [62.44.96.2] by web40607.mail.yahoo.com via HTTP; Mon, 29 Sep 2003 11:18:26 PDT
Date: Mon, 29 Sep 2003 11:18:26 -0700 (PDT)
From: Ivan Ivanov <rambiusparkisanius@yahoo.com>
Subject: Graphics of functions
To: metafont@ens.fr, metapost@ntg.nl
In-Reply-To: <001b01c38421$efe42780$713380d9@oemcomputer>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii

Dear List,
please help me with what troubles my mind now. I have
some functions given analytically like f(x)=x^3-x+1 or
f(x)=-(x+1)*exp(x-1) and I want to draw their graphics
using MetaPost. Upto to now I found two ways but they
are not comfortable for my needs. The first one is the
obvious:
pair p[];
numeric i;
i:=0;
for x := a step .01 until b:
  numeric y;
  % y := f(x);
  y := x*x*x-x+1;
  p[i] := (x*1cm, y*1cm);
  i := i+1;
endfor;
for j := 1 upto i;
  draw p[j-1]..p[j];
endfor;

and the second one was to calculate again some values
of f(x), write them in file f.d and use this file in
this way:
draw begingraph(10cm,10cm);
  gdraw("f.d");
endgraph;

Both ways proved to be tedious since I want later to
decorate the graphics by contouring parts of the
graphics with thicker lines or adding labels to
specific points (for example where it crosses the
axes). The problem with the labels is that I had to
recalculate again the index j of the needed point p[j]
so i cannot use intersectionpoint.
Furthermore, I am trying to contour a part of the
graphics between point p[k] and point p[l] in this
way:for t=k+1 upto l:
  draw ((p[t-1]..p[t]) shifted (0,.2cm)) withcolor red
withpen pencircle scaled .2cm
endfor;
As a result there are some large gaps between the very
graphics and the coloured graphics. I fixed some of
these misbehaviours manually but it was now easy.

These are my pains with my functions. Thank you very
much in advance.
Kind Regards 
Ivan Ivanov

P.S. I am doing such things because I am preparing
some lecture notes in Math Analysis. So I hope someone
managed to do it with MetaPost

__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

From - Mon Sep 29 21:22:49 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.12.10/1.01.28121999) with ESMTP id h8TJMkjw028867
          for <metafont@ens.fr>; Mon, 29 Sep 2003 21:22:47 +0200 (CEST)
Received: from localhost (radien.md.kth.se [130.237.57.166])
	by localhost.md.kth.se (Postfix) with ESMTP
	id 9A1FDA7995; Mon, 29 Sep 2003 21:22:45 +0200 (CEST)
Received: from ares.md.kth.se ([130.237.57.10])
 by localhost (radien.md.kth.se [130.237.57.166]) (amavisd-new, port 10027)
 with ESMTP id 29124-08; Mon, 29 Sep 2003 21:22:44 +0200 (CEST)
Received: from ares.md.kth.se (radien.md.kth.se [130.237.57.166])
	by localhost.md.kth.se (Postfix) with ESMTP
	id 3278CA79A8; Mon, 29 Sep 2003 21:22:45 +0200 (CEST)
Received: from dragon.md.kth.se (dragon.md.kth.se [130.237.59.245])
	by ares.md.kth.se (Postfix) with ESMTP
	id ED8AEA7995; Mon, 29 Sep 2003 21:22:44 +0200 (CEST)
Date: Mon, 29 Sep 2003 21:22:44 +0200 (CEST)
From: Johan Ingvast <ingvast@md.kth.se>
To: Ivan Ivanov <rambiusparkisanius@yahoo.com>
Cc: Metafont list <metafont@ens.fr>
Subject: Re: [Metapost] Graphics of functions
In-Reply-To: <20030929181826.59428.qmail@web40607.mail.yahoo.com>
Message-ID: <Pine.LNX.4.44.0309292248090.1714-100000@pippin>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

Hi
I hope I understand your problem right,
Would it help if you got the function you want to draw in one path?
Then you can do it as follows. (maybe a bit more complicated than
needed, but on the other hand pretty general)

% Define the functions you want to plot
% Function one
vardef H(expr x) =
        x*x*x-x+1
enddef;

% Function two
vardef F(expr x) =
        -(x+1)*mexp((x-1)*256)
enddef;

% This function returns a path generated by some function
vardef makePath(suffix F)(expr xstart,xstep,xend) =
        save x;
        for x = xstart step xstep until (xend-xstep):
                (x,F(x)) ..
        endfor
        (xend,F(xend))
enddef;

beginfig(1);
        path p;
        p:=makePath(H,0,0.1,1); % Generate the path from fuction H
        draw p scaled 5cm;
        draw p scaled 5cm shifted (0.2cm*right) withcolor red;
endfig;
beginfig(2);
        path p;
        p:=makePath(F,0,0.1,1); % Generate the path from fuction F
        draw p scaled 5cm;
        draw p scaled 5cm shifted (0.2cm*right) withcolor red;
endfig;

Hope this can help you
/johan


On Mon, 29 Sep 2003, Ivan Ivanov wrote:

> Dear List,
> please help me with what troubles my mind now. I have
> some functions given analytically like f(x)=x^3-x+1 or
> f(x)=-(x+1)*exp(x-1) and I want to draw their graphics
> using MetaPost. Upto to now I found two ways but they
> are not comfortable for my needs. The first one is the
> obvious:
> pair p[];
> numeric i;
> i:=0;
> for x := a step .01 until b:
>   numeric y;
>   % y := f(x);
>   y := x*x*x-x+1;
>   p[i] := (x*1cm, y*1cm);
>   i := i+1;
> endfor;
> for j := 1 upto i;
>   draw p[j-1]..p[j];
> endfor;
> 
> and the second one was to calculate again some values
> of f(x), write them in file f.d and use this file in
> this way:
> draw begingraph(10cm,10cm);
>   gdraw("f.d");
> endgraph;
> 
> Both ways proved to be tedious since I want later to
> decorate the graphics by contouring parts of the
> graphics with thicker lines or adding labels to
> specific points (for example where it crosses the
> axes). The problem with the labels is that I had to
> recalculate again the index j of the needed point p[j]
> so i cannot use intersectionpoint.
> Furthermore, I am trying to contour a part of the
> graphics between point p[k] and point p[l] in this
> way:for t=k+1 upto l:
>   draw ((p[t-1]..p[t]) shifted (0,.2cm)) withcolor red
> withpen pencircle scaled .2cm
> endfor;
> As a result there are some large gaps between the very
> graphics and the coloured graphics. I fixed some of
> these misbehaviours manually but it was now easy.
> 
> These are my pains with my functions. Thank you very
> much in advance.
> Kind Regards 
> Ivan Ivanov
> 
> P.S. I am doing such things because I am preparing
> some lecture notes in Math Analysis. So I hope someone
> managed to do it with MetaPost
> 
> __________________________________
> Do you Yahoo!?
> The New Yahoo! Shopping - with improved product search
> http://shopping.yahoo.com
> _______________________________________________
> Metapost mailing list
> Metapost@ntg.nl
> http://www.ntg.nl/mailman/listinfo/metapost
> 

-- 
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 - Tue Sep 30 00:11:24 2003
Return-Path: <rambiusparkisanius@yahoo.com>
Received: from web40608.mail.yahoo.com (web40608.mail.yahoo.com [66.218.78.145])
          by nef.ens.fr (8.12.10/1.01.28121999) with SMTP id h8TMBHjw075214
          for <metafont@ens.fr>; Tue, 30 Sep 2003 00:11:18 +0200 (CEST)
Message-ID: <20030929221115.87336.qmail@web40608.mail.yahoo.com>
Received: from [62.44.96.2] by web40608.mail.yahoo.com via HTTP; Mon, 29 Sep 2003 15:11:15 PDT
Date: Mon, 29 Sep 2003 15:11:15 -0700 (PDT)
From: Ivan Ivanov <rambiusparkisanius@yahoo.com>
Subject: Re: [Metapost] Graphics of functions
To: metafont@ens.fr, metapost@ntg.nl
In-Reply-To: <Pine.LNX.4.44.0309292248090.1714-100000@pippin>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii

Johan,
Thank you very much for your response. I added my
remarks in your letter below.

--- Johan Ingvast <ingvast@md.kth.se> wrote:
> Hi
> I hope I understand your problem right,

Yes, perfectly right.

> Would it help if you got the function you want to
> draw in one path?
> Then you can do it as follows. (maybe a bit more
> complicated than
> needed, but on the other hand pretty general)

I really need this generality.

<Skipped some parts> 
> beginfig(1);
>         path p;
>         p:=makePath(H,0,0.1,1); % Generate the path
> from fuction H
>         draw p scaled 5cm;
>         draw p scaled 5cm shifted (0.2cm*right)
> withcolor red;
> endfig;

If I modify your example as follows:

beginfig(2);
         path p;
         p:=makePath(F,0,0.1,1); % Generate the path
 from fuction F
         draw p scaled 5cm;
         draw p scaled 5cm shifted (0.2cm*right)
 withcolor red withpen pencircle scaled .2cm;
endfig;,

I receieve a white gap between red thick graphics and
the real fraphics of F and the gap is at the point of
local minimum. This was what I wanted to overcome.
So I did the following:
beginfig(2);
        path p;
        p:=makePath(H,0,0.1,1); % Generate the path
from fuction H
        draw p scaled 5cm;
        draw p scaled 5cm shifted (0.2cm*down)
withcolor red;
	save cyc, a, b;
	path cyc;
	path a, b;
	a := (0,H(0)) scaled 5cm -- (0,H(0)) scaled 5cm
shifted (0.2cm*down);
	b := (1,H(1)) scaled 5cm -- (1,H(1)) scaled 5cm
shifted (0.2cm*down);
	cyc := buildcycle(p scaled 5cm, a, p scaled 5cm
shifted (0.2cm*down), b);
	fill cyc withcolor red;
	draw p scaled 5cm;
endfig;

Thus I can avoid the gap.
 
> Hope this can help you
Thank you very much for your help. It really help me
to find the correct answer

Best Wished Ivan


__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

