# ConTeXt: Flush right formula numbers in cases environment

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


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


• 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? Sep 25, 2014 at 10:03
• As I replied to a similar question on the context mailing list, this is currently not possible. Sep 25, 2014 at 19:32
• @morbusg: Sorry I forgot to add the option [n=1] in \startalignment, that is why the equations were not flush right. Sep 29, 2014 at 12:08

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


• 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]" Apr 15, 2018 at 7:46
• @Maggyero That's from TeX live 2016. My answer assumes that you are using the latest ConTeXt standalone. Apr 15, 2018 at 7:56