From - Sat Nov  1 01:00:55 2003
Return-Path: <romeomedina@libero.it>
Received: from smtp3.libero.it (smtp3.libero.it [193.70.192.127])
          by nef.ens.fr (8.12.10/1.01.28121999) with ESMTP id hA100ncp048125
          for <metafont@ens.fr>; Sat, 1 Nov 2003 01:00:52 +0100 (CET)
Received: from a3i3g5 (151.26.58.162) by smtp3.libero.it (7.0.020-DD01)
        id 3F6F04A600D59C3B for metafont@ens.fr; Sat, 1 Nov 2003 01:00:41 +0100
From: "Rodolfo Medina" <romeomedina@libero.it>
To: <metafont@ens.fr>
Subject: Re: [metafont] Problems with Metapost labels in the dvi file.
Date: Sat, 1 Nov 2003 01:01:39 +0100
Message-ID: <MBBBJFILCHONLINKEBBKCEOJCBAA.romeomedina@libero.it>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="Windows-1252"
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
In-Reply-To: <Pine.GSO.3.95.1031031161642.17003A-100000@sirio.edv.uniovi.es>
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
Disposition-Notification-To: "Rodolfo Medina" <romeomedina@libero.it>

Thanks to Ivan and Jose Luis who kindly responded.
Now the problem seems quite clear.
If I understand well, xdvi is unable to visualise a labelled metapost
figure.
For me it's a shame, because I use the dvi file very much.
Ivan wrote:

 	I would like also to ask you why do you want to work
 	with the dvi file. Up to now I pay little attention to
 	them.

Well, because you get it immediatly after running TeX onto the text file,
without needing a further step invoking dvips.

Best whishes,
Rodolfo


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.516 / Virus Database: 313 - Release Date: 01/09/03


From - Sat Nov  1 09:06:47 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.10/1.01.28121999) with ESMTP id hA186icp073962
          for <metafont@ens.fr>; Sat, 1 Nov 2003 09:06:44 +0100 (CET)
