ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [metafun example does not compile]
@ 2021-05-21 12:03 Floris van Manen
  2021-05-21 12:14 ` Taco Hoekwater
  2021-05-21 12:15 ` Floris van Manen
  0 siblings, 2 replies; 4+ messages in thread
From: Floris van Manen @ 2021-05-21 12:03 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________

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

end of thread, other threads:[~2021-05-21 12:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-21 12:03 [metafun example does not compile] Floris van Manen
2021-05-21 12:14 ` Taco Hoekwater
2021-05-21 12:29   ` Floris van Manen
2021-05-21 12:15 ` Floris van Manen

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