Trouble with long equation in LaTeXeqnarray vs alignaligning a multiline formula with the bullet of...

What is better: yes / no radio, or simple checkbox?

Can a Trickery Domain cleric cast a spell through the Invoke Duplicity clone while inside a Forcecage?

How to disable or uninstall iTunes under High Sierra without disabling SIP

Wardrobe above a wall with fuse boxes

Did Amazon pay $0 in taxes last year?

Sometimes a banana is just a banana

Difference between 'stomach' and 'uterus'

Is divide-by-zero a security vulnerability?

How can I be pwned if I'm not registered on the compromised site?

How do you say “my friend is throwing a party, do you wanna come?” in german

Every subset equal to original set?

I encountered my boss during an on-site interview at another company. Should I bring it up when seeing him next time?

Plagiarism of code by other PhD student

Why is it "take a leak?"

Quitting employee has privileged access to critical information

Where is the fallacy here?

Can the Shape Water Cantrip be used to manipulate blood?

Rationale to prefer local variables over instance variables?

Correct physics behind the colors on CD (compact disc)?

What is a term for a function that when called repeatedly, has the same effect as calling once?

Must 40/100G uplink ports on a 10G switch be connected to another switch?

Should I use HTTPS on a domain that will only be used for redirection?

Why is my Contribution Detail Report (native CiviCRM Core report) not accurate?

It doesn't matter the side you see it



Trouble with long equation in LaTeX


eqnarray vs alignaligning a multiline formula with the bullet of itemizeLong text in math equation in latexList of equations, including equation contents and captionLong equation design patterns in LaTeXEquation number in long equationequation with latexlong long equation alignmentLong equation in latexWhite space in writing Long fractional equation usign splitfracAligning inside equation trouble













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









New contributor




Omar Silveira is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
















  • 2





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

    – Steven B. Segletes
    yesterday






  • 1





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

    – Mico
    yesterday






  • 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
    yesterday
















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









New contributor




Omar Silveira is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
















  • 2





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

    – Steven B. Segletes
    yesterday






  • 1





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

    – Mico
    yesterday






  • 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
    yesterday














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









New contributor




Omar Silveira is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












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









New contributor




Omar Silveira is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




Omar Silveira is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited yesterday









Mico

281k31385774




281k31385774






New contributor




Omar Silveira is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked yesterday









Omar SilveiraOmar Silveira

132




132




New contributor




Omar Silveira is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Omar Silveira is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Omar Silveira is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








  • 2





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

    – Steven B. Segletes
    yesterday






  • 1





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

    – Mico
    yesterday






  • 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
    yesterday














  • 2





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

    – Steven B. Segletes
    yesterday






  • 1





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

    – Mico
    yesterday






  • 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
    yesterday








2




2





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

– Steven B. Segletes
yesterday





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

– Steven B. Segletes
yesterday




1




1





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

– Mico
yesterday





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

– Mico
yesterday




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
yesterday





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
yesterday










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
    4 hours ago





















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
      });


      }
      });






      Omar Silveira is a new contributor. Be nice, and check out our Code of Conduct.










      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
        4 hours ago


















      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
        4 hours ago
















      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 17 hours ago









      Sergei GolovanSergei Golovan

      4,3751615




      4,3751615













      • 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
        4 hours ago





















      • 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
        4 hours ago



















      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
      4 hours ago







      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
      4 hours ago













      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 yesterday









          ZarkoZarko

          126k868165




          126k868165























              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 yesterday

























                  answered yesterday









                  MicoMico

                  281k31385774




                  281k31385774






















                      Omar Silveira is a new contributor. Be nice, and check out our Code of Conduct.










                      draft saved

                      draft discarded


















                      Omar Silveira is a new contributor. Be nice, and check out our Code of Conduct.













                      Omar Silveira is a new contributor. Be nice, and check out our Code of Conduct.












                      Omar Silveira is a new contributor. Be nice, and check out our Code of Conduct.
















                      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

                      El tren de la libertad Índice Antecedentes "Porque yo decido" Desarrollo de la...

                      Castillo d'Acher Características Menú de navegación

                      Connecting two nodes from the same mother node horizontallyTikZ: What EXACTLY does the the |- notation for...