ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* metapost boxes error
@ 2020-05-20 18:04 jkitz
  2020-05-20 19:38 ` Aditya Mahajan
  0 siblings, 1 reply; 2+ messages in thread
From: jkitz @ 2020-05-20 18:04 UTC (permalink / raw)
  To: ntg-context@ntg.nl ConTeXt users


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

Is there a different approach to use boxes.mp?

MNWE:

\startMPpage
input boxes.mp;
  boxit.bl("left");
  boxit.br("right");
  br.sw - bl.ne = (20,0);
  drawboxed(bl,br);
\stopMPpage

LOG snippets:

system          > ConTeXt  ver: 2020.04.10 19:11 MKIV beta  fmt: 2020.4.19  int: english/english

metapost log    > loading metafun, including plain.mp version 1.004 for metafun iv and xl
metapost log    > 
metapost log    > >> _dojoin
metapost log    > ! Isolated expression.





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

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

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: metapost boxes error
  2020-05-20 18:04 metapost boxes error jkitz
@ 2020-05-20 19:38 ` Aditya Mahajan
  0 siblings, 0 replies; 2+ messages in thread
From: Aditya Mahajan @ 2020-05-20 19:38 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Wed, 20 May 2020, jkitz@inradius.net wrote:

> Is there a different approach to use boxes.mp?
>
> MNWE:
>
> \startMPpage
> input boxes.mp;
>  boxit.bl("left");
>  boxit.br("right");
>  br.sw - bl.ne = (20,0);
>  drawboxed(bl,br);
> \stopMPpage

Move `input boxes` outside the `\startMPpage`.


\startMPdefinitions
   input boxes.mp;
\stopMPdefinitions

\starttext
\startMPpage
   boxit.bl("left");
   boxit.br("right");
   br.sw - bl.ne = (20,0);
   drawboxed(bl,br);
\stopMPpage
\stoptext


Aditya
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2020-05-20 19:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-20 18:04 metapost boxes error jkitz
2020-05-20 19:38 ` Aditya Mahajan

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