Issue with setupMPvariables
![](https://secure.gravatar.com/avatar/9a34a598738fdf118412a751eb7a9bf6.jpg?s=120&d=mm&r=g)
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? MWE: see attachment
![](https://secure.gravatar.com/avatar/ed6f43113e3f1cee031ebd13654fc703.jpg?s=120&d=mm&r=g)
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 -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/9a34a598738fdf118412a751eb7a9bf6.jpg?s=120&d=mm&r=g)
Thanks Hans!
For sake of completeness a MWE is attached, in case someone needs it one
day.
Le sam. 3 sept. 2022 à 20:10, Hans Hagen via ntg-context
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 -----------------------------------------------------------------
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net
___________________________________________________________________________________
participants (2)
-
Alexandre Christe
-
Hans Hagen