From - Mon Aug  4 11:19:37 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 h749JWko029209
          for <metafont@ens.fr>; Mon, 4 Aug 2003 11:19:32 +0200 (CEST)
Received: from mek.dtu.dk ([130.226.18.41]) by mes1.mek.dtu.dk with Microsoft SMTPSVC(5.0.2195.6713);
	 Mon, 4 Aug 2003 11:19:28 +0200
Message-ID: <3F2E2520.1020908@mek.dtu.dk>
Date: Mon, 04 Aug 2003 11:19:28 +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
CC: The Discussion List of METAFONT/METAPOST <metafont@ens.fr>
Subject: Re: [metafont] another puzzle (see attached little PDF)
References: <Pine.LNX.4.44.0307161449200.1600-101000@bop.eps.gda.pl>
In-Reply-To: <Pine.LNX.4.44.0307161449200.1600-101000@bop.eps.gda.pl>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-OriginalArrivalTime: 04 Aug 2003 09:19:28.0898 (UTC) FILETIME=[819AD620:01C35A69]

Hi Boguslaw,

I just tried this and see the problem in latex too if I use the epsfig 
package for the inclusion. The graphicx package includes it perfectly. 
Isn't there a never package than epsf for plain tex?

Brian

Boguslaw Jackowski wrote:
> Recently, Larry presented a nice puzzle for adherents of Adobe Distiller.
> Now, a puzzle for adherents of TeX, dvips and METAPOST.
> 
> The following trivial TeX script 
> 
> %%%
> \input epsf % it is sort of standard, isn't it?
> \def\SET#1 {\vbox{\hrule \hbox{\epsfysize100mm\epsfbox{oddrules.#1}}}\enspace}
> \noindent \SET 100 \SET 101 \SET 102
> \end
> %%%
> 
> yields somewhat suprising results (narrow rectangles are too low) for
> three EPSes generated by an equally trivial METAPOST program, say,
> oddrules.mp:
> 
> %%%
> beginfig(100); fill unitsquare xscaled 1 yscaled 300 withcolor red; endfig;
> beginfig(101); fill unitsquare xscaled 10 yscaled 300 withcolor green; endfig;
> beginfig(102); fill unitsquare xscaled 100 yscaled 300 withcolor blue; endfig;
> end.
> %%%
> 
> Since the resulting PDF is pretty small, I take therefore the liberty to 
> attach it to the letter.
> 
> Of course, the arithmetic of the epsf package is to be blamed, the
> more so as we insisted on both Toms (Rokicki and Kacvinski) to improve it.
> Actually, my colleagues and I use an improved version...
> 
> Cheers -- Jacko
> 
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
>  Bogus\l{}aw Jackowski: B.Jackowski@GUST.ORG.PL
> ----------------------------------------------------------------
>  Hofstadter's Law: It always takes longer than you expect, even
>                    when you take into account Hofstadter's Law.
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> 
> 


-- 
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 - Mon Aug  4 11:28:19 2003
Return-Path: <robin.fairbairns@cl.cam.ac.uk>
Received: from wisbech.cl.cam.ac.uk (mta1.cl.cam.ac.uk [128.232.0.15])
          by nef.ens.fr (8.12.9/1.01.28121999) with ESMTP id h749SGko030429
          for <metafont@ens.fr>; Mon, 4 Aug 2003 11:28:16 +0200 (CEST)
