ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: [metafont] context/metafun problem
@ 2000-09-29 12:11 Denis B. Roegel
  2000-09-29 13:11 ` Hans Hagen
  0 siblings, 1 reply; 5+ messages in thread
From: Denis B. Roegel @ 2000-09-29 12:11 UTC (permalink / raw)
  Cc: Denis B. Roegel

I got the example to work, by calling cont-en and mpost
explicitely. Somehow, my texexec has trouble processing it. 

Continuing my experiments, I wanted to try positional graphics.
Here is my input file, adapted from the metafun documentation:

\starttext

\startMPpositiongraphic{mypos:line}
  path pa, pb, pab ; numeric na, nb;
  initialize_box(\MPpos{\MPvar{from}});
  na := nxy ; pa := llxy..lrxy..urxy..ulxy..cycle ;
  initialize_box(\MPpos{\MPvar{to}});
  nb := nxy ; pb := llxy..lrxy..urxy..ulxy..cycle ;
  if na=nb :
    pab := center pa -- center pb ;
    pab := pab cutbefore (pab intersectionpoint pa) ;
    pab := pab cutafter (pab intersectionpoint pb) ;
    pickup pencircle scaled 1pt;
    draw pab withcolor .625yellow;
    anchor_box(\MPanchor{\MPvar{from}});
  fi;
\stopMPpositiongraphic

\setMPpositiongraphic{X-1}{mypos:line}{to=X-2}
\setMPpositiongraphic{X-2}{mypos:line}{to=X-3}

In a previous section we saw that some \hpos {X-1} {words} were
\hpos {X-2} {circled} and connected by an \hpos {X-3} {arrow}.
As with most things in \CONTEXT, marking these words is separated
from declaring what to do with those words. 

\stoptext

The file compiles with cont-en, and the mpgraph file compiles
with mpost, but I get a lot of "special" errors when I try
to produce the PostScript file. Does this example work with
a PostScript output?

Thanks,

Denis


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2000-09-29 13:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-09-29 12:11 [metafont] context/metafun problem Denis B. Roegel
2000-09-29 13:11 ` Hans Hagen
2000-09-29 13:25   ` Denis B. Roegel
2000-09-29 13:29     ` Hans Hagen
2000-09-29 13:50       ` Denis B. Roegel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).