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

* Re: [metafun example does not compile]
  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
  1 sibling, 1 reply; 4+ messages in thread
From: Taco Hoekwater @ 2021-05-21 12:14 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

It looks like textext.dflt is undefined in the latest lmtx because it is now
renamed to textext.dlft :)


> On 21 May 2021, at 14:03, Floris van Manen <vm@klankschap.nl> wrote:
> 
> 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
> ___________________________________________________________________________________

— 
Taco Hoekwater              E: taco@bittext.nl
genderfluid (all pronouns)



___________________________________________________________________________________
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

* Re: [metafun example does not compile]
  2021-05-21 12:03 [metafun example does not compile] Floris van Manen
  2021-05-21 12:14 ` Taco Hoekwater
@ 2021-05-21 12:15 ` Floris van Manen
  1 sibling, 0 replies; 4+ messages in thread
From: Floris van Manen @ 2021-05-21 12:15 UTC (permalink / raw)
  To: ntg-context

the line preventing the output from showing uo seems to be be:

draw textext.dflt("DFLT-" & MonTexte) shifted PB;

If I remove that, I'll get output.


___________________________________________________________________________________
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

* Re: [metafun example does not compile]
  2021-05-21 12:14 ` Taco Hoekwater
@ 2021-05-21 12:29   ` Floris van Manen
  0 siblings, 0 replies; 4+ messages in thread
From: Floris van Manen @ 2021-05-21 12:29 UTC (permalink / raw)
  To: ntg-context



On 21/05/2021 14:14, Taco Hoekwater wrote:
> It looks like textext.dflt is undefined in the latest lmtx because it is now
> renamed to textext.dlft :)

As we say in dutch: een kniesoor die daar op let
;-)

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