ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] Nested aligns in formulasjj
@ 2023-08-14 11:16 Gerion Entrup
  2023-08-14 11:33 ` [NTG-context] " Hans Hagen
  2023-08-14 11:44 ` Mikael Sundqvist
  0 siblings, 2 replies; 5+ messages in thread
From: Gerion Entrup @ 2023-08-14 11:16 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1.1: Type: text/plain, Size: 468 bytes --]

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

[-- Attachment #1.1.2: test.pdf --]
[-- Type: application/pdf, Size: 9093 bytes --]

[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

[-- Attachment #2: Type: text/plain, Size: 495 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [NTG-context] Re: Nested aligns in formulasjj
  2023-08-14 11:16 [NTG-context] Nested aligns in formulasjj Gerion Entrup
@ 2023-08-14 11:33 ` Hans Hagen
  2023-08-14 14:34   ` Gerion Entrup
  2023-08-14 11:44 ` Mikael Sundqvist
  1 sibling, 1 reply; 5+ messages in thread
From: Hans Hagen @ 2023-08-14 11:33 UTC (permalink / raw)
  To: ntg-context

On 8/14/2023 1:16 PM, Gerion Entrup wrote:
> 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 
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
-----------------------------------------------------------------

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [NTG-context] Re: Nested aligns in formulasjj
  2023-08-14 11:16 [NTG-context] Nested aligns in formulasjj Gerion Entrup
  2023-08-14 11:33 ` [NTG-context] " Hans Hagen
@ 2023-08-14 11:44 ` Mikael Sundqvist
  2023-08-14 14:40   ` Gerion Entrup
  1 sibling, 1 reply; 5+ messages in thread
From: Mikael Sundqvist @ 2023-08-14 11:44 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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 <gerion.entrup@flump.de> wrote:
>
> 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
> ___________________________________________________________________________________
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [NTG-context] Re: Nested aligns in formulasjj
  2023-08-14 11:33 ` [NTG-context] " Hans Hagen
@ 2023-08-14 14:34   ` Gerion Entrup
  0 siblings, 0 replies; 5+ messages in thread
From: Gerion Entrup @ 2023-08-14 14:34 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 1447 bytes --]

Am Montag, 14. August 2023, 13:33:33 CEST schrieb Hans Hagen:
> On 8/14/2023 1:16 PM, Gerion Entrup wrote:
> > 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 
> 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

[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

[-- Attachment #2: Type: text/plain, Size: 495 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [NTG-context] Re: Nested aligns in formulasjj
  2023-08-14 11:44 ` Mikael Sundqvist
@ 2023-08-14 14:40   ` Gerion Entrup
  0 siblings, 0 replies; 5+ messages in thread
From: Gerion Entrup @ 2023-08-14 14:40 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 717 bytes --]

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

[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

[-- Attachment #2: Type: text/plain, Size: 495 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-08-14 14:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-14 11:16 [NTG-context] Nested aligns in formulasjj Gerion Entrup
2023-08-14 11:33 ` [NTG-context] " Hans Hagen
2023-08-14 14:34   ` Gerion Entrup
2023-08-14 11:44 ` Mikael Sundqvist
2023-08-14 14:40   ` Gerion Entrup

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