0

In ConTeXt we can position formulas side by side by using \startformulas…\stopformulas.

\starttext
\placeformula
\startformulas
  \startformula
    \startalign[number=auto]
      \NC a \NC= b \NR
      \NC a \NC= b \NR
    \stopalign
  \stopformula
  \startformula
    \startalign[number=auto]
      \NC a \NC= b \NR
      \NC a \NC= b \NR
    \stopalign
  \stopformula
\stopformulas
\stoptext

According to this MyWay from 2006 (page 6) numbering formulas side-by-side should work as above. But I get the following output:

formula numbering

How to place equations side-by-side and have the numbering not clash into the next one?

5
  • 3
    I changed your MWE a little to support both the new ([number=auto]) and the old (\NR[+]) numbering syntax: dpaste.com/3BP4B0G (Expires in 7 days). Then I ran it through some old TeX Live versions: 2015, 2016, 2017, 2018, 2019. Looks like in 2017 it broke. Commented Nov 27, 2019 at 23:16
  • @HenriMenke Thanks for testing. I have found a workaround. But I'm not sure whether the above example should basically work or is unsupported by now.
    – TeXnician
    Commented Nov 28, 2019 at 11:25
  • @TeXnician: This is a bug. Please report it to the context mailing list.
    – Aditya
    Commented Nov 28, 2019 at 17:03
  • @Fólkvangr What is the original "indentation"? White space is arbitrary in this case. And why should \startalign act like an option?
    – TeXnician
    Commented Dec 10, 2019 at 14:15
  • @Fólkvangr Well, I have read about the feature in the MyWay. But the sample code has been written by me. And as my editor does insert line breaks this way, I simply kept them while copy and pasting. Indentation is not relevant to the broken functionality here (I did not test, so feel free to prove me wrong). The issue here simply is the numbering clashing into the next formula. I have posted this on the mailing list as told by Aditya and they did not mention that the formatting would be a problem.
    – TeXnician
    Commented Dec 10, 2019 at 16:57

1 Answer 1

2

One way to solve this seems to be the columns environment. Although the markup is not that expressive, it prevents the numbers clashing into the next formula.

\starttext
\startcolumns
  \placeformula
  \startformula
    \startalign[number=auto]
      \NC a \NC= b \NR
      \NC a \NC= b \NR
    \stopalign
  \stopformula
  \placeformula
  \startformula
    \startalign[number=auto]
      \NC a \NC= b \NR
      \NC a \NC= b \NR
    \stopalign
  \stopformula
\stopcolumns
\stoptext

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .