`startalign` and `startcases` are not compatible












5















In ConTeXt, it seems that startalign and startcases are not compatible.
If so, what should I do when I want to align an equation containing a case-statement and a following equation?



starttext

placeformula
startformula
startalign % < -- Causes compilation error
NC f(x) NC
=startcases
NC 1, MC x >0 NR
NC 0,MC x leq 0 NR
stopcases
NC g(x) NC =x^2 +2x +1
stopalign % < -- Causes compilation error
stopformula

stoptext









share|improve this question





























    5















    In ConTeXt, it seems that startalign and startcases are not compatible.
    If so, what should I do when I want to align an equation containing a case-statement and a following equation?



    starttext

    placeformula
    startformula
    startalign % < -- Causes compilation error
    NC f(x) NC
    =startcases
    NC 1, MC x >0 NR
    NC 0,MC x leq 0 NR
    stopcases
    NC g(x) NC =x^2 +2x +1
    stopalign % < -- Causes compilation error
    stopformula

    stoptext









    share|improve this question



























      5












      5








      5








      In ConTeXt, it seems that startalign and startcases are not compatible.
      If so, what should I do when I want to align an equation containing a case-statement and a following equation?



      starttext

      placeformula
      startformula
      startalign % < -- Causes compilation error
      NC f(x) NC
      =startcases
      NC 1, MC x >0 NR
      NC 0,MC x leq 0 NR
      stopcases
      NC g(x) NC =x^2 +2x +1
      stopalign % < -- Causes compilation error
      stopformula

      stoptext









      share|improve this question
















      In ConTeXt, it seems that startalign and startcases are not compatible.
      If so, what should I do when I want to align an equation containing a case-statement and a following equation?



      starttext

      placeformula
      startformula
      startalign % < -- Causes compilation error
      NC f(x) NC
      =startcases
      NC 1, MC x >0 NR
      NC 0,MC x leq 0 NR
      stopcases
      NC g(x) NC =x^2 +2x +1
      stopalign % < -- Causes compilation error
      stopformula

      stoptext






      context cases alignment






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Feb 22 at 13:42







      Aminopterin

















      asked Feb 22 at 11:50









      AminopterinAminopterin

      32019




      32019






















          1 Answer
          1






          active

          oldest

          votes


















          6














          Each line of a multi-line math align environment must be of the form:



          NC .... NC .... NR


          So, you have to close the first line with NR after the case environment:



          starttext
          startformula startalign
          NC f(x) NC = startcases
          NC 1, MC x > 0 NR
          NC 0, MC x >= 0 NR
          stopcases NR
          NC g(x) NC = x^2 +2x +1 NR
          stopalign stopformula
          stoptext


          enter image description here






          share|improve this answer


























          • @TeXnician Totally

            – DG'
            Feb 22 at 12:35











          • Oh, the first =0 in my question is superfluous. Since the text is invented, I overlooked that. Shall I edit it away for future reader?

            – Aminopterin
            Feb 22 at 13:09






          • 1





            @DG' I changed the language a little bit. Hope that you don't mind.

            – Aditya
            Feb 22 at 16:02











          • @Aditya On the contrary, I appreciate it

            – DG'
            Feb 22 at 16:11













          • @TeXnician: sorry I misread your comment

            – Aditya
            Feb 23 at 5:17











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "85"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f476145%2fstartalign-and-startcases-are-not-compatible%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          6














          Each line of a multi-line math align environment must be of the form:



          NC .... NC .... NR


          So, you have to close the first line with NR after the case environment:



          starttext
          startformula startalign
          NC f(x) NC = startcases
          NC 1, MC x > 0 NR
          NC 0, MC x >= 0 NR
          stopcases NR
          NC g(x) NC = x^2 +2x +1 NR
          stopalign stopformula
          stoptext


          enter image description here






          share|improve this answer


























          • @TeXnician Totally

            – DG'
            Feb 22 at 12:35











          • Oh, the first =0 in my question is superfluous. Since the text is invented, I overlooked that. Shall I edit it away for future reader?

            – Aminopterin
            Feb 22 at 13:09






          • 1





            @DG' I changed the language a little bit. Hope that you don't mind.

            – Aditya
            Feb 22 at 16:02











          • @Aditya On the contrary, I appreciate it

            – DG'
            Feb 22 at 16:11













          • @TeXnician: sorry I misread your comment

            – Aditya
            Feb 23 at 5:17
















          6














          Each line of a multi-line math align environment must be of the form:



          NC .... NC .... NR


          So, you have to close the first line with NR after the case environment:



          starttext
          startformula startalign
          NC f(x) NC = startcases
          NC 1, MC x > 0 NR
          NC 0, MC x >= 0 NR
          stopcases NR
          NC g(x) NC = x^2 +2x +1 NR
          stopalign stopformula
          stoptext


          enter image description here






          share|improve this answer


























          • @TeXnician Totally

            – DG'
            Feb 22 at 12:35











          • Oh, the first =0 in my question is superfluous. Since the text is invented, I overlooked that. Shall I edit it away for future reader?

            – Aminopterin
            Feb 22 at 13:09






          • 1





            @DG' I changed the language a little bit. Hope that you don't mind.

            – Aditya
            Feb 22 at 16:02











          • @Aditya On the contrary, I appreciate it

            – DG'
            Feb 22 at 16:11













          • @TeXnician: sorry I misread your comment

            – Aditya
            Feb 23 at 5:17














          6












          6








          6







          Each line of a multi-line math align environment must be of the form:



          NC .... NC .... NR


          So, you have to close the first line with NR after the case environment:



          starttext
          startformula startalign
          NC f(x) NC = startcases
          NC 1, MC x > 0 NR
          NC 0, MC x >= 0 NR
          stopcases NR
          NC g(x) NC = x^2 +2x +1 NR
          stopalign stopformula
          stoptext


          enter image description here






          share|improve this answer















          Each line of a multi-line math align environment must be of the form:



          NC .... NC .... NR


          So, you have to close the first line with NR after the case environment:



          starttext
          startformula startalign
          NC f(x) NC = startcases
          NC 1, MC x > 0 NR
          NC 0, MC x >= 0 NR
          stopcases NR
          NC g(x) NC = x^2 +2x +1 NR
          stopalign stopformula
          stoptext


          enter image description here







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Feb 22 at 16:01









          Aditya

          55.5k2109236




          55.5k2109236










          answered Feb 22 at 12:15









          DG'DG'

          10.7k21844




          10.7k21844













          • @TeXnician Totally

            – DG'
            Feb 22 at 12:35











          • Oh, the first =0 in my question is superfluous. Since the text is invented, I overlooked that. Shall I edit it away for future reader?

            – Aminopterin
            Feb 22 at 13:09






          • 1





            @DG' I changed the language a little bit. Hope that you don't mind.

            – Aditya
            Feb 22 at 16:02











          • @Aditya On the contrary, I appreciate it

            – DG'
            Feb 22 at 16:11













          • @TeXnician: sorry I misread your comment

            – Aditya
            Feb 23 at 5:17



















          • @TeXnician Totally

            – DG'
            Feb 22 at 12:35











          • Oh, the first =0 in my question is superfluous. Since the text is invented, I overlooked that. Shall I edit it away for future reader?

            – Aminopterin
            Feb 22 at 13:09






          • 1





            @DG' I changed the language a little bit. Hope that you don't mind.

            – Aditya
            Feb 22 at 16:02











          • @Aditya On the contrary, I appreciate it

            – DG'
            Feb 22 at 16:11













          • @TeXnician: sorry I misread your comment

            – Aditya
            Feb 23 at 5:17

















          @TeXnician Totally

          – DG'
          Feb 22 at 12:35





          @TeXnician Totally

          – DG'
          Feb 22 at 12:35













          Oh, the first =0 in my question is superfluous. Since the text is invented, I overlooked that. Shall I edit it away for future reader?

          – Aminopterin
          Feb 22 at 13:09





          Oh, the first =0 in my question is superfluous. Since the text is invented, I overlooked that. Shall I edit it away for future reader?

          – Aminopterin
          Feb 22 at 13:09




          1




          1





          @DG' I changed the language a little bit. Hope that you don't mind.

          – Aditya
          Feb 22 at 16:02





          @DG' I changed the language a little bit. Hope that you don't mind.

          – Aditya
          Feb 22 at 16:02













          @Aditya On the contrary, I appreciate it

          – DG'
          Feb 22 at 16:11







          @Aditya On the contrary, I appreciate it

          – DG'
          Feb 22 at 16:11















          @TeXnician: sorry I misread your comment

          – Aditya
          Feb 23 at 5:17





          @TeXnician: sorry I misread your comment

          – Aditya
          Feb 23 at 5:17


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f476145%2fstartalign-and-startcases-are-not-compatible%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          mysqli_query(): Empty query in /home/lucindabrummitt/public_html/blog/wp-includes/wp-db.php on line 1924

          How to change which sound is reproduced for terminal bell?

          Can I use Tabulator js library in my java Spring + Thymeleaf project?