Trouble with long equation in LaTeXeqnarray vs alignaligning a multiline formula with the bullet of...
Should we avoid writing fiction about historical events without extensive research?
Formatting a table to look nice
Why doesn't "adolescent" take any articles in "listen to adolescent agonising"?
I encountered my boss during an on-site interview at another company. Should I bring it up when seeing him next time?
Is there a full canon version of Tyrion's jackass/honeycomb joke?
“I had a flat in the centre of town, but I didn’t like living there, so …”
Why is it "take a leak?"
Draw bounding region by list of points
GDAL GetGeoTransform Documentation -- Is there an oversight, or what am I misunderstanding?
PTIJ: What dummy is the Gemara referring to?
PTIJ: Is all laundering forbidden during the 9 days?
Is there a frame of reference in which I was born before I was conceived?
is 'sed' thread safe
PTIJ: Aharon, King of Egypt
How to fix my table, centering of columns
Levi-Civita symbol: 3D matrix
Can a Trickery Domain cleric cast a spell through the Invoke Duplicity clone while inside a Forcecage?
Practical reasons to have both a large police force and bounty hunting network?
Where is this quote about overcoming the impossible said in "Interstellar"?
Did Amazon pay $0 in taxes last year?
If nine coins are tossed, what is the probability that the number of heads is even?
Relationship between the symmetry number of a molecule as used in rotational spectroscopy and point group
Ahoy, Ye Traveler!
Meaning of word ягоза
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
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
New contributor
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
New contributor
2
Theleft...right
syntax cannot be used across lines. Generally, try to usebig
,Big
,bigg
, orBigg
instead.
– Steven B. Segletes
yesterday
1
Off-topic: Please don't load the deprecatedlatexsym
package. Instead, do load the much more completeamssymb
package.
– Mico
yesterday
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
yesterday
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
New contributor
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
New contributor
New contributor
edited yesterday
Mico
281k31385774
281k31385774
New contributor
asked yesterday
Omar SilveiraOmar Silveira
132
132
New contributor
New contributor
2
Theleft...right
syntax cannot be used across lines. Generally, try to usebig
,Big
,bigg
, orBigg
instead.
– Steven B. Segletes
yesterday
1
Off-topic: Please don't load the deprecatedlatexsym
package. Instead, do load the much more completeamssymb
package.
– Mico
yesterday
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
yesterday
add a comment |
2
Theleft...right
syntax cannot be used across lines. Generally, try to usebig
,Big
,bigg
, orBigg
instead.
– Steven B. Segletes
yesterday
1
Off-topic: Please don't load the deprecatedlatexsym
package. Instead, do load the much more completeamssymb
package.
– Mico
yesterday
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
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
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
8 hours ago
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
});
}
});
Omar Silveira is a new contributor. Be nice, and check out our Code of Conduct.
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
8 hours ago
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
8 hours ago
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 21 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
8 hours ago
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
8 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
8 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
8 hours ago
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 yesterday
ZarkoZarko
126k868165
126k868165
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 yesterday
answered yesterday
MicoMico
281k31385774
281k31385774
add a comment |
add a comment |
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.
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.
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
yesterday
1
Off-topic: Please don't load the deprecated
latexsym
package. Instead, do load the much more completeamssymb
package.– Mico
yesterday
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
yesterday