how to write a formula that branches into two?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP












6















I would like to write a formula (see the picture), how can i fix the arrows?



enter image description here



This is my code:



documentclass[a4paper,12pt]article[12pt] 
usepackage[italian]babel
usepackage[T1]fontenc
usepackage[utf8]inputenc
usepackageanysize
usepackagegraphicx
usepackageamsmath
usepackageamssymb
usepackagemathrsfs
usepackagetextcomp
linespread1.5

frenchspacing

newcommandabs[1]lvert#1rvert

usepackagefloatflt,epsfig

usepackagemulticol




usepackage[a4paper,top=1.0cm,bottom=1.0cm,left=1.0cm,right=1.0cm]geometry


begindocument


$ dfraca pm bc = rightarrow $

$ dfraca+bc $

$ dfraca-bc $




enddocument









share|improve this question



















  • 1





    Can I ask a favour please? Thank you to have accepted (check) my answer, but for my opinion is not the best. Good year.

    – Sebastiano
    Jan 2 at 23:40















6















I would like to write a formula (see the picture), how can i fix the arrows?



enter image description here



This is my code:



documentclass[a4paper,12pt]article[12pt] 
usepackage[italian]babel
usepackage[T1]fontenc
usepackage[utf8]inputenc
usepackageanysize
usepackagegraphicx
usepackageamsmath
usepackageamssymb
usepackagemathrsfs
usepackagetextcomp
linespread1.5

frenchspacing

newcommandabs[1]lvert#1rvert

usepackagefloatflt,epsfig

usepackagemulticol




usepackage[a4paper,top=1.0cm,bottom=1.0cm,left=1.0cm,right=1.0cm]geometry


begindocument


$ dfraca pm bc = rightarrow $

$ dfraca+bc $

$ dfraca-bc $




enddocument









share|improve this question



















  • 1





    Can I ask a favour please? Thank you to have accepted (check) my answer, but for my opinion is not the best. Good year.

    – Sebastiano
    Jan 2 at 23:40













6












6








6








I would like to write a formula (see the picture), how can i fix the arrows?



enter image description here



This is my code:



documentclass[a4paper,12pt]article[12pt] 
usepackage[italian]babel
usepackage[T1]fontenc
usepackage[utf8]inputenc
usepackageanysize
usepackagegraphicx
usepackageamsmath
usepackageamssymb
usepackagemathrsfs
usepackagetextcomp
linespread1.5

frenchspacing

newcommandabs[1]lvert#1rvert

usepackagefloatflt,epsfig

usepackagemulticol




usepackage[a4paper,top=1.0cm,bottom=1.0cm,left=1.0cm,right=1.0cm]geometry


begindocument


$ dfraca pm bc = rightarrow $

$ dfraca+bc $

$ dfraca-bc $




enddocument









share|improve this question
















I would like to write a formula (see the picture), how can i fix the arrows?



enter image description here



This is my code:



documentclass[a4paper,12pt]article[12pt] 
usepackage[italian]babel
usepackage[T1]fontenc
usepackage[utf8]inputenc
usepackageanysize
usepackagegraphicx
usepackageamsmath
usepackageamssymb
usepackagemathrsfs
usepackagetextcomp
linespread1.5

frenchspacing

newcommandabs[1]lvert#1rvert

usepackagefloatflt,epsfig

usepackagemulticol




usepackage[a4paper,top=1.0cm,bottom=1.0cm,left=1.0cm,right=1.0cm]geometry


begindocument


$ dfraca pm bc = rightarrow $

$ dfraca+bc $

$ dfraca-bc $




enddocument






tikz-pgf amsmath formula






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 3 at 14:48









henry

1032




1032










asked Jan 2 at 15:17









ryukryuk

1,090720




1,090720







  • 1





    Can I ask a favour please? Thank you to have accepted (check) my answer, but for my opinion is not the best. Good year.

    – Sebastiano
    Jan 2 at 23:40












  • 1





    Can I ask a favour please? Thank you to have accepted (check) my answer, but for my opinion is not the best. Good year.

    – Sebastiano
    Jan 2 at 23:40







1




1





Can I ask a favour please? Thank you to have accepted (check) my answer, but for my opinion is not the best. Good year.

– Sebastiano
Jan 2 at 23:40





