How to split an equation in two lines?aligning a multiline formula with the bullet of itemizesplitting an...

Inverse-quotes-quine

C-152 carb heat on before landing in hot weather?

Computing a trigonometric integral

Require advice on power conservation for backpacking trip

Is a single radon-daughter atom in air a solid?

Underbar nabla symbol doesn't work

Why doesn't a marching band have strings?

Did Karl Marx ever use any example that involved cotton and dollars to illustrate the way capital and surplus value were generated?

How risky is real estate?

How can I politely work my way around not liking coffee or beer when it comes to professional networking?

Does this Wild Magic result affect the sorcerer or just other creatures?

Iterate over colors on next pie chart with pgf-pie

Links to webpages in books

Fedora boot screen shows both Fedora logo and Lenovo logo. Why and How?

Fill NAs in R with zero if the next valid data point is more than 2 intervals away

Why cruise at 7000' in an A319?

Can humans ever directly see a few photons at a time? Can a human see a single photon?

Unusual mail headers, evidence of an attempted attack. Have I been pwned?

What are the penalties for overstaying in USA?

Are there any efficient algorithms to solve longest path problem in networks with cycles?

Trainee keeps missing deadlines for independent learning

Should my manager be aware of private LinkedIn approaches I receive? How to politely have this happen?

Can Ogre clerics use Purify Food and Drink on humanoid characters?

Suggested order for Amazon Prime Doctor Who series



How to split an equation in two lines?


aligning a multiline formula with the bullet of itemizesplitting an equation inside curly brackets onto 2 lines without using Bigsplit equation in multiple linesList of equations, including equation contents and captionAdding text line in Equation EnvironmentCan't generate png with Error: Erroneous nesting of equation structuresSplit matrix over two linesHow continue a equation next lineHow can I align this equation in the center?special characters in equation






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







4















I am new to LaTeX,



Here is my formula,



Output



documentclass{article}
begin{document}
begin{equation}
small{
Delta (h)_{T+S} =
prod_{j=1}^{N} left[frac {P(x^j,y^j|theta_{paired})}
{P(x^j,y^j|theta_{unpaired})}right]left[frac{P(bp)_{x^j,y^j}
P(bp_{x^j,y^j}|pbp_{x^{j-1},y^{j+1}}) P(dl_{x^j})
P(dl_{x^j}|pdl_{x^{j-1}})P(dr_{y^j})P(dr_{y^j}|pdr_{y^{j+1}})}{P(sl)
P(dl|sl) P(sr) P(dr|sr)}right]}
end{equation}
end{document}


I want the equation to be split in two lines, how do I do this?
I tried, multline, align*, split, alignedat, nothing seems to work. Please help me with this. Thank you in advance.










share|improve this question









New contributor



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















  • 1





    Welcome to TeX.SE.

    – Sebastiano
    10 hours ago











  • How wide is the textblock? (Alternatively, please tell us which paper size is employed, and how wide the margins are.)

    – Mico
    3 hours ago


















4















I am new to LaTeX,



Here is my formula,



Output



documentclass{article}
begin{document}
begin{equation}
small{
Delta (h)_{T+S} =
prod_{j=1}^{N} left[frac {P(x^j,y^j|theta_{paired})}
{P(x^j,y^j|theta_{unpaired})}right]left[frac{P(bp)_{x^j,y^j}
P(bp_{x^j,y^j}|pbp_{x^{j-1},y^{j+1}}) P(dl_{x^j})
P(dl_{x^j}|pdl_{x^{j-1}})P(dr_{y^j})P(dr_{y^j}|pdr_{y^{j+1}})}{P(sl)
P(dl|sl) P(sr) P(dr|sr)}right]}
end{equation}
end{document}


I want the equation to be split in two lines, how do I do this?
I tried, multline, align*, split, alignedat, nothing seems to work. Please help me with this. Thank you in advance.










share|improve this question









New contributor



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















  • 1





    Welcome to TeX.SE.

    – Sebastiano
    10 hours ago











  • How wide is the textblock? (Alternatively, please tell us which paper size is employed, and how wide the margins are.)

    – Mico
    3 hours ago














4












4








4








I am new to LaTeX,



Here is my formula,



Output



documentclass{article}
begin{document}
begin{equation}
small{
Delta (h)_{T+S} =
prod_{j=1}^{N} left[frac {P(x^j,y^j|theta_{paired})}
{P(x^j,y^j|theta_{unpaired})}right]left[frac{P(bp)_{x^j,y^j}
P(bp_{x^j,y^j}|pbp_{x^{j-1},y^{j+1}}) P(dl_{x^j})
P(dl_{x^j}|pdl_{x^{j-1}})P(dr_{y^j})P(dr_{y^j}|pdr_{y^{j+1}})}{P(sl)
P(dl|sl) P(sr) P(dr|sr)}right]}
end{equation}
end{document}


I want the equation to be split in two lines, how do I do this?
I tried, multline, align*, split, alignedat, nothing seems to work. Please help me with this. Thank you in advance.










share|improve this question









New contributor



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











I am new to LaTeX,



Here is my formula,



Output



documentclass{article}
begin{document}
begin{equation}
small{
Delta (h)_{T+S} =
prod_{j=1}^{N} left[frac {P(x^j,y^j|theta_{paired})}
{P(x^j,y^j|theta_{unpaired})}right]left[frac{P(bp)_{x^j,y^j}
P(bp_{x^j,y^j}|pbp_{x^{j-1},y^{j+1}}) P(dl_{x^j})
P(dl_{x^j}|pdl_{x^{j-1}})P(dr_{y^j})P(dr_{y^j}|pdr_{y^{j+1}})}{P(sl)
P(dl|sl) P(sr) P(dr|sr)}right]}
end{equation}
end{document}


I want the equation to be split in two lines, how do 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






share|improve this question









New contributor



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










share|improve this question









New contributor



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








share|improve this question




share|improve this question








edited 9 hours ago









gigi

745 bronze badges




745 bronze badges






New contributor



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








asked 10 hours ago









Shilpa JanarthananShilpa Janarthanan

212 bronze badges




212 bronze badges




New contributor



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