Received: from pallas.cl.cam.ac.uk
	([128.232.8.88] helo=cl.cam.ac.uk ident=[rA4/z23aNfskJ3JIPoaS8IInti+qYKwu])
	by wisbech.cl.cam.ac.uk with esmtp (Exim 3.092 #1)
	id 1AFqmR-0003fP-00; Sat, 01 Nov 2003 08:06:43 +0000
To: "Rodolfo Medina" <romeomedina@libero.it>
cc: metafont@ens.fr
Subject: Re: [metafont] Problems with Metapost labels in the dvi file. 
In-reply-to: Your message of Sat, 01 Nov 2003 01:01:39 +0100.
             <MBBBJFILCHONLINKEBBKCEOJCBAA.romeomedina@libero.it> 
Date: Sat, 01 Nov 2003 08:06:43 +0000
From: Robin Fairbairns <Robin.Fairbairns@cl.cam.ac.uk>
Message-Id: <E1AFqmR-0003fP-00@wisbech.cl.cam.ac.uk>

> Thanks to Ivan and Jose Luis who kindly responded.
> Now the problem seems quite clear.
> If I understand well, xdvi is unable to visualise a labelled metapost
> figure.

that's just not true.  cause metafont to emit decent headers, and xdvi
can cope.  it's the same problem as "simply" getting ghostscript to
view the metapost output "raw" -- see
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=mpprologues

i got the mp file that was posted yesterday (yours?) to display in
xdvi by adding

  \prologues := 2;

to the start of the file.  this doesn't seem to affect the final
generation into postscript either (i've not checked use in pdf(la)tex).

> For me it's a shame, because I use the dvi file very much.
> Ivan wrote:
> 
>  	I would like also to ask you why do you want to work
>  	with the dvi file. Up to now I pay little attention to
>  	them.
> 
> Well, because you get it immediatly after running TeX onto the text file,
> without needing a further step invoking dvips.

it's a matter of style; i'm with you -- i prefer xdvi as a tool.
(perhaps the new work on ghostview will change my mind.)

robin

From - Sat Nov  1 09:28:21 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.10/1.01.28121999) with ESMTP id hA18SGcp079542
          for <metafont@ens.fr>; Sat, 1 Nov 2003 09:28:16 +0100 (CET)
Received: from pallas.cl.cam.ac.uk
	([128.232.8.88] helo=cl.cam.ac.uk ident=[9XeyFbjyjzhG7dIYwq7+AgvZGyOcfVME])
	by wisbech.cl.cam.ac.uk with esmtp (Exim 3.092 #1)
	id 1AFr7H-0003rq-00; Sat, 01 Nov 2003 08:28:15 +0000
To: "Rodolfo Medina" <romeomedina@libero.it>
cc: metafont@ens.fr
Subject: Re: [metafont] Problems with Metapost labels in the dvi file. 
In-reply-to: Your message of Sat, 01 Nov 2003 08:06:43 +0000.
             <E1AFqmR-0003fP-00@wisbech.cl.cam.ac.uk> 
Date: Sat, 01 Nov 2003 08:28:15 +0000
From: Robin Fairbairns <Robin.Fairbairns@cl.cam.ac.uk>
Message-Id: <E1AFr7H-0003rq-00@wisbech.cl.cam.ac.uk>

i wrote:

> (\mpprologues:=2) doesn't seem to affect the final
> generation into postscript either

but i'm wrong :-(

From - Sat Nov  1 16:26:41 2003
Return-Path: <romeomedina@libero.it>
Received: from smtp1.libero.it (smtp1.libero.it [193.70.192.51])
          by nef.ens.fr (8.12.10/1.01.28121999) with ESMTP id hA1FQecp068639
          for <metafont@ens.fr>; Sat, 1 Nov 2003 16:26:40 +0100 (CET)
Received: from a3i3g5 (151.26.59.239) by smtp1.libero.it (7.0.020-DD01)
        id 3F6F0E4800D65679 for metafont@ens.fr; Sat, 1 Nov 2003 16:27:10 +0100
From: "Rodolfo Medina" <romeomedina@libero.it>
To: <metafont@ens.fr>
Subject: Re: [metafont] Problems with Metapost labels in the dvi file. 
Date: Sat, 1 Nov 2003 16:27:41 +0100
Message-ID: <MBBBJFILCHONLINKEBBKCEOLCBAA.romeomedina@libero.it>
MIME-Version: 1.0
Content-Type: multipart/mixed;
	boundary="----=_NextPart_000_0000_01C3A095.12CB7200"
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0)
Importance: Normal
In-Reply-To: <E1AFqmR-0003fP-00@wisbech.cl.cam.ac.uk>
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
Disposition-Notification-To: "Rodolfo Medina" <romeomedina@libero.it>

This is a multi-part message in MIME format.

------=_NextPart_000_0000_01C3A095.12CB7200
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

Robin Fairbairns wrote:
>
>	i got the mp file that was posted yesterday (yours?) to display in
>	xdvi by adding
>
>  		\prologues := 2;
>
Then I added the same line at the beginning of my mp file,
that contains three labels:

1)label.urt(btex ${\bf x}$ etex,z1);
2)label.lrt(btex ${\bf y}$ etex,z2);
3)label.rt(btex $\alpha$ etex,(8pt,0));

The first two labels appear, together with the figure, in both the .dvi file
and the .ps file
(I mean, the .ps file one obtains by running dvips onto the .dvi file),
but in a strange font I can not tell and, anyway, surely not in bold type;
whereas the third label does not appear neither in the .dvi nor in the .ps
file.
Without adding that line, the whole figure does not appear at all in the
.dvi file,
but it does appear in the .ps file together with all three labels correctly
shown.

In any case, I insert my mp file. The macros were copied from J. Hobby's
manual
pp. 45 and 46, because I didn't know (and still don't know) how simply draw
an angle.

As far as the question ``xdvi or ps?'', there's something more that for me
is definitely
in xdvi's favour: I do a large use of hyper referencies, that, as far as I
know,
work in the .dvi file but not in the final .ps file, which is the step just
before
the document printing.

Hoping to get new messages
(and thanks to everybody),
regards
Rodolfo




---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.516 / Virus Database: 313 - Release Date: 01/09/03

------=_NextPart_000_0000_01C3A095.12CB7200
Content-Type: application/octet-stream;
	name="figures.mp"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="figures.mp"

marksize=3D4pt;
angle_radius=3D8pt;

