From: Alan Bowen <bowenalan03@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: [NTG-context] Re: equation to right margin
Date: Wed, 9 Oct 2024 11:15:57 -0400 [thread overview]
Message-ID: <CAFMOkGX0deVEoufr00kepi6x-LWJ3fwNPYMiP7_u8xqSJ7N6qQ@mail.gmail.com> (raw)
In-Reply-To: <CAHy-LL_9n1nPDLcUNGDveFENLC0zNmt43jhDYKPAp64DBQ5p7g@mail.gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 2476 bytes --]
Thank you, Mikael. That is very helpful and much appreciated.
What I now have is:
\startplaceformula
\startformula
\startalign
\NC \[21-(9 - n^2)\NC =□^\prime\] \NR[eq:1]
\NC n^2+12 \NC=□^\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 AM Mikael Sundqvist <mickep@gmail.com> wrote:
> Hi,
>
> On Mon, Oct 7, 2024 at 11:45 PM 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=middle, prefix=no]
> > \startcases[distance=2pt]
> > \NC \[21-(9 - n^2)\NC =□^\prime\]\NR
> > \NC\hfill n^2+12 \NC=□^\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=packed,fences=sesac]
> \NC \[21-(9 - n^2)\NC =□^\prime\]\NR
> \NC n^2+12 \NC=□^\prime. \NR
> \stopalign
> \numberhere[eq:foo]
> \stopformula
>
> \startplaceformula
> \startformula
> \startalign
> \NC \[21-(9 - n^2)\NC =□^\prime\] \NR%[eq:bar-a]
> \NC n^2+12 \NC=□^\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.nl
> webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive : https://github.com/contextgarden/context
> wiki : https://wiki.contextgarden.net
>
> ___________________________________________________________________________________
>
[-- Attachment #1.2: Type: text/html, Size: 4358 bytes --]
[-- Attachment #2: Type: text/plain, Size: 511 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2024-10-09 15:24 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-07 21:45 [NTG-context] " Alan Bowen
2024-10-09 14:19 ` [NTG-context] " Mikael Sundqvist
2024-10-09 15:15 ` Alan Bowen [this message]
2024-10-09 16:11 ` Mikael Sundqvist
2024-10-09 16:20 ` Alan Bowen
2024-10-10 0:17 ` Alan Braslau via ntg-context
2024-10-10 5:32 ` Mikael Sundqvist
2024-10-10 18:14 ` Otared Kavian
2024-10-10 20:44 ` Aditya Mahajan
2024-10-12 14:11 ` Alan Bowen
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=CAFMOkGX0deVEoufr00kepi6x-LWJ3fwNPYMiP7_u8xqSJ7N6qQ@mail.gmail.com \
--to=bowenalan03@gmail.com \
--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).