New contributor




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










  • 1





    Welcome to TeX.SE.

    – Sebastiano
    10 hours ago











  • How wide is the textblock? (Alternatively, please tell us which paper size is employed, and how wide the margins are.)

    – Mico
    3 hours ago














  • 1





    Welcome to TeX.SE.

    – Sebastiano
    10 hours ago











  • How wide is the textblock? (Alternatively, please tell us which paper size is employed, and how wide the margins are.)

    – Mico
    3 hours ago








1




1





Welcome to TeX.SE.

– Sebastiano
10 hours ago





Welcome to TeX.SE.

– Sebastiano
10 hours ago













How wide is the textblock? (Alternatively, please tell us which paper size is employed, and how wide the margins are.)

– Mico
3 hours ago





How wide is the textblock? (Alternatively, please tell us which paper size is employed, and how wide the margins are.)

– Mico
3 hours ago










6 Answers
6






active

oldest

votes


















6














Here there is my proposal to split your equation.



enter image description here



documentclass{article}
usepackage[margin=2cm]{geometry}
usepackage{mathtools,amssymb}

begin{document}

begin{equation}
begin{split}
Delta (h)_{T+S} & =prod_{j=1}^{N} left[frac {P(x^j,y^j|theta_{mathrm{paired}})}
{P(x^j,y^j|theta_{mathrm{unpaired}})}right]cdot\
& cdot left[frac{P(bp)_{x^j,y^j}
P(bp_{x^j,y^j}|pbp_{x^{j-1},y^{j+1}}) P(dl_{x^j}) P(dl_{x^j}|pdl_{x^{j-1}})P(dr_{y^j})P(dr_{y^j}|pdr_{y^{j+1}})}{P(sl)
P(dl|sl) P(sr) P(dr|sr)}right]
end{split}
end{equation}
end{document}





share|improve this answer



















  • 1





    Thank you so much, this works fine.

    – Shilpa Janarthanan
    10 hours ago



















5














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.



documentclass{article}
usepackage{amsmath}
usepackage[margin=1in]{geometry}

begin{document}

%{small
begin{equation}
begin{split} Delta (h)_{T+S} &=
prod_{j=1}^{N} biggl[frac {P(x^j,y^j|theta_mathrm{paired})}
{P(x^j,y^j|theta_mathrm{unpaired})} times{} \
&phantom{{}={}}frac{P(bp)_{x^j,y^j}
P(bp_{x^j,y^j}|pbp_{x^{j-1},y^{j+1}}) P(dl_{x^j})
P(dl_{x^j}|pdl_{x^{j-1}})P(dr_{y^j})P(dr_{y^j}|pdr_{y^{j+1}})}{P(sl)
P(dl|sl) P(sr) P(dr|sr)}biggr]
end{split}
end{equation}
%}

end{document}



enter image description here







share|improve this answer





















  • 1





    I'm a little late for a positive vote on your good work.

    – Sebastiano
    9 hours ago






  • 1





    Thank you, you were the fastest.

    – AboAmmar
    9 hours ago



















4














one more alternative, with use of mathtools and nccmath:



documentclass{article}
usepackage{geometry}
usepackage{mathtools, nccmath}

%---------------- show page layout. don't use in a real document!
usepackage{showframe}
renewcommandShowFrameLinethickness{0.15pt}
renewcommand*ShowFrameColor{color{red}}
%---------------------------------------------------------------%
begin{document}
begin{equation}
medmath{
begin{multlined}
Delta (h)_{T+S}
= prod_{j=1}^{N} Biggl[frac{P(x^j,y^jmidtheta_{mathrm{paired}})}
{P(x^j,y^jmidtheta_{mathrm{unpaired}})}Biggr]\
cdot Biggl[frac{P(bp)_{x^j,y^j} P(bp_{x^j,y^j}mid pbp_{x^{j-1},y^{j+1}}) P(dl_{x^j}) P(dl_{x^j}mid pdl_{x^{j-1}})P(dr_{y^j})P(dr_{y^j}|pdr_{y^{j+1}})}
{P(sl) P(dlmid sl) P(sr) P(drmid sr)}Biggr]
end{multlined}
}
end{equation}
end{document}


enter image description here






share|improve this answer



















  • 1





    Fast as lightning...:-) +1.

    – Sebastiano
    9 hours ago



















4