def draw_mark(expr p, a) =3D
  begingroup
  save t, dm; pair dm;
  t =3D arctime a of p;
  dm =3D marksize*unitvector direction t of p
    rotated 90;
  draw (-.5dm.. .5dm) shifted point t of p;
  endgroup
enddef;

def draw_marked(expr p, n) =3D
  begingroup
  save amid;
  amid =3D .5*arclength p;
  for i=3D-(n-1)/2 upto (n-1)/2:
    draw_mark(p, amid+.6marksize*i);
  endfor
  draw p;
  endgroup
enddef;

def mark_angle(expr a, b, c, n) =3D
  begingroup
  save s, p; path p;
  p =3D unitvector(a-b){(a-b)rotated 90}..unitvector(c-b);
  s =3D .9marksize/length(point 1 of p - point 0 of p);
  if s<angle_radius: s:=3Dangle_radius; fi
  draw_marked(p scaled s shifted b, n);
  endgroup
enddef;

def mark_rt_angle(expr a, b, c) =3D
  draw ((1,0)--(1,1)--(0,1))
       zscaled (angle_radius*unitvector(a-b)) shifted b
enddef;

beginfig(1);
a=3D.7in; b=3D.5in; c=3D.3in;
z0=3D(0,0); z1=3D(b,c); z2=3D(a,-c);
drawarrow z0..z1;
drawarrow z0..z2;
label.urt(btex ${\bf x}$ etex,z1);
label.lrt(btex ${\bf y}$ etex,z2);
label.rt(btex $\alpha$ etex,(8pt,0));
mark_angle(z2, z0, z1, 0);
endfig;

end
------=_NextPart_000_0000_01C3A095.12CB7200--


From - Sun Nov  2 06:12:34 2003
Return-Path: <luecking@uark.edu>
Received: from mailhost.uark.edu (mail.uark.edu [130.184.5.66])
          by nef.ens.fr (8.12.10/1.01.28121999) with ESMTP id hA25CUcp072241
          for <metafont@ens.fr>; Sun, 2 Nov 2003 06:12:31 +0100 (CET)
Received: from thelueckings.uark.edu (pppexp3.uark.edu [130.184.14.43])
 by mailhost.uark.edu
 (iPlanet Messaging Server 5.2 HotFix 1.21 (built Sep  8 2003))
 with ESMTPSA id <0HNP0007ZL4P0S@mailhost.uark.edu> for metafont@ens.fr; Sat,
 01 Nov 2003 23:12:30 -0600 (CST)
Date: Sat, 01 Nov 2003 23:11:50 -0600
From: Dan&Jan Luecking <luecking@uark.edu>
Subject: Re: [metafont] Problems with Metapost labels in the dvi file.
In-reply-to: <MBBBJFILCHONLINKEBBKCEOLCBAA.romeomedina@libero.it>
X-Sender: luecking@mail.uark.edu
To: metafont@ens.fr
Message-id: <5.1.1.6.0.20031101223533.00b388f8@mail.uark.edu>
MIME-version: 1.0
X-Mailer: QUALCOMM Windows Eudora Version 5.1.1
Content-type: text/plain; charset=us-ascii; format=flowed
Content-transfer-encoding: 7BIT
References: <E1AFqmR-0003fP-00@wisbech.cl.cam.ac.uk>

At 09:27 AM 11/1/2003, you wrote:

>As far as the question ``xdvi or ps?'', there's something more that for me
>is definitely
>in xdvi's favour: I do a large use of hyper referencies, that, as far as I
>know,
>work in the .dvi file but not in the final .ps file, which is the step just
>before
>the document printing.

To have hyper-references in the postscript file, run dvips with the
proper option. I think it's -z, but you can learn for sure with
   dvips --help
or read the docs (dvips.<whatever>).

I've written the following a number of times (both to this list and to c.t.t,
so perhaps a search of the archives will find it) but I guess it bears
repeating:

1. MetaPost never adds fonts to the ps file it creates, It only adds a call
by name.

2. Without prologues, the name it uses is the .tfm file name, which is almost
always wrong. (But good ebough for dvips to figure out and embed the fonts.)

3. With prologues > 0, it consults psfonts.map (the same file as dvips uses)
but all it does is translate the .tfm file name to the correct PS font name.
It still doesn't embed the font.

