ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Equation alignment
@ 2021-09-07 12:29 Sylvain Hubert via ntg-context
  2021-09-07 12:38 ` Wolfgang Schuster via ntg-context
  0 siblings, 1 reply; 3+ messages in thread
From: Sylvain Hubert via ntg-context @ 2021-09-07 12:29 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Sylvain Hubert

Dear List,

The following example of equation alignment copied from An Excursion
is not reproducible under my context 2021.03.05 shipped with texlive
2021:

\starttext
\startformula
\eqalign{
ax^2+bx+c &= 0 \cr
x &= \frac{-b \pm \sqrt{b^2-4ac}}{2a} \cr
}
\stopformula
\stoptext

Both ampersands are rendered literally.

Does anyone know how to properly typeset aligned equations?

Thanks!

Sylvain
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Equation alignment
  2021-09-07 12:29 Equation alignment Sylvain Hubert via ntg-context
@ 2021-09-07 12:38 ` Wolfgang Schuster via ntg-context
  0 siblings, 0 replies; 3+ messages in thread
From: Wolfgang Schuster via ntg-context @ 2021-09-07 12:38 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Sylvain Hubert via ntg-context
  Cc: Wolfgang Schuster

Sylvain Hubert via ntg-context schrieb am 07.09.2021 um 14:29:
> Dear List,
>
> The following example of equation alignment copied from An Excursion
> is not reproducible under my context 2021.03.05 shipped with texlive
> 2021:
>
> \starttext
> \startformula
> \eqalign{
> ax^2+bx+c &= 0 \cr
> x &= \frac{-b \pm \sqrt{b^2-4ac}}{2a} \cr
> }
> \stopformula
> \stoptext
>
> Both ampersands are rendered literally.
>
> Does anyone know how to properly typeset aligned equations?

\starttext

\startformula
\startmathalignment%[align={right,left}]
\NC ax^2+bx+c \NC = 0                                \NR
\NC x         \NC = \frac{-b \pm \sqrt{b^2-4ac}}{2a} \NR
\stopmathalignment
\stopformula

\stoptext

Wolfgang

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Equation alignment
       [not found] <mailman.512.1631017785.1197.ntg-context@ntg.nl>
@ 2021-09-07 14:22 ` Jeong Dal via ntg-context
  0 siblings, 0 replies; 3+ messages in thread
From: Jeong Dal via ntg-context @ 2021-09-07 14:22 UTC (permalink / raw)
  To: list ntg-context@ntg.nl ntg-context@ntg.nl ntg-context@ntg.nl
	ntg-context@ntg.nl
  Cc: Jeong Dal


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

Dear Sylvain,

I am using ’\startalign’

> 
> \starttext
> \startformula
> \eqalign{
> ax^2+bx+c &= 0 \cr
> x &= \frac{-b \pm \sqrt{b^2-4ac}}{2a} \cr
> }
> \stopformula
> \stoptext
> 

\starttext
\startformula
\startalign
\NC ax^2 + bx + c \NC = 0 \NR
\NC x \NC = = \frac{-b \pm \sqrt{b^2-4ac}}{2a} \NR
\stopalign
\stopformula
\stoptext

There is  a nice guide book "My Way” for math-alignment by Aditya.
https://wiki.contextgarden.net/images/archive/b/b4/20100530075041!Mathalign.pdf <https://wiki.contextgarden.net/images/archive/b/b4/20100530075041!Mathalign.pdf>

Best regards,

Dalyoung


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

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

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2021-09-07 14:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-07 12:29 Equation alignment Sylvain Hubert via ntg-context
2021-09-07 12:38 ` Wolfgang Schuster via ntg-context
     [not found] <mailman.512.1631017785.1197.ntg-context@ntg.nl>
2021-09-07 14:22 ` 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).