Hi, I try to typeset a nested align in a formula. However, the results looks really wrong. Here is a MWE: ``` \starttext \startformula \startalign \NC a = \NC (b, c) \quad \text{with}\NR \NC \NC \startalign \NC b \NC = something \NR \NC c \NC = someother \NR \stopalign \NR \NC somelong = \NC bla \NR \stopalign \stopformula \stoptext ``` Am I doing something wrong or are nested aligns not possible? Best, Gerion
Hi,
I try to typeset a nested align in a formula. However, the results looks really wrong. Here is a MWE:
``` \starttext \startformula \startalign \NC a = \NC (b, c) \quad \text{with}\NR \NC \NC \startalign \NC b \NC = something \NR \NC c \NC = someother \NR \stopalign \NR \NC somelong = \NC bla \NR \stopalign \stopformula \stoptext ``` Am I doing something wrong or are nested aligns not possible? it will work if you configure the inner align to be tight (i delegate
On 8/14/2023 1:16 PM, Gerion Entrup wrote: that answer) \startformula a = \alignhere (b, c) \quad \text{with} \breakhere b = \text{something} \breakhere c = \text{someother} \breakhere \text{somelong} = \alignhere bla \stopformula might be okay for your purpose 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 -----------------------------------------------------------------
Am Montag, 14. August 2023, 13:33:33 CEST schrieb Hans Hagen:
Hi,
I try to typeset a nested align in a formula. However, the results looks really wrong. Here is a MWE:
``` \starttext \startformula \startalign \NC a = \NC (b, c) \quad \text{with}\NR \NC \NC \startalign \NC b \NC = something \NR \NC c \NC = someother \NR \stopalign \NR \NC somelong = \NC bla \NR \stopalign \stopformula \stoptext ``` Am I doing something wrong or are nested aligns not possible? it will work if you configure the inner align to be tight (i delegate
On 8/14/2023 1:16 PM, Gerion Entrup wrote: that answer)
\startformula a = \alignhere (b, c) \quad \text{with} \breakhere b = \text{something} \breakhere c = \text{someother} \breakhere \text{somelong} = \alignhere bla \stopformula
might be okay for your purpose
Thanks, but unfortunately not. I guess, I simplified the MWE too much. This does not align the b and c. It should become clear here: ``` \startformula a = \alignhere (b, thisislonger) \quad \text{with} \breakhere b = \text{something} \breakhere thisislonger = \text{someother} \breakhere \text{somelong} = \alignhere bla \stopformula ``` Gerion
Hi,
I do not understand what you want to have, so here is just something
weird, but probably you look for simplealign.
\definemathsimplealign
[whatever]
\starttext
\startformula
\startalign
\NC a = \NC (b, c) \quad \mtext{with}\NR
\NC \NC \startwhatever
\NC b \NC = something \NR
\NC c \NC = someother \NR
\stopwhatever \NR
\NC somelong = \NC bla \NR
\stopalign
\stopformula
\stoptext
/Mikael
On Mon, Aug 14, 2023 at 1:20 PM Gerion Entrup
Hi,
I try to typeset a nested align in a formula. However, the results looks really wrong. Here is a MWE:
``` \starttext \startformula \startalign \NC a = \NC (b, c) \quad \text{with}\NR \NC \NC \startalign \NC b \NC = something \NR \NC c \NC = someother \NR \stopalign \NR \NC somelong = \NC bla \NR \stopalign \stopformula \stoptext ``` Am I doing something wrong or are nested aligns not possible?
Best, Gerion ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___________________________________________________________________________________
Am Montag, 14. August 2023, 13:44:44 CEST schrieb Mikael Sundqvist:
Hi,
I do not understand what you want to have, so here is just something weird, but probably you look for simplealign.
\definemathsimplealign [whatever]
\starttext \startformula \startalign \NC a = \NC (b, c) \quad \mtext{with}\NR \NC \NC \startwhatever \NC b \NC = something \NR \NC c \NC = someother \NR \stopwhatever \NR \NC somelong = \NC bla \NR \stopalign \stopformula \stoptext
Thanks, this looks exactly like that what I want. However, this does not really nest aligns, but defines a new alignment group/environment (if I interpret it correctly). But after all, it is a viable workaround. Gerion
participants (3)
-
Gerion Entrup
-
Hans Hagen
-
Mikael Sundqvist