4. Most TeX fonts are not installed for use by GhostScript. So trying to
view a metapost figure with fonts directly in GS won't work if it contains,
for example, CMR10. It either fails outright or Courier is substituted as a
default.

5. When xdvi, windvi, Yap (and other dvi viewers) find ps graphics included,
they pass it on to GS to render into some graphic format the program's display
engine can handle. So the same problems occur as in point 4 above.

6. To use a font with GS, one needs only
   (a) the font file (.pfb),
   (b) the font names in the .ps file (prologues), and
   (c) a Fontmap file that translates the font name into filename, OR the .pfb
       file has to be in a directory GS has been configured to search for 
fonts.
There exists such a Fontmap file, (Fontmap.cm) on the net somewhere, but it has
only the .pfb file _names_, not their paths. Therefore you either have to edit
it extensively, or copy all the .pfb files into a directory GS searches.
Unfortunately, GS does not seem to permit subdirectory recursion in its search
paths.

The conclusion: I use only dvips and pdftex when I have a file with Metapost
figures. The hassle of getting TeX+xdvi+GS+Metapost to work together is not
worth it, I don't even try, and I don't understand those who insist on trying
to make it happen. I have to edit-compile-preview tex files containing
metapost figures hundreds of times a year. These files might have a hundred
figures in them. That's tens of thousands of times my dvi viewer would have to
call GS. Instead, I use a previewer that is built to handle Postsctipt and cut
out the middle man.

Good luck,

Dan


Dan Luecking
Fayetteville, Arkansas


From - Wed Nov 12 22:59:50 2003
Return-Path: <mbnd45@yahoo.com>
Received: from web14507.mail.yahoo.com (web14507.mail.yahoo.com [216.136.224.70])
          by nef.ens.fr (8.12.10/1.01.28121999) with SMTP id hACLxhbn061178
          for <metafont@ens.fr>; Wed, 12 Nov 2003 22:59:44 +0100 (CET)
Message-ID: <20031112215943.24443.qmail@web14507.mail.yahoo.com>
Received: from [12.11.157.254] by web14507.mail.yahoo.com via HTTP; Wed, 12 Nov 2003 13:59:43 PST
Date: Wed, 12 Nov 2003 13:59:43 -0800 (PST)
From: mbnd45 <mbnd45@yahoo.com>
Subject: Re: [metafont] [MetaPost] Graph: Year/Month Units
To: metafont@ens.fr
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii


> Does this help:
> input format;
>
> beginfig(1)
>    k:=0;
>    for i=1 upto 10:
>      for j=20 upto 25:
>        k:=k+1;
>        label(decimal(i)&"/"&decimal(j),(k*30,0));
>      endfor;
>    endfor;
> endfig;
> end;

Thank you for the suggestion.  This does produce a repeating label but not
cleanly along the x axis (it prints on top of the lower frame line) and not
synchronized with each tick.  If I could somehow position the entire line
properly I could conceivably try to match each value with ticks (though that
would require a lot of trial and error and does not seem like a flexible
solution).

I was originally asking whether MetaPost can simply handle (say, year/month
or year/month/day) dates as the x-coordinate value within the dataset file;
that is, something like

     1999/11 10.6
     1999/12 12.1
     2000/01 5.4
     . . .
     2000/12 11.3

Failing that, however, I can try employing a calculation like Brian's to
assign dates to tickpoints on the graph.  I'm able to assign limited types
of
values to tickpoints using the

     grid.bot(format("%f",k), x)

