ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <j.hagen@xs4all.nl>
To: ntg-context@ntg.nl
Subject: [NTG-context] Re: Nested aligns in formulasjj
Date: Mon, 14 Aug 2023 13:33:33 +0200	[thread overview]
Message-ID: <3b3409c5-c31b-ecdd-c3fd-e8627e7f0971@xs4all.nl> (raw)
In-Reply-To: <1863730.tdWV9SEqCh@falbala>

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
___________________________________________________________________________________

  reply	other threads:[~2023-08-14 11:35 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-14 11:16 [NTG-context] " Gerion Entrup
2023-08-14 11:33 ` Hans Hagen [this message]
2023-08-14 14:34   ` [NTG-context] " Gerion Entrup
2023-08-14 11:44 ` Mikael Sundqvist
2023-08-14 14:40   ` Gerion Entrup

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3b3409c5-c31b-ecdd-c3fd-e8627e7f0971@xs4all.nl \
    --to=j.hagen@xs4all.nl \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).