Received: from pallas.cl.cam.ac.uk
	([128.232.8.88] helo=cl.cam.ac.uk ident=[1TlBwK/dKttJD5pmqB1B83XDpnj/veOe])
	by wisbech.cl.cam.ac.uk with esmtp (Exim 3.092 #1)
	id 19jbdY-00029U-00; Mon, 04 Aug 2003 10:28:16 +0100
To: Brian Elmegaard <be@mek.dtu.dk>
cc: The Discussion List of METAFONT/METAPOST <metafont@ens.fr>
Subject: Re: [metafont] another puzzle (see attached little PDF) 
In-reply-to: Your message of Mon, 04 Aug 2003 11:19:28 +0200.
             <3F2E2520.1020908@mek.dtu.dk> 
Date: Mon, 04 Aug 2003 10:28:16 +0100
From: Robin Fairbairns <Robin.Fairbairns@cl.cam.ac.uk>
Message-Id: <E19jbdY-00029U-00@wisbech.cl.cam.ac.uk>

Brian Elmegaard wrote:

> Boguslaw Jackowski wrote:
> > Recently, Larry presented a nice puzzle for adherents of Adobe Distiller.
> > Now, a puzzle for adherents of TeX, dvips and METAPOST.
> > 
> > The following trivial TeX script 
> > 
> > %%%
> > \input epsf % it is sort of standard, isn't it?
> > \def\SET#1 {\vbox{\hrule \hbox{\epsfysize100mm\epsfbox{oddrules.#1}}}\enspace}
> > \noindent \SET 100 \SET 101 \SET 102
> > \end
> > %%%
> > 
> > yields somewhat suprising results (narrow rectangles are too low) for
> > three EPSes generated by an equally trivial METAPOST program, say,
> > oddrules.mp:
> > 
> > %%%
> > beginfig(100); fill unitsquare xscaled 1 yscaled 300 withcolor red; endfig;
> > beginfig(101); fill unitsquare xscaled 10 yscaled 300 withcolor green; endfig;
> > beginfig(102); fill unitsquare xscaled 100 yscaled 300 withcolor blue; endfig;
> > end.
> > %%%
> > 
> > Since the resulting PDF is pretty small, I take therefore the liberty to 
> > attach it to the letter.
> > 
> > Of course, the arithmetic of the epsf package is to be blamed, the
> > more so as we insisted on both Toms (Rokicki and Kacvinski) to improve it.

why should they mend something just because it remains tagged on to
the dvips distribution?

> > Actually, my colleagues and I use an improved version...
> 
> I just tried this and see the problem in latex too if I use the epsfig 
> package for the inclusion. The graphicx package includes it perfectly. 

the epsfig you're using is another ancient (pre-1994) relic.  delete
that one, and the one that comes with the standard graphics package
will appear (you must somehow be forcing the old one in the search
path before the current one).

> Isn't there a never package than epsf for plain tex?

graphicx is available for plain tex (using a bundle of odds and ends
that are distributed with it (macros/plain/graphics)

plain tex people don't like it because it's tainted with latex-ism,
but none of them can be bothered to mend the bugs in epsf either.

From - Tue Aug  5 02:41:17 2003
Return-Path: <tjk@ams.org>
Received: from ams.org (sun06.ams.org [130.44.1.6])
          by nef.ens.fr (8.12.9/1.01.28121999) with ESMTP id h750fCko069826
          for <metafont@ens.fr>; Tue, 5 Aug 2003 02:41:12 +0200 (CEST)
Received: (from tjk@localhost)
	by ams.org (8.12.9/8.12.9) id h750fB4i010393;
	Mon, 4 Aug 2003 20:41:11 -0400 (EDT)
Date: Mon, 4 Aug 2003 20:41:10 -0400 (EDT)
From: Tom Kacvinsky <tjk@ams.org>
To: metafont@ens.fr
Subject: Re: [metafont] another puzzle (see attached little PDF) 
In-Reply-To: <E19jbdY-00029U-00@wisbech.cl.cam.ac.uk>
Message-ID: <Pine.GSO.4.53.0308042037230.10100@sun06.ams.org>
References: <E19jbdY-00029U-00@wisbech.cl.cam.ac.uk>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

On Mon, 4 Aug 2003, Robin Fairbairns wrote:

<snip>

> Brian Elmegaard wrote:
>
> > Boguslaw Jackowski wrote:
> >
> > >
> > > Since the resulting PDF is pretty small, I take therefore the liberty to
> > > attach it to the letter.
> > >
> > > Of course, the arithmetic of the epsf package is to be blamed, the
> > > more so as we insisted on both Toms (Rokicki and Kacvinski) to improve it.
>
> why should they mend something just because it remains tagged on to
> the dvips distribution?
>
> > > Actually, my colleagues and I use an improved version...
> >
> > I just tried this and see the problem in latex too if I use the epsfig
> > package for the inclusion. The graphicx package includes it perfectly.
>
> the epsfig you're using is another ancient (pre-1994) relic.  delete
> that one, and the one that comes with the standard graphics package
> will appear (you must somehow be forcing the old one in the search
> path before the current one).
>
> > Isn't there a never package than epsf for plain tex?
>
> graphicx is available for plain tex (using a bundle of odds and ends
> that are distributed with it (macros/plain/graphics)
>
> plain tex people don't like it because it's tainted with latex-ism,
> but none of them can be bothered to mend the bugs in epsf either.
>

Because Jacko asked me to look into it at EuroTeX 2001 (!) and even
sent me samples after I asked him to (thinking that I would get around
to them sooner rather than later).  There were even follow-up emails
for his colleagues, which I failed to follow up on.  I cannot say I
blame Jacko.  :-)

So, Jacko, once again, I ask you to send me some samples and I will at
them.

Tom

From - Tue Aug  5 07:31:57 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.12.9/1.01.28121999) with ESMTP id h755Vqko014073
          for <metafont@ens.fr>; Tue, 5 Aug 2003 07:31:53 +0200 (CEST)
Received: (from laurent@localhost)
	by coxeter.math.toronto.edu (8.11.6p2/8.11.0/UTMath 1.0) id h755VlU55196;
	Tue, 5 Aug 2003 01:31:47 -0400
Date: Tue, 5 Aug 2003 01:31:47 -0400
From: Larry Siebenmann <laurent@math.toronto.edu>
Message-Id: <200308050531.h755VlU55196@coxeter.math.toronto.edu>
To: B.Jackowski@GUST.org.pl, beebe@math.utah.edu, laurent@math.toronto.edu,
   metafont@ens.fr, rokicki@cs.stanford.edu, tjk@ams.org
Subject: Re: [metafont] another puzzle




Brian Elmegaard writes:

> Isn't there a newer package than epsf for plain tex?

Brian!

Yes "boxedeps.tex" passes the test. The first package
to serve *all dvi drivers* with a single portable tex
macro file is my own "boxedeps.tex" on CTAN (Feb
1991-- and occasionally updated since). (Basically,
you just name your driver from a provided roster. 
If it is not there, try \SetEPSFMultiSpecial on the
off-chance.) It seems that all(?) others still
require a driver-specific installation or multiple
files.

Tom Kacvinsky <tjk@ams.org>:

 > So, Jacko, once again, I ask you to send me some samples
 > and I will at them.
 > 
 > Tom  

Tom!

I hope you are equally willing to look at (classic)
amstex bugs!?  The ams has a commented version of source
so the code should be maintainable.

Laurent (Larry) Siebenmann

PS.

The latest CTAN version of epsf.tex seems to be 2.7k
of 19 July 1997:
   
    macros/plain/contrib/epsf.tex

and it has the same bug as do all earlier versions on
CTAN.

Incidentally, the "expert-redefinable" \epsfsize macro
doc explicitly states that its output must be the wanted
xsize. Hence when that goes to zero the resulting ysize
becomes indeterminate. Thus the bug seems to be more
deeply ingrained in epsf.tex than I first said.  But it
can be fixed.

Precise graphics programs like metapost are pushing
"epsf.tex" beyond its original competence.



From - Wed Aug 13 11:34:58 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 h7D9Yq5a008845
          for <metafont@ens.fr>; Wed, 13 Aug 2003 11:34:52 +0200 (CEST)
Received: from mek.dtu.dk ([130.226.18.82]) by mes1.mek.dtu.dk with Microsoft SMTPSVC(5.0.2195.6713);
	 Wed, 13 Aug 2003 11:34:52 +0200
Message-ID: <3F3A063B.9050106@mek.dtu.dk>
Date: Wed, 13 Aug 2003 11:34:51 +0200
From: Brian Elmegaard <be@mek.dtu.dk>
Organization: MEK, DTU
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>
Subject: Automatic rotation of pen
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-OriginalArrivalTime: 13 Aug 2003 09:34:52.0077 (UTC) FILETIME=[259485D0:01C3617E]

Hi,
(I have posted this to comp.text.tex, but have had no response. Can 
anyone here help?)

if I make a metapost file with a non-symmetrical pen like:

pen mypen;
mypen := pensquare xscaled 8pt yscaled 2pt;

beginfig(1);
   draw (50pt, 50pt)--(50pt,100pt)--(100pt,100pt)--cycle withpen mypen;
endfig;
end

the pen will not rotate when turning. Is there a way to make the pen
rotate and follow the path?

tia,
-- 
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 Aug 13 13:20:35 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.9/1.01.28121999) with ESMTP id h7DBKX5a023147
          for <metafont@ens.fr>; Wed, 13 Aug 2003 13:20:34 +0200 (CEST)
