Trouble with long equation in LaTeX












2















I'm using the following packages:



usepackage{mathrsfs}
usepackage{mathtools}
usepackage{amsmath,latexsym}


in order to write the following equation.



begin{eqnarray*}
frac{partialmathscr{L}}{partial(partial_nu A_mu)} =-frac{1}{4} left[
left(frac{partial(partial_sigma A_omega)}{partial(partial_nu A_mu)}
-frac{partial(partial_omega A_sigma)}{partial(partial_nu A_mu)}right)
(partial_alpha A_beta-partial_beta A_alpha)
+ (partial_sigma A_omega - partial_omega A_sigma)
left(frac{partial(partial_alpha A_beta)}{partial(partial_nu A_mu)}
-frac{partial(partial_beta A_alpha)}{partial(delta_nu A_mu)}right)
right]
end{eqnarray*}


The problem is that the equation is too long for a single line. When I try to break it on the "plus" sign, it no longer recognizes the last right] command, and my brackets do not close. I Checked the code several times, it seems correct.



Any Ideas?










share|improve this question




















  • 2





    The left...right syntax cannot be used across lines. Generally, try to use big, Big, bigg, or Bigg instead.

    – Steven B. Segletes
    Mar 5 at 19:34






  • 1





    Off-topic: Please don't load the deprecated latexsym package. Instead, do load the much more complete amssymb package.

    – Mico
    Mar 5 at 20:57






  • 1





    Don't use the badly deprecated eqnarray and eqnarray* environments. Instead, use align and align* environments. See the posting eqnarray vs align and the additional links provided in the most-upvoted answer to that posting.

    – Mico
    Mar 5 at 21:03
















2















I'm using the following packages:



usepackage{mathrsfs}
usepackage{mathtools}
usepackage{amsmath,latexsym}


in order to write the following equation.



begin{eqnarray*}
frac{partialmathscr{L}}{partial(partial_nu A_mu)} =-frac{1}{4} left[
left(frac{partial(partial_sigma A_omega)}{partial(partial_nu A_mu)}
-frac{partial(partial_omega A_sigma)}{partial(partial_nu A_mu)}right)
(partial_alpha A_beta-partial_beta A_alpha)
+ (partial_sigma A_omega - partial_omega A_sigma)
left(frac{partial(partial_alpha A_beta)}{partial(partial_nu A_mu)}
-frac{partial(partial_beta A_alpha)}{partial(delta_nu A_mu)}right)
right]
end{eqnarray*}


The problem is that the equation is too long for a single line. When I try to break it on the "plus" sign, it no longer recognizes the last right] command, and my brackets do not close. I Checked the code several times, it seems correct.



Any Ideas?










share|improve this question




















  • 2





    The left...right syntax cannot be used across lines. Generally, try to use big, Big, bigg, or Bigg instead.

    – Steven B. Segletes
    Mar 5 at 19:34






  • 1





    Off-topic: Please don't load the deprecated latexsym package. Instead, do load the much more complete amssymb package.

    – Mico
    Mar 5 at 20:57






  • 1





    Don't use the badly deprecated eqnarray and eqnarray* environments. Instead, use align and align* environments. See the posting eqnarray vs align and the additional links provided in the most-upvoted answer to that posting.

    – Mico
    Mar 5 at 21:03














2












2








2








I'm using the following packages:



usepackage{mathrsfs}
usepackage{mathtools}
usepackage{amsmath,latexsym}


in order to write the following equation.



begin{eqnarray*}
frac{partialmathscr{L}}{partial(partial_nu A_mu)} =-frac{1}{4} left[
left(frac{partial(partial_sigma A_omega)}{partial(partial_nu A_mu)}
-frac{partial(partial_omega A_sigma)}{partial(partial_nu A_mu)}right)
(partial_alpha A_beta-partial_beta A_alpha)
+ (partial_sigma A_omega - partial_omega A_sigma)
left(frac{partial(partial_alpha A_beta)}{partial(partial_nu A_mu)}
-frac{partial(partial_beta A_alpha)}{partial(delta_nu A_mu)}right)
right]
end{eqnarray*}


The problem is that the equation is too long for a single line. When I try to break it on the "plus" sign, it no longer recognizes the last right] command, and my brackets do not close. I Checked the code several times, it seems correct.



Any Ideas?










share|improve this question
















I'm using the following packages:



usepackage{mathrsfs}
usepackage{mathtools}
usepackage{amsmath,latexsym}


in order to write the following equation.



begin{eqnarray*}
frac{partialmathscr{L}}{partial(partial_nu A_mu)} =-frac{1}{4} left[
left(frac{partial(partial_sigma A_omega)}{partial(partial_nu A_mu)}
-frac{partial(partial_omega A_sigma)}{partial(partial_nu A_mu)}right)
(partial_alpha A_beta-partial_beta A_alpha)
+ (partial_sigma A_omega - partial_omega A_sigma)
left(frac{partial(partial_alpha A_beta)}{partial(partial_nu A_mu)}
-frac{partial(partial_beta A_alpha)}{partial(delta_nu A_mu)}right)
right]
end{eqnarray*}


The problem is that the equation is too long for a single line. When I try to break it on the "plus" sign, it no longer recognizes the last right] command, and my brackets do not close. I Checked the code several times, it seems correct.



Any Ideas?







equations amsmath mathtools






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 5 at 21:08









Mico

283k31387774




283k31387774










asked Mar 5 at 19:31









Omar SilveiraOmar Silveira

132




132








  • 2





    The left...right syntax cannot be used across lines. Generally, try to use big, Big, bigg, or Bigg instead.

    – Steven B. Segletes
    Mar 5 at 19:34






  • 1





    Off-topic: Please don't load the deprecated latexsym package. Instead, do load the much more complete amssymb package.

    – Mico
    Mar 5 at 20:57






  • 1





    Don't use the badly deprecated eqnarray and eqnarray* environments. Instead, use align and align* environments. See the posting eqnarray vs align and the additional links provided in the most-upvoted answer to that posting.

    – Mico
    Mar 5 at 21:03














  • 2





    The left...right syntax cannot be used across lines. Generally, try to use big, Big, bigg, or Bigg instead.

    – Steven B. Segletes
    Mar 5 at 19:34






  • 1





    Off-topic: Please don't load the deprecated latexsym package. Instead, do load the much more complete amssymb package.

    – Mico
    Mar 5 at 20:57






  • 1





    Don't use the badly deprecated eqnarray and eqnarray* environments. Instead, use align and align* environments. See the posting eqnarray vs align and the additional links provided in the most-upvoted answer to that posting.

    – Mico
    Mar 5 at 21:03








2




2





The left...right syntax cannot be used across lines. Generally, try to use big, Big, bigg, or Bigg instead.

– Steven B. Segletes
Mar 5 at 19:34





The left...right syntax cannot be used across lines. Generally, try to use big, Big, bigg, or Bigg instead.

– Steven B. Segletes
Mar 5 at 19:34




1




1





Off-topic: Please don't load the deprecated latexsym package. Instead, do load the much more complete amssymb package.

– Mico
Mar 5 at 20:57





Off-topic: Please don't load the deprecated latexsym package. Instead, do load the much more complete amssymb package.

– Mico
Mar 5 at 20:57




1




1





Don't use the badly deprecated eqnarray and eqnarray* environments. Instead, use align and align* environments. See the posting eqnarray vs align and the additional links provided in the most-upvoted answer to that posting.

– Mico
Mar 5 at 21:03





Don't use the badly deprecated eqnarray and eqnarray* environments. Instead, use align and align* environments. See the posting eqnarray vs align and the additional links provided in the most-upvoted answer to that posting.

– Mico
Mar 5 at 21:03










3 Answers
3






active

oldest

votes


















1














For the sake of completeness I'd like to suggest an automated solution using breqn. It can break a display math equation respecting left and right delimiters. An example without any change inside the formula:



documentclass{article}
usepackage{amsmath}
usepackage{mathrsfs}
usepackage{breqn}
begin{document}
begin{dmath*}
frac{partialmathscr{L}}{partial(partial_nu A_mu)}
=-frac{1}{4}left[left(
frac{partial(partial_sigma A_omega)}{partial(partial_nu A_mu)}
-frac{partial(partial_omega A_sigma)}{partial(partial_nu A_mu)}right)
(partial_alpha A_beta-partial_beta A_alpha)
+ (partial_sigma A_omega - partial_omega A_sigma)
left(frac{partial(partial_alpha A_beta)}{partial(partial_nu A_mu)}
-frac{partial(partial_beta A_alpha)}{partial(delta_nu A_mu)}
right)right]
end{dmath*}
end{document}