construction (as demonstrated in Hobby's graph manual); so it seems like
this
should permit me to loop through numeric year/month combinations.  I haven't
been able to combine two integer values in the k position above as in
Brian's
example, though: & is not recognized as a concatenation operator in the
grid.<label> syntax.  Is there some way to format more or less arbitrary
values along an axis using this or a similar function?







__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree

From - Thu Nov 13 17:49:34 2003
Return-Path: <a.delmotte@largevision.com>
Received: from smtp-out.tiscali.be (spoolo2.tiscali.be [62.235.13.211])
          by nef.ens.fr (8.12.10/1.01.28121999) with ESMTP id hADGnVbn054242
          for <metafont@ens.fr>; Thu, 13 Nov 2003 17:49:31 +0100 (CET)
Received: from [62.235.116.153] (helo=adelmotte.largevision.com)
	by smtp-out.tiscali.be with esmtp (Tiscali.be http://www.tiscali.be)
	id 1AKKeu-0005fT-7r
	for <metafont@ens.fr>; Thu, 13 Nov 2003 17:49:28 +0100
Message-Id: <5.0.2.1.2.20031113174041.00a16ec0@pop3.pro.tiscali.be>
X-Sender: tpm17153@pop3.pro.tiscali.be
X-Mailer: QUALCOMM Windows Eudora Version 5.0.2
Date: Thu, 13 Nov 2003 17:48:48 +0100
To: liste metafont <metafont@ens.fr>
From: Alain Delmotte <a.delmotte@largevision.com>
Subject: patgen2
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"; format=flowed
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by nef.ens.fr id hADGnVbn054242

Hello,

I am looking for the *patgen2* program to generate hyphenation files
for (La)TeX (for Esperanto, as the existing one doesn't work).

It doesn't seem to exist in mikTeX; and a long search with google
didn't bring much help. And I didn't get any help from the mikTeX
discussion list, so I ask in this list as I know that some of members
did work in this field.

I am working under Windows 98 second edition.

Any help? For the program and for full documentation.

As far as I understand it I will need a .dic file (with list of words with
hyphen possible position marked by -), a translation file (.tra in which
a list of different ways to write a letter is given); patgen will create a log
file and the desired pattern file to be used with (La)TeX.

Is this correct?

Thanks in advance,

Alain Delmotte


avenue du Marathon, 6
B 1348 Louvain-la-Neuve
Belgique
tél./fax 00 (32) 10 45 44 44
tél. privé 00 (32) 10 45 11 92



From - Fri Nov 14 09:04:04 2003
Return-Path: <a.delmotte@largevision.com>
Received: from smtp-out.tiscali.be (spoolo1.tiscali.be [62.235.13.210])
          by nef.ens.fr (8.12.10/1.01.28121999) with ESMTP id hAE843bn016118
          for <metafont@ens.fr>; Fri, 14 Nov 2003 09:04:03 +0100 (CET)
Received: from [62.235.116.153] (helo=adelmotte.largevision.com)
	by smtp-out.tiscali.be with esmtp (Tiscali.be http://www.tiscali.be)
	id 1AKYvy-00063S-Vj; Fri, 14 Nov 2003 09:04:03 +0100
Message-Id: <5.0.2.1.2.20031114090150.00a02ec0@pop3.pro.tiscali.be>
X-Sender: tpm17153@pop3.pro.tiscali.be (Unverified)
X-Mailer: QUALCOMM Windows Eudora Version 5.0.2
Date: Fri, 14 Nov 2003 09:03:11 +0100
To: Peter Vanroose <Peter.Vanroose@esat.kuleuven.ac.be>
From: Alain Delmotte <a.delmotte@largevision.com>
Subject: Re: [metafont] patgen2
Cc: liste metafont <metafont@ens.fr>
In-Reply-To: <Pine.LNX.4.55dh.0311131812450.20940@tullibardine.esat.kule
 uven.ac.be>
References: <5.0.2.1.2.20031113174041.00a16ec0@pop3.pro.tiscali.be>
 <5.0.2.1.2.20031113174041.00a16ec0@pop3.pro.tiscali.be>
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"; format=flowed
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by nef.ens.fr id hAE843bn016118

Do you have detailed instructions about how to create such a list
manually, or is it in the TeXbook?

Thank you

Alain Delmotte

A 18:15 13/11/2003 +0100, Peter Vanroose a écrit :
> > I am looking for the *patgen2* program to generate hyphenation files
> > for (La)TeX (for Esperanto, as the existing one doesn't work).
>
>I once created hyphenation patterns for Dutch, without using patgen,
>just manually.  I don't know how regular Esperanto is in this respect,
>but under the assumption that the rules are simple to describe and there
>are not many exceptions, a manually generated pattern file is preferable.
>
>--                  Peter Vanroose
>                     K.U.Leuven, Belgium.

avenue du Marathon, 6
B 1348 Louvain-la-Neuve
Belgique
tél./fax 00 (32) 10 45 44 44
tél. privé 00 (32) 10 45 11 92