Can I ask a favour please? Thank you to have accepted (check) my answer, but for my opinion is not the best. Good year.

– Sebastiano
Jan 2 at 23:40










3 Answers
3






active

oldest

votes


















6














Another simple possibility using tikz-cd.



enter image description here



documentclass[a4paper,12pt]article
usepackagetikz-cd
usepackageamsmath

begindocument
begintikzcd[cells=nodes=minimum height=-2cm,minimum width=1cm,column sep=3em,row sep=-7pt]
& dfraca+bc \
dfraca pm bc = arrow[ru] arrow[rd] & \
& dfraca-bc
endtikzcd
enddocument





share|improve this answer
































    10














    Here is an adapted version from Claudio Fiandrino's answer to Joining parts of equations with lines or arrows using tikz.



    enter image description here



    documentclassarticle
    usepackagetikz
    usepackageamsmath

    begindocument

    begintikzpicture[grow=right,
    sibling distance=50pt,
    level distance=2cm,
    edge from parent path=(tikzparentnode.east) -- (tikzchildnode.west),
    edge from parent/.style=draw,-latex]
    node $ dfraca pm bc =$
    child node $ dfraca-bc $
    child node $ dfraca+bc $
    ;
    endtikzpicture
    enddocument





    share|improve this answer























    • @ryuk: From the message you quoted, I guess that you copied my code into an existing document that was previously compiled and had used usepackage[italian]babel. To get rid of the error, either recompile or add the above mentioned package back to your preamble.

      – leandriis
      Jan 2 at 15:45


















    9














    Without using a hammersledge to crack a nut, you already have the necessary packages for the below code.



    Unrelated: epsfigure and anysize are obsolete. The functionalities of the former are achieved with graphicx and the latter can be replaced with geometry (which you use, anyway).



    documentclass[a4paper, 12pt]article
    usepackage[italian]babel
    usepackage[T1]fontenc
    usepackage[utf8]inputenc
    usepackage[a4paper, margin=1.0cm]geometry
    usepackagegraphicx
    usepackageamsmath
    usepackageamssymb
    usepackagemulticol
    linespread1.5
    frenchspacing

    usepackageold-arrows

    begindocument


    [ dfraca pm bc =
    beginmatrix
    nearrow \[-1.5ex] searrow
    endmatrix
    :
    beginmatrix
    dfraca+bc \[3ex]
    dfraca-bc
    endmatrix ]

    enddocument


    enter image description here



    If you want to have the arrows figure centred on the math axis, and control the gap between the arrows, you can replace the matrix environment for the arrows with Vectorstack from the stackengine package (load it with option [usestackEOL]). Here are two examples, with a different gap:



    [Lstackgap = 10ptdfraca ± bc =
    Vectorstack%
    nearrow \%[-1.5ex]
    searrow
    :
    beginmatrix
    dfraca+bc \[3ex]
    dfraca-bc
    endmatrix ]

    [Lstackgap = 18ptdfraca ± bc =
    Vectorstack%
    nearrow \%[-1.5ex]
    searrow
    :
    beginmatrix
    dfraca+bc \[3ex]
    dfraca-bc
    endmatrix ]


    enter image description here






    share|improve this answer

























    • Those arrows look uncentered in relation to the equals sign. Would there be any way of fixing that?

      – AJFarmar
      Jan 2 at 18:54











    • Do you mean vertically uncentred?

      – Bernard
      Jan 2 at 18:57






    • 1





      @AJFarmar: I've posted a variant code, which uses stackengine and is more versatile. Please see if it's OK for you.

      – Bernard
      Jan 2 at 21:55






    • 1





      You're welcome. We're here to help, as much as we can.

      – Bernard
      Jan 2 at 21:58






    • 1





      @Sebastiano: I wish you a very happy new year too. As often, I forgot to check if all the code was in the right position. Thank you for pointing it!

      – Bernard
      Jan 2 at 23:35










    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%2f468255%2fhow-to-write-a-formula-that-branches-into-two%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    3 Answers
    3






    active

    oldest

    votes








    3 Answers
    3






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    6














    Another simple possibility using tikz-cd.



    enter image description here



    documentclass[a4paper,12pt]article
    usepackagetikz-cd
    usepackageamsmath

    begindocument
    begintikzcd[cells=nodes=minimum height=-2cm,minimum width=1cm,column sep=3em,row sep=-7pt]
    & dfraca+bc \
    dfraca pm bc = arrow[ru] arrow[rd] & \
    & dfraca-bc
    endtikzcd
    enddocument





    share|improve this answer





























      6














      Another simple possibility using tikz-cd.



      enter image description here



      documentclass[a4paper,12pt]article
      usepackagetikz-cd
      usepackageamsmath

      begindocument
      begintikzcd[cells=nodes=minimum height=-2cm,minimum width=1cm,column sep=3em,row sep=-7pt]
      & dfraca+bc \
      dfraca pm bc = arrow[ru] arrow[rd] & \
      & dfraca-bc
      endtikzcd
      enddocument





      share|improve this answer



























        6












        6








        6







        Another simple possibility using tikz-cd.



        enter image description here



        documentclass[a4paper,12pt]article
        usepackagetikz-cd
        usepackageamsmath

        begindocument
        begintikzcd[cells=nodes=minimum height=-2cm,minimum width=1cm,column sep=3em,row sep=-7pt]
        & dfraca+bc \
        dfraca pm bc = arrow[ru] arrow[rd] & \
        & dfraca-bc
        endtikzcd
        enddocument





        share|improve this answer















        Another simple possibility using tikz-cd.



        enter image description here



        documentclass[a4paper,12pt]article
        usepackagetikz-cd
        usepackageamsmath

        begindocument
        begintikzcd[cells=nodes=minimum height=-2cm,minimum width=1cm,column sep=3em,row sep=-7pt]
        & dfraca+bc \
        dfraca pm bc = arrow[ru] arrow[rd] & \
        & dfraca-bc
        endtikzcd
        enddocument






        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Jan 2 at 23:41

























        answered Jan 2 at 16:50









        SebastianoSebastiano

        9,32841756




        9,32841756





















            10














            Here is an adapted version from Claudio Fiandrino's answer to Joining parts of equations with lines or arrows using tikz.



            enter image description here



            documentclassarticle
            usepackagetikz
            usepackageamsmath

            begindocument

            begintikzpicture[grow=right,
            sibling distance=50pt,
            level distance=2cm,
            edge from parent path=(tikzparentnode.east) -- (tikzchildnode.west),
            edge from parent/.style=draw,-latex]
            node $ dfraca pm bc =$
            child node $ dfraca-bc $
            child node $ dfraca+bc $
            ;
            endtikzpicture
            enddocument





            share|improve this answer























            • @ryuk: From the message you quoted, I guess that you copied my code into an existing document that was previously compiled and had used usepackage[italian]babel. To get rid of the error, either recompile or add the above mentioned package back to your preamble.

              – leandriis
              Jan 2 at 15:45















            10














            Here is an adapted version from Claudio Fiandrino's answer to Joining parts of equations with lines or arrows using tikz.



            enter image description here



            documentclassarticle
            usepackagetikz
            usepackageamsmath

            begindocument

            begintikzpicture[grow=right,
            sibling distance=50pt,
            level distance=2cm,
            edge from parent path=(tikzparentnode.east) -- (tikzchildnode.west),
            edge from parent/.style=draw,-latex]
            node $ dfraca pm bc =$
            child node $ dfraca-bc $
            child node $ dfraca+bc $
            ;
            endtikzpicture
            enddocument





            share|improve this answer























            • @ryuk: From the message you quoted, I guess that you copied my code into an existing document that was previously compiled and had used usepackage[italian]babel. To get rid of the error, either recompile or add the above mentioned package back to your preamble.

              – leandriis
              Jan 2 at 15:45













            10












            10








            10







            Here is an adapted version from Claudio Fiandrino's answer to Joining parts of equations with lines or arrows using tikz.



            enter image description here



            documentclassarticle
            usepackagetikz
            usepackageamsmath

            begindocument

            begintikzpicture[grow=right,
            sibling distance=50pt,
            level distance=2cm,
            edge from parent path=(tikzparentnode.east) -- (tikzchildnode.west),
            edge from parent/.style=draw,-latex]
            node $ dfraca pm bc =$
            child node $ dfraca-bc $
            child node $ dfraca+bc $
            ;
            endtikzpicture
            enddocument





            share|improve this answer













            Here is an adapted version from Claudio Fiandrino's answer to Joining parts of equations with lines or arrows using tikz.



            enter image description here



            documentclassarticle
            usepackagetikz
            usepackageamsmath

            begindocument

            begintikzpicture[grow=right,
            sibling distance=50pt,
            level distance=2cm,
            edge from parent path=(tikzparentnode.east) -- (tikzchildnode.west),
            edge from parent/.style=draw,-latex]
            node $ dfraca pm bc =$
            child node $ dfraca-bc $
            child node $ dfraca+bc $
            ;
            endtikzpicture
            enddocument






            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Jan 2 at 15:32









            leandriisleandriis

            8,4921529




            8,4921529












            • @ryuk: From the message you quoted, I guess that you copied my code into an existing document that was previously compiled and had used usepackage[italian]babel. To get rid of the error, either recompile or add the above mentioned package back to your preamble.

              – leandriis
              Jan 2 at 15:45

















            • @ryuk: From the message you quoted, I guess that you copied my code into an existing document that was previously compiled and had used usepackage[italian]babel. To get rid of the error, either recompile or add the above mentioned package back to your preamble.

              – leandriis
              Jan 2 at 15:45
















            @ryuk: From the message you quoted, I guess that you copied my code into an existing document that was previously compiled and had used usepackage[italian]babel. To get rid of the error, either recompile or add the above mentioned package back to your preamble.

            – leandriis
            Jan 2 at 15:45





            @ryuk: From the message you quoted, I guess that you copied my code into an existing document that was previously compiled and had used usepackage[italian]babel. To get rid of the error, either recompile or add the above mentioned package back to your preamble.

            – leandriis
            Jan 2 at 15:45











            9














            Without using a hammersledge to crack a nut, you already have the necessary packages for the below code.



            Unrelated: epsfigure and anysize are obsolete. The functionalities of the former are achieved with graphicx and the latter can be replaced with geometry (which you use, anyway).



            documentclass[a4paper, 12pt]article
            usepackage[italian]babel
            usepackage[T1]fontenc
            usepackage[utf8]inputenc
            usepackage[a4paper, margin=1.0cm]geometry
            usepackagegraphicx
            usepackageamsmath
            usepackageamssymb
            usepackagemulticol
            linespread1.5
            frenchspacing

            usepackageold-arrows

            begindocument


            [ dfraca pm bc =
            beginmatrix
            nearrow \[-1.5ex] searrow
            endmatrix
            :
            beginmatrix
            dfraca+bc \[3ex]
            dfraca-bc
            endmatrix ]

            enddocument


            enter image description here



            If you want to have the arrows figure centred on the math axis, and control the gap between the arrows, you can replace the matrix environment for the arrows with Vectorstack from the stackengine package (load it with option [usestackEOL]). Here are two examples, with a different gap:



            [Lstackgap = 10ptdfraca ± bc =
            Vectorstack%
            nearrow \%[-1.5ex]
            searrow
            :
            beginmatrix
            dfraca+bc \[3ex]
            dfraca-bc
            endmatrix ]

            [Lstackgap = 18ptdfraca ± bc =
            Vectorstack%
            nearrow \%[-1.5ex]
            searrow
            :
            beginmatrix
            dfraca+bc \[3ex]
            dfraca-bc
            endmatrix ]


            enter image description here






            share|improve this answer

























            • Those arrows look uncentered in relation to the equals sign. Would there be any way of fixing that?

              – AJFarmar
              Jan 2 at 18:54











            • Do you mean vertically uncentred?

              – Bernard
              Jan 2 at 18:57






            • 1





              @AJFarmar: I've posted a variant code, which uses stackengine and is more versatile. Please see if it's OK for you.

              – Bernard
              Jan 2 at 21:55






            • 1





              You're welcome. We're here to help, as much as we can.

              – Bernard
              Jan 2 at 21:58






            • 1





              @Sebastiano: I wish you a very happy new year too. As often, I forgot to check if all the code was in the right position. Thank you for pointing it!

              – Bernard
              Jan 2 at 23:35















            9














            Without using a hammersledge to crack a nut, you already have the necessary packages for the below code.



            Unrelated: epsfigure and anysize are obsolete. The functionalities of the former are achieved with graphicx and the latter can be replaced with geometry (which you use, anyway).



            documentclass[a4paper, 12pt]article
            usepackage[italian]babel
            usepackage[T1]fontenc
            usepackage[utf8]inputenc
            usepackage[a4paper, margin=1.0cm]geometry
            usepackagegraphicx
            usepackageamsmath
            usepackageamssymb
            usepackagemulticol
            linespread1.5
            frenchspacing

            usepackageold-arrows

            begindocument


            [ dfraca pm bc =
            beginmatrix
            nearrow \[-1.5ex] searrow
            endmatrix
            :
            beginmatrix
            dfraca+bc \[3ex]
            dfraca-bc
            endmatrix ]

            enddocument


            enter image description here



            If you want to have the arrows figure centred on the math axis, and control the gap between the arrows, you can replace the matrix environment for the arrows with Vectorstack from the stackengine package (load it with option [usestackEOL]). Here are two examples, with a different gap:



            [Lstackgap = 10ptdfraca ± bc =
            Vectorstack%
            nearrow \%[-1.5ex]
            searrow
            :
            beginmatrix
            dfraca+bc \[3ex]
            dfraca-bc
            endmatrix ]

            [Lstackgap = 18ptdfraca ± bc =
            Vectorstack%
            nearrow \%[-1.5ex]
            searrow
            :
            beginmatrix
            dfraca+bc \[3ex]
            dfraca-bc
            endmatrix ]


            enter image description here






            share|improve this answer

























            • Those arrows look uncentered in relation to the equals sign. Would there be any way of fixing that?

              – AJFarmar
              Jan 2 at 18:54











            • Do you mean vertically uncentred?

              – Bernard
              Jan 2 at 18:57






            • 1





              @AJFarmar: I've posted a variant code, which uses stackengine and is more versatile. Please see if it's OK for you.

              – Bernard
              Jan 2 at 21:55






            • 1





              You're welcome. We're here to help, as much as we can.

              – Bernard
              Jan 2 at 21:58






            • 1





              @Sebastiano: I wish you a very happy new year too. As often, I forgot to check if all the code was in the right position. Thank you for pointing it!

              – Bernard
              Jan 2 at 23:35













            9












            9








            9







            Without using a hammersledge to crack a nut, you already have the necessary packages for the below code.



            Unrelated: epsfigure and anysize are obsolete. The functionalities of the former are achieved with graphicx and the latter can be replaced with geometry (which you use, anyway).



            documentclass[a4paper, 12pt]article
            usepackage[italian]babel
            usepackage[T1]fontenc
            usepackage[utf8]inputenc
            usepackage[a4paper, margin=1.0cm]geometry
            usepackagegraphicx
            usepackageamsmath
            usepackageamssymb
            usepackagemulticol
            linespread1.5
            frenchspacing

            usepackageold-arrows

            begindocument


            [ dfraca pm bc =
            beginmatrix
            nearrow \[-1.5ex] searrow
            endmatrix
            :
            beginmatrix
            dfraca+bc \[3ex]
            dfraca-bc
            endmatrix ]

            enddocument


            enter image description here



            If you want to have the arrows figure centred on the math axis, and control the gap between the arrows, you can replace the matrix environment for the arrows with Vectorstack from the stackengine package (load it with option [usestackEOL]). Here are two examples, with a different gap:



            [Lstackgap = 10ptdfraca ± bc =
            Vectorstack%
            nearrow \%[-1.5ex]
            searrow
            :
            beginmatrix
            dfraca+bc \[3ex]
            dfraca-bc
            endmatrix ]

            [Lstackgap = 18ptdfraca ± bc =
            Vectorstack%
            nearrow \%[-1.5ex]
            searrow
            :
            beginmatrix
            dfraca+bc \[3ex]
            dfraca-bc
            endmatrix ]


            enter image description here






            share|improve this answer















            Without using a hammersledge to crack a nut, you already have the necessary packages for the below code.



            Unrelated: epsfigure and anysize are obsolete. The functionalities of the former are achieved with graphicx and the latter can be replaced with geometry (which you use, anyway).



            documentclass[a4paper, 12pt]article
            usepackage[italian]babel
            usepackage[T1]fontenc
            usepackage[utf8]inputenc
            usepackage[a4paper, margin=1.0cm]geometry
            usepackagegraphicx
            usepackageamsmath
            usepackageamssymb
            usepackagemulticol
            linespread1.5
            frenchspacing

            usepackageold-arrows

            begindocument


            [ dfraca pm bc =
            beginmatrix
            nearrow \[-1.5ex] searrow
            endmatrix
            :
            beginmatrix
            dfraca+bc \[3ex]
            dfraca-bc
            endmatrix ]

            enddocument


            enter image description here



            If you want to have the arrows figure centred on the math axis, and control the gap between the arrows, you can replace the matrix environment for the arrows with Vectorstack from the stackengine package (load it with option [usestackEOL]). Here are two examples, with a different gap:



            [Lstackgap = 10ptdfraca ± bc =
            Vectorstack%
            nearrow \%[-1.5ex]
            searrow
            :
            beginmatrix
            dfraca+bc \[3ex]
            dfraca-bc
            endmatrix ]

            [Lstackgap = 18ptdfraca ± bc =
            Vectorstack%
            nearrow \%[-1.5ex]
            searrow
            :
            beginmatrix
            dfraca+bc \[3ex]
            dfraca-bc
            endmatrix ]


            enter image description here







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Jan 2 at 23:33

























            answered Jan 2 at 16:47









            BernardBernard

            167k769194




            167k769194












            • Those arrows look uncentered in relation to the equals sign. Would there be any way of fixing that?

              – AJFarmar
              Jan 2 at 18:54











            • Do you mean vertically uncentred?

              – Bernard
              Jan 2 at 18:57






            • 1





              @AJFarmar: I've posted a variant code, which uses stackengine and is more versatile. Please see if it's OK for you.

              – Bernard
              Jan 2 at 21:55






            • 1





              You're welcome. We're here to help, as much as we can.

              – Bernard
              Jan 2 at 21:58






            • 1





              @Sebastiano: I wish you a very happy new year too. As often, I forgot to check if all the code was in the right position. Thank you for pointing it!

              – Bernard
              Jan 2 at 23:35

















            • Those arrows look uncentered in relation to the equals sign. Would there be any way of fixing that?

              – AJFarmar
              Jan 2 at 18:54











            • Do you mean vertically uncentred?

              – Bernard
              Jan 2 at 18:57






            • 1





              @AJFarmar: I've posted a variant code, which uses stackengine and is more versatile. Please see if it's OK for you.

              – Bernard
              Jan 2 at 21:55






            • 1





              You're welcome. We're here to help, as much as we can.

              – Bernard
              Jan 2 at 21:58






            • 1





              @Sebastiano: I wish you a very happy new year too. As often, I forgot to check if all the code was in the right position. Thank you for pointing it!

              – Bernard
              Jan 2 at 23:35
















            Those arrows look uncentered in relation to the equals sign. Would there be any way of fixing that?

            – AJFarmar
            Jan 2 at 18:54





            Those arrows look uncentered in relation to the equals sign. Would there be any way of fixing that?

            – AJFarmar
            Jan 2 at 18:54













            Do you mean vertically uncentred?

            – Bernard
            Jan 2 at 18:57





            Do you mean vertically uncentred?

            – Bernard
            Jan 2 at 18:57




            1




            1





            @AJFarmar: I've posted a variant code, which uses stackengine and is more versatile. Please see if it's OK for you.

            – Bernard
            Jan 2 at 21:55





            @AJFarmar: I've posted a variant code, which uses stackengine and is more versatile. Please see if it's OK for you.

            – Bernard
            Jan 2 at 21:55




            1




            1





            You're welcome. We're here to help, as much as we can.

            – Bernard
            Jan 2 at 21:58





            You're welcome. We're here to help, as much as we can.

            – Bernard
            Jan 2 at 21:58




            1




            1





            @Sebastiano: I wish you a very happy new year too. As often, I forgot to check if all the code was in the right position. Thank you for pointing it!

            – Bernard
            Jan 2 at 23:35





            @Sebastiano: I wish you a very happy new year too. As often, I forgot to check if all the code was in the right position. Thank you for pointing it!

            – Bernard
            Jan 2 at 23:35

















            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%2f468255%2fhow-to-write-a-formula-that-branches-into-two%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

            How to check contact read email or not when send email to Individual?

            Displaying single band from multi-band raster using QGIS

            How many registers does an x86_64 CPU actually have?