Received: from ares.md.kth.se (localhost.localdomain [127.0.0.1])
	by localhost.md.kth.se (Postfix) with ESMTP
	id E459BA761F; Wed, 13 Aug 2003 13:20:32 +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 699EBA75EA; Wed, 13 Aug 2003 13:20:31 +0200 (CEST)
Date: Wed, 13 Aug 2003 13:20:31 +0200 (CEST)
From: Johan Ingvast <ingvast@md.kth.se>
To: Brian Elmegaard <be@mek.dtu.dk>
Cc: Metafont mailing list <metafont@ens.fr>
Subject: Re: [metafont] Automatic rotation of pen
In-Reply-To: <3F3A063B.9050106@mek.dtu.dk>
Message-ID: <Pine.LNX.4.44.0308131317230.7192-100000@dragon.md.kth.se>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

What do you really want to do?
To me, rotating the pen would be the same as having a circular pen.
Right?
/johan

On Wed, 13 Aug 2003, Brian Elmegaard wrote:

> Hi,
> (I have posted this to comp.text.tex, but have had no response. Can 
> anyone here help?)
> 
> if I make a metapost file with a non-symmetrical pen like:
> 
> pen mypen;
> mypen := pensquare xscaled 8pt yscaled 2pt;
> 
> beginfig(1);
>    draw (50pt, 50pt)--(50pt,100pt)--(100pt,100pt)--cycle withpen mypen;
> endfig;
> end
> 
> the pen will not rotate when turning. Is there a way to make the pen
> rotate and follow the path?
> 
> tia,
> 

-- 
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 - Wed Aug 13 13:26:57 2003
Return-Path: <tjk@ams.org>
Received: from ams.org (sun06.ams.org [130.44.1.6])
          by nef.ens.fr (8.12.9/1.01.28121999) with ESMTP id h7DBQu5a023914
          for <metafont@ens.fr>; Wed, 13 Aug 2003 13:26:56 +0200 (CEST)
Received: (from tjk@localhost)
	by ams.org (8.12.9/8.12.9) id h7DBQtgE008942;
	Wed, 13 Aug 2003 07:26:55 -0400 (EDT)
Date: Wed, 13 Aug 2003 07:26:55 -0400 (EDT)
From: Tom Kacvinsky <tjk@ams.org>
To: metafont@ens.fr
Subject: Re: [metafont] Automatic rotation of pen
In-Reply-To: <Pine.LNX.4.44.0308131317230.7192-100000@dragon.md.kth.se>
Message-ID: <Pine.GSO.4.53.0308130725190.8309@sun06.ams.org>
References: <Pine.LNX.4.44.0308131317230.7192-100000@dragon.md.kth.se>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

The scaling he has put into has created a rectangular pen.  Rotating a
rectangular pen is not going to create a circle...

Tom

On Wed, 13 Aug 2003, Johan Ingvast wrote:

> What do you really want to do?
> To me, rotating the pen would be the same as having a circular pen.
> Right?
> /johan
>
> On Wed, 13 Aug 2003, Brian Elmegaard wrote:
>
> > Hi,
> > (I have posted this to comp.text.tex, but have had no response. Can
> > anyone here help?)
> >
> > if I make a metapost file with a non-symmetrical pen like:
> >
> > pen mypen;
> > mypen := pensquare xscaled 8pt yscaled 2pt;
> >
> > beginfig(1);
> >    draw (50pt, 50pt)--(50pt,100pt)--(100pt,100pt)--cycle withpen mypen;
> > endfig;
> > end
> >
> > the pen will not rotate when turning. Is there a way to make the pen
> > rotate and follow the path?
> >
> > tia,
> >
>
> --
> 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 - Wed Aug 13 14:15:39 2003
Return-Path: <Andreas.Fieger@ServiceBarometer.de>
Received: from relay.teamware-gmbh.de (relay.teamware-gmbh.de [212.29.0.3])
          by nef.ens.fr (8.12.9/1.01.28121999) with ESMTP id h7DCFZ5a030625
          for <metafont@ens.fr>; Wed, 13 Aug 2003 14:15:35 +0200 (CEST)
Received: from michael (host-022-009-029-212.customer.teamware-gmbh.de [212.29.9.22])
	by relay.teamware-gmbh.de (Postfix) with SMTP
	id 382B2A806D; Wed, 13 Aug 2003 14:15:35 +0200 (MET DST)
Received: from 192.168.0.97:2532
	  by KEN! (0.0.0.0:25) with SMTP
	  Wed Aug 13 14:18:48 2003 +0200
From: "Andreas Fieger" <andreas.fieger@servicebarometer.de>
To: "'Tom Kacvinsky'" <tjk@ams.org>, <metafont@ens.fr>
Subject: RE: [metafont] Automatic rotation of pen
Date: Wed, 13 Aug 2003 14:14:59 +0200
Message-Id: <001301c36194$85e7a230$6100a8c0@sbarometer.lokal>
Mime-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2911.0)
In-Reply-To: <Pine.GSO.4.53.0308130725190.8309@sun06.ams.org>
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
Importance: Normal


Tom,

> -----Original Message-----
> From: Tom Kacvinsky [mailto:tjk@ams.org]
> 
> The scaling he has put into has created a rectangular pen.  Rotating a
> rectangular pen is not going to create a circle...
> 
> Tom

rotating the rectangular pen such that it follows the path
(i.e. has the same direction) has the effect that the width of 
the line drawn is the same for all points on the path.
This is not different to using a circular pen (of appropriate 
size) -- except for the ends of the path in case cycle is not 
used. 

 
> On Wed, 13 Aug 2003, Johan Ingvast wrote:
> 
> > What do you really want to do?
> > To me, rotating the pen would be the same as having a circular pen.
> > Right?
> > /johan
> >


Andreas 
-- 
Dr. Andreas Fieger
ServiceBarometer AG
Tel (089) 896669-17 

From - Wed Aug 13 14:49:02 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 h7DCmx5a035499
          for <metafont@ens.fr>; Wed, 13 Aug 2003 14:49:00 +0200 (CEST)
Received: from mek.dtu.dk ([130.226.18.82]) by mes1.mek.dtu.dk with Microsoft SMTPSVC(5.0.2195.6713);
	 Wed, 13 Aug 2003 14:48:59 +0200
