From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE, MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: from cgl.ntg.nl (Cgl.ntg.nl [5.39.185.202]) by inbox.vuxu.org (Postfix) with ESMTP id 58CB924D6D for ; Thu, 10 Oct 2024 20:19:34 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id D1C67484D97 for ; Thu, 10 Oct 2024 20:19:09 +0200 (CEST) Authentication-Results: cgl.ntg.nl (amavisd-new); dkim=pass (1024-bit key) reason="pass (just generated, assumed good)" header.d=ntg.nl DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ntg.nl; h= content-type:content-type:list-unsubscribe:list-subscribe :list-post:list-owner:list-help:list-archive:archived-at:list-id :subject:subject:reply-to:precedence:x-mailer:message-id :in-reply-to:references:date:date:mime-version:from:from :received:received:received:received:received:received:received; s=cgl; t=1728584348; x=1731176349; bh=O8OUNh0J7lkkOMcqSHMtp5CPx 29is3hjnGJIfPEjoU4=; b=n3mLDJXiHZuS8Tc1nf4cVeuzI90KTWwHg/dAT1RkI +9oeMH72xRfSPI+1Ep8XaLbdEorGEmp3yd4f+hVAq9nyeL7CPJeoeT/f/tnVmMEv uVB4oX+3sd+aymV/PBKDam66Xw0zCDH7WR8WlqYhFNrrFY2+o1EaDO7z8O618ki6 ak= X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Authentication-Results: cgl.ntg.nl (amavisd-new); dkim=fail (2048-bit key) reason="fail (message has been altered)" header.d=gmail.com Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VR23mp3Kydcu for ; Thu, 10 Oct 2024 20:19:08 +0200 (CEST) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id B553A484D05 for ; Thu, 10 Oct 2024 20:15:38 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 7FE0C484BDC for ; Thu, 10 Oct 2024 20:14:52 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KGHR8f5kPOTy for ; Thu, 10 Oct 2024 20:14:51 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.128.49; helo=mail-wm1-f49.google.com; envelope-from=otared@gmail.com; receiver= Received: from mail-wm1-f49.google.com (mail-wm1-f49.google.com [209.85.128.49]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by cgl.ntg.nl (Postfix) with ESMTPS id 95B0B484BD3 for ; Thu, 10 Oct 2024 20:14:51 +0200 (CEST) Received: by mail-wm1-f49.google.com with SMTP id 5b1f17b1804b1-431137d12a5so10951225e9.1 for ; Thu, 10 Oct 2024 11:14:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728584091; x=1729188891; darn=ntg.nl; h=message-id:in-reply-to:to:references:date:subject:mime-version:from :from:to:cc:subject:date:message-id:reply-to; bh=Q/WHPjEBGN9TLpFqizUGG50cn+yFa1D9gnmKG7aTlQY=; b=LFpPNMLkkAMFLVzZL2E1muC+7h0fha34PItN+stFVa5wpt47XVGsdVNG6X5N/35teK lL6Sq2YRmtgqADoFAEsfvgRCMcx+5uB2XpO60z7cUl94hjyIwmLS6w0NmQ1XkX6Gf1FN VFxo6o2/I/EY2Ns7VT9oikQWmnMFrWcDZcAEYepCZBHjmLW90kblZHFWqu6TAHWKEMNv qQTnAqVRzAg/OhDfrjZoBrNHmt3NxGlGJMNXmjw2oJ/qC3HWGlSBFmbrztVAFhUUOvVH 6eJfAFTDXoC56GJnxUSYUpCVqWNYIYU9J4ca23naHAaFSRYx88wSeYWC9wXFGlDhf9wi XtWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728584091; x=1729188891; h=message-id:in-reply-to:to:references:date:subject:mime-version:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Q/WHPjEBGN9TLpFqizUGG50cn+yFa1D9gnmKG7aTlQY=; b=w7taiqxSHH5DRDwcF85WapRCi57G0Ub2IWWauAh8u4IU7VNW2HC3SNc6Xzs+tGd/Mo dZn/tx92idtLIE/du7iemqRe27SVbT2d7MAF07NiAoXak4zYANNgiumXeUI6a+W7C7WB Yh7ve83Z7S07I32jC5kGAaE8f78y9ZJWeXuHtDegZJsotwtt61n/jN4ZGP3XHf2y0T7C jhCtO6fXjLuRQh3GUUL3j4hKdsnRe/xAe1pnoLi7UJMBvNtqZrCfXBipifxVp0mI9v0t 3pJDiDRFt545foQqVhye6rOb9bxhwnn6hfJ5KUefeaT1heSxIFPzposIGNMvCogobv4O 5UaA== X-Gm-Message-State: AOJu0YzEnIhxLaO9iOUshB3lwO+/9s0RjM6zKCaclgVEG0PTC1OnPu1c G8Og+XTNhJP/awv/xjBfeWVhzZJQBzP1tQqG/ULtwDGQkW/pE0kdLv4DjUJp X-Google-Smtp-Source: AGHT+IFB09jV4bKq29rCeRaFpB4UyyoBfXZR1H22Cu4XmvxKqZAV8Fe5NGtG9b9tXl+E+RCkuebgpQ== X-Received: by 2002:a05:600c:19c6:b0:42c:b74c:d8c3 with SMTP id 5b1f17b1804b1-4311cea4513mr3096495e9.32.1728584090787; Thu, 10 Oct 2024 11:14:50 -0700 (PDT) Received: from smtpclient.apple (2a01cb00879d24009c283e4816fa17b6.ipv6.abo.wanadoo.fr. [2a01:cb00:879d:2400:9c28:3e48:16fa:17b6]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4311b69f652sm6194985e9.1.2024.10.10.11.14.50 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 10 Oct 2024 11:14:50 -0700 (PDT) From: Otared Kavian Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.15\)) Date: Thu, 10 Oct 2024 20:14:49 +0200 References: <20241009181650.05b36f22@boo.my.domain> To: mailing list for ConTeXt users In-Reply-To: Message-Id: <5A1DEF8D-911B-43D7-B5F2-6869EC0048BA@gmail.com> X-Mailer: Apple Mail (2.3654.120.0.1.15) Message-ID-Hash: KHRG3VMKRLXF2KLWLSUPSSVV6ADWJW5F X-Message-ID-Hash: KHRG3VMKRLXF2KLWLSUPSSVV6ADWJW5F X-MailFrom: otared@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 Precedence: list Reply-To: mailing list for ConTeXt users Subject: [NTG-context] Re: equation to right margin List-Id: mailing list for ConTeXt users Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: multipart/mixed; boundary="===============5280434641758580469==" --===============5280434641758580469== Content-Type: multipart/alternative; boundary="Apple-Mail=_174DAAF6-854C-4A2F-A16E-D7A8B93AB51B" --Apple-Mail=_174DAAF6-854C-4A2F-A16E-D7A8B93AB51B Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi Mikael, My personal experience with numbered equations gathered with a big left = curly brace (assuming that the numbers are put to the right of formulas) = is that it is very useful (or indispensable=E2=80=A6) to be able to = number each equation and be able to refer to them. For instance, when = one writes a partial differential equation, usually there are boundary = conditions, initial conditions and such, which may take 3, 4 or 5 lines = of equations (some authors may even have more than that, but I = personally avoid it=E2=80=A6). It is useful to be able to refer to each = of these equations, either by numebring them as subformulas, or = numebering them sequentially. It is true that in this case, that is when = each line has a number, usually one does not number the whole system of = equations gathered by the big left brace. The optimal solution would be = to have the option to number each line, or to number them as = subformulas. For instance in the following minimal example (based on one of your = answers some time ago), the reference to =C2=AB eq:Robin =C2=BB does not = work and the numbers of each line of the PDE problem are not correctly = aligned to the right. % begin example alignedcases.tex \definemathsimplealign[pdeproblem][ left=3D{\startmathfenced[cases]}, right=3D\stopmathfenced, align=3D{1:right,2:left,3:left}, strut=3Dyes, ] \define[1]\eqref{(\in[eq:#1])} \starttext A function $u$ is said to be harmonic in $\Omega$ if \placeformula[eq:Harmonic] \startformula \Delta u =3D 0 \quad\text{in }\, \Omega. \stopformula For a given potential $V$ defined on $\partial\Omega$ and a smooth = function $\phi$ defined on $\partial\Omega$, study here the PDE \placeformula=20 \startformula \startpdeproblem \NC - \Delta u \NC =3D 0 \NC \qquad\text{in } \Omega \NR[eq:Harmonic-1] \NC \frac{\partial u}{\partial {\bi n}} \NC =3D V u + \phi \NC \qquad\text{on } \partial\Omega \NR[eq:Robin] \stoppdeproblem \stopformula In the above PDE problem, the boundary condition \eqref{eq:Robin} may be = replaced by a nonlinear condition such as \startformula \frac{\partial u}{\partial {\bi n}} \NC =3D V u + u^3 \qquad\text{on } = \partial\Omega, \stopformula while the notion of a harmonic function \eqref{Harmonic} may be replaced = with=20 \startformula -{\rm div}(a(x)\nabla u) =3D 0 \quad\text{in }\, \Omega. \stopformula \stoptext % end example alignedcases.tex Best regards: Otared > On 10 Oct 2024, at 07:32, Mikael Sundqvist wrote: >=20 > Hi, >=20 > A. Bowen: The cases are meant for when you divide something into > cases, as in the example below with the absolute value. It is a kind > of inline part of a formula, and I would claim that when you number an > equation, you do not number one case of a cases, but the equation. If > you refer to it, you talk abou "the second line in (1)" if you need to > specify. I also get a bit curious, are you editor of some math journal > that is typeset by ConTeXt? >=20 > A. Braslau: I agree that it is common to put the brace on the left, > but I insist that it makes more sense to put it on the right _if_ you > have equation numbers on the right. If equation numbers are to the > left, it makes sense to put the brace on the left. Nevertheless, to > put the brace on the left side and numbering on the right is possible > (see example below). But the equation number in this case is sitting > in between the two equations, and that is disturbing. If there would > be three lines, one could argue that it would sit on the middle one. > Or not distinguish it from the case where it sits on the middle line. >=20 > The good thing is of course that one can do as one please. >=20 > \starttext > \startformula > \abs{x} =3D > \startcases > \NC x, \NC x > 0; \NR > \NC 0, \NC x =3D 0; \NR > \NC -x, \NC x < 0. \NR > \stopcases > \numberhere[eq:foo] > \stopformula >=20 > \startformula > \startalign > [location=3Dpacked,fences=3Dcases] > \NC \[21-(9 - n^2)\NC =3D=E2=96=A1^\prime\]\NR > \NC n^2+12 \NC=3D=E2=96=A1^\prime. \NR > \stopalign > \numberhere[eq:foo] > \stopformula >=20 > \stoptext >=20 > /Mikael >=20 > On Thu, Oct 10, 2024 at 2:21=E2=80=AFAM Alan Braslau via ntg-context > wrote: >>=20 >> It is common, when writing a system of equations, to put a brace on = the >> left. It could make sense to number this system of equations with a >> single number, on the right and aligned with the right margin. It = would >> also make sense for this number to be aligned with the middle of the >> two equations of the system. >>=20 >> A brace on the right would not introduce the grouping as a system of >> equations, rather as a pair of equations sharing a common number. >>=20 >> Alan >>=20 >>=20 >>=20 >> On Wed, 9 Oct 2024 12:20:00 -0400 >> Alan Bowen wrote: >>=20 >>> I understand. The reasoning makes sense to me and, as editor of a >>> paper in which this appears, I will ask the author to consider >>> dropping the brace. >>>=20 >>> I wonder of there is some similar thinking underlying the fact that >>> \startcases... puts the equation number so close to the equation >>> itself and not at a margin (typically right). >>>=20 >>> Again, many thanks, Mikael. >>> Alan >>>=20 >>> On Wed, Oct 9, 2024 at 12:12=E2=80=AFPM Mikael Sundqvist = >>> wrote: >>>=20 >>>> Hi, >>>>=20 >>>> I think what you ask for was never supported in ConTeXt, for a >>>> reason. The idea is that either one groups a set of equations with >>>> a brace and numbers them with one number, or one does not group, >>>> and then one can number each line separately/independently. >>>> Grouping on the left with a brace and numbering one line to the >>>> right is, even if we see that often, not really logical. >>>>=20 >>>> If there is a large request for doing this, I can talk to Hans = about >>>> it, maybe it is easy on the code side to support it. But I remember >>>> from when we were messing with numbering, and in particular when >>>> there are alignments, that it is a bit complicated. >>>>=20 >>>> /Mikael >>>>=20 >>>> On Wed, Oct 9, 2024 at 5:19=E2=80=AFPM Alan Bowen = >>>> wrote: >>>>>=20 >>>>> Thank you, Mikael. That is very helpful and much appreciated. >>>>>=20 >>>>> What I now have is: >>>>> \startplaceformula >>>>> \startformula >>>>> \startalign >>>>> \NC \[21-(9 - n^2)\NC =3D=E2=96=A1^\prime\] \NR[eq:1] >>>>> \NC n^2+12 \NC=3D=E2=96=A1^\prime. \NR[eq:2] >>>>> \stopalign >>>>> \stopformula >>>>> \stopplaceformula >>>>> which put the numbers at the right margin,as I wanted. >>>>>=20 >>>>> So how do I get a brace on the left rather than on the right? Or >>>>> is >>>> there documentation that explains this? >>>>>=20 >>>>> Alan >>>>>=20 >>>>> On Wed, Oct 9, 2024 at 10:22=E2=80=AFAM Mikael Sundqvist >>>>> >>>> wrote: >>>>>>=20 >>>>>> Hi, >>>>>>=20 >>>>>> On Mon, Oct 7, 2024 at 11:45=E2=80=AFPM Alan Bowen >>>>>> >>>> wrote: >>>>>>>=20 >>>>>>> I have the following which works, except for the fact that the >>>> equation number does not go to the right margin. >>>>>>>=20 >>>>>>> \startplaceformula >>>>>>> \startformula[align=3Dmiddle, prefix=3Dno] >>>>>>> \startcases[distance=3D2pt] >>>>>>> \NC \[21-(9 - n^2)\NC =3D=E2=96=A1^\prime\]\NR >>>>>>> \NC\hfill n^2+12 \NC=3D=E2=96=A1^\prime.\NR[eq04] >>>>>>> \stopcases >>>>>>> \stopformula >>>>>>> \stopplaceformula >>>>>>>=20 >>>>>>> I expect that I have missed something pretty basic here, so any >>>> guidance will be greatly appreciated. >>>>>>=20 >>>>>> Maybe I misunderstand you, but I do not think cases is right >>>>>> here. Also, are you sure you want to group two equations but >>>>>> only number one of them. >>>>>>=20 >>>>>> If I understand you correctly, I'd try with one of these, >>>>>> depending on if citing the group or one of the equations. >>>>>>=20 >>>>>> \starttext >>>>>>=20 >>>>>> \startformula >>>>>> \startalign[location=3Dpacked,fences=3Dsesac] >>>>>> \NC \[21-(9 - n^2)\NC =3D=E2=96=A1^\prime\]\NR >>>>>> \NC n^2+12 \NC=3D=E2=96=A1^\prime. \NR >>>>>> \stopalign >>>>>> \numberhere[eq:foo] >>>>>> \stopformula >>>>>>=20 >>>>>> \startplaceformula >>>>>> \startformula >>>>>> \startalign >>>>>> \NC \[21-(9 - n^2)\NC =3D=E2=96=A1^\prime\] \NR%[eq:bar-a] >>>>>> \NC n^2+12 \NC=3D=E2=96=A1^\prime. \NR[eq:bar-b] >>>>>> \stopalign >>>>>> \stopformula >>>>>> \stopplaceformula >>>>>>=20 >>>>>> \stoptext >>>>>>=20 >>>>>> /Mikael >>>>>>=20 >> = __________________________________________________________________________= _________ >> If your question is of interest to others as well, please add an = entry to the Wiki! >>=20 >> maillist : ntg-context@ntg.nl / = https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl >> webpage : https://www.pragma-ade.nl / https://context.aanhet.net = (mirror) >> archive : https://github.com/contextgarden/context >> wiki : https://wiki.contextgarden.net >> = __________________________________________________________________________= _________ > = __________________________________________________________________________= _________ > If your question is of interest to others as well, please add an entry = to the Wiki! >=20 > maillist : ntg-context@ntg.nl / = https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl > webpage : https://www.pragma-ade.nl / https://context.aanhet.net = (mirror) > archive : https://github.com/contextgarden/context > wiki : https://wiki.contextgarden.net > = __________________________________________________________________________= _________ Otared Kavian e-mail: otared@gmail.com Phone: +33 6 88 26 70 95 --Apple-Mail=_174DAAF6-854C-4A2F-A16E-D7A8B93AB51B Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Hi = Mikael,

My personal = experience with numbered equations gathered with a big left curly brace = (assuming that the numbers are put to the right of formulas) is that it = is very useful (or indispensable=E2=80=A6) to be able to number each = equation and be able to refer to them. For instance, when one writes a = partial differential equation, usually there are boundary conditions, = initial conditions and such, which may take 3, 4 or 5 lines of equations = (some authors may even have more than that, but I personally avoid = it=E2=80=A6). It is useful to be able to refer to each of these = equations, either by numebring them as subformulas, or numebering them = sequentially. It is true that in this case, that is when each line = has a number, usually one does not number the whole system of equations = gathered by the big left brace. The optimal solution would be to have = the option to number each line, or to number them as = subformulas.

For= instance in the following minimal example (based on one of your = answers some time ago), the reference to =C2=AB eq:Robin =C2=BB does not = work and the numbers of each line of the PDE problem are not correctly = aligned to the right.

% begin example alignedcases.tex

\definemathsimplealign[pdeproblem][
left=3D{\startmathfenced[cases]},
right=3D\stopmathfenced,
align=3D{1:right,2:left,3:left},
strut=3Dyes,
]

\define[1]\eqref{(\in[eq:#1])}
\starttext
A function $u$ is said to be = harmonic in $\Omega$ if
\placeformula[eq:Harmonic]
\startformula
\Delta u =3D 0 = \quad\text{in }\, \Omega.
\stopformula
For a given potential $V$ defined on $\partial\Omega$ and a = smooth function $\phi$ defined on $\partial\Omega$, study here the = PDE
\placeformula 
\startformula
\startpdeproblem
\NC - \Delta u \NC =3D 0 \NC \qquad\text{in } \Omega = \NR[eq:Harmonic-1]
\NC \frac{\partial u}{\partial = {\bi n}} \NC =3D V u + \phi \NC
\qquad\text{on } = \partial\Omega \NR[eq:Robin]
\stoppdeproblem
\stopformula

In the above PDE = problem, the boundary condition \eqref{eq:Robin} may be replaced by a = nonlinear condition such as
\startformula
\frac{\partial u}{\partial {\bi n}} \NC =3D V u + u^3 = \qquad\text{on } \partial\Omega,
\stopformula
while the notion of a = harmonic function \eqref{Harmonic} may be replaced with 
\startformula
-{\rm div}(a(x)\nabla u) =3D= 0 \quad\text{in }\, \Omega.
\stopformula

\stoptext

% end example = alignedcases.tex

Best = regards: Otared

On 10 Oct 2024, at 07:32, Mikael Sundqvist = <mickep@gmail.com> wrote:

Hi,
A. Bowen: The cases are meant for when you = divide something into
cases, as in the example below with = the absolute value. It is a kind
of inline part of a = formula, and I would claim that when you number an
equation,= you do not number one case of a cases, but the equation. If
you refer to it, you talk abou "the second line in (1)" if = you need to
specify. I also get a bit curious, are you = editor of some math journal
that is typeset by ConTeXt?

A. Braslau: I agree that it is common to put = the brace on the left,
but I insist that it makes more = sense to put it on the right _if_ you
have equation = numbers on the right. If equation numbers are to the
left, = it makes sense to put the brace on the left. Nevertheless, to
put the brace on the left side and numbering on the right is = possible
(see example below). But the equation number in = this case is sitting
in between the two equations, and = that is disturbing. If there would
be three lines, one = could argue that it would sit on the middle one.
Or not = distinguish it from the case where it sits on the middle line.

The good thing is of course that one can do as = one please.

\starttext
\startformula
 \abs{x} =3D
=  \startcases
   \NC  x, \NC x = > 0; \NR
   \NC  0, \NC x =3D 0; = \NR
   \NC -x, \NC x < 0. \NR
 \stopcases
 \numberhere[eq:foo]
\stopformula

\startformula
 \startalign
=    [location=3Dpacked,fences=3Dcases]
=    \NC \[21-(9 - n^2)\NC =3D=E2=96=A1^\prime\]\NR
   \NC  n^2+12 \NC=3D=E2=96=A1^\prime. =        \NR
=  \stopalign
 \numberhere[eq:foo]
\stopformula

\stoptext

/Mikael

On Thu, = Oct 10, 2024 at 2:21=E2=80=AFAM Alan Braslau via ntg-context
<ntg-context@ntg.nl> wrote:

It is common, when writing a = system of equations, to put a brace on the
left. It could = make sense to number this system of equations with a
single = number, on the right and aligned with the right margin. It would
also make sense for this number to be aligned with the middle = of the
two equations of the system.

A brace on the right would not introduce the grouping as a = system of
equations, rather as a pair of equations sharing = a common number.

Alan



On Wed, 9 Oct 2024 12:20:00 = -0400
Alan Bowen <bowenalan03@gmail.com> wrote:

I understand. The = reasoning makes sense to me and, as editor of a
paper in = which this appears, I will ask the author to consider
dropping the brace.

I wonder of = there is some similar thinking underlying the fact that
\startcases... puts the equation number so close to the = equation
itself and not at a margin (typically right).

Again, many thanks, Mikael.
Alan

On Wed, Oct 9, 2024 at = 12:12=E2=80=AFPM Mikael Sundqvist <mickep@gmail.com>
wrote:
Hi,

I think what you ask for was never supported in ConTeXt, for = a
reason. The idea is that either one groups a set of = equations with
a brace and numbers them with one number, = or one does not group,
and then one can number each line = separately/independently.
Grouping on the left with a = brace and numbering one line to the
right is, even if we = see that often, not really logical.

If = there is a large request for doing this, I can talk to Hans about
it, maybe it is easy on the code side to support it. But I = remember
from when we were messing with numbering, and in = particular when
there are alignments, that it is a bit = complicated.

/Mikael

On Wed, Oct 9, 2024 at 5:19=E2=80=AFPM Alan Bowen <bowenalan03@gmail.com>
wrote:

Thank = you, Mikael. That is very helpful and much appreciated.

What I now have is:
\startplaceformula
 \startformula
=    \startalign
=      \NC \[21-(9 - n^2)\NC =3D=E2=96=A1^\prime\] =  \NR[eq:1]
     \NC =  n^2+12 \NC=3D=E2=96=A1^\prime. =          \NR[eq:2]
   \stopalign
=  \stopformula
\stopplaceformula
which = put the numbers at the right margin,as I wanted.

So how do I get a brace on the left rather than on the right? =  Or
is
there documentation = that explains this?
Alan

On Wed, Oct 9, 2024 at = 10:22=E2=80=AFAM Mikael Sundqvist
<mickep@gmail.com>
wrote:

Hi,

On Mon, Oct 7, 2024 at 11:45=E2=80=AFPM Alan = Bowen
<bowenalan03@gmail.com>
wrote:

I have the following which = works, except for the fact that the
equation number does = not go to the right margin.

\startplaceformula
\startformula[align=3Dmiddle, prefix=3Dno]
\startcases[distance=3D2pt]
\NC \[21-(9 - = n^2)\NC =3D=E2=96=A1^\prime\]\NR
\NC\hfill n^2+12 = \NC=3D=E2=96=A1^\prime.\NR[eq04]
\stopcases
\stopformula
\stopplaceformula

I expect that I have missed something pretty basic here, so = any
guidance will = be greatly appreciated.

Maybe I = misunderstand you, but I do not think cases is right
here. = Also, are you sure you want to group two equations but
only = number one of them.

If I understand you = correctly, I'd try with one of these,
depending on if = citing the group or one of the equations.

\starttext

\startformula
 \startalign[location=3Dpacked,fences=3Dsesac]
   \NC \[21-(9 - n^2)\NC =3D=E2=96=A1^\prime\]\= NR
   \NC  n^2+12 \NC=3D=E2=96=A1^\prim= e.        \NR
=  \stopalign
 \numberhere[eq:foo]
\stopformula

\startplaceformula  \startformula
=    \startalign
=      \NC \[21-(9 - n^2)\NC =3D=E2=96=A1^\prime\] =  \NR%[eq:bar-a]
     \NC =  n^2+12 \NC=3D=E2=96=A1^\prime. =          \NR[eq:bar-b]
   \stopalign
=  \stopformula
\stopplaceformula

\stoptext

/Mikael

___________= ________________________________________________________________________If your question is of interest to others as well, please = add an entry to the Wiki!

maillist : ntg-context@ntg.nl / = https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nlwebpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive =  : https://github.com/contextgarden/context
wiki=     : https://wiki.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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nlwebpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive =  : https://github.com/contextgarden/context
wiki=     : https://wiki.contextgarden.net
_______________________________________________________________= ____________________

Otared Kavian
Phone: +33 6 88 26 70 95




= --Apple-Mail=_174DAAF6-854C-4A2F-A16E-D7A8B93AB51B-- --===============5280434641758580469== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________ --===============5280434641758580469==--