* freedotlabel not defined in LMTX ?
@ 2020-12-26 10:28 Otared Kavian
2020-12-26 11:57 ` Hans Hagen
0 siblings, 1 reply; 2+ messages in thread
From: Otared Kavian @ 2020-12-26 10:28 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hi Hans,
When I was testing your example with freelabel in another thread, I noticed that freedotlabel does not work in LMTX.
Here is the code from the Metafun manual which works with ConTeXt version 2020.06.25 10:55 MKIV, but not with ConTeXt version 2020.12.24 17:30 LMTX.
%% begin freedotlabel.tex
\setupbodyfont[pagella]
\starttext
\startMPcode
pair destination ;
for whereto = "up", "down", "left", "right" :
destination := scantokens(whereto) * 1cm ;
freedotlabel(whereto, destination, origin) ;
drawarrow origin -- destination
withpen pencircle scaled .25mm withcolor .625 red ;
endfor ;
\stopMPcode
\stoptext
%% end freedotlabel.tex
Best regards: Otared
___________________________________________________________________________________
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: freedotlabel not defined in LMTX ?
2020-12-26 10:28 freedotlabel not defined in LMTX ? Otared Kavian
@ 2020-12-26 11:57 ` Hans Hagen
0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2020-12-26 11:57 UTC (permalink / raw)
To: mailing list for ConTeXt users, Otared Kavian
On 12/26/2020 11:28 AM, Otared Kavian wrote:
> Hi Hans,
>
> When I was testing your example with freelabel in another thread, I noticed that freedotlabel does not work in LMTX.
> Here is the code from the Metafun manual which works with ConTeXt version 2020.06.25 10:55 MKIV, but not with ConTeXt version 2020.12.24 17:30 LMTX.
>
> %% begin freedotlabel.tex
> \setupbodyfont[pagella]
>
> \starttext
>
> \startMPcode
> pair destination ;
> for whereto = "up", "down", "left", "right" :
> destination := scantokens(whereto) * 1cm ;
> freedotlabel(whereto, destination, origin) ;
> drawarrow origin -- destination
> withpen pencircle scaled .25mm withcolor .625 red ;
> endfor ;
> \stopMPcode
>
> \stoptext
> %% end freedotlabel.tex
a renamed variable ...
vardef freedotlabel (expr asked_text, asked_location, asked_origin) =
interim linecap := rounded ;
draw asked_location withpen pencircle scaled freedotlabelsize ;
draw thefreelabel(asked_text,asked_location,asked_origin) ;
enddef ;
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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-12-26 11:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-26 10:28 freedotlabel not defined in LMTX ? Otared Kavian
2020-12-26 11:57 ` Hans Hagen
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).