On 9/15/2026 9:37 AM, Max Chernoff wrote:
Hi Hans,
On Tue, 2026-09-15 at 08:55 +0200, Hans Hagen wrote:
On 9/15/2026 6:25 AM, Max Chernoff wrote:
Perhaps you should define these characters as "\frozen" (or no
protection at all) instead of "\permanent". I think that it's good that
macros like "\setuplayout", "\processcommalist", and
"\gobbleoneargument" are defined as "\permanent": those are core macros,
other core ConTeXt macros use them internally, redefining them will lead
to lots of issues, and it's easy enough for users to pick another name.
they used to be frozen till someone thought that it was a good idea to
redefine \prime so that tipped us over the decision making edge (with
likely more to follow)
Isn't that exactly why the macros _shouldn't_ be "\permanent" though?
This way, you and Mikael can have "\prime" work the way that you want,
and the people who prefer the classic behaviour can redefine "\prime" to
behave like it used to in MkII and MkIV. I guess I don't really see the
benefit to not allowing people to choose whatever they want. Yes, users
could break something with a bad definition, but users will always be
able to break stuff anyways with code like
People who prefer classic can use mkii or mkiv as those are still
around. There are plenty ways users can define stuff in a more reliable
way. The fact that plain/latex have \not or \prime defined in some way
is irrelevant to me.
And who knows it \prime isn't used deep down for something. Anyway, we
spent many man-years on all of this and it's not like we're being paid
to do so. Of course we'd hapilly make a context mklt format for latex
addicts if some projects showed up.
(Maybe you're an a-typical user, so be it.)
But I bet most users are willing to move on. And if there are users
coming from e.g. latex or plain they have to adapt anyway. No one is
forced to use context and I don't care at all supporting what / how
other macro packages do / support.
\define\MyMacro{\MyMacro}\MyMacro
Don't you think I'd seen some message about that in the decades we are
providing context if that really was done?
Next thing you will ask is why in context \im { x {+} x } doesn't create
a specific atom + but groups.
But I think that users should be allowed to redefine the math characters
if they want: none of the other ConTeXt macros use them internally (and
if they do, users will want the redefined version to be used), it's not
easy for users to pick another name (a combination of muscle memory for
the old names plus the fact that "\not" or "\Delta" really are the only
sensible names for those characters), and redefining these shouldn't
ever break anything.
Users can define xDelta is they like
How can users know which names they're allowed to choose though? I
thought that the rule was that users were free to (re)define anything
with a capital letter in it (except for the table \NC commands), but do
people now need to remember the 82 csnames with a capital letter defined
in "char-def.lua"?
When they redefine they wither get some obscure error with maybe 500
lines of tracing, or they just get the one-line message that they are
not supposed to overload. Unless you want users to be in awe about their
understanding of tex errors (or want to be impressed by others when
answering a question about it).
I don't know what you mean by 'rule'. We advice to use some capital for
e.g. Chapter or so but even better is something with some meaning. And
when something new is added Wolfgang and I make sure we don't clash and
are consistent.
... we spent a lot or time and
energy on updating the math machinery wrt spacing, penalties, carrying
meaning, no space tweaks, whatever and are not going to sloppify the lot
I don't see how letting users redefine math characters will "sloppify"
the ConTeXt core, since everything will be isolated to the users' own
documents. And yes, users' documents are often sloppy, but they'll still
be sloppy regardless of whether they can redefine macros or not.
Ask that to people who thrive on supporting tagged pdf.
There are plenty ways to render what you like, \MyDelta being one of them.
Hans
-----------------------------------------------------------------
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 : [email protected] /
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________