The result mimics multline:



enter image description here






share|improve this answer
























  • All answers really were really helpfull! Ended up using the {dmath*} enviroment becouse it was more convenient for the rest of the code. I like to use left and right, it feels more organized. I think it scales automatically with the size of the rest of the terms. Thank you, guys! OBS.: About my equation: I forgot about the metric tensor eta^{alphasigma}eta^{betaomega} after the fraction 1/4. The rest shoud be all right!

    – Omar Silveira
    Mar 6 at 20:46





















3














it seems that for your long equation is multlined appropriate math environment:



documentclass{article}
usepackage{mathrsfs}
usepackage{mathtools, amssymb}

%---------------- show page layout. don't use in a real document!
usepackage{showframe}
renewcommandShowFrameLinethickness{0.15pt}
renewcommand*ShowFrameColor{color{red}}
%---------------------------------------------------------------%

begin{document}
begin{multline*}
frac{partialmathscr{L}}{partial(partial_nu A_mu)}
= -frac{1}{4} left[left(
frac{partial(partial_sigma A_omega)}
{partial(partial_nu A_mu)}
- frac{partial(partial_omega A_sigma)}
{partial(partial_nu A_mu)}right)right.
(partial_alpha A_beta-partial_beta A_alpha) \
+ (partial_sigma A_omega - partial_omega A_sigma)
left.left(
frac{partial(partial_alpha A_beta)}
{partial(partial_nu A_mu)}
- frac{partial(partial_beta A_alpha)}
{partial(delta_nu A_mu)}right)right]
end{multline*}
end{document}


enter image description here



(red lines indicate text borders)






