ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Unicode superscript and subscript parentheses as operators
@ 2021-12-28 16:54 Hans Åberg via ntg-context
  2021-12-28 21:29 ` Hans Hagen via ntg-context
  0 siblings, 1 reply; 8+ messages in thread
From: Hans Åberg via ntg-context @ 2021-12-28 16:54 UTC (permalink / raw)
  To: Ntg-context; +Cc: Hans Åberg

Is it possible to use the Unicode superscript and subscript parentheses as superscript and subscript operators? That is, ⁽…⁾ having the same function as ^{…}, and ₍…₎ as _{…}.

It might be something like the following, but somehow bundling the last part of \letcharcode into a command.
\appendtoks
 \catcode`⁽=\activecatcode
 \letcharcode `⁽ ^{
 \catcode`⁾=\activecatcode
 \letcharcode `⁾ }
 \catcode`₍=\activecatcode
 \letcharcode `₍ _{
 \catcode`₎=\activecatcode
 \letcharcode `₎ }
\to \everymathematics


___________________________________________________________________________________
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] 8+ messages in thread

end of thread, other threads:[~2021-12-30 20:34 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-28 16:54 Unicode superscript and subscript parentheses as operators Hans Åberg via ntg-context
2021-12-28 21:29 ` Hans Hagen via ntg-context
2021-12-28 21:53   ` Hans Åberg via ntg-context
2021-12-28 22:03     ` Hans Hagen via ntg-context
2021-12-28 22:12       ` Hans Åberg via ntg-context
2021-12-28 22:05     ` Hans Hagen via ntg-context
2021-12-28 22:25       ` Hans Åberg via ntg-context
2021-12-30 20:34       ` Hans Åberg via ntg-context

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