[NTG-context] Subformula numbering

luigi scarso luigi.scarso at gmail.com
Mon Nov 26 09:00:02 CET 2018


On Mon, Nov 26, 2018 at 8:40 AM adrien Licari <adrien.licari at gmail.com>
wrote:

> Hi everyone,
>
> I can't get cases subformula to work properly. My MWE, inspired from the
> wiki and the My Way "Using \startalign and friends" by Aditya Mahajan, is :
>
> \starttext\placeformula\startformula
>     \startcases
>       \NC x = a \NR[+]
>       \NC y = b \NR[+]
>     \stopcases\stopformula\stoptext
>
> This only prints (2) on the right of the whole cases system. If I use
> \placesubformula, the behavior remains exactly the same. It also yields
> the same output with live ConTeXt. The ConTeXt version I am using is
> 2018.01.19 13:42
>
> Has there been a change in the behavior since the documents were written ?
> I asked on stackexchange, and since the document is 12 years old and the
> wiki consistent with it, they suggested me to ask the mailing list.
> Thanks in advance,
>
>
\starttext
\startbuffer
\placeformula \startformula \startcases
\NC 2 \NC $ y > 0 $ \NR
\NC 7 \NC $ x = 7 $ \NR[+]
\NC 4 \NC otherwise \NR
\stopcases \stopformula
\stopbuffer

\typebuffer \getbuffer

\startbuffer
\placeformula \startformula x \startcases
\NC 2 \NC $ y > 0 $ \NR[+]
\NC 7 \NC $ x = 7 $ \NR
\NC 4 \NC otherwise \NR
\stopcases \stopformula
\stopbuffer

\typebuffer \getbuffer

\startbuffer
\placeformula \startformula \startcases
\NC 2 \NC $ y > 0 $ \NR
\NC 7 \NC $ x = 7 $ \NR
\NC 4 \NC otherwise \NR
\stopcases \stopformula
\stopbuffer

\typebuffer \getbuffer

\startbuffer
\placeformula \startformula x \startcases
\NC 2 \NC $ y > 0 $ \NR
\NC 7 \NC $ x = 7 $ \NR
\NC 4 \NC otherwise \NR
\stopcases \stopformula
\stopbuffer

\typebuffer \getbuffer

%% your example
\placeformula
\startformula
    \startcases
      \NC x = a \NR[+]
      \NC y = b \NR[+]
    \stopcases
\stopformula
\stoptext

What I see is (more or less)


                                   1



\placeformula \startformula \startcases
\NC 2 \NC $ y > 0 $ \NR
\NC 7 \NC $ x = 7 $ \NR[+]
\NC 4 \NC otherwise \NR
\stopcases \stopformula

                         {2 𝑦 > 0
                         ⎧
                         ⎨ 7 𝑥=7            (1)
                         {
                         ⎩ 4 otherwise
\placeformula \startformula x \startcases
\NC 2 \NC $ y > 0 $ \NR[+]
\NC 7 \NC $ x = 7 $ \NR
\NC 4 \NC otherwise \NR
\stopcases \stopformula

                         {2 𝑦 > 0
                         ⎧
                        𝑥⎨7 𝑥 = 7           (2)
                         {
                         ⎩ 4 otherwise
\placeformula \startformula \startcases
\NC 2 \NC $ y > 0 $ \NR
\NC 7 \NC $ x = 7 $ \NR
\NC 4 \NC otherwise \NR
\stopcases \stopformula

                         {2 𝑦 > 0
                         ⎧
                         ⎨ 7 𝑥=7            (3)
                         {
                         ⎩ 4 otherwise
\placeformula \startformula x \startcases
\NC 2 \NC $ y > 0 $ \NR
\NC 7 \NC $ x = 7 $ \NR
\NC 4 \NC otherwise \NR
\stopcases \stopformula

                         {2 𝑦 > 0
                         ⎧
                        𝑥⎨7 𝑥 = 7           (4)
                         {
                         ⎩ 4 otherwise
                                  𝑥=𝑎
                              {             (6)
                                  𝑦=𝑏




-- 
luigi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20181126/57470936/attachment-0001.html>


More information about the ntg-context mailing list