ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Nested fences, inner one changes size with outer one
@ 2019-02-06 14:19 Mikael P. Sundqvist
  0 siblings, 0 replies; only message in thread
From: Mikael P. Sundqvist @ 2019-02-06 14:19 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 703 bytes --]

Hi,

Is it possible to automatically have the inner fence _not_ change its
size with the outer one?

/Mikael

\definemathfence[Openinterval][left="0028,right="0029,command=yes]
\definemathfence[Set][left="007B,right="007D,command=yes]
\starttext
\startTEXpage[offset=3bp]
Nothing fancy here:
\startformula
\Set{\Openinterval{-n,n}~:~n\in\mathbb N}
\stopformula
Here, I would expect the parenthesis to be of small size:
\startformula
\Set[size=1]{\Openinterval{-n,n}~:~n\in\mathbb N}
\stopformula
This works, but it would be nice not to be forced to write
\type{[size=0]} in the inner construct:
\startformula
\Set[size=1]{\Openinterval[size=0]{-n,n}~:~n\in\mathbb N}
\stopformula
\stopTEXpage
\stoptext

[-- Attachment #2: nestedfences.pdf --]
[-- Type: application/pdf, Size: 12638 bytes --]

[-- Attachment #3: 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-02-06 14:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-06 14:19 Nested fences, inner one changes size with outer one Mikael P. Sundqvist

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