A way to put the equation on a single line, with the splitfrac command from mathtools``, themedmathcommand fromnccmath` and some adjustment for the delimiters:



documentclass{article}
usepackage[margin=2cm]{geometry}
usepackage{mathtools, nccmath, amssymb}

begin{document}

begin{equation}
Delta (h)_{T+S} =prod_{j=1}^{N} left[frac {P(x^j,y^jmidtheta_{mathrm{paired}})}
{P(x^j,y^jmidtheta_{mathrm{unpaired}})}right]cdot
left[frac{medmath{splitfrac{P(bp)_{x^j,y^j}
Pbigl(bp_{x^j,y^j}mid pbp_{x^{j-1},y^{j+1}}bigr)P(dl_{x^j}) }{ P(dl_{x^j}mid pdl_{x^{j-1}})Pbigl(dr_{y^j}bigr)Pbigl(dr_{y^j}mid pdr_{y^{j+1}}bigr)rule[-1.5ex]{0pt}{1ex}}}}{P(sl)
P(dl|sl) P(sr) P(dr| sr)^{strut} }right]
end{equation}

end{document}


enter image description here






share|improve this answer
























  • I know the command splitfrac but I did not want to use it because it is not my favorite. +1

    – Sebastiano
    9 hours ago






  • 1





    @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
    9 hours ago











  • De gustibus non disputandum est: There's no discussion of the tastes. :-)

    – Sebastiano
    9 hours ago








  • 2





    Needless to translate – when I was a student, I helped some highschool students in Latin ;o)

    – Bernard
    9 hours ago



















2














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.



documentclass{article}
usepackage{amsmath}

begin{document}

{
scriptsize
begin{multline}
Delta (h)_{T+S} =
prod_{j=1}^{N} left[frac {P(x^j,y^j|theta_{mathrm{paired}})}
{P(x^j,y^j|theta_{mathrm{unpaired}})}right]cdot\
cdotleft[frac{P(bp)_{x^j,y^j}
P(bp_{x^j,y^j}|pbp_{x^{j-1},y^{j+1}}) P(dl_{x^j})
P(dl_{x^j}|pdl_{x^{j-1}})P(dr_{y^j})P(dr_{y^j}|pdr_{y^{j+1}})}{P(sl)
P(dl|sl) P(sr) P(dr|sr)}right]
end{multline}
}

end{document}


enter image description here






share|improve this answer










New contributor



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















  • 1





    Thanks you so much, this works fine as well.

    – Shilpa Janarthanan
    10 hours ago











  • @ShilpaJanarthanan Was my pleasure!

    – gigi
    10 hours ago













  • Can you please tell me, how to add cdot in the above code, to show the continuity of the equation?

    – Shilpa Janarthanan
    10 hours ago











  • @ShilpaJanarthanan Please check now. Also please don't have whole words in math italic.

    – gigi
    9 hours ago



















2














Here's a multlined-based solution. It also uses mid rather than | to denote conditioning, and it "snugs up" the subscript terms to dr.



enter image description here



documentclass{article}
usepackage[a4paper,margin=2.5cm]{geometry} % make suitable page and margin choices
usepackage{mathtools} % for 'multlined' environment

begin{document}

begin{equation}
renewcommand{!}{mkern-2mu} % default: mkern-3mu
begin{multlined}
Delta(h)_{T+S} = prod_{j=1}^{N} biggl[
frac {P(x^j!,y^jmid theta_{mathrm{paired}})}{%
P(x^j!,y^jmid theta_{mathrm{unpaired}})}\
times
frac{P(bp)_{x^j!,y^j}
P(bp_{x^j!,y^j}mid pbp_{x^{j-1}!,y^{j+1}})
P(dl_{x^j}) P(dl_{x^j}mid pdl_{x^{j-1}})
P(dr_{!y^j})P(dr_{!y^j}mid pdr_{!y^{j+1}})}{%
P(sl) P(dlmid sl) P(sr) P(drmid sr)} biggr]
end{multlined}
end{equation}
end{document}





share|improve this answer


























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "85"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });






    Shilpa Janarthanan is a new contributor. Be nice, and check out our Code of Conduct.










    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f496697%2fhow-to-split-an-equation-in-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









    6














    Here there is my proposal to split your equation.



    enter image description here



    documentclass{article}
    usepackage[margin=2cm]{geometry}
    usepackage{mathtools,amssymb}

    begin{document}

    begin{equation}
    begin{split}
    Delta (h)_{T+S} & =prod_{j=1}^{N} left[frac {P(x^j,y^j|theta_{mathrm{paired}})}
    {P(x^j,y^j|theta_{mathrm{unpaired}})}right]cdot\
    & cdot left[frac{P(bp)_{x^j,y^j}
    P(bp_{x^j,y^j}|pbp_{x^{j-1},y^{j+1}}) P(dl_{x^j}) P(dl_{x^j}|pdl_{x^{j-1}})P(dr_{y^j})P(dr_{y^j}|pdr_{y^{j+1}})}{P(sl)
    P(dl|sl) P(sr) P(dr|sr)}right]
    end{split}
    end{equation}
    end{document}





    share|improve this answer



















    • 1





      Thank you so much, this works fine.

      – Shilpa Janarthanan
      10 hours ago
















    6














    Here there is my proposal to split your equation.



    enter image description here



    documentclass{article}
    usepackage[margin=2cm]{geometry}
    usepackage{mathtools,amssymb}

    begin{document}

    begin{equation}
    begin{split}
    Delta (h)_{T+S} & =prod_{j=1}^{N} left[frac {P(x^j,y^j|theta_{mathrm{paired}})}
    {P(x^j,y^j|theta_{mathrm{unpaired}})}right]cdot\
    & cdot left[frac{P(bp)_{x^j,y^j}
    P(bp_{x^j,y^j}|pbp_{x^{j-1},y^{j+1}}) P(dl_{x^j}) P(dl_{x^j}|pdl_{x^{j-1}})P(dr_{y^j})P(dr_{y^j}|pdr_{y^{j+1}})}{P(sl)
    P(dl|sl) P(sr) P(dr|sr)}right]
    end{split}
    end{equation}
    end{document}





    share|improve this answer



















    • 1





      Thank you so much, this works fine.

      – Shilpa Janarthanan
      10 hours ago














    6












    6








    6







    Here there is my proposal to split your equation.



    enter image description here



    documentclass{article}
    usepackage[margin=2cm]{geometry}
    usepackage{mathtools,amssymb}

    begin{document}

    begin{equation}
    begin{split}
    Delta (h)_{T+S} & =prod_{j=1}^{N} left[frac {P(x^j,y^j|theta_{mathrm{paired}})}
    {P(x^j,y^j|theta_{mathrm{unpaired}})}right]cdot\
    & cdot left[frac{P(bp)_{x^j,y^j}
    P(bp_{x^j,y^j}|pbp_{x^{j-1},y^{j+1}}) P(dl_{x^j}) P(dl_{x^j}|pdl_{x^{j-1}})P(dr_{y^j})P(dr_{y^j}|pdr_{y^{j+1}})}{P(sl)
    P(dl|sl) P(sr) P(dr|sr)}right]
    end{split}
    end{equation}
    end{document}





    share|improve this answer













    Here there is my proposal to split your equation.



    enter image description here



    documentclass{article}
    usepackage[margin=2cm]{geometry}
    usepackage{mathtools,amssymb}

    begin{document}

    begin{equation}
    begin{split}
    Delta (h)_{T+S} & =prod_{j=1}^{N} left[frac {P(x^j,y^j|theta_{mathrm{paired}})}
    {P(x^j,y^j|theta_{mathrm{unpaired}})}right]cdot\
    & cdot left[frac{P(bp)_{x^j,y^j}
    P(bp_{x^j,y^j}|pbp_{x^{j-1},y^{j+1}}) P(dl_{x^j}) P(dl_{x^j}|pdl_{x^{j-1}})P(dr_{y^j})P(dr_{y^j}|pdr_{y^{j+1}})}{P(sl)
    P(dl|sl) P(sr) P(dr|sr)}right]
    end{split}
    end{equation}
    end{document}






    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered 10 hours ago









    SebastianoSebastiano

    12.9k4 gold badges25 silver badges70 bronze badges




    12.9k4 gold badges25 silver badges70 bronze badges








    • 1





      Thank you so much, this works fine.

      – Shilpa Janarthanan
      10 hours ago














    • 1





      Thank you so much, this works fine.

      – Shilpa Janarthanan
      10 hours ago








    1




    1





    Thank you so much, this works fine.

    – Shilpa Janarthanan
    10 hours ago





    Thank you so much, this works fine.

    – Shilpa Janarthanan
    10 hours ago













    5














    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.



    documentclass{article}
    usepackage{amsmath}
    usepackage[margin=1in]{geometry}

    begin{document}

    %{small
    begin{equation}
    begin{split} Delta (h)_{T+S} &=
    prod_{j=1}^{N} biggl[frac {P(x^j,y^j|theta_mathrm{paired})}
    {P(x^j,y^j|theta_mathrm{unpaired})} times{} \
    &phantom{{}={}}frac{P(bp)_{x^j,y^j}
    P(bp_{x^j,y^j}|pbp_{x^{j-1},y^{j+1}}) P(dl_{x^j})
    P(dl_{x^j}|pdl_{x^{j-1}})P(dr_{y^j})P(dr_{y^j}|pdr_{y^{j+1}})}{P(sl)
    P(dl|sl) P(sr) P(dr|sr)}biggr]
    end{split}
    end{equation}
    %}

    end{document}



    enter image description here







    share|improve this answer





















    • 1





      I'm a little late for a positive vote on your good work.

      – Sebastiano
      9 hours ago






    • 1





      Thank you, you were the fastest.

      – AboAmmar
      9 hours ago
















    5














    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.



    documentclass{article}
    usepackage{amsmath}
    usepackage[margin=1in]{geometry}

    begin{document}

    %{small
    begin{equation}
    begin{split} Delta (h)_{T+S} &=
    prod_{j=1}^{N} biggl[frac {P(x^j,y^j|theta_mathrm{paired})}
    {P(x^j,y^j|theta_mathrm{unpaired})} times{} \
    &phantom{{}={}}frac{P(bp)_{x^j,y^j}
    P(bp_{x^j,y^j}|pbp_{x^{j-1},y^{j+1}}) P(dl_{x^j})
    P(dl_{x^j}|pdl_{x^{j-1}})P(dr_{y^j})P(dr_{y^j}|pdr_{y^{j+1}})}{P(sl)
    P(dl|sl) P(sr) P(dr|sr)}biggr]
    end{split}
    end{equation}
    %}

    end{document}



    enter image description here







    share|improve this answer





















    • 1





      I'm a little late for a positive vote on your good work.

      – Sebastiano
      9 hours ago






    • 1





      Thank you, you were the fastest.

      – AboAmmar
      9 hours ago














    5












    5








    5







    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.



    documentclass{article}
    usepackage{amsmath}
    usepackage[margin=1in]{geometry}

    begin{document}

    %{small
    begin{equation}
    begin{split} Delta (h)_{T+S} &=
    prod_{j=1}^{N} biggl[frac {P(x^j,y^j|theta_mathrm{paired})}
    {P(x^j,y^j|theta_mathrm{unpaired})} times{} \
    &phantom{{}={}}frac{P(bp)_{x^j,y^j}
    P(bp_{x^j,y^j}|pbp_{x^{j-1},y^{j+1}}) P(dl_{x^j})
    P(dl_{x^j}|pdl_{x^{j-1}})P(dr_{y^j})P(dr_{y^j}|pdr_{y^{j+1}})}{P(sl)
    P(dl|sl) P(sr) P(dr|sr)}biggr]
    end{split}
    end{equation}
    %}

    end{document}



    enter image description here







    share|improve this answer















    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.



    documentclass{article}
    usepackage{amsmath}
    usepackage[margin=1in]{geometry}

    begin{document}

    %{small
    begin{equation}
    begin{split} Delta (h)_{T+S} &=
    prod_{j=1}^{N} biggl[frac {P(x^j,y^j|theta_mathrm{paired})}
    {P(x^j,y^j|theta_mathrm{unpaired})} times{} \
    &phantom{{}={}}frac{P(bp)_{x^j,y^j}
    P(bp_{x^j,y^j}|pbp_{x^{j-1},y^{j+1}}) P(dl_{x^j})
    P(dl_{x^j}|pdl_{x^{j-1}})P(dr_{y^j})P(dr_{y^j}|pdr_{y^{j+1}})}{P(sl)
    P(dl|sl) P(sr) P(dr|sr)}biggr]
    end{split}
    end{equation}
    %}

    end{document}



    enter image description here








    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited 9 hours ago

























    answered 9 hours ago









    AboAmmarAboAmmar

    35.8k3 gold badges30 silver badges86 bronze badges




    35.8k3 gold badges30 silver badges86 bronze badges








    • 1





      I'm a little late for a positive vote on your good work.

      – Sebastiano
      9 hours ago






    • 1





      Thank you, you were the fastest.

      – AboAmmar
      9 hours ago














    • 1





      I'm a little late for a positive vote on your good work.

      – Sebastiano
      9 hours ago






    • 1





      Thank you, you were the fastest.

      – AboAmmar
      9 hours ago








    1




    1





    I'm a little late for a positive vote on your good work.

    – Sebastiano
    9 hours ago





    I'm a little late for a positive vote on your good work.

    – Sebastiano
    9 hours ago




    1




    1





    Thank you, you were the fastest.

    – AboAmmar
    9 hours ago





    Thank you, you were the fastest.

    – AboAmmar
    9 hours ago











    4














    one more alternative, with use of mathtools and nccmath:



    documentclass{article}
    usepackage{geometry}
    usepackage{mathtools, nccmath}

    %---------------- show page layout. don't use in a real document!
    usepackage{showframe}
    renewcommandShowFrameLinethickness{0.15pt}
    renewcommand*ShowFrameColor{color{red}}
    %---------------------------------------------------------------%
    begin{document}
    begin{equation}
    medmath{
    begin{multlined}
    Delta (h)_{T+S}
    = prod_{j=1}^{N} Biggl[frac{P(x^j,y^jmidtheta_{mathrm{paired}})}
    {P(x^j,y^jmidtheta_{mathrm{unpaired}})}Biggr]\
    cdot Biggl[frac{P(bp)_{x^j,y^j} P(bp_{x^j,y^j}mid pbp_{x^{j-1},y^{j+1}}) P(dl_{x^j}) P(dl_{x^j}mid pdl_{x^{j-1}})P(dr_{y^j})P(dr_{y^j}|pdr_{y^{j+1}})}
    {P(sl) P(dlmid sl) P(sr) P(drmid sr)}Biggr]
    end{multlined}
    }
    end{equation}
    end{document}


    enter image description here






    share|improve this answer



















    • 1





      Fast as lightning...:-) +1.

      – Sebastiano
      9 hours ago
















    4














    one more alternative, with use of mathtools and nccmath:



    documentclass{article}
    usepackage{geometry}
    usepackage{mathtools, nccmath}

    %---------------- show page layout. don't use in a real document!
    usepackage{showframe}
    renewcommandShowFrameLinethickness{0.15pt}
    renewcommand*ShowFrameColor{color{red}}
    %---------------------------------------------------------------%
    begin{document}
    begin{equation}
    medmath{
    begin{multlined}
    Delta (h)_{T+S}
    = prod_{j=1}^{N} Biggl[frac{P(x^j,y^jmidtheta_{mathrm{paired}})}
    {P(x^j,y^jmidtheta_{mathrm{unpaired}})}Biggr]\
    cdot Biggl[frac{P(bp)_{x^j,y^j} P(bp_{x^j,y^j}mid pbp_{x^{j-1},y^{j+1}}) P(dl_{x^j}) P(dl_{x^j}mid pdl_{x^{j-1}})P(dr_{y^j})P(dr_{y^j}|pdr_{y^{j+1}})}
    {P(sl) P(dlmid sl) P(sr) P(drmid sr)}Biggr]
    end{multlined}
    }
    end{equation}
    end{document}


    enter image description here






    share|improve this answer



















    • 1





      Fast as lightning...:-) +1.

      – Sebastiano
      9 hours ago














    4












    4








    4







    one more alternative, with use of mathtools and nccmath:



    documentclass{article}
    usepackage{geometry}
    usepackage{mathtools, nccmath}

    %---------------- show page layout. don't use in a real document!
    usepackage{showframe}
    renewcommandShowFrameLinethickness{0.15pt}
    renewcommand*ShowFrameColor{color{red}}
    %---------------------------------------------------------------%
    begin{document}
    begin{equation}
    medmath{
    begin{multlined}
    Delta (h)_{T+S}
    = prod_{j=1}^{N} Biggl[frac{P(x^j,y^jmidtheta_{mathrm{paired}})}
    {P(x^j,y^jmidtheta_{mathrm{unpaired}})}Biggr]\
    cdot Biggl[frac{P(bp)_{x^j,y^j} P(bp_{x^j,y^j}mid pbp_{x^{j-1},y^{j+1}}) P(dl_{x^j}) P(dl_{x^j}mid pdl_{x^{j-1}})P(dr_{y^j})P(dr_{y^j}|pdr_{y^{j+1}})}
    {P(sl) P(dlmid sl) P(sr) P(drmid sr)}Biggr]
    end{multlined}
    }
    end{equation}
    end{document}


    enter image description here






    share|improve this answer













    one more alternative, with use of mathtools and nccmath:



    documentclass{article}
    usepackage{geometry}
    usepackage{mathtools, nccmath}

    %---------------- show page layout. don't use in a real document!
    usepackage{showframe}
    renewcommandShowFrameLinethickness{0.15pt}
    renewcommand*ShowFrameColor{color{red}}
    %---------------------------------------------------------------%
    begin{document}
    begin{equation}
    medmath{
    begin{multlined}
    Delta (h)_{T+S}
    = prod_{j=1}^{N} Biggl[frac{P(x^j,y^jmidtheta_{mathrm{paired}})}
    {P(x^j,y^jmidtheta_{mathrm{unpaired}})}Biggr]\
    cdot Biggl[frac{P(bp)_{x^j,y^j} P(bp_{x^j,y^j}mid pbp_{x^{j-1},y^{j+1}}) P(dl_{x^j}) P(dl_{x^j}mid pdl_{x^{j-1}})P(dr_{y^j})P(dr_{y^j}|pdr_{y^{j+1}})}
    {P(sl) P(dlmid sl) P(sr) P(drmid sr)}Biggr]
    end{multlined}
    }
    end{equation}
    end{document}


    enter image description here







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered 9 hours ago









    ZarkoZarko

    138k8 gold badges74 silver badges182 bronze badges




    138k8 gold badges74 silver badges182 bronze badges








    • 1





      Fast as lightning...:-) +1.

      – Sebastiano
      9 hours ago














    • 1





      Fast as lightning...:-) +1.

      – Sebastiano
      9 hours ago








    1




    1





    Fast as lightning...:-) +1.

    – Sebastiano
    9 hours ago





    Fast as lightning...:-) +1.

    – Sebastiano
    9 hours ago











    4














    A way to put the equation on a single line, with the splitfrac command from mathtools``, themedmathcommand fromnccmath` and some adjustment for the delimiters:



    documentclass{article}
    usepackage[margin=2cm]{geometry}
    usepackage{mathtools, nccmath, amssymb}

    begin{document}

    begin{equation}
    Delta (h)_{T+S} =prod_{j=1}^{N} left[frac {P(x^j,y^jmidtheta_{mathrm{paired}})}
    {P(x^j,y^jmidtheta_{mathrm{unpaired}})}right]cdot
    left[frac{medmath{splitfrac{P(bp)_{x^j,y^j}
    Pbigl(bp_{x^j,y^j}mid pbp_{x^{j-1},y^{j+1}}bigr)P(dl_{x^j}) }{ P(dl_{x^j}mid pdl_{x^{j-1}})Pbigl(dr_{y^j}bigr)Pbigl(dr_{y^j}mid pdr_{y^{j+1}}bigr)rule[-1.5ex]{0pt}{1ex}}}}{P(sl)
    P(dl|sl) P(sr) P(dr| sr)^{strut} }right]
    end{equation}

    end{document}


    enter image description here






    share|improve this answer
























    • I know the command splitfrac but I did not want to use it because it is not my favorite. +1

      – Sebastiano
      9 hours ago






    • 1





      @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
      9 hours ago











    • De gustibus non disputandum est: There's no discussion of the tastes. :-)

      – Sebastiano
      9 hours ago








    • 2





      Needless to translate – when I was a student, I helped some highschool students in Latin ;o)

      – Bernard
      9 hours ago
















    4














    A way to put the equation on a single line, with the splitfrac command from mathtools``, themedmathcommand fromnccmath` and some adjustment for the delimiters:



    documentclass{article}
    usepackage[margin=2cm]{geometry}
    usepackage{mathtools, nccmath, amssymb}

    begin{document}

    begin{equation}
    Delta (h)_{T+S} =prod_{j=1}^{N} left[frac {P(x^j,y^jmidtheta_{mathrm{paired}})}
    {P(x^j,y^jmidtheta_{mathrm{unpaired}})}right]cdot
    left[frac{medmath{splitfrac{P(bp)_{x^j,y^j}
    Pbigl(bp_{x^j,y^j}mid pbp_{x^{j-1},y^{j+1}}bigr)P(dl_{x^j}) }{ P(dl_{x^j}mid pdl_{x^{j-1}})Pbigl(dr_{y^j}bigr)Pbigl(dr_{y^j}mid pdr_{y^{j+1}}bigr)rule[-1.5ex]{0pt}{1ex}}}}{P(sl)
    P(dl|sl) P(sr) P(dr| sr)^{strut} }right]
    end{equation}

    end{document}


    enter image description here






    share|improve this answer
























    • I know the command splitfrac but I did not want to use it because it is not my favorite. +1

      – Sebastiano
      9 hours ago






    • 1





      @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
      9 hours ago











    • De gustibus non disputandum est: There's no discussion of the tastes. :-)

      – Sebastiano
      9 hours ago








    • 2





      Needless to translate – when I was a student, I helped some highschool students in Latin ;o)

      – Bernard
      9 hours ago














    4












    4








    4







    A way to put the equation on a single line, with the splitfrac command from mathtools``, themedmathcommand fromnccmath` and some adjustment for the delimiters:



    documentclass{article}
    usepackage[margin=2cm]{geometry}
    usepackage{mathtools, nccmath, amssymb}

    begin{document}

    begin{equation}
    Delta (h)_{T+S} =prod_{j=1}^{N} left[frac {P(x^j,y^jmidtheta_{mathrm{paired}})}
    {P(x^j,y^jmidtheta_{mathrm{unpaired}})}right]cdot
    left[frac{medmath{splitfrac{P(bp)_{x^j,y^j}
    Pbigl(bp_{x^j,y^j}mid pbp_{x^{j-1},y^{j+1}}bigr)P(dl_{x^j}) }{ P(dl_{x^j}mid pdl_{x^{j-1}})Pbigl(dr_{y^j}bigr)Pbigl(dr_{y^j}mid pdr_{y^{j+1}}bigr)rule[-1.5ex]{0pt}{1ex}}}}{P(sl)
    P(dl|sl) P(sr) P(dr| sr)^{strut} }right]
    end{equation}

    end{document}


    enter image description here






    share|improve this answer













    A way to put the equation on a single line, with the splitfrac command from mathtools``, themedmathcommand fromnccmath` and some adjustment for the delimiters:



    documentclass{article}
    usepackage[margin=2cm]{geometry}
    usepackage{mathtools, nccmath, amssymb}

    begin{document}

    begin{equation}
    Delta (h)_{T+S} =prod_{j=1}^{N} left[frac {P(x^j,y^jmidtheta_{mathrm{paired}})}
    {P(x^j,y^jmidtheta_{mathrm{unpaired}})}right]cdot
    left[frac{medmath{splitfrac{P(bp)_{x^j,y^j}
    Pbigl(bp_{x^j,y^j}mid pbp_{x^{j-1},y^{j+1}}bigr)P(dl_{x^j}) }{ P(dl_{x^j}mid pdl_{x^{j-1}})Pbigl(dr_{y^j}bigr)Pbigl(dr_{y^j}mid pdr_{y^{j+1}}bigr)rule[-1.5ex]{0pt}{1ex}}}}{P(sl)
    P(dl|sl) P(sr) P(dr| sr)^{strut} }right]
    end{equation}

    end{document}


    enter image description here







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered 9 hours ago









    BernardBernard

    182k7 gold badges83 silver badges214 bronze badges




    182k7 gold badges83 silver badges214 bronze badges













    • I know the command splitfrac but I did not want to use it because it is not my favorite. +1

      – Sebastiano
      9 hours ago






    • 1





      @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
      9 hours ago











    • De gustibus non disputandum est: There's no discussion of the tastes. :-)

      – Sebastiano
      9 hours ago








    • 2





      Needless to translate – when I was a student, I helped some highschool students in Latin ;o)

      – Bernard
      9 hours ago



















    • I know the command splitfrac but I did not want to use it because it is not my favorite. +1

      – Sebastiano
      9 hours ago






    • 1





      @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
      9 hours ago











    • De gustibus non disputandum est: There's no discussion of the tastes. :-)

      – Sebastiano
      9 hours ago








    • 2





      Needless to translate – when I was a student, I helped some highschool students in Latin ;o)

      – Bernard
      9 hours ago

















    I know the command splitfrac but I did not want to use it because it is not my favorite. +1

    – Sebastiano
    9 hours ago





    I know the command splitfrac but I did not want to use it because it is not my favorite. +1

    – Sebastiano
    9 hours ago




    1




    1





    @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
    9 hours ago





    @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
    9 hours ago













    De gustibus non disputandum est: There's no discussion of the tastes. :-)

    – Sebastiano
    9 hours ago







    De gustibus non disputandum est: There's no discussion of the tastes. :-)

    – Sebastiano
    9 hours ago






    2




    2





    Needless to translate – when I was a student, I helped some highschool students in Latin ;o)

    – Bernard
    9 hours ago





    Needless to translate – when I was a student, I helped some highschool students in Latin ;o)

    – Bernard
    9 hours ago











    2














    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.



    documentclass{article}
    usepackage{amsmath}

    begin{document}

    {
    scriptsize
    begin{multline}
    Delta (h)_{T+S} =
    prod_{j=1}^{N} left[frac {P(x^j,y^j|theta_{mathrm{paired}})}
    {P(x^j,y^j|theta_{mathrm{unpaired}})}right]cdot\
    cdotleft[frac{P(bp)_{x^j,y^j}
    P(bp_{x^j,y^j}|pbp_{x^{j-1},y^{j+1}}) P(dl_{x^j})
    P(dl_{x^j}|pdl_{x^{j-1}})P(dr_{y^j})P(dr_{y^j}|pdr_{y^{j+1}})}{P(sl)
    P(dl|sl) P(sr) P(dr|sr)}right]
    end{multline}
    }

    end{document}


    enter image description here






    share|improve this answer










    New contributor



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















    • 1





      Thanks you so much, this works fine as well.

      – Shilpa Janarthanan
      10 hours ago











    • @ShilpaJanarthanan Was my pleasure!

      – gigi
      10 hours ago













    • Can you please tell me, how to add cdot in the above code, to show the continuity of the equation?

      – Shilpa Janarthanan
      10 hours ago











    • @ShilpaJanarthanan Please check now. Also please don't have whole words in math italic.

      – gigi
      9 hours ago
















    2














    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.



    documentclass{article}
    usepackage{amsmath}

    begin{document}

    {
    scriptsize
    begin{multline}
    Delta (h)_{T+S} =
    prod_{j=1}^{N} left[frac {P(x^j,y^j|theta_{mathrm{paired}})}
    {P(x^j,y^j|theta_{mathrm{unpaired}})}right]cdot\
    cdotleft[frac{P(bp)_{x^j,y^j}
    P(bp_{x^j,y^j}|pbp_{x^{j-1},y^{j+1}}) P(dl_{x^j})
    P(dl_{x^j}|pdl_{x^{j-1}})P(dr_{y^j})P(dr_{y^j}|pdr_{y^{j+1}})}{P(sl)
    P(dl|sl) P(sr) P(dr|sr)}right]
    end{multline}
    }

    end{document}


    enter image description here






    share|improve this answer










    New contributor



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















    • 1





      Thanks you so much, this works fine as well.

      – Shilpa Janarthanan
      10 hours ago











    • @ShilpaJanarthanan Was my pleasure!

      – gigi
      10 hours ago













    • Can you please tell me, how to add cdot in the above code, to show the continuity of the equation?

      – Shilpa Janarthanan
      10 hours ago











    • @ShilpaJanarthanan Please check now. Also please don't have whole words in math italic.

      – gigi
      9 hours ago














    2












    2








    2







    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.



    documentclass{article}
    usepackage{amsmath}

    begin{document}

    {
    scriptsize
    begin{multline}
    Delta (h)_{T+S} =
    prod_{j=1}^{N} left[frac {P(x^j,y^j|theta_{mathrm{paired}})}
    {P(x^j,y^j|theta_{mathrm{unpaired}})}right]cdot\
    cdotleft[frac{P(bp)_{x^j,y^j}
    P(bp_{x^j,y^j}|pbp_{x^{j-1},y^{j+1}}) P(dl_{x^j})
    P(dl_{x^j}|pdl_{x^{j-1}})P(dr_{y^j})P(dr_{y^j}|pdr_{y^{j+1}})}{P(sl)
    P(dl|sl) P(sr) P(dr|sr)}right]
    end{multline}
    }

    end{document}


    enter image description here






    share|improve this answer










    New contributor



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









    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.



    documentclass{article}
    usepackage{amsmath}

    begin{document}

    {
    scriptsize
    begin{multline}
    Delta (h)_{T+S} =
    prod_{j=1}^{N} left[frac {P(x^j,y^j|theta_{mathrm{paired}})}
    {P(x^j,y^j|theta_{mathrm{unpaired}})}right]cdot\
    cdotleft[frac{P(bp)_{x^j,y^j}
    P(bp_{x^j,y^j}|pbp_{x^{j-1},y^{j+1}}) P(dl_{x^j})
    P(dl_{x^j}|pdl_{x^{j-1}})P(dr_{y^j})P(dr_{y^j}|pdr_{y^{j+1}})}{P(sl)
    P(dl|sl) P(sr) P(dr|sr)}right]
    end{multline}
    }

    end{document}


    enter image description here







    share|improve this answer










    New contributor



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








    share|improve this answer



    share|improve this answer








    edited 10 hours ago





















    New contributor



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








    answered 10 hours ago









    gigigigi

    745 bronze badges




    745 bronze badges




    New contributor



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




    New contributor




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










    • 1





      Thanks you so much, this works fine as well.

      – Shilpa Janarthanan
      10 hours ago











    • @ShilpaJanarthanan Was my pleasure!

      – gigi
      10 hours ago













    • Can you please tell me, how to add cdot in the above code, to show the continuity of the equation?

      – Shilpa Janarthanan
      10 hours ago











    • @ShilpaJanarthanan Please check now. Also please don't have whole words in math italic.

      – gigi
      9 hours ago














    • 1





      Thanks you so much, this works fine as well.

      – Shilpa Janarthanan
      10 hours ago











    • @ShilpaJanarthanan Was my pleasure!

      – gigi
      10 hours ago













    • Can you please tell me, how to add cdot in the above code, to show the continuity of the equation?

      – Shilpa Janarthanan
      10 hours ago











    • @ShilpaJanarthanan Please check now. Also please don't have whole words in math italic.

      – gigi
      9 hours ago








    1




    1





    Thanks you so much, this works fine as well.

    – Shilpa Janarthanan
    10 hours ago





    Thanks you so much, this works fine as well.

    – Shilpa Janarthanan
    10 hours ago













    @ShilpaJanarthanan Was my pleasure!

    – gigi
    10 hours ago







    @ShilpaJanarthanan Was my pleasure!

    – gigi
    10 hours ago















    Can you please tell me, how to add cdot in the above code, to show the continuity of the equation?

    – Shilpa Janarthanan
    10 hours ago





    Can you please tell me, how to add cdot in the above code, to show the continuity of the equation?

    – Shilpa Janarthanan
    10 hours ago













    @ShilpaJanarthanan Please check now. Also please don't have whole words in math italic.

    – gigi
    9 hours ago





    @ShilpaJanarthanan Please check now. Also please don't have whole words in math italic.

    – gigi
    9 hours ago











    2














    Here's a multlined-based solution. It also uses mid rather than | to denote conditioning, and it "snugs up" the subscript terms to dr.



    enter image description here



    documentclass{article}
    usepackage[a4paper,margin=2.5cm]{geometry} % make suitable page and margin choices
    usepackage{mathtools} % for 'multlined' environment

    begin{document}

    begin{equation}
    renewcommand{!}{mkern-2mu} % default: mkern-3mu
    begin{multlined}
    Delta(h)_{T+S} = prod_{j=1}^{N} biggl[
    frac {P(x^j!,y^jmid theta_{mathrm{paired}})}{%
    P(x^j!,y^jmid theta_{mathrm{unpaired}})}\
    times
    frac{P(bp)_{x^j!,y^j}
    P(bp_{x^j!,y^j}mid pbp_{x^{j-1}!,y^{j+1}})
    P(dl_{x^j}) P(dl_{x^j}mid pdl_{x^{j-1}})
    P(dr_{!y^j})P(dr_{!y^j}mid pdr_{!y^{j+1}})}{%
    P(sl) P(dlmid sl) P(sr) P(drmid sr)} biggr]
    end{multlined}
    end{equation}
    end{document}





    share|improve this answer




























      2














      Here's a multlined-based solution. It also uses mid rather than | to denote conditioning, and it "snugs up" the subscript terms to dr.



      enter image description here



      documentclass{article}
      usepackage[a4paper,margin=2.5cm]{geometry} % make suitable page and margin choices
      usepackage{mathtools} % for 'multlined' environment

      begin{document}

      begin{equation}
      renewcommand{!}{mkern-2mu} % default: mkern-3mu
      begin{multlined}
      Delta(h)_{T+S} = prod_{j=1}^{N} biggl[
      frac {P(x^j!,y^jmid theta_{mathrm{paired}})}{%
      P(x^j!,y^jmid theta_{mathrm{unpaired}})}\
      times
      frac{P(bp)_{x^j!,y^j}
      P(bp_{x^j!,y^j}mid pbp_{x^{j-1}!,y^{j+1}})
      P(dl_{x^j}) P(dl_{x^j}mid pdl_{x^{j-1}})
      P(dr_{!y^j})P(dr_{!y^j}mid pdr_{!y^{j+1}})}{%
      P(sl) P(dlmid sl) P(sr) P(drmid sr)} biggr]
      end{multlined}
      end{equation}
      end{document}





      share|improve this answer


























        2












        2








        2







        Here's a multlined-based solution. It also uses mid rather than | to denote conditioning, and it "snugs up" the subscript terms to dr.



        enter image description here



        documentclass{article}
        usepackage[a4paper,margin=2.5cm]{geometry} % make suitable page and margin choices
        usepackage{mathtools} % for 'multlined' environment

        begin{document}

        begin{equation}
        renewcommand{!}{mkern-2mu} % default: mkern-3mu
        begin{multlined}
        Delta(h)_{T+S} = prod_{j=1}^{N} biggl[
        frac {P(x^j!,y^jmid theta_{mathrm{paired}})}{%
        P(x^j!,y^jmid theta_{mathrm{unpaired}})}\
        times
        frac{P(bp)_{x^j!,y^j}
        P(bp_{x^j!,y^j}mid pbp_{x^{j-1}!,y^{j+1}})
        P(dl_{x^j}) P(dl_{x^j}mid pdl_{x^{j-1}})
        P(dr_{!y^j})P(dr_{!y^j}mid pdr_{!y^{j+1}})}{%
        P(sl) P(dlmid sl) P(sr) P(drmid sr)} biggr]
        end{multlined}
        end{equation}
        end{document}





        share|improve this answer













        Here's a multlined-based solution. It also uses mid rather than | to denote conditioning, and it "snugs up" the subscript terms to dr.



        enter image description here



        documentclass{article}
        usepackage[a4paper,margin=2.5cm]{geometry} % make suitable page and margin choices
        usepackage{mathtools} % for 'multlined' environment

        begin{document}

        begin{equation}
        renewcommand{!}{mkern-2mu} % default: mkern-3mu
        begin{multlined}
        Delta(h)_{T+S} = prod_{j=1}^{N} biggl[
        frac {P(x^j!,y^jmid theta_{mathrm{paired}})}{%
        P(x^j!,y^jmid theta_{mathrm{unpaired}})}\
        times
        frac{P(bp)_{x^j!,y^j}
        P(bp_{x^j!,y^j}mid pbp_{x^{j-1}!,y^{j+1}})
        P(dl_{x^j}) P(dl_{x^j}mid pdl_{x^{j-1}})
        P(dr_{!y^j})P(dr_{!y^j}mid pdr_{!y^{j+1}})}{%
        P(sl) P(dlmid sl) P(sr) P(drmid sr)} biggr]
        end{multlined}
        end{equation}
        end{document}






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 3 hours ago









        MicoMico

        294k32 gold badges407 silver badges798 bronze badges




        294k32 gold badges407 silver badges798 bronze badges






















            Shilpa Janarthanan is a new contributor. Be nice, and check out our Code of Conduct.










            draft saved

            draft discarded


















            Shilpa Janarthanan is a new contributor. Be nice, and check out our Code of Conduct.













            Shilpa Janarthanan is a new contributor. Be nice, and check out our Code of Conduct.












            Shilpa Janarthanan is a new contributor. Be nice, and check out our Code of Conduct.
















            Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f496697%2fhow-to-split-an-equation-in-two-lines%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

            Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

            Nicolae Petrescu-Găină Cuprins Biografie | Opera | In memoriam | Varia | Controverse, incertitudini...