Trouble with long equation in LaTeX
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
add a comment |
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
2
Theleft...right
syntax cannot be used across lines. Generally, try to usebig
,Big
,bigg
, orBigg
instead.
– Steven B. Segletes
Mar 5 at 19:34
1
Off-topic: Please don't load the deprecatedlatexsym
package. Instead, do load the much more completeamssymb
package.
– Mico
Mar 5 at 20:57
1
Don't use the badly deprecatedeqnarray
andeqnarray*
environments. Instead, usealign
andalign*
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
add a comment |
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
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
equations amsmath mathtools
edited Mar 5 at 21:08
Mico
283k31387774
283k31387774
asked Mar 5 at 19:31
Omar SilveiraOmar Silveira
132
132
2
Theleft...right
syntax cannot be used across lines. Generally, try to usebig
,Big
,bigg
, orBigg
instead.
– Steven B. Segletes
Mar 5 at 19:34
1
Off-topic: Please don't load the deprecatedlatexsym
package. Instead, do load the much more completeamssymb
package.
– Mico
Mar 5 at 20:57
1
Don't use the badly deprecatedeqnarray
andeqnarray*
environments. Instead, usealign
andalign*
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
add a comment |
2
Theleft...right
syntax cannot be used across lines. Generally, try to usebig
,Big
,bigg
, orBigg
instead.
– Steven B. Segletes
Mar 5 at 19:34
1
Off-topic: Please don't load the deprecatedlatexsym
package. Instead, do load the much more completeamssymb
package.
– Mico
Mar 5 at 20:57
1
Don't use the badly deprecatedeqnarray
andeqnarray*
environments. Instead, usealign
andalign*
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
add a comment |
3 Answers
3
active
oldest
votes
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
:
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
add a comment |
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}
(red lines indicate text borders)
add a comment |
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
.
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}
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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
:
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
add a comment |
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
:
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
add a comment |
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
:
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
:
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
add a comment |
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
add a comment |
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}
(red lines indicate text borders)
add a comment |
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}
(red lines indicate text borders)
add a comment |
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}
(red lines indicate text borders)
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}
(red lines indicate text borders)
answered Mar 5 at 19:52
ZarkoZarko
127k868166
127k868166
add a comment |
add a comment |
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
.
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}
add a comment |
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
.
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}
add a comment |
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
.
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}
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
.
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}
edited Mar 5 at 21:12
answered Mar 5 at 20:56
MicoMico
283k31387774
283k31387774
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
2
The
left...right
syntax cannot be used across lines. Generally, try to usebig
,Big
,bigg
, orBigg
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 completeamssymb
package.– Mico
Mar 5 at 20:57
1
Don't use the badly deprecated
eqnarray
andeqnarray*
environments. Instead, usealign
andalign*
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