ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen via ntg-context <ntg-context@ntg.nl>
To: Alexandre Christe via ntg-context <ntg-context@ntg.nl>
Cc: Hans Hagen <j.hagen@freedom.nl>
Subject: Re: Issue with setupMPvariables
Date: Sat, 3 Sep 2022 20:09:24 +0200	[thread overview]
Message-ID: <0deb07bf-93e8-1d1f-9049-a3185cb45472@freedom.nl> (raw)
In-Reply-To: <CALC5-U+wBzbX+WpufWYuEaeGz4H6bmPJc62QEgGR_OS0xxmZbA@mail.gmail.com>

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
___________________________________________________________________________________

  reply	other threads:[~2022-09-03 18:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-03 16:48 Alexandre Christe via ntg-context
2022-09-03 18:09 ` Hans Hagen via ntg-context [this message]
2022-09-03 18:31   ` Alexandre Christe via ntg-context

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0deb07bf-93e8-1d1f-9049-a3185cb45472@freedom.nl \
    --to=ntg-context@ntg.nl \
    --cc=j.hagen@freedom.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).