share|improve this answer































    3














    You wrote,




    I Checked the code several times, it seems correct.




    Actually, it is not correct: TeX syntax rules do not allow line breaks inside a left[...right] group. The solution is not to use left and right to begin with. Instead, do use biggl[ and biggr].



    Here's a solution which uses an align* environment -- please don't use the badly deprecated eqnarray* environment -- and rearranges the multiplicative terms in the second row so that than can be aligned with the corresponding terms in the first row. And, all auto-sizing directives have been replaced with the explicit-sizing instructions biggl and biggr.



    enter image description here



    documentclass{article}
    usepackage{mathrsfs} % for 'mathscr' macro
    usepackage{mathtools}
    usepackage{%amsmath, % is loaded automatically by 'mathtools' package
    amssymb} % not 'latexsym'!

    begin{document}

    begin{align*}
    frac{partialmathscr{L}}{partial(partial_nu A_mu)}
    =-frac{1}{4} biggl[
    &biggl(frac{partial(partial_sigma A_omega)}{partial(partial_nu A_mu)}
    -frac{partial(partial_omega A_sigma)}{partial(partial_nu A_mu)}biggr)
    (partial_alpha A_beta-partial_beta A_alpha)\
    {}+{} % make '+' act like a binary, not unary, operator
    &biggl(frac{partial(partial_alpha A_beta)}{partial(partial_nu A_mu)}
    -frac{partial(partial_beta A_alpha)}{partial(delta_nu A_mu)}biggr)
    (partial_sigma A_omega - partial_omega A_sigma)
    biggr]
    end{align*}
    end{document}





    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%2f477916%2ftrouble-with-long-equation-in-latex%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














      For the sake of completeness I'd like to suggest an automated solution using breqn. It can break a display math equation respecting left and right delimiters. An example without any change inside the formula:



      documentclass{article}
      usepackage{amsmath}
      usepackage{mathrsfs}
      usepackage{breqn}
      begin{document}
      begin{dmath*}
      frac{partialmathscr{L}}{partial(partial_nu A_mu)}
      =-frac{1}{4}left[left(
      frac{partial(partial_sigma A_omega)}{partial(partial_nu A_mu)}
      -frac{partial(partial_omega A_sigma)}{partial(partial_nu A_mu)}right)
      (partial_alpha A_beta-partial_beta A_alpha)
      + (partial_sigma A_omega - partial_omega A_sigma)
      left(frac{partial(partial_alpha A_beta)}{partial(partial_nu A_mu)}
      -frac{partial(partial_beta A_alpha)}{partial(delta_nu A_mu)}
      right)right]
      end{dmath*}
      end{document}


      The result mimics multline:



      enter image description here






      share|improve this answer
























      • All answers really were really helpfull! Ended up using the {dmath*} enviroment becouse it was more convenient for the rest of the code. I like to use left and right, it feels more organized. I think it scales automatically with the size of the rest of the terms. Thank you, guys! OBS.: About my equation: I forgot about the metric tensor eta^{alphasigma}eta^{betaomega} after the fraction 1/4. The rest shoud be all right!

        – Omar Silveira
        Mar 6 at 20:46


















      1














      For the sake of completeness I'd like to suggest an automated solution using breqn. It can break a display math equation respecting left and right delimiters. An example without any change inside the formula:



      documentclass{article}
      usepackage{amsmath}
      usepackage{mathrsfs}
      usepackage{breqn}
      begin{document}
      begin{dmath*}
      frac{partialmathscr{L}}{partial(partial_nu A_mu)}
      =-frac{1}{4}left[left(
      frac{partial(partial_sigma A_omega)}{partial(partial_nu A_mu)}
      -frac{partial(partial_omega A_sigma)}{partial(partial_nu A_mu)}right)
      (partial_alpha A_beta-partial_beta A_alpha)
      + (partial_sigma A_omega - partial_omega A_sigma)
      left(frac{partial(partial_alpha A_beta)}{partial(partial_nu A_mu)}
      -frac{partial(partial_beta A_alpha)}{partial(delta_nu A_mu)}
      right)right]
      end{dmath*}
      end{document}


      The result mimics multline:



      enter image description here






      share|improve this answer
























      • All answers really were really helpfull! Ended up using the {dmath*} enviroment becouse it was more convenient for the rest of the code. I like to use left and right, it feels more organized. I think it scales automatically with the size of the rest of the terms. Thank you, guys! OBS.: About my equation: I forgot about the metric tensor eta^{alphasigma}eta^{betaomega} after the fraction 1/4. The rest shoud be all right!

        – Omar Silveira
        Mar 6 at 20:46
















      1












      1








      1







      For the sake of completeness I'd like to suggest an automated solution using breqn. It can break a display math equation respecting left and right delimiters. An example without any change inside the formula:



      documentclass{article}
      usepackage{amsmath}
      usepackage{mathrsfs}
      usepackage{breqn}
      begin{document}
      begin{dmath*}
      frac{partialmathscr{L}}{partial(partial_nu A_mu)}
      =-frac{1}{4}left[left(
      frac{partial(partial_sigma A_omega)}{partial(partial_nu A_mu)}
      -frac{partial(partial_omega A_sigma)}{partial(partial_nu A_mu)}right)
      (partial_alpha A_beta-partial_beta A_alpha)
      + (partial_sigma A_omega - partial_omega A_sigma)
      left(frac{partial(partial_alpha A_beta)}{partial(partial_nu A_mu)}
      -frac{partial(partial_beta A_alpha)}{partial(delta_nu A_mu)}
      right)right]
      end{dmath*}
      end{document}


      The result mimics multline:



      enter image description here






      share|improve this answer













      For the sake of completeness I'd like to suggest an automated solution using breqn. It can break a display math equation respecting left and right delimiters. An example without any change inside the formula:



      documentclass{article}
      usepackage{amsmath}
      usepackage{mathrsfs}
      usepackage{breqn}
      begin{document}
      begin{dmath*}
      frac{partialmathscr{L}}{partial(partial_nu A_mu)}
      =-frac{1}{4}left[left(
      frac{partial(partial_sigma A_omega)}{partial(partial_nu A_mu)}
      -frac{partial(partial_omega A_sigma)}{partial(partial_nu A_mu)}right)
      (partial_alpha A_beta-partial_beta A_alpha)
      + (partial_sigma A_omega - partial_omega A_sigma)
      left(frac{partial(partial_alpha A_beta)}{partial(partial_nu A_mu)}
      -frac{partial(partial_beta A_alpha)}{partial(delta_nu A_mu)}
      right)right]
      end{dmath*}
      end{document}


      The result mimics multline:



      enter image description here







      share|improve this answer












      share|improve this answer



      share|improve this answer










      answered Mar 6 at 7:48









      Sergei GolovanSergei Golovan

      4,4501615




      4,4501615













      • All answers really were really helpfull! Ended up using the {dmath*} enviroment becouse it was more convenient for the rest of the code. I like to use left and right, it feels more organized. I think it scales automatically with the size of the rest of the terms. Thank you, guys! OBS.: About my equation: I forgot about the metric tensor eta^{alphasigma}eta^{betaomega} after the fraction 1/4. The rest shoud be all right!

        – Omar Silveira
        Mar 6 at 20:46





















      • All answers really were really helpfull! Ended up using the {dmath*} enviroment becouse it was more convenient for the rest of the code. I like to use left and right, it feels more organized. I think it scales automatically with the size of the rest of the terms. Thank you, guys! OBS.: About my equation: I forgot about the metric tensor eta^{alphasigma}eta^{betaomega} after the fraction 1/4. The rest shoud be all right!

        – Omar Silveira
        Mar 6 at 20:46



















      All answers really were really helpfull! Ended up using the {dmath*} enviroment becouse it was more convenient for the rest of the code. I like to use left and right, it feels more organized. I think it scales automatically with the size of the rest of the terms. Thank you, guys! OBS.: About my equation: I forgot about the metric tensor eta^{alphasigma}eta^{betaomega} after the fraction 1/4. The rest shoud be all right!

      – Omar Silveira
      Mar 6 at 20:46







      All answers really were really helpfull! Ended up using the {dmath*} enviroment becouse it was more convenient for the rest of the code. I like to use left and right, it feels more organized. I think it scales automatically with the size of the rest of the terms. Thank you, guys! OBS.: About my equation: I forgot about the metric tensor eta^{alphasigma}eta^{betaomega} after the fraction 1/4. The rest shoud be all right!

      – Omar Silveira
      Mar 6 at 20:46













      3














      it seems that for your long equation is multlined appropriate math environment:



      documentclass{article}
      usepackage{mathrsfs}
      usepackage{mathtools, amssymb}

      %---------------- show page layout. don't use in a real document!
      usepackage{showframe}
      renewcommandShowFrameLinethickness{0.15pt}
      renewcommand*ShowFrameColor{color{red}}
      %---------------------------------------------------------------%

      begin{document}
      begin{multline*}
      frac{partialmathscr{L}}{partial(partial_nu A_mu)}
      = -frac{1}{4} left[left(
      frac{partial(partial_sigma A_omega)}
      {partial(partial_nu A_mu)}
      - frac{partial(partial_omega A_sigma)}
      {partial(partial_nu A_mu)}right)right.
      (partial_alpha A_beta-partial_beta A_alpha) \
      + (partial_sigma A_omega - partial_omega A_sigma)
      left.left(
      frac{partial(partial_alpha A_beta)}
      {partial(partial_nu A_mu)}
      - frac{partial(partial_beta A_alpha)}
      {partial(delta_nu A_mu)}right)right]
      end{multline*}
      end{document}


      enter image description here



      (red lines indicate text borders)






      share|improve this answer




























        3














        it seems that for your long equation is multlined appropriate math environment:



        documentclass{article}
        usepackage{mathrsfs}
        usepackage{mathtools, amssymb}

        %---------------- show page layout. don't use in a real document!
        usepackage{showframe}
        renewcommandShowFrameLinethickness{0.15pt}
        renewcommand*ShowFrameColor{color{red}}
        %---------------------------------------------------------------%

        begin{document}
        begin{multline*}
        frac{partialmathscr{L}}{partial(partial_nu A_mu)}
        = -frac{1}{4} left[left(
        frac{partial(partial_sigma A_omega)}
        {partial(partial_nu A_mu)}
        - frac{partial(partial_omega A_sigma)}
        {partial(partial_nu A_mu)}right)right.
        (partial_alpha A_beta-partial_beta A_alpha) \
        + (partial_sigma A_omega - partial_omega A_sigma)
        left.left(
        frac{partial(partial_alpha A_beta)}
        {partial(partial_nu A_mu)}
        - frac{partial(partial_beta A_alpha)}
        {partial(delta_nu A_mu)}right)right]
        end{multline*}
        end{document}


        enter image description here



        (red lines indicate text borders)






        share|improve this answer


























          3












          3








          3







          it seems that for your long equation is multlined appropriate math environment:



          documentclass{article}
          usepackage{mathrsfs}
          usepackage{mathtools, amssymb}

          %---------------- show page layout. don't use in a real document!
          usepackage{showframe}
          renewcommandShowFrameLinethickness{0.15pt}
          renewcommand*ShowFrameColor{color{red}}
          %---------------------------------------------------------------%

          begin{document}
          begin{multline*}
          frac{partialmathscr{L}}{partial(partial_nu A_mu)}
          = -frac{1}{4} left[left(
          frac{partial(partial_sigma A_omega)}
          {partial(partial_nu A_mu)}
          - frac{partial(partial_omega A_sigma)}
          {partial(partial_nu A_mu)}right)right.
          (partial_alpha A_beta-partial_beta A_alpha) \
          + (partial_sigma A_omega - partial_omega A_sigma)
          left.left(
          frac{partial(partial_alpha A_beta)}
          {partial(partial_nu A_mu)}
          - frac{partial(partial_beta A_alpha)}
          {partial(delta_nu A_mu)}right)right]
          end{multline*}
          end{document}


          enter image description here



          (red lines indicate text borders)






          share|improve this answer













          it seems that for your long equation is multlined appropriate math environment:



          documentclass{article}
          usepackage{mathrsfs}
          usepackage{mathtools, amssymb}

          %---------------- show page layout. don't use in a real document!
          usepackage{showframe}
          renewcommandShowFrameLinethickness{0.15pt}
          renewcommand*ShowFrameColor{color{red}}
          %---------------------------------------------------------------%

          begin{document}
          begin{multline*}
          frac{partialmathscr{L}}{partial(partial_nu A_mu)}
          = -frac{1}{4} left[left(
          frac{partial(partial_sigma A_omega)}
          {partial(partial_nu A_mu)}
          - frac{partial(partial_omega A_sigma)}
          {partial(partial_nu A_mu)}right)right.
          (partial_alpha A_beta-partial_beta A_alpha) \
          + (partial_sigma A_omega - partial_omega A_sigma)
          left.left(
          frac{partial(partial_alpha A_beta)}
          {partial(partial_nu A_mu)}
          - frac{partial(partial_beta A_alpha)}
          {partial(delta_nu A_mu)}right)right]
          end{multline*}
          end{document}


          enter image description here



          (red lines indicate text borders)







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 5 at 19:52









          ZarkoZarko

          127k868166




          127k868166























              3














              You wrote,




              I Checked the code several times, it seems correct.




              Actually, it is not correct: TeX syntax rules do not allow line breaks inside a left[...right] group. The solution is not to use left and right to begin with. Instead, do use biggl[ and biggr].



              Here's a solution which uses an align* environment -- please don't use the badly deprecated eqnarray* environment -- and rearranges the multiplicative terms in the second row so that than can be aligned with the corresponding terms in the first row. And, all auto-sizing directives have been replaced with the explicit-sizing instructions biggl and biggr.



              enter image description here



              documentclass{article}
              usepackage{mathrsfs} % for 'mathscr' macro
              usepackage{mathtools}
              usepackage{%amsmath, % is loaded automatically by 'mathtools' package
              amssymb} % not 'latexsym'!

              begin{document}

              begin{align*}
              frac{partialmathscr{L}}{partial(partial_nu A_mu)}
              =-frac{1}{4} biggl[
              &biggl(frac{partial(partial_sigma A_omega)}{partial(partial_nu A_mu)}
              -frac{partial(partial_omega A_sigma)}{partial(partial_nu A_mu)}biggr)
              (partial_alpha A_beta-partial_beta A_alpha)\
              {}+{} % make '+' act like a binary, not unary, operator
              &biggl(frac{partial(partial_alpha A_beta)}{partial(partial_nu A_mu)}
              -frac{partial(partial_beta A_alpha)}{partial(delta_nu A_mu)}biggr)
              (partial_sigma A_omega - partial_omega A_sigma)
              biggr]
              end{align*}
              end{document}





              share|improve this answer






























                3














                You wrote,




                I Checked the code several times, it seems correct.




                Actually, it is not correct: TeX syntax rules do not allow line breaks inside a left[...right] group. The solution is not to use left and right to begin with. Instead, do use biggl[ and biggr].



                Here's a solution which uses an align* environment -- please don't use the badly deprecated eqnarray* environment -- and rearranges the multiplicative terms in the second row so that than can be aligned with the corresponding terms in the first row. And, all auto-sizing directives have been replaced with the explicit-sizing instructions biggl and biggr.



                enter image description here



                documentclass{article}
                usepackage{mathrsfs} % for 'mathscr' macro
                usepackage{mathtools}
                usepackage{%amsmath, % is loaded automatically by 'mathtools' package
                amssymb} % not 'latexsym'!

                begin{document}

                begin{align*}
                frac{partialmathscr{L}}{partial(partial_nu A_mu)}
                =-frac{1}{4} biggl[
                &biggl(frac{partial(partial_sigma A_omega)}{partial(partial_nu A_mu)}
                -frac{partial(partial_omega A_sigma)}{partial(partial_nu A_mu)}biggr)
                (partial_alpha A_beta-partial_beta A_alpha)\
                {}+{} % make '+' act like a binary, not unary, operator
                &biggl(frac{partial(partial_alpha A_beta)}{partial(partial_nu A_mu)}
                -frac{partial(partial_beta A_alpha)}{partial(delta_nu A_mu)}biggr)
                (partial_sigma A_omega - partial_omega A_sigma)
                biggr]
                end{align*}
                end{document}





                share|improve this answer




























                  3












                  3








                  3







                  You wrote,




                  I Checked the code several times, it seems correct.




                  Actually, it is not correct: TeX syntax rules do not allow line breaks inside a left[...right] group. The solution is not to use left and right to begin with. Instead, do use biggl[ and biggr].



                  Here's a solution which uses an align* environment -- please don't use the badly deprecated eqnarray* environment -- and rearranges the multiplicative terms in the second row so that than can be aligned with the corresponding terms in the first row. And, all auto-sizing directives have been replaced with the explicit-sizing instructions biggl and biggr.



                  enter image description here



                  documentclass{article}
                  usepackage{mathrsfs} % for 'mathscr' macro
                  usepackage{mathtools}
                  usepackage{%amsmath, % is loaded automatically by 'mathtools' package
                  amssymb} % not 'latexsym'!

                  begin{document}

                  begin{align*}
                  frac{partialmathscr{L}}{partial(partial_nu A_mu)}
                  =-frac{1}{4} biggl[
                  &biggl(frac{partial(partial_sigma A_omega)}{partial(partial_nu A_mu)}
                  -frac{partial(partial_omega A_sigma)}{partial(partial_nu A_mu)}biggr)
                  (partial_alpha A_beta-partial_beta A_alpha)\
                  {}+{} % make '+' act like a binary, not unary, operator
                  &biggl(frac{partial(partial_alpha A_beta)}{partial(partial_nu A_mu)}
                  -frac{partial(partial_beta A_alpha)}{partial(delta_nu A_mu)}biggr)
                  (partial_sigma A_omega - partial_omega A_sigma)
                  biggr]
                  end{align*}
                  end{document}





                  share|improve this answer















                  You wrote,




                  I Checked the code several times, it seems correct.




                  Actually, it is not correct: TeX syntax rules do not allow line breaks inside a left[...right] group. The solution is not to use left and right to begin with. Instead, do use biggl[ and biggr].



                  Here's a solution which uses an align* environment -- please don't use the badly deprecated eqnarray* environment -- and rearranges the multiplicative terms in the second row so that than can be aligned with the corresponding terms in the first row. And, all auto-sizing directives have been replaced with the explicit-sizing instructions biggl and biggr.



                  enter image description here



                  documentclass{article}
                  usepackage{mathrsfs} % for 'mathscr' macro
                  usepackage{mathtools}
                  usepackage{%amsmath, % is loaded automatically by 'mathtools' package
                  amssymb} % not 'latexsym'!

                  begin{document}

                  begin{align*}
                  frac{partialmathscr{L}}{partial(partial_nu A_mu)}
                  =-frac{1}{4} biggl[
                  &biggl(frac{partial(partial_sigma A_omega)}{partial(partial_nu A_mu)}
                  -frac{partial(partial_omega A_sigma)}{partial(partial_nu A_mu)}biggr)
                  (partial_alpha A_beta-partial_beta A_alpha)\
                  {}+{} % make '+' act like a binary, not unary, operator
                  &biggl(frac{partial(partial_alpha A_beta)}{partial(partial_nu A_mu)}
                  -frac{partial(partial_beta A_alpha)}{partial(delta_nu A_mu)}biggr)
                  (partial_sigma A_omega - partial_omega A_sigma)
                  biggr]
                  end{align*}
                  end{document}






                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Mar 5 at 21:12

























                  answered Mar 5 at 20:56









                  MicoMico

                  283k31387774




                  283k31387774






























                      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%2f477916%2ftrouble-with-long-equation-in-latex%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?