ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Math alignment question
@ 2022-09-22 13:03 Jeong Dal via ntg-context
  2022-09-23 18:45 ` Aditya Mahajan via ntg-context
  0 siblings, 1 reply; 6+ messages in thread
From: Jeong Dal via ntg-context @ 2022-09-22 13:03 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Jeong Dal

Dear Mikael and Hans,

Recently, you introdued the new command “\alignhere, \breakhere, \skiphere” which works fine.

Since I usually use the following code that is adopted from My Way(Mathalign.pdf), I’d like to know that there is a way to use “\alignhere, \breakhere, \skiphere”  for the case below?

\startformula\startalign
\NC A \NC = 3	\NR
\NC B \NC = 5 \NR
\stopalign\stopformula

Thank you.
Best regards,

Dalyoung

___________________________________________________________________________________
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] 6+ messages in thread

* Re: Math alignment question
  2022-09-22 13:03 Math alignment question Jeong Dal via ntg-context
@ 2022-09-23 18:45 ` Aditya Mahajan via ntg-context
  2022-09-23 20:08   ` Mikael Sundqvist via ntg-context
  0 siblings, 1 reply; 6+ messages in thread
From: Aditya Mahajan via ntg-context @ 2022-09-23 18:45 UTC (permalink / raw)
  To: Jeong Dal via ntg-context; +Cc: Aditya Mahajan

[-- Attachment #1: Type: text/plain, Size: 688 bytes --]

On Thu, 22 Sep 2022, Jeong Dal via ntg-context wrote:

> Dear Mikael and Hans,
> 
> Recently, you introdued the new command “\alignhere, \breakhere, \skiphere” which works fine.
> 
> Since I usually use the following code that is adopted from My Way(Mathalign.pdf), I’d like to know that there is a way to use “\alignhere, \breakhere, \skiphere”  for the case below?
> 
> \startformula\startalign
> \NC A \NC = 3	\NR
> \NC B \NC = 5 \NR
> \stopalign\stopformula

The way I see it is that the current implementation is that it is way to break a _single_ long equation to multiple lines. For multiple equations, you still need to use the \startalign method.

Aditya

[-- Attachment #2: Type: text/plain, Size: 496 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] 6+ messages in thread

* Re: Math alignment question
  2022-09-23 18:45 ` Aditya Mahajan via ntg-context
@ 2022-09-23 20:08   ` Mikael Sundqvist via ntg-context
  2022-09-24 14:51     ` Jeong Dal via ntg-context
  0 siblings, 1 reply; 6+ messages in thread
From: Mikael Sundqvist via ntg-context @ 2022-09-23 20:08 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Mikael Sundqvist

On Fri, Sep 23, 2022 at 8:46 PM Aditya Mahajan via ntg-context
<ntg-context@ntg.nl> wrote:
>
> On Thu, 22 Sep 2022, Jeong Dal via ntg-context wrote:
>
> > Dear Mikael and Hans,
> >
> > Recently, you introdued the new command “\alignhere, \breakhere, \skiphere” which works fine.
> >
> > Since I usually use the following code that is adopted from My Way(Mathalign.pdf), I’d like to know that there is a way to use “\alignhere, \breakhere, \skiphere”  for the case below?
> >
> > \startformula\startalign
> > \NC A \NC = 3 \NR
> > \NC B \NC = 5 \NR
> > \stopalign\stopformula
>
> The way I see it is that the current implementation is that it is way to break a _single_ long equation to multiple lines. For multiple equations, you still need to use the \startalign method.
>

Indeed, that is the case. These formulas are done for single chain
equations. The example given above consists of two formulas, and the
new broken formula type simply does not fit. You can play with more
than one \alignhere, but they will only set new align points. I think
\startalign ... \stopalign is the way to go there. If it is cumbersome
to type all the \NC and \NR one could in principle thing of similar
input as for the simple matrices. Your example then would become

\startalign
A, = 3;
B, = 5;
\stopalign

/Mikael
___________________________________________________________________________________
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] 6+ messages in thread

* Re: Math alignment question
  2022-09-23 20:08   ` Mikael Sundqvist via ntg-context
@ 2022-09-24 14:51     ` Jeong Dal via ntg-context
  2022-09-24 15:40       ` Hans Hagen via ntg-context
  0 siblings, 1 reply; 6+ messages in thread
From: Jeong Dal via ntg-context @ 2022-09-24 14:51 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Jeong Dal

Dear Aditya, Mikael,

Thank you for your explanation.
I just wonder \alinghere can be applicable to multiple formula.
It is OK to use \NC \NR for multiple formulas.

Best regards,

Dalyoung


___________________________________________________________________________________
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] 6+ messages in thread

* Re: Math alignment question
  2022-09-24 14:51     ` Jeong Dal via ntg-context
@ 2022-09-24 15:40       ` Hans Hagen via ntg-context
  2022-09-24 23:30         ` Jeong Dal via ntg-context
  0 siblings, 1 reply; 6+ messages in thread
From: Hans Hagen via ntg-context @ 2022-09-24 15:40 UTC (permalink / raw)
  To: Jeong Dal via ntg-context; +Cc: Hans Hagen

On 9/24/2022 4:51 PM, Jeong Dal via ntg-context wrote:
> Dear Aditya, Mikael,
> 
> Thank you for your explanation.
> I just wonder \alinghere can be applicable to multiple formula.
> It is OK to use \NC \NR for multiple formulas.
What probably can be done, is to let the next formula start with the 
align of the previous one .. Mikael can add it to our todo

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] 6+ messages in thread

* Re: Math alignment question
  2022-09-24 15:40       ` Hans Hagen via ntg-context
@ 2022-09-24 23:30         ` Jeong Dal via ntg-context
  0 siblings, 0 replies; 6+ messages in thread
From: Jeong Dal via ntg-context @ 2022-09-24 23:30 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Jeong Dal


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

Dear Hans,


>> Thank you for your explanation.
>> I just wonder \alinghere can be applicable to multiple formula.
>> It is OK to use \NC \NR for multiple formulas.
> What probably can be done, is to let the next formula start with the align of the previous one .. Mikael can add it to our todo
> 

Thank you for your concern.
When we write  two long formula, I think that to use "\alignhere, \breakhere" is a little bit simpler than use \NC\NR.
We may write them to use \startformula…\stopformula twice separetely. 
But, then the alignment of two formulas may be different because formula’s alignment is midaligned. 

Thanks again to add it todo list.

Best regards,

Dalyoung

[-- Attachment #1.2: Type: text/html, Size: 2200 bytes --]

[-- Attachment #2: Type: text/plain, Size: 496 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] 6+ messages in thread

end of thread, other threads:[~2022-09-24 23:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-22 13:03 Math alignment question Jeong Dal via ntg-context
2022-09-23 18:45 ` Aditya Mahajan via ntg-context
2022-09-23 20:08   ` Mikael Sundqvist via ntg-context
2022-09-24 14:51     ` Jeong Dal via ntg-context
2022-09-24 15:40       ` Hans Hagen via ntg-context
2022-09-24 23:30         ` Jeong Dal via ntg-context

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