problem with a formula












3














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}
usepackage{anysize}
usepackage{graphicx}
usepackage{amsmath}
usepackage{amssymb}
usepackage{mathrsfs}
usepackage{textcomp}
linespread{1.5}

frenchspacing

newcommand{abs}[1]{lvert#1rvert}

usepackage{floatflt,epsfig}

usepackage{multicol}




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


begin{document}


$ dfrac{a pm b}{c} = rightarrow $

$ dfrac{a+b}{c} $

$ dfrac{a-b}{c} $




end{document}









share|improve this question



























    3














    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}
    usepackage{anysize}
    usepackage{graphicx}
    usepackage{amsmath}
    usepackage{amssymb}
    usepackage{mathrsfs}
    usepackage{textcomp}
    linespread{1.5}

    frenchspacing

    newcommand{abs}[1]{lvert#1rvert}

    usepackage{floatflt,epsfig}

    usepackage{multicol}




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


    begin{document}


    $ dfrac{a pm b}{c} = rightarrow $

    $ dfrac{a+b}{c} $

    $ dfrac{a-b}{c} $




    end{document}









    share|improve this question

























      3












      3








      3







      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}
      usepackage{anysize}
      usepackage{graphicx}
      usepackage{amsmath}
      usepackage{amssymb}
      usepackage{mathrsfs}
      usepackage{textcomp}
      linespread{1.5}

      frenchspacing

      newcommand{abs}[1]{lvert#1rvert}

      usepackage{floatflt,epsfig}

      usepackage{multicol}




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


      begin{document}


      $ dfrac{a pm b}{c} = rightarrow $

      $ dfrac{a+b}{c} $

      $ dfrac{a-b}{c} $




      end{document}









      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}
      usepackage{anysize}
      usepackage{graphicx}
      usepackage{amsmath}
      usepackage{amssymb}
      usepackage{mathrsfs}
      usepackage{textcomp}
      linespread{1.5}

      frenchspacing

      newcommand{abs}[1]{lvert#1rvert}

      usepackage{floatflt,epsfig}

      usepackage{multicol}




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


      begin{document}


      $ dfrac{a pm b}{c} = rightarrow $

      $ dfrac{a+b}{c} $

      $ dfrac{a-b}{c} $




      end{document}






      tikz-pgf amsmath formula






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 2 hours ago









      ryuk

      1,041719




      1,041719






















          3 Answers
          3






          active

          oldest

          votes


















          1














          My version with tikz-cd.



          enter image description here



          documentclass[a4paper,12pt]{article}
          usepackage{tikz-cd}
          usepackage{amsmath}

          begin{document}
          begin{tikzcd}[cells={nodes={minimum height=0cm,minimum width=1.5cm}},column sep=3em,row sep=-3pt]
          & dfrac{a+b}{c} \
          dfrac{a pm b}{c} = arrow[ru] arrow[rd] & \
          & dfrac{a-b}{c}
          end{tikzcd}
          end{document}





          share|improve this answer





























            4














            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



            documentclass{article}
            usepackage{tikz}
            usepackage{amsmath}

            begin{document}

            begin{tikzpicture}[grow=right,
            sibling distance=50pt,
            level distance=2cm,
            edge from parent path={(tikzparentnode.east) -- (tikzchildnode.west)},
            edge from parent/.style={draw,-latex}]
            node {$ dfrac{a pm b}{c} =$}
            child {node {$ dfrac{a-b}{c} $}}
            child {node {$ dfrac{a+b}{c} $}}
            ;
            end{tikzpicture}
            end{document}





            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
              1 hour ago



















            3














            Without using a hammersledge to crack a nut, you already have the necessary packages for thee 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}
            usepackage{graphicx}
            usepackage{amsmath}
            usepackage{amssymb}
            usepackage{multicol}
            linespread{1.5}
            frenchspacing

            usepackage{old-arrows}

            begin{document}


            [ dfrac{a pm b}{c} =
            begin{matrix}
            nearrow \[-1.5ex] searrow
            end{matrix}
            :
            begin{matrix}
            dfrac{a+b}{c} \[3ex]
            dfrac{a-b}{c}
            end{matrix} ]

            end{document}


            enter image description here






            share|improve this answer





















              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%2fproblem-with-a-formula%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









              1














              My version with tikz-cd.



              enter image description here



              documentclass[a4paper,12pt]{article}
              usepackage{tikz-cd}
              usepackage{amsmath}

              begin{document}
              begin{tikzcd}[cells={nodes={minimum height=0cm,minimum width=1.5cm}},column sep=3em,row sep=-3pt]
              & dfrac{a+b}{c} \
              dfrac{a pm b}{c} = arrow[ru] arrow[rd] & \
              & dfrac{a-b}{c}
              end{tikzcd}
              end{document}





              share|improve this answer


























                1














                My version with tikz-cd.



                enter image description here



                documentclass[a4paper,12pt]{article}
                usepackage{tikz-cd}
                usepackage{amsmath}

                begin{document}
                begin{tikzcd}[cells={nodes={minimum height=0cm,minimum width=1.5cm}},column sep=3em,row sep=-3pt]
                & dfrac{a+b}{c} \
                dfrac{a pm b}{c} = arrow[ru] arrow[rd] & \
                & dfrac{a-b}{c}
                end{tikzcd}
                end{document}





                share|improve this answer
























                  1












                  1








                  1






                  My version with tikz-cd.



                  enter image description here



                  documentclass[a4paper,12pt]{article}
                  usepackage{tikz-cd}
                  usepackage{amsmath}

                  begin{document}
                  begin{tikzcd}[cells={nodes={minimum height=0cm,minimum width=1.5cm}},column sep=3em,row sep=-3pt]
                  & dfrac{a+b}{c} \
                  dfrac{a pm b}{c} = arrow[ru] arrow[rd] & \
                  & dfrac{a-b}{c}
                  end{tikzcd}
                  end{document}





                  share|improve this answer












                  My version with tikz-cd.



                  enter image description here



                  documentclass[a4paper,12pt]{article}
                  usepackage{tikz-cd}
                  usepackage{amsmath}

                  begin{document}
                  begin{tikzcd}[cells={nodes={minimum height=0cm,minimum width=1.5cm}},column sep=3em,row sep=-3pt]
                  & dfrac{a+b}{c} \
                  dfrac{a pm b}{c} = arrow[ru] arrow[rd] & \
                  & dfrac{a-b}{c}
                  end{tikzcd}
                  end{document}






                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered 51 mins ago









                  Sebastiano

                  9,04041756




                  9,04041756























                      4














                      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



                      documentclass{article}
                      usepackage{tikz}
                      usepackage{amsmath}

                      begin{document}

                      begin{tikzpicture}[grow=right,
                      sibling distance=50pt,
                      level distance=2cm,
                      edge from parent path={(tikzparentnode.east) -- (tikzchildnode.west)},
                      edge from parent/.style={draw,-latex}]
                      node {$ dfrac{a pm b}{c} =$}
                      child {node {$ dfrac{a-b}{c} $}}
                      child {node {$ dfrac{a+b}{c} $}}
                      ;
                      end{tikzpicture}
                      end{document}





                      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
                        1 hour ago
















                      4














                      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



                      documentclass{article}
                      usepackage{tikz}
                      usepackage{amsmath}

                      begin{document}

                      begin{tikzpicture}[grow=right,
                      sibling distance=50pt,
                      level distance=2cm,
                      edge from parent path={(tikzparentnode.east) -- (tikzchildnode.west)},
                      edge from parent/.style={draw,-latex}]
                      node {$ dfrac{a pm b}{c} =$}
                      child {node {$ dfrac{a-b}{c} $}}
                      child {node {$ dfrac{a+b}{c} $}}
                      ;
                      end{tikzpicture}
                      end{document}





                      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
                        1 hour ago














                      4












                      4








                      4






                      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



                      documentclass{article}
                      usepackage{tikz}
                      usepackage{amsmath}

                      begin{document}

                      begin{tikzpicture}[grow=right,
                      sibling distance=50pt,
                      level distance=2cm,
                      edge from parent path={(tikzparentnode.east) -- (tikzchildnode.west)},
                      edge from parent/.style={draw,-latex}]
                      node {$ dfrac{a pm b}{c} =$}
                      child {node {$ dfrac{a-b}{c} $}}
                      child {node {$ dfrac{a+b}{c} $}}
                      ;
                      end{tikzpicture}
                      end{document}





                      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



                      documentclass{article}
                      usepackage{tikz}
                      usepackage{amsmath}

                      begin{document}

                      begin{tikzpicture}[grow=right,
                      sibling distance=50pt,
                      level distance=2cm,
                      edge from parent path={(tikzparentnode.east) -- (tikzchildnode.west)},
                      edge from parent/.style={draw,-latex}]
                      node {$ dfrac{a pm b}{c} =$}
                      child {node {$ dfrac{a-b}{c} $}}
                      child {node {$ dfrac{a+b}{c} $}}
                      ;
                      end{tikzpicture}
                      end{document}






                      share|improve this answer












                      share|improve this answer



                      share|improve this answer










                      answered 2 hours ago









                      leandriis

                      8,1571528




                      8,1571528












                      • @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
                        1 hour ago


















                      • @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
                        1 hour ago
















                      @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
                      1 hour ago




                      @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
                      1 hour ago











                      3














                      Without using a hammersledge to crack a nut, you already have the necessary packages for thee 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}
                      usepackage{graphicx}
                      usepackage{amsmath}
                      usepackage{amssymb}
                      usepackage{multicol}
                      linespread{1.5}
                      frenchspacing

                      usepackage{old-arrows}

                      begin{document}


                      [ dfrac{a pm b}{c} =
                      begin{matrix}
                      nearrow \[-1.5ex] searrow
                      end{matrix}
                      :
                      begin{matrix}
                      dfrac{a+b}{c} \[3ex]
                      dfrac{a-b}{c}
                      end{matrix} ]

                      end{document}


                      enter image description here






                      share|improve this answer


























                        3














                        Without using a hammersledge to crack a nut, you already have the necessary packages for thee 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}
                        usepackage{graphicx}
                        usepackage{amsmath}
                        usepackage{amssymb}
                        usepackage{multicol}
                        linespread{1.5}
                        frenchspacing

                        usepackage{old-arrows}

                        begin{document}


                        [ dfrac{a pm b}{c} =
                        begin{matrix}
                        nearrow \[-1.5ex] searrow
                        end{matrix}
                        :
                        begin{matrix}
                        dfrac{a+b}{c} \[3ex]
                        dfrac{a-b}{c}
                        end{matrix} ]

                        end{document}


                        enter image description here






                        share|improve this answer
























                          3












                          3








                          3






                          Without using a hammersledge to crack a nut, you already have the necessary packages for thee 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}
                          usepackage{graphicx}
                          usepackage{amsmath}
                          usepackage{amssymb}
                          usepackage{multicol}
                          linespread{1.5}
                          frenchspacing

                          usepackage{old-arrows}

                          begin{document}


                          [ dfrac{a pm b}{c} =
                          begin{matrix}
                          nearrow \[-1.5ex] searrow
                          end{matrix}
                          :
                          begin{matrix}
                          dfrac{a+b}{c} \[3ex]
                          dfrac{a-b}{c}
                          end{matrix} ]

                          end{document}


                          enter image description here






                          share|improve this answer












                          Without using a hammersledge to crack a nut, you already have the necessary packages for thee 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}
                          usepackage{graphicx}
                          usepackage{amsmath}
                          usepackage{amssymb}
                          usepackage{multicol}
                          linespread{1.5}
                          frenchspacing

                          usepackage{old-arrows}

                          begin{document}


                          [ dfrac{a pm b}{c} =
                          begin{matrix}
                          nearrow \[-1.5ex] searrow
                          end{matrix}
                          :
                          begin{matrix}
                          dfrac{a+b}{c} \[3ex]
                          dfrac{a-b}{c}
                          end{matrix} ]

                          end{document}


                          enter image description here







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered 55 mins ago









                          Bernard

                          166k769194




                          166k769194






























                              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.





                              Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                              Please pay close attention to the following guidance:


                              • 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%2fproblem-with-a-formula%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

                              Understanding the information contained in the Deep Space Network XML data?

                              Ross-on-Wye

                              Eastern Orthodox Church