Message-ID: <3F3A33BB.9020500@mek.dtu.dk>
Date: Wed, 13 Aug 2003 14:48:59 +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@ens.fr
Subject: Re: [metafont] Automatic rotation of pen
References: <001301c36194$85e7a230$6100a8c0@sbarometer.lokal>
In-Reply-To: <001301c36194$85e7a230$6100a8c0@sbarometer.lokal>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-OriginalArrivalTime: 13 Aug 2003 12:48:59.0882 (UTC) FILETIME=[443684A0:01C36199]

Johan, Tom and Andreas,

thanks for your replies. I see my question was a little stupid. I can 
make the pen circular and then draw a path. However, my problem isn't 
solved by this, but is another.

Can I draw so the pen is shifted a little to the side of the path (i.e., 
an lshifted operator) or will I have to calculate all the points that 
make the pen follow a path shifted a little?

Brian


Andreas Fieger wrote:
> Tom,
> 
> 
>>-----Original Message-----
>>From: Tom Kacvinsky [mailto:tjk@ams.org]
>>
>>The scaling he has put into has created a rectangular pen.  Rotating a
>>rectangular pen is not going to create a circle...
>>
>>Tom
> 
> 
> rotating the rectangular pen such that it follows the path
> (i.e. has the same direction) has the effect that the width of 
> the line drawn is the same for all points on the path.
> This is not different to using a circular pen (of appropriate 
> size) -- except for the ends of the path in case cycle is not 
> used. 
> 
>  
> 
>>On Wed, 13 Aug 2003, Johan Ingvast wrote:
>>
>>
>>>What do you really want to do?
>>>To me, rotating the pen would be the same as having a circular pen.
>>>Right?
>>>/johan
>>>
> 
> 
> 
> Andreas 


-- 
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 Aug 13 15:15:55 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.9/1.01.28121999) with ESMTP id h7DDFp5a039506
          for <metafont@ens.fr>; Wed, 13 Aug 2003 15:15:51 +0200 (CEST)
Received: from ares.md.kth.se (localhost.localdomain [127.0.0.1])
	by localhost.md.kth.se (Postfix) with ESMTP
	id 892F1A762D; Wed, 13 Aug 2003 15:15:50 +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 54C2FA7625; Wed, 13 Aug 2003 15:15:50 +0200 (CEST)
Date: Wed, 13 Aug 2003 15:15:49 +0200 (CEST)
From: Johan Ingvast <ingvast@md.kth.se>
To: Brian Elmegaard <be@mek.dtu.dk>
Cc: Metafont list <metafont@ens.fr>
Subject: Re: [metafont] Automatic rotation of pen
In-Reply-To: <3F3A33BB.9020500@mek.dtu.dk>
Message-ID: <Pine.LNX.4.44.0308131504130.7522-100000@dragon.md.kth.se>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

Hi 
I think this topic has been on the list before.  As far as I remember
there was no good way of doing what you want for all cases.

For the special cas when you have a closed path and want to draw a line a
specified distance on the outside of the path, do as this example shows:

	path p;
	% Define the path 
        p= (50pt, 50pt)--(50pt,100pt)--(100pt,50pt)--cycle;

        % Draw a fat line and fill the inside with background color
	% which leaves a thin line on the outside
        draw p withpen pencircle scaled 10pt;
        filldraw p withpen pencircle scaled 8pt withcolor white;

        % Draw the line first defined
        draw p withpen pencircle scaled 1pt withcolor red;

The solution is not satisfactory since it fills the inside with white and
covers whatever was there before.

Is there a similar solution to make a line inside the path?
/johan

On Wed, 13 Aug 2003, Brian Elmegaard wrote:

> Johan, Tom and Andreas,
> 
> thanks for your replies. I see my question was a little stupid. I can 
> make the pen circular and then draw a path. However, my problem isn't 
> solved by this, but is another.
> 
> Can I draw so the pen is shifted a little to the side of the path (i.e., 
> an lshifted operator) or will I have to calculate all the points that 
> make the pen follow a path shifted a little?
> 
> Brian
> 
> 
> Andreas Fieger wrote:
> > Tom,
> > 
> > 
> >>-----Original Message-----
> >>From: Tom Kacvinsky [mailto:tjk@ams.org]
> >>
> >>The scaling he has put into has created a rectangular pen.  Rotating a
> >>rectangular pen is not going to create a circle...
> >>
> >>Tom
> > 
> > 
> > rotating the rectangular pen such that it follows the path
> > (i.e. has the same direction) has the effect that the width of 
> > the line drawn is the same for all points on the path.
> > This is not different to using a circular pen (of appropriate 
> > size) -- except for the ends of the path in case cycle is not 
> > used. 
> > 
> >  
> > 
> >>On Wed, 13 Aug 2003, Johan Ingvast wrote:
> >>
> >>
> >>>What do you really want to do?
> >>>To me, rotating the pen would be the same as having a circular pen.
> >>>Right?
> >>>/johan
> >>>
> > 
> > 
> > 
> > Andreas 
> 
> 
> 

-- 
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 - Thu Aug 14 12:23:33 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.12.9/1.01.28121999) with ESMTP id h7EANT5a089030
          for <metafont@ens.fr>; Thu, 14 Aug 2003 12:23:29 +0200 (CEST)
Received: (from laurent@localhost)
	by coxeter.math.toronto.edu (8.11.6p2/8.11.0/UTMath 1.0) id h7EANSk170626;
	Thu, 14 Aug 2003 06:23:28 -0400
Date: Thu, 14 Aug 2003 06:23:28 -0400
From: Larry Siebenmann <laurent@math.toronto.edu>
Message-Id: <200308141023.h7EANSk170626@coxeter.math.toronto.edu>
To: laurent@math.toronto.edu, metafont@ens.fr
Subject: Re: [metafont] Automatic rotation of pen



 > Can I draw so the pen is shifted a little to the side of
 > the path (i.e., an lshifted operator) or will I have to
 > calculate all the points that make the pen follow a path
 > shifted a little?

Shifting the pen origin and shifting the path are 
mathematically equivalent if the shift is constant.
But for shifting by a bezier offset vector, only 
the method that shifts the path will work since all mf 
pens are ultimately rigid convex polygons with a basepoint.

For more flexibility, you may want to look at 

http://www.cs.bell-labs.com/who/hobby
http://cm.bell-labs.com/who/hobby

