How to add a line inside an equation

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











up vote
3
down vote

favorite












I would like to introduce a line break in text line inside an equation.



What I have done is:



beginalign*
fractextReactividad relativa \ Hidr'ogeno secundariotextReactividad relativa\ Hidr'ogeno secundario&=d
endalign*


And what I would like to reproduce is the left side of the equal:



enter image description here










share|improve this question



















  • 6




    Why don't you use variables and explain them in proper sentences? What I see in the picture makes me cringe.
    – Johannes_B
    Sep 13 at 5:25










  • I have a big lack of latex language and for this reason I cannot give you a proper answer
    – Another.Chemist
    Sep 13 at 5:27














up vote
3
down vote

favorite












I would like to introduce a line break in text line inside an equation.



What I have done is:



beginalign*
fractextReactividad relativa \ Hidr'ogeno secundariotextReactividad relativa\ Hidr'ogeno secundario&=d
endalign*


And what I would like to reproduce is the left side of the equal:



enter image description here










share|improve this question



















  • 6




    Why don't you use variables and explain them in proper sentences? What I see in the picture makes me cringe.
    – Johannes_B
    Sep 13 at 5:25










  • I have a big lack of latex language and for this reason I cannot give you a proper answer
    – Another.Chemist
    Sep 13 at 5:27












up vote
3
down vote

favorite









up vote
3
down vote

favorite











I would like to introduce a line break in text line inside an equation.



What I have done is:



beginalign*
fractextReactividad relativa \ Hidr'ogeno secundariotextReactividad relativa\ Hidr'ogeno secundario&=d
endalign*


And what I would like to reproduce is the left side of the equal:



enter image description here










share|improve this question















I would like to introduce a line break in text line inside an equation.



What I have done is:



beginalign*
fractextReactividad relativa \ Hidr'ogeno secundariotextReactividad relativa\ Hidr'ogeno secundario&=d
endalign*


And what I would like to reproduce is the left side of the equal:



enter image description here







equations text






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Sep 13 at 5:51

























asked Sep 13 at 5:20









Another.Chemist

3822414




3822414







  • 6




    Why don't you use variables and explain them in proper sentences? What I see in the picture makes me cringe.
    – Johannes_B
    Sep 13 at 5:25










  • I have a big lack of latex language and for this reason I cannot give you a proper answer
    – Another.Chemist
    Sep 13 at 5:27












  • 6




    Why don't you use variables and explain them in proper sentences? What I see in the picture makes me cringe.
    – Johannes_B
    Sep 13 at 5:25










  • I have a big lack of latex language and for this reason I cannot give you a proper answer
    – Another.Chemist
    Sep 13 at 5:27







6




6




Why don't you use variables and explain them in proper sentences? What I see in the picture makes me cringe.
– Johannes_B
Sep 13 at 5:25




Why don't you use variables and explain them in proper sentences? What I see in the picture makes me cringe.
– Johannes_B
Sep 13 at 5:25












I have a big lack of latex language and for this reason I cannot give you a proper answer
– Another.Chemist
Sep 13 at 5:27




I have a big lack of latex language and for this reason I cannot give you a proper answer
– Another.Chemist
Sep 13 at 5:27










3 Answers
3






active

oldest

votes

















up vote
2
down vote



accepted










A variant, with the Centerstack command,, which automatically starts text mode, and can take an optional argument to set the alignment of the lines:



documentclassarticle
usepackage[T1]fontenc
usepackage[utf8]inputenc
usepackagegeometry
usepackageamsmath
usepackage[usestackEOL]stackengine

begindocument

beginequation %% Longstack is probably better, look at the manual for stackengine...
frac,Centerstack[l]Relative reactivity of \ a secondary hydrogen,%
Centerstack[l]Relative reactivity of \ a primary hydrogen
= frac,Centerstack[l]yield of product from \ secondary hydrogen abstractionBigm / Centerstack[l]number of \ secondary hydrogens,%
Centerstack[l]yield of product from \ primary hydrogen abstractionBigm /Centerstack[l]number of \ primary hydrogens%
endequation

enddocument


enter image description here






