4

I would like to have the formula numbers of the cases environment flush right like regular formulas (not at a fixed distant from the cases like it is by default with the default setting numberdistance=2.5\emwidth). How can I do that?

\starttext

\startplaceformula
    \startformula
        \startcases
            \NC x = 1 \NR[+]
            \NC y = 1 \NR[+]
        \stopcases
    \stopformula
\stopplaceformula

\stoptext

enter image description here

What I want (but with the left bracket):

\starttext

\startplaceformula
    \startformula
        \startalignment[n=1]
            \NC x = 1 \NR[+]
            \NC y = 1 \NR[+]
        \stopalignment
    \stopformula
\stopplaceformula

\stoptext

enter image description here

  • I've tried all sorts of things now, but I can't even get the latter equations numbers to flush right, on TL14. Which version are you running? – morbusg Sep 25 '14 at 10:03
  • 2
    As I replied to a similar question on the context mailing list, this is currently not possible. – Aditya Sep 25 '14 at 19:32
  • 1
    @morbusg: Sorry I forgot to add the option [n=1] in \startalignment, that is why the equations were not flush right. – Maggyero Sep 29 '14 at 12:08
2

You can do it by hand.

\starttext

\startplaceformula
  \startformula
        \rlap{\hskip6.5cm \Bigg\{}
        \startalignment[n=1,location=middle]
            \NC x = 1 \NR[+]
            \NC y = 1 \NR[+]
          \stopalignment
    \stopformula
\stopplaceformula

\stoptext

enter image description here

  • On ConTeXt version 2016.05.19 (from TeX Live 2017), I get this: "tex error on line 8 in file /tmp/xr0jUK/texweb.tex: ! Improper \halign inside $$'s \math_both_eqalign_no_aligned ...fi \fi #1\halign \ifcase \eqalignmode \or t... l.8 \startalignment[n=1,location=middle]" – Maggyero Apr 15 '18 at 7:46
  • @Maggyero That's from TeX live 2016. My answer assumes that you are using the latest ConTeXt standalone. – Henri Menke Apr 15 '18 at 7:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.