and in particular:

@phdthesis{Hobby85,
   author = {John D. Hobby},
   title = {Digitized Brush Trajectories},
   school = {Stanford University},
   year = {1985},
   note = {Also {\it Stanford Report STAN-CS-85-1070}}
}

Different strokes for different folks.

Cheers

Laurent S.



From - Fri Aug 15 16:17:07 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 h7FEH15a066491
          for <metafont@ens.fr>; Fri, 15 Aug 2003 16:17:01 +0200 (CEST)
Received: from psi.math.utah.edu (IDENT:LNlu8r5/iiXqZuHFB01gS8vZ9/u70g5h@psi.math.utah.edu [128.110.198.32])
	by sunshine.math.utah.edu (8.9.3p2/8.9.3) with ESMTP id IAA27976;
	Fri, 15 Aug 2003 08:16:58 -0600 (MDT)
Received: (from beebe@localhost)
	by psi.math.utah.edu (8.9.3p2/8.9.3) id IAA24743;
	Fri, 15 Aug 2003 08:16:58 -0600 (MDT)
Date: Fri, 15 Aug 2003 08:16:58 -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: Converting bitmaps to outlines: potrace: a new tool for
        metafont/metapost folks
Message-ID: <CMM.0.92.0.1060957018.beebe@psi.math.utah.edu>

A recent posting on another list drew my attention to a very
interesting new tool for converting bitmaps to outlines: potrace.  I
have already successfully installed it on several architectures using
gcc; minor tweaks should make it even more portable.

Take a look at

        http://potrace.sourceforge.net/

and particularly the impressive examples at

        http://potrace.sourceforge.net/samples.html

Some clever person might be able to create a new backend that would
output metafont or metapost programs, paving the way to mass
production of meta-fonts, and perhaps, making metafont/metapost widely
known outside the TeX community.

Even if manual hinting and tweaking will ultimately be necessary for
high-quality font production, the huge character repertoire of Unicode
poses enormous demands on font foundries that 
potrace + metafont/metapost might help address.

-------------------------------------------------------------------------------
- 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                       beebe@ieee.org                    -
- Salt Lake City, UT 84112-0090, USA    URL: http://www.math.utah.edu/~beebe  -
-------------------------------------------------------------------------------

From - Fri Aug 15 19:59:22 2003
Return-Path: <tjk@ams.org>
Received: from ams.org (sun06.ams.org [130.44.1.6])
          by nef.ens.fr (8.12.9/1.01.28121999) with ESMTP id h7FHxH5a090087
          for <metafont@ens.fr>; Fri, 15 Aug 2003 19:59:17 +0200 (CEST)
Received: (from tjk@localhost)
	by ams.org (8.12.9/8.12.9) id h7FHxHdg018212;
	Fri, 15 Aug 2003 13:59:17 -0400 (EDT)
Date: Fri, 15 Aug 2003 13:59:17 -0400 (EDT)
From: Tom Kacvinsky <tjk@ams.org>
To: metafont@ens.fr
Subject: Re: [metafont] Converting bitmaps to outlines: potrace: a new tool
 for        metafont/metapost folks
In-Reply-To: <CMM.0.92.0.1060957018.beebe@psi.math.utah.edu>
Message-ID: <Pine.GSO.4.53.0308151358140.11457@sun06.ams.org>
References: <CMM.0.92.0.1060957018.beebe@psi.math.utah.edu>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

Wow!  I *have* get this installed.  What were your minor tweaks for
Solaris 2.8, Nelson?

Regards,

Tom

On Fri, 15 Aug 2003, Nelson H. F. Beebe wrote:

> A recent posting on another list drew my attention to a very
> interesting new tool for converting bitmaps to outlines: potrace.  I
> have already successfully installed it on several architectures using
> gcc; minor tweaks should make it even more portable.
>
> Take a look at
>
>         http://potrace.sourceforge.net/
>
> and particularly the impressive examples at
>
>         http://potrace.sourceforge.net/samples.html
>
> Some clever person might be able to create a new backend that would
> output metafont or metapost programs, paving the way to mass
> production of meta-fonts, and perhaps, making metafont/metapost widely
> known outside the TeX community.
>
> Even if manual hinting and tweaking will ultimately be necessary for
> high-quality font production, the huge character repertoire of Unicode
> poses enormous demands on font foundries that
> potrace + metafont/metapost might help address.
>

From - Mon Aug 18 09:49:19 2003
Return-Path: <pragma@wxs.nl>
Received: from mail.solcon.net (mail.solcon.net [212.45.33.5])
          by nef.ens.fr (8.12.9/1.01.28121999) with ESMTP id h7I7nJ5a020351
          for <metafont@ens.fr>; Mon, 18 Aug 2003 09:49:19 +0200 (CEST)
Received: from server-1.pragma-net.nl (dsl-212-84-128-085.solcon.nl [212.84.128.85])
	by mail.solcon.net (8.11.6/8.9.3) with ESMTP id h7I7nFk20693;
	Mon, 18 Aug 2003 09:49:15 +0200
Received: from laptop-3.wxs.nl (laptop-3.pragma-net [10.100.1.191])
	by server-1.pragma-net.nl (Postfix) with ESMTP
	id E337D17AE5; Mon, 18 Aug 2003 09:49:12 +0200 (CEST)
Message-Id: <5.2.0.9.1.20030816185609.0299fe98@server-1>
X-Sender: hagen-mail@server-1
X-Mailer: QUALCOMM Windows Eudora Version 5.2.0.9
Date: Sat, 16 Aug 2003 18:57:53 +0200
To: "Nelson H. F. Beebe" <beebe@math.utah.edu>
From: Hans Hagen <pragma@wxs.nl>
Subject: Re: [metafont] Converting bitmaps to outlines: potrace: a new
  tool for metafont/metapost folks
Cc: metafont@ens.fr
In-Reply-To: <CMM.0.92.0.1060957018.beebe@psi.math.utah.edu>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"; format=flowed

Hi Nelson,

>         http://potrace.sourceforge.net/
>
>Some clever person might be able to create a new backend that would
>output metafont or metapost programs, paving the way to mass
>production of meta-fonts, and perhaps, making metafont/metapost widely
>known outside the TeX community.

i tried the program on windows, and when saying -u=100 i get an invalid eps:

   Inf Inf scale

with Inf being the troublemaker (undefined?)

Does this happen on your platform?