share|improve this answer



























    up vote
    7
    down vote













    Define a suitable command for those “textual variables”:



    documentclassarticle
    usepackageamsmath

    newcommandtvar[1]%
    textup%
    begintabular@l@
    #1
    endtabular%
    %


    begindocument

    beginequation*
    fractvarReactividad relativa \ Hidr'ogeno secundario
    tvarReactividad relativa\ Hidr'ogeno primario
    =
    frac
    left(tvarAbc def \ ghi klmright)bigg/
    left(tvarAbc def \ ghi klmright)


    left(tvarAbc def \ ghi klmright)bigg/
    left(tvarAbc def \ ghi klmright)

    endequation*

    enddocument


    enter image description here






    share|improve this answer



























      up vote
      2
      down vote













      You can do it, which does not mean you should do it. I agree with @Johannes_B, using proper variables will increase the readability a lot.



      You can use stackengine for these things:



      enter image description here



      and still, this is IMHO better:



      enter image description here



      Full MWE:



      documentclassarticle
      usepackage[T1]fontenc
      usepackage[utf8]inputenc
      usepackageamsmath
      usepackagestackengine
      begindocument
      beginequation %% Longstack is probably better, look at the manual for stackengine...
      fractextstackunderRelative reactivity ofa secondary hydrogen%
      textstackunderRelative reactivity ofa primary hydrogen cdots
      endequation

      bigskip

      But this is better:

      Call $R_2$ the relative reactivity of a secondary hydrogen, $R_1$ the relative reactivity of a primary hydrogen, dots
      beginequation
      fracR_2R_1cdots
      endequation
      enddocument





      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',
        convertImagesToLinks: false,
        noModals: false,
        showLowRepImageUploadWarning: true,
        reputationToPostImages: null,
        bindNavPrevention: true,
        postfix: "",
        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%2f450659%2fhow-to-add-a-line-inside-an-equation%23new-answer', 'question_page');

        );

        Post as a guest






























        3 Answers
        3






        active

        oldest

        votes








        3 Answers
        3






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes








        up vote
        2
        down vote



        accepted










        A variant, with the Centerstack command,, which automatically starts text mode, and can take an optional argument to set the alignment of the lines:



        documentclassarticle
        usepackage[T1]fontenc
        usepackage[utf8]inputenc
        usepackagegeometry
        usepackageamsmath
        usepackage[usestackEOL]stackengine

        begindocument

        beginequation %% Longstack is probably better, look at the manual for stackengine...
        frac,Centerstack[l]Relative reactivity of \ a secondary hydrogen,%
        Centerstack[l]Relative reactivity of \ a primary hydrogen
        = frac,Centerstack[l]yield of product from \ secondary hydrogen abstractionBigm / Centerstack[l]number of \ secondary hydrogens,%
        Centerstack[l]yield of product from \ primary hydrogen abstractionBigm /Centerstack[l]number of \ primary hydrogens%
        endequation

        enddocument


        enter image description here






        share|improve this answer
























          up vote
          2
          down vote



          accepted










          A variant, with the Centerstack command,, which automatically starts text mode, and can take an optional argument to set the alignment of the lines:



          documentclassarticle
          usepackage[T1]fontenc
          usepackage[utf8]inputenc
          usepackagegeometry
          usepackageamsmath
          usepackage[usestackEOL]stackengine

          begindocument

          beginequation %% Longstack is probably better, look at the manual for stackengine...
          frac,Centerstack[l]Relative reactivity of \ a secondary hydrogen,%
          Centerstack[l]Relative reactivity of \ a primary hydrogen
          = frac,Centerstack[l]yield of product from \ secondary hydrogen abstractionBigm / Centerstack[l]number of \ secondary hydrogens,%
          Centerstack[l]yield of product from \ primary hydrogen abstractionBigm /Centerstack[l]number of \ primary hydrogens%
          endequation

          enddocument


          enter image description here






          share|improve this answer






















            up vote
            2
            down vote



            accepted







            up vote
            2
            down vote



            accepted






            A variant, with the Centerstack command,, which automatically starts text mode, and can take an optional argument to set the alignment of the lines:



            documentclassarticle
            usepackage[T1]fontenc
            usepackage[utf8]inputenc
            usepackagegeometry
            usepackageamsmath
            usepackage[usestackEOL]stackengine

            begindocument

            beginequation %% Longstack is probably better, look at the manual for stackengine...
            frac,Centerstack[l]Relative reactivity of \ a secondary hydrogen,%
            Centerstack[l]Relative reactivity of \ a primary hydrogen
            = frac,Centerstack[l]yield of product from \ secondary hydrogen abstractionBigm / Centerstack[l]number of \ secondary hydrogens,%
            Centerstack[l]yield of product from \ primary hydrogen abstractionBigm /Centerstack[l]number of \ primary hydrogens%
            endequation

            enddocument


            enter image description here






            share|improve this answer












            A variant, with the Centerstack command,, which automatically starts text mode, and can take an optional argument to set the alignment of the lines:



            documentclassarticle
            usepackage[T1]fontenc
            usepackage[utf8]inputenc
            usepackagegeometry
            usepackageamsmath
            usepackage[usestackEOL]stackengine

            begindocument

            beginequation %% Longstack is probably better, look at the manual for stackengine...
            frac,Centerstack[l]Relative reactivity of \ a secondary hydrogen,%
            Centerstack[l]Relative reactivity of \ a primary hydrogen
            = frac,Centerstack[l]yield of product from \ secondary hydrogen abstractionBigm / Centerstack[l]number of \ secondary hydrogens,%
            Centerstack[l]yield of product from \ primary hydrogen abstractionBigm /Centerstack[l]number of \ primary hydrogens%
            endequation

            enddocument


            enter image description here







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Sep 13 at 9:00









            Bernard

            157k764190




            157k764190




















                up vote
                7
                down vote













                Define a suitable command for those “textual variables”:



                documentclassarticle
                usepackageamsmath

                newcommandtvar[1]%
                textup%
                begintabular@l@
                #1
                endtabular%
                %


                begindocument

                beginequation*
                fractvarReactividad relativa \ Hidr'ogeno secundario
                tvarReactividad relativa\ Hidr'ogeno primario
                =
                frac
                left(tvarAbc def \ ghi klmright)bigg/
                left(tvarAbc def \ ghi klmright)


                left(tvarAbc def \ ghi klmright)bigg/
                left(tvarAbc def \ ghi klmright)

                endequation*

                enddocument


                enter image description here






                share|improve this answer
























                  up vote
                  7
                  down vote













                  Define a suitable command for those “textual variables”:



                  documentclassarticle
                  usepackageamsmath

                  newcommandtvar[1]%
                  textup%
                  begintabular@l@
                  #1
                  endtabular%
                  %


                  begindocument

                  beginequation*
                  fractvarReactividad relativa \ Hidr'ogeno secundario
                  tvarReactividad relativa\ Hidr'ogeno primario
                  =
                  frac
                  left(tvarAbc def \ ghi klmright)bigg/
                  left(tvarAbc def \ ghi klmright)


                  left(tvarAbc def \ ghi klmright)bigg/
                  left(tvarAbc def \ ghi klmright)

                  endequation*

                  enddocument


                  enter image description here






                  share|improve this answer






















                    up vote
                    7
                    down vote










                    up vote
                    7
                    down vote









                    Define a suitable command for those “textual variables”:



                    documentclassarticle
                    usepackageamsmath

                    newcommandtvar[1]%
                    textup%
                    begintabular@l@
                    #1
                    endtabular%
                    %


                    begindocument

                    beginequation*
                    fractvarReactividad relativa \ Hidr'ogeno secundario
                    tvarReactividad relativa\ Hidr'ogeno primario
                    =
                    frac
                    left(tvarAbc def \ ghi klmright)bigg/
                    left(tvarAbc def \ ghi klmright)


                    left(tvarAbc def \ ghi klmright)bigg/
                    left(tvarAbc def \ ghi klmright)

                    endequation*

                    enddocument


                    enter image description here






                    share|improve this answer












                    Define a suitable command for those “textual variables”:



                    documentclassarticle
                    usepackageamsmath

                    newcommandtvar[1]%
                    textup%
                    begintabular@l@
                    #1
                    endtabular%
                    %


                    begindocument

                    beginequation*
                    fractvarReactividad relativa \ Hidr'ogeno secundario
                    tvarReactividad relativa\ Hidr'ogeno primario
                    =
                    frac
                    left(tvarAbc def \ ghi klmright)bigg/
                    left(tvarAbc def \ ghi klmright)


                    left(tvarAbc def \ ghi klmright)bigg/
                    left(tvarAbc def \ ghi klmright)

                    endequation*

                    enddocument


                    enter image description here







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Sep 13 at 8:39









                    egreg

                    686k8418283077




                    686k8418283077




















                        up vote
                        2
                        down vote













                        You can do it, which does not mean you should do it. I agree with @Johannes_B, using proper variables will increase the readability a lot.



                        You can use stackengine for these things:



                        enter image description here



                        and still, this is IMHO better:



                        enter image description here



                        Full MWE:



                        documentclassarticle
                        usepackage[T1]fontenc
                        usepackage[utf8]inputenc
                        usepackageamsmath
                        usepackagestackengine
                        begindocument
                        beginequation %% Longstack is probably better, look at the manual for stackengine...
                        fractextstackunderRelative reactivity ofa secondary hydrogen%
                        textstackunderRelative reactivity ofa primary hydrogen cdots
                        endequation

                        bigskip

                        But this is better:

                        Call $R_2$ the relative reactivity of a secondary hydrogen, $R_1$ the relative reactivity of a primary hydrogen, dots
                        beginequation
                        fracR_2R_1cdots
                        endequation
                        enddocument





                        share|improve this answer


























                          up vote
                          2
                          down vote













                          You can do it, which does not mean you should do it. I agree with @Johannes_B, using proper variables will increase the readability a lot.



                          You can use stackengine for these things:



                          enter image description here



                          and still, this is IMHO better:



                          enter image description here



                          Full MWE:



                          documentclassarticle
                          usepackage[T1]fontenc
                          usepackage[utf8]inputenc
                          usepackageamsmath
                          usepackagestackengine
                          begindocument
                          beginequation %% Longstack is probably better, look at the manual for stackengine...
                          fractextstackunderRelative reactivity ofa secondary hydrogen%
                          textstackunderRelative reactivity ofa primary hydrogen cdots
                          endequation

                          bigskip

                          But this is better:

                          Call $R_2$ the relative reactivity of a secondary hydrogen, $R_1$ the relative reactivity of a primary hydrogen, dots
                          beginequation
                          fracR_2R_1cdots
                          endequation
                          enddocument





                          share|improve this answer
























                            up vote
                            2
                            down vote










                            up vote
                            2
                            down vote









                            You can do it, which does not mean you should do it. I agree with @Johannes_B, using proper variables will increase the readability a lot.



                            You can use stackengine for these things:



                            enter image description here



                            and still, this is IMHO better:



                            enter image description here



                            Full MWE:



                            documentclassarticle
                            usepackage[T1]fontenc
                            usepackage[utf8]inputenc
                            usepackageamsmath
                            usepackagestackengine
                            begindocument
                            beginequation %% Longstack is probably better, look at the manual for stackengine...
                            fractextstackunderRelative reactivity ofa secondary hydrogen%
                            textstackunderRelative reactivity ofa primary hydrogen cdots
                            endequation

                            bigskip

                            But this is better:

                            Call $R_2$ the relative reactivity of a secondary hydrogen, $R_1$ the relative reactivity of a primary hydrogen, dots
                            beginequation
                            fracR_2R_1cdots
                            endequation
                            enddocument





                            share|improve this answer














                            You can do it, which does not mean you should do it. I agree with @Johannes_B, using proper variables will increase the readability a lot.



                            You can use stackengine for these things:



                            enter image description here



                            and still, this is IMHO better:



                            enter image description here



                            Full MWE:



                            documentclassarticle
                            usepackage[T1]fontenc
                            usepackage[utf8]inputenc
                            usepackageamsmath
                            usepackagestackengine
                            begindocument
                            beginequation %% Longstack is probably better, look at the manual for stackengine...
                            fractextstackunderRelative reactivity ofa secondary hydrogen%
                            textstackunderRelative reactivity ofa primary hydrogen cdots
                            endequation

                            bigskip

                            But this is better:

                            Call $R_2$ the relative reactivity of a secondary hydrogen, $R_1$ the relative reactivity of a primary hydrogen, dots
                            beginequation
                            fracR_2R_1cdots
                            endequation
                            enddocument






                            share|improve this answer














                            share|improve this answer



                            share|improve this answer








                            edited Sep 13 at 8:19

























                            answered Sep 13 at 8:14









                            Rmano

                            6,98121446




                            6,98121446



























                                 

                                draft saved


                                draft discarded















































                                 


                                draft saved


                                draft discarded














                                StackExchange.ready(
                                function ()
                                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f450659%2fhow-to-add-a-line-inside-an-equation%23new-answer', 'question_page');

                                );

                                Post as a guest













































































                                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?