ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Jacob Kauffmann via ntg-context <ntg-context@ntg.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Jacob Kauffmann <jacobkauffmann@me.com>
Subject: Bug in mp-xbox.mpxl (circleit)
Date: Wed, 22 Dec 2021 14:33:10 +0100	[thread overview]
Message-ID: <76829BC8-F9C5-4A63-96EE-72B4325BDA5E@me.com> (raw)


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

Hi list,

I realized that circleit throws an error.
It works fine if I replace boxes_generic_declare by boxes_declare in line 244 in mp-xbox.mpxl

rboxit is probably affected as well, but I did not test that.

MWE:
\startMPinclusions
input boxes;
\stopMPinclusions

\startMPpage
circleit.a(textext("$X$"));
drawboxed(a);
\startMPpage

The error (truncated) message:
metapost        > initializing instance 'metafun:1' using format 'metafun' and method 'default'
metapost        > loading 'metafun' as 'metafun.mpxl' using method 'default'
metapost        > initializing number mode 'scaled'
metapost        > trace > This is MPLIB for LuaMetaTeX, version 3.11, running in scaled mode.
metapost        > trace >
metapost        > trace > loading metafun for lmtx, including the plain 1.004 base definitions
metapost        > trace >
metafun         > log >
metafun         > log > error: Isolated expression
metafun         > log >
metapost        > trace > <error> boxes_generic_declare
metapost        > trace > <to be read again> (
metapost        > trace > <macro> circleit -> (TEXT3)-> begingroup.boxes_begin("boxes_the_circle","boxes_size_circle",(SUFFIX2),(TEXT3));boxes_generic_declare(pair)_n.n,_n.s,_n.e,_n.w;(SUFFIX2)e-(SUFFIX2)c=(SUFFIX2)c-(SUFFIX2)w=((SUFFIX2)dx,0)+0.5*(lrcorner.boxes_pic(SUFFIX2)-llcorner.boxes_pic(SUFFIX2));(SUFFIX2)n-(SUFFIX2)c=(SUFFIX2)c-(SUFFIX2)s=(0,(SUFFIX2)dy)+0.5*(ulcorner.boxes_pic(SUFFIX2)-llcorner.boxes_pic(SUFFIX2));boxes_end(boxes_clear_circle,(SUFFIX2));endgroup
metafun         > log >
metafun         > log > I couldn't find an '=' or ':=' after the expression that is shown above this
error message, so I guess I'll just ignore it and carry on.
metafun         > log >
metapost        > trace > <direct> circleit.a(textext("$X$")); drawboxed(a); ;
metapost        > trace >

Cheers,
Jacob

[-- Attachment #1.2: Message signed with OpenPGP --]
[-- Type: application/pgp-signature, Size: 833 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
___________________________________________________________________________________

             reply	other threads:[~2021-12-22 13:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-22 13:33 Jacob Kauffmann via ntg-context [this message]
2021-12-24 12:02 ` Hans Hagen 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=76829BC8-F9C5-4A63-96EE-72B4325BDA5E@me.com \
    --to=ntg-context@ntg.nl \
    --cc=jacobkauffmann@me.com \
    /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).