Hans
-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                        information: http://www.pragma-ade.com/roadmap.pdf
                     documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------


From - Mon Aug 18 19:40:50 2003
Return-Path: <cloos@jhcloos.com>
Received: from ore.jhcloos.com (ore.jhcloos.com [64.240.156.239])
          by nef.ens.fr (8.12.9/1.01.28121999) with ESMTP id h7IHei5a098736
          for <metafont@ens.fr>; Mon, 18 Aug 2003 19:40:45 +0200 (CEST)
Received: from lugabout.jhcloos.org (ppp14.pm3-15.buf-ch.ny.localnet.com [207.251.197.142])
	(using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits))
	(Client CN "lugabout.jhcloos.org", Issuer "ca.jhcloos.com" (verified OK))
	by ore.jhcloos.com (Postfix) with ESMTP
	id 210951C59C; Mon, 18 Aug 2003 12:39:37 -0500 (CDT)
Received: from lugabout.jhcloos.org (localhost [127.0.0.1])
	by lugabout.jhcloos.org (Postfix on SuSE Linux 7.3 (i386)) with ESMTP
	id 73E1C25AA2; Mon, 18 Aug 2003 17:06:11 +0000 (GMT)
To: Hans Hagen <pragma@wxs.nl>
Cc: "Nelson H. F. Beebe" <beebe@math.utah.edu>, metafont@ens.fr
Subject: Re: [metafont] Converting bitmaps to outlines: potrace: a new tool
 for metafont/metapost folks
References: <5.2.0.9.1.20030816185609.0299fe98@server-1>
From: "James H. Cloos Jr." <cloos@jhcloos.com>
In-Reply-To: <5.2.0.9.1.20030816185609.0299fe98@server-1>
Date: 18 Aug 2003 13:06:11 -0400
Message-ID: <m3brumlwu4.fsf@lugabout.jhcloos.org>
Lines: 28
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii

>>>>> "Hans" == Hans Hagen <pragma@wxs.nl> writes:

Hans> i tried the program on windows, and when saying -u=100 i get an
Hans> invalid eps:

Hans>    Inf Inf scale

Hans> with Inf being the troublemaker (undefined?)

Hans> Does this happen on your platform?

Try using -u 100 rather than -u=100.  In the latter case the string
'=100' is converted to the int 0, hense the divide by zero error
resulting in the string 'Inf' in the output.

(If div by zero is not flagged for an exception, the float will
contain an infinity.  When converting a float to a string, such
as in printf(3), infinities get converted to Inf or -Inf.)

If instead of -u, you had used the long option --unit, then =
would have been OK.  But not for short options.

(And yes, this does also occur on posix platforms.  However, were the
CPU's floating point unit configured to error on a div by zero the
program would get a Floating Point Exception signal and would be
kill(2)ed.)

-JimC


From - Tue Aug 26 19:57:50 2003
Return-Path: <rambiusparkisanius@yahoo.com>
Received: from web40611.mail.yahoo.com (web40611.mail.yahoo.com [66.218.78.148])
          by nef.ens.fr (8.12.9/1.01.28121999) with SMTP id h7QHvm5a068959
          for <metafont@ens.fr>; Tue, 26 Aug 2003 19:57:48 +0200 (CEST)
Message-ID: <20030826175747.10036.qmail@web40611.mail.yahoo.com>
Received: from [62.44.96.2] by web40611.mail.yahoo.com via HTTP; Tue, 26 Aug 2003 10:57:47 PDT
Date: Tue, 26 Aug 2003 10:57:47 -0700 (PDT)
From: Ivan Ivanov <rambiusparkisanius@yahoo.com>
Subject: MetaPost lables do not appear
To: metafont@ens.fr
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii

Dear Metafont list,
i have the following problem: i am trying wih no
success to output some labels in my postscript
graphics using MetaPost 0.641. According to John D.
Hobby's MetaPost manual this  should be done in this
way: 
label("45", qc) where qc is the point where the label
with text 45 will be placed. 
I do it in this way and unfortunately, in the
resulting .ps file the label is not outputed or at
least is not visible. I also tried to change the
defaultfont variable from cmr10 to rptmr (this was
recommended again in John D. Hobby's MetaPost manual),
but I had no luck. I also tried some minor tricks but
they did not work too.
So my question is: is this the right way to make
labels with MetaPost or am I doing something wrong?
I am looking forward to receiving an answer from you
soon.
Greetings Ivan Ivanov

P.S. I use RedHat 8.0 if this is important 

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

From - Tue Aug 26 23:48:33 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 h7QLmU5a034291
          for <metafont@ens.fr>; Tue, 26 Aug 2003 23:48:30 +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 <0HK800CBXXLRUT@mailhost.uark.edu> for metafont@ens.fr; Tue,
 26 Aug 2003 16:41:51 -0500 (CDT)
Date: Tue, 26 Aug 2003 16:41:51 -0500 (CDT)
From: "Daniel H. Luecking" <luecking@uark.edu>
Subject: Re: [metafont] MetaPost lables do not appear
In-reply-to: <20030826175747.10036.qmail@web40611.mail.yahoo.com>
To: Metafont distribution list <metafont@ens.fr>
Message-id: <Pine.SOL.4.55.0308261627480.5737@comp.uark.edu>
MIME-version: 1.0
Content-type: TEXT/PLAIN; charset=US-ASCII
Content-transfer-encoding: 7BIT
References: <20030826175747.10036.qmail@web40611.mail.yahoo.com>

On Tue, 26 Aug 2003, Ivan Ivanov wrote:

> Dear Metafont list,
> i have the following problem: i am trying wih no
> success to output some labels in my postscript
> graphics using MetaPost 0.641. According to John D.
> Hobby's MetaPost manual this  should be done in this
> way:
> label("45", qc) where qc is the point where the label
> with text 45 will be placed.
> I do it in this way and unfortunately, in the
> resulting .ps file the label is not outputed or at
> least is not visible. I also tried to change the
> defaultfont variable from cmr10 to rptmr (this was
> recommended again in John D. Hobby's MetaPost manual),
> but I had no luck. I also tried some minor tricks but
> they did not work too.
> So my question is: is this the right way to make
> labels with MetaPost or am I doing something wrong?
> I am looking forward to receiving an answer from you
> soon.

Metapost does not actually place any fonts in the output file. It only
places a reference to them by name. By default it uses the name you gave
it, which MUST be that name of the .tfm file that it uses to obtain the
size of the glyphs. If you add the line:
  prologues:=2;
to your Metapost file, then Metapost will scan psfonts.map for the real
name of the font to associate with your tfm file name and place that
name in the output. Still, no font is actually embedded in the output.
If the font name is one known to GhostScript, you should then see the
label in your output. The rptmr font might work with prologues properly
set, provided
1) rptmr.tfm is on your system and
2) rptmr is associated to Times-Roman in psfonts.map.

