From: Aditya Mahajan <adityam@umich.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Metafun: is it possible to redefine dotlabel to draw a square ?
Date: Thu, 10 Dec 2020 13:04:10 -0500 (EST) [thread overview]
Message-ID: <nycvar.YAK.7.78.908.2012101259300.1732@nqv-guvaxcnq> (raw)
In-Reply-To: <47459975-3A2D-4DC4-9135-DF40E8AA0BD8@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 625 bytes --]
On Thu, 10 Dec 2020, Otared Kavian wrote:
> Hi Aditya,
> Thank you very much !
> That's great indeed, you gave me an elegant solution.
>
> One more question, in order for me to understand a little more: when defining a new dotlabel as you do, might it not conflict with the internal definitions of dotlabel in Metafun in some other place?
> Maybe it is safer for me to call it something like « dotshapelabel » ?
In general, I agree. Redefining internal macros has the advantage that your code doesn't have to change. See, for example:
https://github.com/adityam/mp-sketch/blob/master/mp-sketch.mp
Aditya
[-- 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
___________________________________________________________________________________
next prev parent reply other threads:[~2020-12-10 18:04 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-10 17:30 Otared Kavian
2020-12-10 17:44 ` Aditya Mahajan
2020-12-10 17:57 ` Otared Kavian
2020-12-10 18:04 ` Aditya Mahajan [this message]
2020-12-10 18:50 ` Hans Hagen
2020-12-10 18:07 ` Hans Hagen
2020-12-10 19:37 ` Aditya Mahajan
2020-12-10 21:36 ` Hans Hagen
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=nycvar.YAK.7.78.908.2012101259300.1732@nqv-guvaxcnq \
--to=adityam@umich.edu \
--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).