How to split an equation over two lines?aligning a multiline formula with the bullet of itemizesplitting an equation inside curly brackets onto 2 lines without using BigError using split within an equationsplit equation in multiple linesList of equations, including equation contents and captionCan't generate png with Error: Erroneous nesting of equation structuresSplit matrix over two linesLatex beamer, Align equation within a tableHow continue a equation next lineHow can I align this equation in the center?
Copy group of files (Filename*) to backup (Filename*.bak)
"I am [the / an] owner of a bookstore"?
Is my guitar action too high or is the bridge too high?
How far can gerrymandering go?
How to count the number of bytes in a file, grouping the same bytes?
Is having 4 bed leveling adjustment points rather than 3 problematic?
Meaning of the word "good" in context
Does friction always oppose motion?
Is it theoretically possible to hack printer using scanner tray?
Russian equivalents of 能骗就骗 (if you can cheat, then cheat)
Correct use of the the idiom 'Гнать/Катить бочку'
Early 2000s movie about time travel, protagonist travels back to save girlfriend, then into multiple points in future
Why doesn't SpaceX land boosters in Africa?
Why should I allow multiple IPs on a website for a single session?
Is it advisable to inform the CEO about his brother accessing his office?
Is there a list of all of the cases in the Talmud where תיקו ("Teiku") is said?
Active wildlife outside the window- Good or Bad for Cat psychology?
Automorphisms and epimorphisms of finite groups
How useful would a hydroelectric power plant be in the post-apocalypse world?
What was the first science fiction or fantasy multiple choice book?
Where can I find my serialized Sitecore items?
A* pathfinding algorithm too slow
Why wasn't ASCII designed with a contiguous alphanumeric character order?
Two palindromes are not enough
How to split an equation over two lines?
aligning a multiline formula with the bullet of itemizesplitting an equation inside curly brackets onto 2 lines without using BigError using split within an equationsplit equation in multiple linesList of equations, including equation contents and captionCan't generate png with Error: Erroneous nesting of equation structuresSplit matrix over two linesLatex beamer, Align equation within a tableHow continue a equation next lineHow can I align this equation in the center?
I am new to LaTeX,
Here is my formula,
documentclassarticle
begindocument
beginequation
small
Delta (h)_T+S =
prod_j=1^N left[frac theta_paired)
P(x^j,y^jright]left[fracpdr_y^j+1)P(sl)
P(dlright]
endequation
enddocument
I want the equation to be split over two lines, how can I do this?
I tried, multline
, align*
, split
, alignedat
, nothing seems to work. Please help me with this. Thank you in advance.
math-mode equations
add a comment |
I am new to LaTeX,
Here is my formula,
documentclassarticle
begindocument
beginequation
small
Delta (h)_T+S =
prod_j=1^N left[frac theta_paired)
P(x^j,y^jright]left[fracpdr_y^j+1)P(sl)
P(dlright]
endequation
enddocument
I want the equation to be split over two lines, how can I do this?
I tried, multline
, align*
, split
, alignedat
, nothing seems to work. Please help me with this. Thank you in advance.
math-mode equations
2
Welcome to TeX.SE.
– Sebastiano
Jun 20 at 20:14
How wide is the textblock? (Alternatively, please tell us which paper size is employed, and how wide the margins are.)
– Mico
Jun 21 at 3:01
add a comment |
I am new to LaTeX,
Here is my formula,
documentclassarticle
begindocument
beginequation
small
Delta (h)_T+S =
prod_j=1^N left[frac theta_paired)
P(x^j,y^jright]left[fracpdr_y^j+1)P(sl)
P(dlright]
endequation
enddocument
I want the equation to be split over two lines, how can I do this?
I tried, multline
, align*
, split
, alignedat
, nothing seems to work. Please help me with this. Thank you in advance.
math-mode equations
I am new to LaTeX,
Here is my formula,
documentclassarticle
begindocument
beginequation
small
Delta (h)_T+S =
prod_j=1^N left[frac theta_paired)
P(x^j,y^jright]left[fracpdr_y^j+1)P(sl)
P(dlright]
endequation
enddocument
I want the equation to be split over two lines, how can I do this?
I tried, multline
, align*
, split
, alignedat
, nothing seems to work. Please help me with this. Thank you in advance.
math-mode equations
math-mode equations
edited Jun 21 at 20:14
AboAmmar
36k3 gold badges30 silver badges86 bronze badges
36k3 gold badges30 silver badges86 bronze badges
asked Jun 20 at 20:01
Shilpa JanarthananShilpa Janarthanan
262 bronze badges
262 bronze badges
2
Welcome to TeX.SE.
– Sebastiano
Jun 20 at 20:14
How wide is the textblock? (Alternatively, please tell us which paper size is employed, and how wide the margins are.)
– Mico
Jun 21 at 3:01
add a comment |
2
Welcome to TeX.SE.
– Sebastiano
Jun 20 at 20:14
How wide is the textblock? (Alternatively, please tell us which paper size is employed, and how wide the margins are.)
– Mico
Jun 21 at 3:01
2
2
Welcome to TeX.SE.
– Sebastiano
Jun 20 at 20:14
Welcome to TeX.SE.
– Sebastiano
Jun 20 at 20:14
How wide is the textblock? (Alternatively, please tell us which paper size is employed, and how wide the margins are.)
– Mico
Jun 21 at 3:01
How wide is the textblock? (Alternatively, please tell us which paper size is employed, and how wide the margins are.)
– Mico
Jun 21 at 3:01
add a comment |
6 Answers
6
active
oldest
votes
Here there is my proposal to split your equation.
EDIT: The slight change in my code is due an additional cdot
.
documentclassarticle
usepackage[margin=2cm]geometry
usepackagemathtools,amssymb
begindocument
beginequation
beginsplit
Delta (h)_T+S & =prod_j=1^N left[frac theta_mathrmpaired)
P(x^j,y^jright] \
& cdot left[fracpdl_x^j-1)P(dr_y^j)P(dr_y^jP(sl)
P(dlright]
endsplit
endequation
enddocument
1
Thank you so much, this works fine.
– Shilpa Janarthanan
Jun 20 at 20:14
1
This is unusual typesetting. You've put the line break in a sensible place, but I've never seen anybody write the operator on both lines.blah cdot \ blah
orblah \ cdot blah
are normal.
– David Richerby
Jun 21 at 14:35
3
@DavidRicherby blogs.msdn.microsoft.com/murrays/2007/09/01/… suggests that this is "popular in Russian mathematical typography".
– Marcel Krüger
Jun 22 at 9:18
add a comment |
The brackets are surplus here, the fraction is a group by itself, so you don't need extra grouping. If I use brackets, I will enclose the whole formula to the right of the =
sign into a pair of brackets. I also used biggl[
and biggr]
for easy splitting. Finally, as @Sebastiano suggested, use mathrm
for text.
Note: you didn't tell us how thick the margins are, so I assumed 1in
. If my answer is still too wide, uncomment the small
block.
documentclassarticle
usepackageamsmath
usepackage[margin=1in]geometry
begindocument
%small
beginequation
beginsplit Delta (h)_T+S &=
prod_j=1^N biggl[frac theta_mathrmpaired)
P(x^j,y^j times \
&phantom=fracpdl_x^j-1)P(dr_y^j)P(dr_y^jP(sl)
P(dlbiggr]
endsplit
endequation
%
enddocument
1
I'm a little late for a positive vote on your good work.
– Sebastiano
Jun 20 at 20:52
1
Thank you, you were the fastest.
– AboAmmar
Jun 20 at 20:57
If possible, I'd push the second line to the right so it began to the right of the product sign. That would visually cue that it's a part of the product (though the brackets and the presence of $j$s in the second line do make this semantically clear).
– David Richerby
Jun 21 at 14:36
add a comment |
A way to put the equation on a single line, with the splitfrac
command from mathtools
, the medmath
command from nccmath
and some adjustment for the delimiters:
documentclassarticle
usepackage[margin=2cm]geometry
usepackagemathtools, nccmath, amssymb
begindocument
beginequation
Delta (h)_T+S =prod_j=1^N left[frac P(x^j,y^jmidtheta_mathrmpaired)
P(x^j,y^jmidtheta_mathrmunpaired)right]cdot
left[fracmedmathsplitfracP(bp)_x^j,y^j
Pbigl(bp_x^j,y^jmid pbp_x^j-1,y^j+1bigr)P(dl_x^j) P(dl_x^jmid pdl_x^j-1)Pbigl(dr_y^jbigr)Pbigl(dr_y^jmid pdr_y^j+1bigr)rule[-1.5ex]0pt1exP(sl)
P(dlright]
endequation
enddocument
I know the command splitfrac but I did not want to use it because it is not my favorite. +1
– Sebastiano
Jun 20 at 20:59
2
@Sebastiano: I think it mainly depends on the case at hand. Here, combined with medmath and some vertical space tweaking, I find it doesn't look so bad
– Bernard
Jun 20 at 21:04
De gustibus non disputandum est: There's no discussion of the tastes. :-)
– Sebastiano
Jun 20 at 21:10
2
Needless to translate – when I was a student, I helped some highschool students in Latin ;o)
– Bernard
Jun 20 at 21:16
add a comment |
one more alternative, with use of mathtools
and nccmath
:
documentclassarticle
usepackagegeometry
usepackagemathtools, nccmath
%---------------- show page layout. don't use in a real document!
usepackageshowframe
renewcommandShowFrameLinethickness0.15pt
renewcommand*ShowFrameColorcolorred
%---------------------------------------------------------------%
begindocument
beginequation
medmath
beginmultlined
Delta (h)_T+S
= prod_j=1^N Biggl[fracP(x^j,y^jmidtheta_mathrmpaired)
P(x^j,y^jmidtheta_mathrmunpaired)Biggr]\
cdot Biggl[fracP(bp)_x^j,y^j P(bp_x^j,y^jmid pbp_x^j-1,y^j+1) P(dl_x^j) P(dl_x^jmid pdl_x^j-1)P(dr_y^j)P(dr_y^j
P(sl) P(dlmid sl) P(sr) P(drmid sr)Biggr]
endmultlined
endequation
enddocument
1
Fast as lightning...:-) +1.
– Sebastiano
Jun 20 at 20:51
add a comment |
Here's a multlined
-based solution. It also uses mid
rather than |
to denote conditioning, and it "snugs up" the subscript terms to dr
.
documentclassarticle
usepackage[a4paper,margin=2.5cm]geometry % make suitable page and margin choices
usepackagemathtools % for 'multlined' environment
begindocument
beginequation
renewcommand!mkern-2mu % default: mkern-3mu
beginmultlined
Delta(h)_T+S = prod_j=1^N biggl[
frac P(x^j!,y^jmid theta_mathrmpaired)%
P(x^j!,y^jmid theta_mathrmunpaired)\
times
fracP(bp)_x^j!,y^j
P(bp_x^j!,y^jmid pbp_x^j-1!,y^j+1)
P(dl_x^j) P(dl_x^jmid pdl_x^j-1)
P(dr_!y^j)P(dr_!y^jmid pdr_!y^j+1)%
P(sl) P(dlmid sl) P(sr) P(drmid sr) biggr]
endmultlined
endequation
enddocument
add a comment |
With multiline
one can insert \
at the locations where the line should be broken.
Multiletter subscripts ought not be set in math italics, the kerning is wrong. I suggest to warp them in mathrm
The fontsize change needs to be outside the equation and without following it.
small
was still a bit to large, but with footnotesize
the equation fits even without cheating and changing the margin sizes.
documentclassarticle
usepackageamsmath
begindocument
footnotesize
beginmultline
Delta (h)_T+S =
prod_j=1^N left[frac theta_mathrmpaired)
P(x^j,y^jright]cdot\
left[fracpdl_x^j-1)P(dr_y^j)P(dr_y^jP(sl)
P(dlright]
endmultline
enddocument
1
Thanks you so much, this works fine as well.
– Shilpa Janarthanan
Jun 20 at 20:15
@ShilpaJanarthanan Was my pleasure!
– gigi
Jun 20 at 20:15
Can you please tell me, how to add cdot in the above code, to show the continuity of the equation?
– Shilpa Janarthanan
Jun 20 at 20:24
@ShilpaJanarthanan Please check now. Also please don't have whole words in math italic.
– gigi
Jun 20 at 20:30
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%2f496697%2fhow-to-split-an-equation-over-two-lines%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
6 Answers
6
active
oldest
votes
6 Answers
6
active
oldest
votes
active
oldest
votes
active
oldest
votes
Here there is my proposal to split your equation.
EDIT: The slight change in my code is due an additional cdot
.
documentclassarticle
usepackage[margin=2cm]geometry
usepackagemathtools,amssymb
begindocument
beginequation
beginsplit
Delta (h)_T+S & =prod_j=1^N left[frac theta_mathrmpaired)
P(x^j,y^jright] \
& cdot left[fracpdl_x^j-1)P(dr_y^j)P(dr_y^jP(sl)
P(dlright]
endsplit
endequation
enddocument
1
Thank you so much, this works fine.
– Shilpa Janarthanan
Jun 20 at 20:14
1
This is unusual typesetting. You've put the line break in a sensible place, but I've never seen anybody write the operator on both lines.blah cdot \ blah
orblah \ cdot blah
are normal.
– David Richerby
Jun 21 at 14:35
3
@DavidRicherby blogs.msdn.microsoft.com/murrays/2007/09/01/… suggests that this is "popular in Russian mathematical typography".
– Marcel Krüger
Jun 22 at 9:18
add a comment |
Here there is my proposal to split your equation.
EDIT: The slight change in my code is due an additional cdot
.
documentclassarticle
usepackage[margin=2cm]geometry
usepackagemathtools,amssymb
begindocument
beginequation
beginsplit
Delta (h)_T+S & =prod_j=1^N left[frac theta_mathrmpaired)
P(x^j,y^jright] \
& cdot left[fracpdl_x^j-1)P(dr_y^j)P(dr_y^jP(sl)
P(dlright]
endsplit
endequation
enddocument
1
Thank you so much, this works fine.
– Shilpa Janarthanan
Jun 20 at 20:14
1
This is unusual typesetting. You've put the line break in a sensible place, but I've never seen anybody write the operator on both lines.blah cdot \ blah
orblah \ cdot blah
are normal.
– David Richerby
Jun 21 at 14:35
3
@DavidRicherby blogs.msdn.microsoft.com/murrays/2007/09/01/… suggests that this is "popular in Russian mathematical typography".
– Marcel Krüger
Jun 22 at 9:18
add a comment |
Here there is my proposal to split your equation.
EDIT: The slight change in my code is due an additional cdot
.
documentclassarticle
usepackage[margin=2cm]geometry
usepackagemathtools,amssymb
begindocument
beginequation
beginsplit
Delta (h)_T+S & =prod_j=1^N left[frac theta_mathrmpaired)
P(x^j,y^jright] \
& cdot left[fracpdl_x^j-1)P(dr_y^j)P(dr_y^jP(sl)
P(dlright]
endsplit
endequation
enddocument
Here there is my proposal to split your equation.
EDIT: The slight change in my code is due an additional cdot
.
documentclassarticle
usepackage[margin=2cm]geometry
usepackagemathtools,amssymb
begindocument
beginequation
beginsplit
Delta (h)_T+S & =prod_j=1^N left[frac theta_mathrmpaired)
P(x^j,y^jright] \
& cdot left[fracpdl_x^j-1)P(dr_y^j)P(dr_y^jP(sl)
P(dlright]
endsplit
endequation
enddocument
edited Jun 22 at 12:07
answered Jun 20 at 20:10
SebastianoSebastiano
13.2k5 gold badges25 silver badges71 bronze badges
13.2k5 gold badges25 silver badges71 bronze badges
1
Thank you so much, this works fine.
– Shilpa Janarthanan
Jun 20 at 20:14
1
This is unusual typesetting. You've put the line break in a sensible place, but I've never seen anybody write the operator on both lines.blah cdot \ blah
orblah \ cdot blah
are normal.
– David Richerby
Jun 21 at 14:35
3
@DavidRicherby blogs.msdn.microsoft.com/murrays/2007/09/01/… suggests that this is "popular in Russian mathematical typography".
– Marcel Krüger
Jun 22 at 9:18
add a comment |
1
Thank you so much, this works fine.
– Shilpa Janarthanan
Jun 20 at 20:14
1
This is unusual typesetting. You've put the line break in a sensible place, but I've never seen anybody write the operator on both lines.blah cdot \ blah
orblah \ cdot blah
are normal.
– David Richerby
Jun 21 at 14:35
3
@DavidRicherby blogs.msdn.microsoft.com/murrays/2007/09/01/… suggests that this is "popular in Russian mathematical typography".
– Marcel Krüger
Jun 22 at 9:18
1
1
Thank you so much, this works fine.
– Shilpa Janarthanan
Jun 20 at 20:14
Thank you so much, this works fine.
– Shilpa Janarthanan
Jun 20 at 20:14
1
1
This is unusual typesetting. You've put the line break in a sensible place, but I've never seen anybody write the operator on both lines.
blah cdot \ blah
or blah \ cdot blah
are normal.– David Richerby
Jun 21 at 14:35
This is unusual typesetting. You've put the line break in a sensible place, but I've never seen anybody write the operator on both lines.
blah cdot \ blah
or blah \ cdot blah
are normal.– David Richerby
Jun 21 at 14:35
3
3
@DavidRicherby blogs.msdn.microsoft.com/murrays/2007/09/01/… suggests that this is "popular in Russian mathematical typography".
– Marcel Krüger
Jun 22 at 9:18
@DavidRicherby blogs.msdn.microsoft.com/murrays/2007/09/01/… suggests that this is "popular in Russian mathematical typography".
– Marcel Krüger
Jun 22 at 9:18
add a comment |
The brackets are surplus here, the fraction is a group by itself, so you don't need extra grouping. If I use brackets, I will enclose the whole formula to the right of the =
sign into a pair of brackets. I also used biggl[
and biggr]
for easy splitting. Finally, as @Sebastiano suggested, use mathrm
for text.
Note: you didn't tell us how thick the margins are, so I assumed 1in
. If my answer is still too wide, uncomment the small
block.
documentclassarticle
usepackageamsmath
usepackage[margin=1in]geometry
begindocument
%small
beginequation
beginsplit Delta (h)_T+S &=
prod_j=1^N biggl[frac theta_mathrmpaired)
P(x^j,y^j times \
&phantom=fracpdl_x^j-1)P(dr_y^j)P(dr_y^jP(sl)
P(dlbiggr]
endsplit
endequation
%
enddocument
1
I'm a little late for a positive vote on your good work.
– Sebastiano
Jun 20 at 20:52
1
Thank you, you were the fastest.
– AboAmmar
Jun 20 at 20:57
If possible, I'd push the second line to the right so it began to the right of the product sign. That would visually cue that it's a part of the product (though the brackets and the presence of $j$s in the second line do make this semantically clear).
– David Richerby
Jun 21 at 14:36
add a comment |
The brackets are surplus here, the fraction is a group by itself, so you don't need extra grouping. If I use brackets, I will enclose the whole formula to the right of the =
sign into a pair of brackets. I also used biggl[
and biggr]
for easy splitting. Finally, as @Sebastiano suggested, use mathrm
for text.
Note: you didn't tell us how thick the margins are, so I assumed 1in
. If my answer is still too wide, uncomment the small
block.
documentclassarticle
usepackageamsmath
usepackage[margin=1in]geometry
begindocument
%small
beginequation
beginsplit Delta (h)_T+S &=
prod_j=1^N biggl[frac theta_mathrmpaired)
P(x^j,y^j times \
&phantom=fracpdl_x^j-1)P(dr_y^j)P(dr_y^jP(sl)
P(dlbiggr]
endsplit
endequation
%
enddocument
1
I'm a little late for a positive vote on your good work.
– Sebastiano
Jun 20 at 20:52
1
Thank you, you were the fastest.
– AboAmmar
Jun 20 at 20:57
If possible, I'd push the second line to the right so it began to the right of the product sign. That would visually cue that it's a part of the product (though the brackets and the presence of $j$s in the second line do make this semantically clear).
– David Richerby
Jun 21 at 14:36
add a comment |
The brackets are surplus here, the fraction is a group by itself, so you don't need extra grouping. If I use brackets, I will enclose the whole formula to the right of the =
sign into a pair of brackets. I also used biggl[
and biggr]
for easy splitting. Finally, as @Sebastiano suggested, use mathrm
for text.
Note: you didn't tell us how thick the margins are, so I assumed 1in
. If my answer is still too wide, uncomment the small
block.
documentclassarticle
usepackageamsmath
usepackage[margin=1in]geometry
begindocument
%small
beginequation
beginsplit Delta (h)_T+S &=
prod_j=1^N biggl[frac theta_mathrmpaired)
P(x^j,y^j times \
&phantom=fracpdl_x^j-1)P(dr_y^j)P(dr_y^jP(sl)
P(dlbiggr]
endsplit
endequation
%
enddocument
The brackets are surplus here, the fraction is a group by itself, so you don't need extra grouping. If I use brackets, I will enclose the whole formula to the right of the =
sign into a pair of brackets. I also used biggl[
and biggr]
for easy splitting. Finally, as @Sebastiano suggested, use mathrm
for text.
Note: you didn't tell us how thick the margins are, so I assumed 1in
. If my answer is still too wide, uncomment the small
block.
documentclassarticle
usepackageamsmath
usepackage[margin=1in]geometry
begindocument
%small
beginequation
beginsplit Delta (h)_T+S &=
prod_j=1^N biggl[frac theta_mathrmpaired)
P(x^j,y^j times \
&phantom=fracpdl_x^j-1)P(dr_y^j)P(dr_y^jP(sl)
P(dlbiggr]
endsplit
endequation
%
enddocument
edited Jun 20 at 20:55
answered Jun 20 at 20:41
AboAmmarAboAmmar
36k3 gold badges30 silver badges86 bronze badges
36k3 gold badges30 silver badges86 bronze badges
1
I'm a little late for a positive vote on your good work.
– Sebastiano
Jun 20 at 20:52
1
Thank you, you were the fastest.
– AboAmmar
Jun 20 at 20:57
If possible, I'd push the second line to the right so it began to the right of the product sign. That would visually cue that it's a part of the product (though the brackets and the presence of $j$s in the second line do make this semantically clear).
– David Richerby
Jun 21 at 14:36
add a comment |
1
I'm a little late for a positive vote on your good work.
– Sebastiano
Jun 20 at 20:52
1
Thank you, you were the fastest.
– AboAmmar
Jun 20 at 20:57
If possible, I'd push the second line to the right so it began to the right of the product sign. That would visually cue that it's a part of the product (though the brackets and the presence of $j$s in the second line do make this semantically clear).
– David Richerby
Jun 21 at 14:36
1
1
I'm a little late for a positive vote on your good work.
– Sebastiano
Jun 20 at 20:52
I'm a little late for a positive vote on your good work.
– Sebastiano
Jun 20 at 20:52
1
1
Thank you, you were the fastest.
– AboAmmar
Jun 20 at 20:57
Thank you, you were the fastest.
– AboAmmar
Jun 20 at 20:57
If possible, I'd push the second line to the right so it began to the right of the product sign. That would visually cue that it's a part of the product (though the brackets and the presence of $j$s in the second line do make this semantically clear).
– David Richerby
Jun 21 at 14:36
If possible, I'd push the second line to the right so it began to the right of the product sign. That would visually cue that it's a part of the product (though the brackets and the presence of $j$s in the second line do make this semantically clear).
– David Richerby
Jun 21 at 14:36
add a comment |
A way to put the equation on a single line, with the splitfrac
command from mathtools
, the medmath
command from nccmath
and some adjustment for the delimiters:
documentclassarticle
usepackage[margin=2cm]geometry
usepackagemathtools, nccmath, amssymb
begindocument
beginequation
Delta (h)_T+S =prod_j=1^N left[frac P(x^j,y^jmidtheta_mathrmpaired)
P(x^j,y^jmidtheta_mathrmunpaired)right]cdot
left[fracmedmathsplitfracP(bp)_x^j,y^j
Pbigl(bp_x^j,y^jmid pbp_x^j-1,y^j+1bigr)P(dl_x^j) P(dl_x^jmid pdl_x^j-1)Pbigl(dr_y^jbigr)Pbigl(dr_y^jmid pdr_y^j+1bigr)rule[-1.5ex]0pt1exP(sl)
P(dlright]
endequation
enddocument
I know the command splitfrac but I did not want to use it because it is not my favorite. +1
– Sebastiano
Jun 20 at 20:59
2
@Sebastiano: I think it mainly depends on the case at hand. Here, combined with medmath and some vertical space tweaking, I find it doesn't look so bad
– Bernard
Jun 20 at 21:04
De gustibus non disputandum est: There's no discussion of the tastes. :-)
– Sebastiano
Jun 20 at 21:10
2
Needless to translate – when I was a student, I helped some highschool students in Latin ;o)
– Bernard
Jun 20 at 21:16
add a comment |
A way to put the equation on a single line, with the splitfrac
command from mathtools
, the medmath
command from nccmath
and some adjustment for the delimiters:
documentclassarticle
usepackage[margin=2cm]geometry
usepackagemathtools, nccmath, amssymb
begindocument
beginequation
Delta (h)_T+S =prod_j=1^N left[frac P(x^j,y^jmidtheta_mathrmpaired)
P(x^j,y^jmidtheta_mathrmunpaired)right]cdot
left[fracmedmathsplitfracP(bp)_x^j,y^j
Pbigl(bp_x^j,y^jmid pbp_x^j-1,y^j+1bigr)P(dl_x^j) P(dl_x^jmid pdl_x^j-1)Pbigl(dr_y^jbigr)Pbigl(dr_y^jmid pdr_y^j+1bigr)rule[-1.5ex]0pt1exP(sl)
P(dlright]
endequation
enddocument
I know the command splitfrac but I did not want to use it because it is not my favorite. +1
– Sebastiano
Jun 20 at 20:59
2
@Sebastiano: I think it mainly depends on the case at hand. Here, combined with medmath and some vertical space tweaking, I find it doesn't look so bad
– Bernard
Jun 20 at 21:04
De gustibus non disputandum est: There's no discussion of the tastes. :-)
– Sebastiano
Jun 20 at 21:10
2
Needless to translate – when I was a student, I helped some highschool students in Latin ;o)
– Bernard
Jun 20 at 21:16
add a comment |
A way to put the equation on a single line, with the splitfrac
command from mathtools
, the medmath
command from nccmath
and some adjustment for the delimiters:
documentclassarticle
usepackage[margin=2cm]geometry
usepackagemathtools, nccmath, amssymb
begindocument
beginequation
Delta (h)_T+S =prod_j=1^N left[frac P(x^j,y^jmidtheta_mathrmpaired)
P(x^j,y^jmidtheta_mathrmunpaired)right]cdot
left[fracmedmathsplitfracP(bp)_x^j,y^j
Pbigl(bp_x^j,y^jmid pbp_x^j-1,y^j+1bigr)P(dl_x^j) P(dl_x^jmid pdl_x^j-1)Pbigl(dr_y^jbigr)Pbigl(dr_y^jmid pdr_y^j+1bigr)rule[-1.5ex]0pt1exP(sl)
P(dlright]
endequation
enddocument
A way to put the equation on a single line, with the splitfrac
command from mathtools
, the medmath
command from nccmath
and some adjustment for the delimiters:
documentclassarticle
usepackage[margin=2cm]geometry
usepackagemathtools, nccmath, amssymb
begindocument
beginequation
Delta (h)_T+S =prod_j=1^N left[frac P(x^j,y^jmidtheta_mathrmpaired)
P(x^j,y^jmidtheta_mathrmunpaired)right]cdot
left[fracmedmathsplitfracP(bp)_x^j,y^j
Pbigl(bp_x^j,y^jmid pbp_x^j-1,y^j+1bigr)P(dl_x^j) P(dl_x^jmid pdl_x^j-1)Pbigl(dr_y^jbigr)Pbigl(dr_y^jmid pdr_y^j+1bigr)rule[-1.5ex]0pt1exP(sl)
P(dlright]
endequation
enddocument
edited Jun 21 at 8:50
answered Jun 20 at 20:58
BernardBernard
182k7 gold badges83 silver badges216 bronze badges
182k7 gold badges83 silver badges216 bronze badges
I know the command splitfrac but I did not want to use it because it is not my favorite. +1
– Sebastiano
Jun 20 at 20:59
2
@Sebastiano: I think it mainly depends on the case at hand. Here, combined with medmath and some vertical space tweaking, I find it doesn't look so bad
– Bernard
Jun 20 at 21:04
De gustibus non disputandum est: There's no discussion of the tastes. :-)
– Sebastiano
Jun 20 at 21:10
2
Needless to translate – when I was a student, I helped some highschool students in Latin ;o)
– Bernard
Jun 20 at 21:16
add a comment |
I know the command splitfrac but I did not want to use it because it is not my favorite. +1
– Sebastiano
Jun 20 at 20:59
2
@Sebastiano: I think it mainly depends on the case at hand. Here, combined with medmath and some vertical space tweaking, I find it doesn't look so bad
– Bernard
Jun 20 at 21:04
De gustibus non disputandum est: There's no discussion of the tastes. :-)
– Sebastiano
Jun 20 at 21:10
2
Needless to translate – when I was a student, I helped some highschool students in Latin ;o)
– Bernard
Jun 20 at 21:16
I know the command splitfrac but I did not want to use it because it is not my favorite. +1
– Sebastiano
Jun 20 at 20:59
I know the command splitfrac but I did not want to use it because it is not my favorite. +1
– Sebastiano
Jun 20 at 20:59
2
2
@Sebastiano: I think it mainly depends on the case at hand. Here, combined with medmath and some vertical space tweaking, I find it doesn't look so bad
– Bernard
Jun 20 at 21:04
@Sebastiano: I think it mainly depends on the case at hand. Here, combined with medmath and some vertical space tweaking, I find it doesn't look so bad
– Bernard
Jun 20 at 21:04
De gustibus non disputandum est: There's no discussion of the tastes. :-)
– Sebastiano
Jun 20 at 21:10
De gustibus non disputandum est: There's no discussion of the tastes. :-)
– Sebastiano
Jun 20 at 21:10
2
2
Needless to translate – when I was a student, I helped some highschool students in Latin ;o)
– Bernard
Jun 20 at 21:16
Needless to translate – when I was a student, I helped some highschool students in Latin ;o)
– Bernard
Jun 20 at 21:16
add a comment |
one more alternative, with use of mathtools
and nccmath
:
documentclassarticle
usepackagegeometry
usepackagemathtools, nccmath
%---------------- show page layout. don't use in a real document!
usepackageshowframe
renewcommandShowFrameLinethickness0.15pt
renewcommand*ShowFrameColorcolorred
%---------------------------------------------------------------%
begindocument
beginequation
medmath
beginmultlined
Delta (h)_T+S
= prod_j=1^N Biggl[fracP(x^j,y^jmidtheta_mathrmpaired)
P(x^j,y^jmidtheta_mathrmunpaired)Biggr]\
cdot Biggl[fracP(bp)_x^j,y^j P(bp_x^j,y^jmid pbp_x^j-1,y^j+1) P(dl_x^j) P(dl_x^jmid pdl_x^j-1)P(dr_y^j)P(dr_y^j
P(sl) P(dlmid sl) P(sr) P(drmid sr)Biggr]
endmultlined
endequation
enddocument
1
Fast as lightning...:-) +1.
– Sebastiano
Jun 20 at 20:51
add a comment |
one more alternative, with use of mathtools
and nccmath
:
documentclassarticle
usepackagegeometry
usepackagemathtools, nccmath
%---------------- show page layout. don't use in a real document!
usepackageshowframe
renewcommandShowFrameLinethickness0.15pt
renewcommand*ShowFrameColorcolorred
%---------------------------------------------------------------%
begindocument
beginequation
medmath
beginmultlined
Delta (h)_T+S
= prod_j=1^N Biggl[fracP(x^j,y^jmidtheta_mathrmpaired)
P(x^j,y^jmidtheta_mathrmunpaired)Biggr]\
cdot Biggl[fracP(bp)_x^j,y^j P(bp_x^j,y^jmid pbp_x^j-1,y^j+1) P(dl_x^j) P(dl_x^jmid pdl_x^j-1)P(dr_y^j)P(dr_y^j
P(sl) P(dlmid sl) P(sr) P(drmid sr)Biggr]
endmultlined
endequation
enddocument
1
Fast as lightning...:-) +1.
– Sebastiano
Jun 20 at 20:51
add a comment |
one more alternative, with use of mathtools
and nccmath
:
documentclassarticle
usepackagegeometry
usepackagemathtools, nccmath
%---------------- show page layout. don't use in a real document!
usepackageshowframe
renewcommandShowFrameLinethickness0.15pt
renewcommand*ShowFrameColorcolorred
%---------------------------------------------------------------%
begindocument
beginequation
medmath
beginmultlined
Delta (h)_T+S
= prod_j=1^N Biggl[fracP(x^j,y^jmidtheta_mathrmpaired)
P(x^j,y^jmidtheta_mathrmunpaired)Biggr]\
cdot Biggl[fracP(bp)_x^j,y^j P(bp_x^j,y^jmid pbp_x^j-1,y^j+1) P(dl_x^j) P(dl_x^jmid pdl_x^j-1)P(dr_y^j)P(dr_y^j
P(sl) P(dlmid sl) P(sr) P(drmid sr)Biggr]
endmultlined
endequation
enddocument
one more alternative, with use of mathtools
and nccmath
:
documentclassarticle
usepackagegeometry
usepackagemathtools, nccmath
%---------------- show page layout. don't use in a real document!
usepackageshowframe
renewcommandShowFrameLinethickness0.15pt
renewcommand*ShowFrameColorcolorred
%---------------------------------------------------------------%
begindocument
beginequation
medmath
beginmultlined
Delta (h)_T+S
= prod_j=1^N Biggl[fracP(x^j,y^jmidtheta_mathrmpaired)
P(x^j,y^jmidtheta_mathrmunpaired)Biggr]\
cdot Biggl[fracP(bp)_x^j,y^j P(bp_x^j,y^jmid pbp_x^j-1,y^j+1) P(dl_x^j) P(dl_x^jmid pdl_x^j-1)P(dr_y^j)P(dr_y^j
P(sl) P(dlmid sl) P(sr) P(drmid sr)Biggr]
endmultlined
endequation
enddocument
answered Jun 20 at 20:49
ZarkoZarko
138k8 gold badges75 silver badges184 bronze badges
138k8 gold badges75 silver badges184 bronze badges
1
Fast as lightning...:-) +1.
– Sebastiano
Jun 20 at 20:51
add a comment |
1
Fast as lightning...:-) +1.
– Sebastiano
Jun 20 at 20:51
1
1
Fast as lightning...:-) +1.
– Sebastiano
Jun 20 at 20:51
Fast as lightning...:-) +1.
– Sebastiano
Jun 20 at 20:51
add a comment |
Here's a multlined
-based solution. It also uses mid
rather than |
to denote conditioning, and it "snugs up" the subscript terms to dr
.
documentclassarticle
usepackage[a4paper,margin=2.5cm]geometry % make suitable page and margin choices
usepackagemathtools % for 'multlined' environment
begindocument
beginequation
renewcommand!mkern-2mu % default: mkern-3mu
beginmultlined
Delta(h)_T+S = prod_j=1^N biggl[
frac P(x^j!,y^jmid theta_mathrmpaired)%
P(x^j!,y^jmid theta_mathrmunpaired)\
times
fracP(bp)_x^j!,y^j
P(bp_x^j!,y^jmid pbp_x^j-1!,y^j+1)
P(dl_x^j) P(dl_x^jmid pdl_x^j-1)
P(dr_!y^j)P(dr_!y^jmid pdr_!y^j+1)%
P(sl) P(dlmid sl) P(sr) P(drmid sr) biggr]
endmultlined
endequation
enddocument
add a comment |
Here's a multlined
-based solution. It also uses mid
rather than |
to denote conditioning, and it "snugs up" the subscript terms to dr
.
documentclassarticle
usepackage[a4paper,margin=2.5cm]geometry % make suitable page and margin choices
usepackagemathtools % for 'multlined' environment
begindocument
beginequation
renewcommand!mkern-2mu % default: mkern-3mu
beginmultlined
Delta(h)_T+S = prod_j=1^N biggl[
frac P(x^j!,y^jmid theta_mathrmpaired)%
P(x^j!,y^jmid theta_mathrmunpaired)\
times
fracP(bp)_x^j!,y^j
P(bp_x^j!,y^jmid pbp_x^j-1!,y^j+1)
P(dl_x^j) P(dl_x^jmid pdl_x^j-1)
P(dr_!y^j)P(dr_!y^jmid pdr_!y^j+1)%
P(sl) P(dlmid sl) P(sr) P(drmid sr) biggr]
endmultlined
endequation
enddocument
add a comment |
Here's a multlined
-based solution. It also uses mid
rather than |
to denote conditioning, and it "snugs up" the subscript terms to dr
.
documentclassarticle
usepackage[a4paper,margin=2.5cm]geometry % make suitable page and margin choices
usepackagemathtools % for 'multlined' environment
begindocument
beginequation
renewcommand!mkern-2mu % default: mkern-3mu
beginmultlined
Delta(h)_T+S = prod_j=1^N biggl[
frac P(x^j!,y^jmid theta_mathrmpaired)%
P(x^j!,y^jmid theta_mathrmunpaired)\
times
fracP(bp)_x^j!,y^j
P(bp_x^j!,y^jmid pbp_x^j-1!,y^j+1)
P(dl_x^j) P(dl_x^jmid pdl_x^j-1)
P(dr_!y^j)P(dr_!y^jmid pdr_!y^j+1)%
P(sl) P(dlmid sl) P(sr) P(drmid sr) biggr]
endmultlined
endequation
enddocument
Here's a multlined
-based solution. It also uses mid
rather than |
to denote conditioning, and it "snugs up" the subscript terms to dr
.
documentclassarticle
usepackage[a4paper,margin=2.5cm]geometry % make suitable page and margin choices
usepackagemathtools % for 'multlined' environment
begindocument
beginequation
renewcommand!mkern-2mu % default: mkern-3mu
beginmultlined
Delta(h)_T+S = prod_j=1^N biggl[
frac P(x^j!,y^jmid theta_mathrmpaired)%
P(x^j!,y^jmid theta_mathrmunpaired)\
times
fracP(bp)_x^j!,y^j
P(bp_x^j!,y^jmid pbp_x^j-1!,y^j+1)
P(dl_x^j) P(dl_x^jmid pdl_x^j-1)
P(dr_!y^j)P(dr_!y^jmid pdr_!y^j+1)%
P(sl) P(dlmid sl) P(sr) P(drmid sr) biggr]
endmultlined
endequation
enddocument
answered Jun 21 at 3:18
MicoMico
295k32 gold badges410 silver badges806 bronze badges
295k32 gold badges410 silver badges806 bronze badges
add a comment |
add a comment |
With multiline
one can insert \
at the locations where the line should be broken.
Multiletter subscripts ought not be set in math italics, the kerning is wrong. I suggest to warp them in mathrm
The fontsize change needs to be outside the equation and without following it.
small
was still a bit to large, but with footnotesize
the equation fits even without cheating and changing the margin sizes.
documentclassarticle
usepackageamsmath
begindocument
footnotesize
beginmultline
Delta (h)_T+S =
prod_j=1^N left[frac theta_mathrmpaired)
P(x^j,y^jright]cdot\
left[fracpdl_x^j-1)P(dr_y^j)P(dr_y^jP(sl)
P(dlright]
endmultline
enddocument
1
Thanks you so much, this works fine as well.
– Shilpa Janarthanan
Jun 20 at 20:15
@ShilpaJanarthanan Was my pleasure!
– gigi
Jun 20 at 20:15
Can you please tell me, how to add cdot in the above code, to show the continuity of the equation?
– Shilpa Janarthanan
Jun 20 at 20:24
@ShilpaJanarthanan Please check now. Also please don't have whole words in math italic.
– gigi
Jun 20 at 20:30
add a comment |
With multiline
one can insert \
at the locations where the line should be broken.
Multiletter subscripts ought not be set in math italics, the kerning is wrong. I suggest to warp them in mathrm
The fontsize change needs to be outside the equation and without following it.
small
was still a bit to large, but with footnotesize
the equation fits even without cheating and changing the margin sizes.
documentclassarticle
usepackageamsmath
begindocument
footnotesize
beginmultline
Delta (h)_T+S =
prod_j=1^N left[frac theta_mathrmpaired)
P(x^j,y^jright]cdot\
left[fracpdl_x^j-1)P(dr_y^j)P(dr_y^jP(sl)
P(dlright]
endmultline
enddocument
1
Thanks you so much, this works fine as well.
– Shilpa Janarthanan
Jun 20 at 20:15
@ShilpaJanarthanan Was my pleasure!
– gigi
Jun 20 at 20:15
Can you please tell me, how to add cdot in the above code, to show the continuity of the equation?
– Shilpa Janarthanan
Jun 20 at 20:24
@ShilpaJanarthanan Please check now. Also please don't have whole words in math italic.
– gigi
Jun 20 at 20:30
add a comment |
With multiline
one can insert \
at the locations where the line should be broken.
Multiletter subscripts ought not be set in math italics, the kerning is wrong. I suggest to warp them in mathrm
The fontsize change needs to be outside the equation and without following it.
small
was still a bit to large, but with footnotesize
the equation fits even without cheating and changing the margin sizes.
documentclassarticle
usepackageamsmath
begindocument
footnotesize
beginmultline
Delta (h)_T+S =
prod_j=1^N left[frac theta_mathrmpaired)
P(x^j,y^jright]cdot\
left[fracpdl_x^j-1)P(dr_y^j)P(dr_y^jP(sl)
P(dlright]
endmultline
enddocument
With multiline
one can insert \
at the locations where the line should be broken.
Multiletter subscripts ought not be set in math italics, the kerning is wrong. I suggest to warp them in mathrm
The fontsize change needs to be outside the equation and without following it.
small
was still a bit to large, but with footnotesize
the equation fits even without cheating and changing the margin sizes.
documentclassarticle
usepackageamsmath
begindocument
footnotesize
beginmultline
Delta (h)_T+S =
prod_j=1^N left[frac theta_mathrmpaired)
P(x^j,y^jright]cdot\
left[fracpdl_x^j-1)P(dr_y^j)P(dr_y^jP(sl)
P(dlright]
endmultline
enddocument
edited Jun 22 at 12:05
answered Jun 20 at 20:12
gigigigi
37211 bronze badges
37211 bronze badges
1
Thanks you so much, this works fine as well.
– Shilpa Janarthanan
Jun 20 at 20:15
@ShilpaJanarthanan Was my pleasure!
– gigi
Jun 20 at 20:15
Can you please tell me, how to add cdot in the above code, to show the continuity of the equation?
– Shilpa Janarthanan
Jun 20 at 20:24
@ShilpaJanarthanan Please check now. Also please don't have whole words in math italic.
– gigi
Jun 20 at 20:30
add a comment |
1
Thanks you so much, this works fine as well.
– Shilpa Janarthanan
Jun 20 at 20:15
@ShilpaJanarthanan Was my pleasure!
– gigi
Jun 20 at 20:15
Can you please tell me, how to add cdot in the above code, to show the continuity of the equation?
– Shilpa Janarthanan
Jun 20 at 20:24
@ShilpaJanarthanan Please check now. Also please don't have whole words in math italic.
– gigi
Jun 20 at 20:30
1
1
Thanks you so much, this works fine as well.
– Shilpa Janarthanan
Jun 20 at 20:15
Thanks you so much, this works fine as well.
– Shilpa Janarthanan
Jun 20 at 20:15
@ShilpaJanarthanan Was my pleasure!
– gigi
Jun 20 at 20:15
@ShilpaJanarthanan Was my pleasure!
– gigi
Jun 20 at 20:15
Can you please tell me, how to add cdot in the above code, to show the continuity of the equation?
– Shilpa Janarthanan
Jun 20 at 20:24
Can you please tell me, how to add cdot in the above code, to show the continuity of the equation?
– Shilpa Janarthanan
Jun 20 at 20:24
@ShilpaJanarthanan Please check now. Also please don't have whole words in math italic.
– gigi
Jun 20 at 20:30
@ShilpaJanarthanan Please check now. Also please don't have whole words in math italic.
– gigi
Jun 20 at 20:30
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%2f496697%2fhow-to-split-an-equation-over-two-lines%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
Welcome to TeX.SE.
– Sebastiano
Jun 20 at 20:14
How wide is the textblock? (Alternatively, please tell us which paper size is employed, and how wide the margins are.)
– Mico
Jun 21 at 3:01