Since the default font for MP is cmr10, even with prologues properly
set the label will not be correct unless cmr10.pfb has been properly
installed for GS use.

By far the best way to see the fonts is to include the figure in a LaTeX
document and process it with dvips. Then dvips will embed the fonts (if
necessary) and the result will be much more portable (viewable
anywhere).

Regards,

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

From - Wed Aug 27 14:05:10 2003
Return-Path: <rambiusparkisanius@yahoo.com>
Received: from web40613.mail.yahoo.com (web40613.mail.yahoo.com [66.218.78.150])
          by nef.ens.fr (8.12.9/1.01.28121999) with SMTP id h7RC595a092155
          for <metafont@ens.fr>; Wed, 27 Aug 2003 14:05:09 +0200 (CEST)
Message-ID: <20030827120506.73288.qmail@web40613.mail.yahoo.com>
Received: from [62.44.96.2] by web40613.mail.yahoo.com via HTTP; Wed, 27 Aug 2003 05:05:06 PDT
Date: Wed, 27 Aug 2003 05:05:06 -0700 (PDT)
From: Ivan Ivanov <rambiusparkisanius@yahoo.com>
Subject: Re: FIXED [metafont] MetaPost lables do not appear
To: metafont@ens.fr
In-Reply-To: <Pine.SOL.4.55.0308261627480.5737@comp.uark.edu>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii

Daniel,
Thank you very much for your reply. I did what you
recommended me and it works. More exactly I created a
tex file in which I included the metapost output in
these two ways:
\documentclass{article}
\usepackage{epsf}
\usepackage{graphicx}
\begin{document}
% The first way
\input epsf
\epsfbox{images.2}
% The second way 
\includegraphics{images.2}
\end{document}
where images.2 is the metafont output file with my
labels. However, I still have some questions. Both
ways do include my labels but which one is better? I
read somewhere that epsf is an older and less robust
package than graphicx, so should I use only graphicx?
And my last question (I really promise to be the last
one) is: in both ways the right side of images.2 file
is cut and is not visible after I compile the upper
code with latex. So how can I fixed this? I tried some
tricks but with no success.
Thank you very much for your time and patience.

Greetings 
Ivan Ivanov
Department of Mathematics and Computer Science
Sofia University
Bulgaria


--- "Daniel H. Luecking" <luecking@uark.edu> wrote:

> 
> Metapost does not actually place any fonts in the
> output file. It only
> places a reference to them by name. By default it
> uses the name you gave
> it, which MUST be that name of the .tfm file that it
> uses to obtain the
> size of the glyphs. If you add the line:
>   prologues:=2;
> to your Metapost file, then Metapost will scan
> psfonts.map for the real
> name of the font to associate with your tfm file
> name and place that
> name in the output. Still, no font is actually
> embedded in the output.
> If the font name is one known to GhostScript, you
> should then see the
> label in your output. The rptmr font might work with
> prologues properly
> set, provided
> 1) rptmr.tfm is on your system and
> 2) rptmr is associated to Times-Roman in
> psfonts.map.
> 
> Since the default font for MP is cmr10, even with
> prologues properly
> set the label will not be correct unless cmr10.pfb
> has been properly
> installed for GS use.
> 
> By far the best way to see the fonts is to include
> the figure in a LaTeX
> document and process it with dvips. Then dvips will
> embed the fonts (if
> necessary) and the result will be much more portable
> (viewable
> anywhere).
> 
> Regards,
> 
> -- 
> Dan Luecking                           Dept. of
> Mathematical Sciences
> luecking@uark.edu                      University of
> Arkansas
> http://comp.uark.edu/~luecking/        Fayetteville,
> AR 72101


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

From - Wed Aug 27 20:47:33 2003
Return-Path: <rambiusparkisanius@yahoo.com>
Received: from web40613.mail.yahoo.com (web40613.mail.yahoo.com [66.218.78.150])
          by nef.ens.fr (8.12.9/1.01.28121999) with SMTP id h7RIlT5a013817
          for <metafont@ens.fr>; Wed, 27 Aug 2003 20:47:29 +0200 (CEST)
Message-ID: <20030827184728.49339.qmail@web40613.mail.yahoo.com>
Received: from [62.44.96.2] by web40613.mail.yahoo.com via HTTP; Wed, 27 Aug 2003 11:47:28 PDT
Date: Wed, 27 Aug 2003 11:47:28 -0700 (PDT)
From: Ivan Ivanov <rambiusparkisanius@yahoo.com>
Subject: Re: FIXED [metafont] MetaPost lables do not appear
To: metafont@ens.fr
In-Reply-To: <5.2.1.1.0.20030827124524.00b5c350@mail.uark.edu>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii

Daniel,
Thank you very much for your time and advice. With
your help I really reduced my problems. Have really
great  success.
--- Dan Luecking <luecking@uark.edu> wrote:

> 
> Epsf is older, has some bugs, and is less well
> supported in the LaTeX
> community, so graphicx would be best.
> 
> 
> I would use only graphicx in LaTeX, but I
> occasionally use epsf in plain
> TeX since it is probably on every TeX platform. The
> bugs in epsf occur
> only if you try something special like rescaling the
> image
> 
> 
> Depends on what is wrong.
> It could be an error in the .mp file. I would more
> strongly suspect
> some limitation in whatever program you used to see
> the document.
> 
> If it happened with _both_ images in the _above_
> document, I don't think
> there is anything you could do in the LaTeX code to
> correct it since that
> appears to be correct.
> 
> Regards,
> 
> 
> Daniel H. Luecking
> Department of Mathematical Sciences
> University of Arkansas 
> 


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

From - Thu Aug 28 14:46:09 2003
Return-Path: <rambiusparkisanius@yahoo.com>
Received: from web40609.mail.yahoo.com (web40609.mail.yahoo.com [66.218.78.146])
          by nef.ens.fr (8.12.9/1.01.28121999) with SMTP id h7SCk4Hd011839
          for <metafont@ens.fr>; Thu, 28 Aug 2003 14:46:05 +0200 (CEST)
