From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/2827 Path: main.gmane.org!not-for-mail From: "Denis B. Roegel" Newsgroups: gmane.comp.tex.context Subject: Re: [metafont] context/metafun problem Date: Fri, 29 Sep 2000 14:11:22 +0200 (MET DST) Sender: owner-ntg-context@let.uu.nl Message-ID: <200009291211.OAA00007@bar.loria.fr> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1035393598 12089 80.91.224.250 (23 Oct 2002 17:19:58 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 17:19:58 +0000 (UTC) Cc: roegel@lorraine.loria.fr (Denis B. Roegel) Original-To: ntg-context@ntg.nl Xref: main.gmane.org gmane.comp.tex.context:2827 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:2827 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