[NTG-context] Issue with setupMPvariables

Hans Hagen j.hagen at freedom.nl
Sat Sep 3 20:09:24 CEST 2022


On 9/3/2022 6:48 PM, Alexandre Christe via ntg-context wrote:
> Dear all,
> 
> I'm trying to reuse some MP code for several custom enumeration.
> 
> However I can't make the overall setup work, needless to say different 
> border colors for each enumeration though setupMPvariables. What am I 
> missing?\startuseMPgraphic{mp:textFrame}
begingroup;
	path p ;
	for i = 1 upto nofmultipars :
		p := (ulcorner multipars[i]) -- (llcorner multipars[i]) -- (llcorner 
multipars[i] xshifted .25cm) -- (ulcorner multipars[i] xshifted .25cm) 
-- cycle ;
		fill p withcolor boxfillcolor ;
		draw p withcolor boxlinecolor ;
	endfor;
endgroup;
\stopuseMPgraphic


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------


More information about the ntg-context mailing list