ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* positionoverlays problem
@ 2006-07-06 19:50 Hans van der Meer
  2006-07-11 13:21 ` Taco Hoekwater
  0 siblings, 1 reply; 8+ messages in thread
From: Hans van der Meer @ 2006-07-06 19:50 UTC (permalink / raw)



[-- Attachment #1.1: Type: text/plain, Size: 1582 bytes --]

I want to use the positionoverlay mechanism in several different  
figures (according to the metafun manual "Anchors and layers").
The problem is that the overlays show up in the last figure only, not  
in the first.
If I do not typeset the second overlayseries, the first does appear.
It looks like only the last overlayseries is kept.
Why is this and how to remedy this?


Like this with several names overlay names:
	\def\startoverlaygraphics#1{%
		\startpositionoverlay{#1}%
	}
	\def\stopoverlaygraphics#1{%
		\stoppositionoverlay
		\defineoverlay[#1][\positionoverlay{#1}]
		\setupbackgrounds[page][background={foreground,#1}]
	}
  Using it in:

\startoverlaygraphics{graphics-1}
	\setMPpositiongraphic{A1}{syllabus:arrow}{to=B1}
etc.
\stopoverlaygraphics{graphics-1}

...\hpos{A1}{}...\hpos{B1}{}...

\startoverlaygraphics{graphics-2}
	\setMPpositiongraphic{E1}{syllabus:arrow}{to=F1}
etc.
\stopoverlaygraphics{graphics-2}

...\hpos{E1}{}...\hpos{F1}{}...

Arrows drawn with:
\setupMPvariables[syllabus:arrow]%
	[linestyle={dashed evenly},%
		linesize=\tableframethickness,
		coloring=FrameColor,%
		axoff=0pt, ayoff=0pt, bxoff=0pt, byoff=0pt]
\startMPpositiongraphic{syllabus:arrow}{coloring}
	pair a, b;
	initialize_box(\MPpos{\MPvar{from}});
	a := cxy;
	initialize_box(\MPpos{\MPvar{to}});
	b:= cxy;
	pickup pencircle scaled \MPvar{linesize};
	drawarrow (a + (\MPvar{axoff},\MPvar{ayoff})) --
		(b + (\MPvar{bxoff},\MPvar{byoff}))
		\MPvar{linestyle} withcolor \MPvar{coloring};
	anchor_box(\MPanchor{\MPvar{from}});
\stopMPpositiongraphic
\endinput


Hans van der Meer




[-- Attachment #1.2: Type: text/html, Size: 7559 bytes --]

[-- Attachment #2: Type: text/plain, Size: 139 bytes --]

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

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

end of thread, other threads:[~2006-07-14 16:08 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-06 19:50 positionoverlays problem Hans van der Meer
2006-07-11 13:21 ` Taco Hoekwater
2006-07-11 19:33   ` Hans van der Meer
2006-07-12  8:20     ` Taco Hoekwater
2006-07-12 19:55       ` Hans van der Meer
2006-07-13  6:34         ` Taco Hoekwater
2006-07-14 16:08           ` Hans Hagen
2006-07-14 16:04     ` Hans Hagen

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).