From: Floris van Manen <vm@klankschap.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: [metafun example does not compile]
Date: Fri, 21 May 2021 14:03:37 +0200 [thread overview]
Message-ID: <28472600-3170-e6ae-c824-48c8f1d0a8c9@klankschap.nl> (raw)
Using the example from the wiki
https://wiki.contextgarden.net/textext_positioning
then using the latest version of lmtx
$ context --version
mtx-context | ConTeXt Process Management 1.04
mtx-context |
mtx-context | main context file:
/home/vm/context/tex/texmf-context/tex/context/base/mkiv/context.mkiv
mtx-context | current version: 2021.05.20 16:06
mtx-context | main context file:
/home/vm/context/tex/texmf-context/tex/context/base/mkxl/context.mkxl
mtx-context | current version: 2021.05.20 16:06
it will produce an error (and an empty page)
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'
metafun > log >
metafun > log > error: Unknown relation will be considered false
metafun > log >
metapost > log >
metapost > log > <to be read again>
metapost > log > )
metapost > log >
thetextext->...FIX2)(rawtextext(ddecimal(EXPR3)),(EXPR4))else:if.anchortextexts>0:image(draw(EXPR3)withprescript"tx_anchor="&ddecimal(EXPR4))else:(EXPR3)fi.if(mfun_labtype(SUFFIX2)>=10)
metapost > log >
:shifted(0,y...
metapost > log >
thetextext->begingroup.if.string(EXPR3):thetextext(SUFFIX2)(rawtextext((EXPR3)),(EXPR4))
metapost > log >
elseif.numeric(EXPR3):thetextext(SUFFIX2)(rawtextext(decimal(EXPR3)),(EXPR4))elseif.pair(EXPR3):thetextext(SU...
metapost > log >
textext->begingroup.thetextext(SUFFIX2)((EXPR3),origin)
metapost > log >
endgroup
metapost > log > <*> ...A; draw PA withpen pencircle scaled 1.5mm
withcolor red; pair PB ; PB := PA shifted decal ; draw textext.drt
("DRT-" & MonTexte) shifted PB; draw textext.dflt("DFLT-" & MonTexte)
metafun > log >
metafun > log > Oh dear. I can't decide if the expression above
is positive, negative, or zero.
So this comparison test won't be 'true'.
As in most of the cases with software, there is (probably) a reason to
it ;-)
.F
___________________________________________________________________________________
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
___________________________________________________________________________________
next reply other threads:[~2021-05-21 12:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-21 12:03 Floris van Manen [this message]
2021-05-21 12:14 ` Taco Hoekwater
2021-05-21 12:29 ` Floris van Manen
2021-05-21 12:15 ` Floris van Manen
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=28472600-3170-e6ae-c824-48c8f1d0a8c9@klankschap.nl \
--to=vm@klankschap.nl \
--cc=ntg-context@ntg.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).