From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/3033 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: what is nxy? Date: Thu, 19 Oct 2000 11:10:46 +0200 Sender: owner-ntg-context@let.uu.nl Message-ID: <3.0.6.32.20001019111046.008f6e60@pop.wxs.nl> References: <200010182041.WAA06654@bar.loria.fr> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: main.gmane.org 1035393796 13726 80.91.224.250 (23 Oct 2002 17:23:16 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 17:23:16 +0000 (UTC) Cc: ntg-context@ntg.nl, roegel@lorraine.loria.fr (Denis B. Roegel) Original-To: "Denis B. Roegel" In-Reply-To: <200010182041.WAA06654@bar.loria.fr> Xref: main.gmane.org gmane.comp.tex.context:3033 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:3033 At 10:41 PM 10/18/00 +0200, Denis B. Roegel wrote: >If I go back to the example of an earlier question of mine, >I see that > > 1) I don't understand what `nxy' is; as far as I can see, > it is not explained in the metafun manual; > 2) I don't understand why the connection between the first > and the second word goes from center to center, > and this may have something to do with 1). >\startMPpositiongraphic{mypos:line} > path pa, pb, pab ; numeric na, nb; > initialize_box(\MPpos{\MPvar{from}}); > na := nxy ; pa := llxy..lrxy..urxy..ulxy..cycle ; The initialize_box macro sets a bunch of vars [still to be explained in this chapter btw] and nxy is the pagenumber associates with the pos. > initialize_box(\MPpos{\MPvar{to}}); > nb := nxy ; pb := llxy..lrxy..urxy..ulxy..cycle ; > if na=nb : So, we only draw a graphic when both positions are on the same page. [i do have an alternative that handles multiple pages]. In the background graphic that goes behind the text [area] this page number info is used to let the background cross the page. Concerning (2): the "center" directive makes that happen Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE 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 -------------------------------------------------------------------------