Message-ID: <20030828124603.14060.qmail@web40609.mail.yahoo.com>
Received: from [62.44.96.2] by web40609.mail.yahoo.com via HTTP; Thu, 28 Aug 2003 05:46:03 PDT
Date: Thu, 28 Aug 2003 05:46:03 -0700 (PDT)
From: Ivan Ivanov <rambiusparkisanius@yahoo.com>
Subject: Re: FIXED [metafont] MetaPost lables do not appear
To: metafont@ens.fr
In-Reply-To: <200308281040.12962.Yvon.Henel@wanadoo.fr>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii

Yvon,
I tried with success your proposition. Fisrt, I used
\includegraphics[width=\linewidth]{images.2} which
produced a beautifully centered graphics. However, I
preferred
\includegraphics[width=15cm]{images.2} since the
dimensions of the resulting grahics were more suitable
(for me). I also played with keepaspectratio and scale
parameters but they did not produced a visible result
(perhaps because this specific grahics is too large).
In any case thank you for your explanation.

Blagodaria Vi i dovijdane.

Best Wishes Ivan

--- Yvon Henel <Yvon.Henel@wanadoo.fr> wrote:
> 
> I would try 
> 
> \includegraphics[width=\linewidth]{images.2}
> 
> or any other suitable width. 
> 
> You could change also the aspect ratio  with
> keepaspectratio=false (if you 
> want to keep the natural height) or let it at true
> as default. 
> 
> There is also the parameter scale (default 1) which
> defines the enlargement 
> scale.
> 
> Ihih
> 
> Dovijdane. ;)
> 
> -- 
> Y. Henel, TeXnicien de surface, Metapostier urbain


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

From - Thu Aug 28 15:56:12 2003
Return-Path: <tim@maths.tcd.ie>
Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11])
          by nef.ens.fr (8.12.9/1.01.28121999) with SMTP id h7SDu7Hd034904
          for <metafont@ens.fr>; Thu, 28 Aug 2003 15:56:07 +0200 (CEST)
Received: from boole.maths.tcd.ie by salmon.maths.tcd.ie with SMTP
          id <aa53181@salmon>; 28 Aug 2003 14:56:06 +0100 (BST)
Date: Thu, 28 Aug 2003 14:56:06 +0100
From: Timothy Murphy <tim@maths.tcd.ie>
To: metafont@ens.fr
Subject: Re: [metafont] MetaPost lables do not appear
Message-ID: <20030828135606.GA93539@boole.maths.tcd.ie>
References: <20030826175747.10036.qmail@web40611.mail.yahoo.com> <Pine.SOL.4.55.0308261627480.5737@comp.uark.edu>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <Pine.SOL.4.55.0308261627480.5737@comp.uark.edu>
User-Agent: Mutt/1.5.3i
Sender: tim@maths.tcd.ie

On Tue, Aug 26, 2003 at 04:41:51PM -0500, Daniel H. Luecking wrote:

> Metapost does not actually place any fonts in the output file. It only
> places a reference to them by name. 

Dear Daniel,

I think if you would write a short appendix to the official Hobby manual
on text in Metapost labels, this would be immensely useful,
since this is a topic that seems to cause endless problems,
and which is not treated clearly in the otherwise excellent manual,
in my opinion.

-- 
Timothy Murphy  
e-mail: tim@maths.tcd.ie
tel: 086-233 6090
s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland

From - Thu Aug 28 16:26:19 2003
Return-Path: <pragma@wxs.nl>
Received: from mail.solcon.net (mail.solcon.net [212.45.33.5])
          by nef.ens.fr (8.12.9/1.01.28121999) with ESMTP id h7SEQHHd044360
          for <metafont@ens.fr>; Thu, 28 Aug 2003 16:26:17 +0200 (CEST)
Received: from server-1.pragma-net.nl (dsl-212-84-128-085.solcon.nl [212.84.128.85])
	by mail.solcon.net (8.11.6/8.9.3) with ESMTP id h7SEQAa23618;
	Thu, 28 Aug 2003 16:26:10 +0200
Received: by server-1.pragma-net.nl (Postfix, from userid 65534)
	id 8DBC71A515; Thu, 28 Aug 2003 16:26:03 +0200 (CEST)
Received: from laptop-3.wxs.nl (unknown [10.100.1.191])
	by server-1.pragma-net.nl (Postfix) with ESMTP
	id 265871A4BB; Thu, 28 Aug 2003 14:26:01 +0000 (UTC)
Message-Id: <5.2.0.9.1.20030828161951.01fca008@server-1>
X-Sender: hagen-mail@server-1
X-Mailer: QUALCOMM Windows Eudora Version 5.2.0.9
Date: Thu, 28 Aug 2003 16:24:37 +0200
To: Timothy Murphy <tim@maths.tcd.ie>
From: Hans Hagen <pragma@wxs.nl>
Subject: Re: [metafont] MetaPost lables do not appear
Cc: metafont@ens.fr
In-Reply-To: <20030828135606.GA93539@boole.maths.tcd.ie>
References: <Pine.SOL.4.55.0308261627480.5737@comp.uark.edu>
 <20030826175747.10036.qmail@web40611.mail.yahoo.com>
 <Pine.SOL.4.55.0308261627480.5737@comp.uark.edu>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"; format=flowed
X-Spam-Status: No, hits=-2.5 required=7.5
	tests=EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,
	      REPLY_WITH_QUOTES
	autolearn=ham version=2.55
X-Spam-Level: 
X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp)

At 14:56 28/08/2003 +0100, Timothy Murphy wrote:
>On Tue, Aug 26, 2003 at 04:41:51PM -0500, Daniel H. Luecking wrote:
>
> > Metapost does not actually place any fonts in the output file. It only
> > places a reference to them by name.
>
>Dear Daniel,
>
>I think if you would write a short appendix to the official Hobby manual
>on text in Metapost labels, this would be immensely useful,
>since this is a topic that seems to cause endless problems,
>and which is not treated clearly in the otherwise excellent manual,
>in my opinion.

another option is to use mptopdf to get pdf which is much more compact (one 
can always go back to eps with pdftops from the xpdf suite)

http://www.pragma-ade.com/metapost.htm



Hans

-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                        information: http://www.pragma-ade.com/roadmap.pdf
                     documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------


