Multiline equation with some characters that span all lines











up vote
4
down vote

favorite












I'm attempting to create a multiline equation with some characters than span both lines.



Target equation



I've come closer by using the amsmath package



begin{multline*}
Pr[Xleftarrow DECODE(Delta;r_1,...,r_ell) |
displaystyle{(Delta;q_1,...,q_ell)leftarrow QUERY(1^lambda;J)} \
displaystyle{Lambda (Lambda^ell _{j=1})}
]
end{multline*}


But I'm at a loss as this does not allow me to span some characters on both lines
Bad multiline



Any suggestions would be appreciated.










share|improve this question









New contributor




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




















  • What about insert the right contents in array with 2 rows?
    – Sigur
    3 hours ago















up vote
4
down vote

favorite












I'm attempting to create a multiline equation with some characters than span both lines.



Target equation



I've come closer by using the amsmath package



begin{multline*}
Pr[Xleftarrow DECODE(Delta;r_1,...,r_ell) |
displaystyle{(Delta;q_1,...,q_ell)leftarrow QUERY(1^lambda;J)} \
displaystyle{Lambda (Lambda^ell _{j=1})}
]
end{multline*}


But I'm at a loss as this does not allow me to span some characters on both lines
Bad multiline



Any suggestions would be appreciated.










share|improve this question









New contributor




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




















  • What about insert the right contents in array with 2 rows?
    – Sigur
    3 hours ago













up vote
4
down vote

favorite









up vote
4
down vote

favorite











I'm attempting to create a multiline equation with some characters than span both lines.



Target equation



I've come closer by using the amsmath package



begin{multline*}
Pr[Xleftarrow DECODE(Delta;r_1,...,r_ell) |
displaystyle{(Delta;q_1,...,q_ell)leftarrow QUERY(1^lambda;J)} \
displaystyle{Lambda (Lambda^ell _{j=1})}
]
end{multline*}


But I'm at a loss as this does not allow me to span some characters on both lines
Bad multiline



Any suggestions would be appreciated.










share|improve this question









New contributor




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











I'm attempting to create a multiline equation with some characters than span both lines.



Target equation



I've come closer by using the amsmath package



begin{multline*}
Pr[Xleftarrow DECODE(Delta;r_1,...,r_ell) |
displaystyle{(Delta;q_1,...,q_ell)leftarrow QUERY(1^lambda;J)} \
displaystyle{Lambda (Lambda^ell _{j=1})}
]
end{multline*}


But I'm at a loss as this does not allow me to span some characters on both lines
Bad multiline



Any suggestions would be appreciated.







equations amsmath






share|improve this question









New contributor




Tarald Riise 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




Tarald Riise 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 2 hours ago









Mico

272k30369756




272k30369756






New contributor




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









asked 3 hours ago









Tarald Riise

211




211




New contributor




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





New contributor





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






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












  • What about insert the right contents in array with 2 rows?
    – Sigur
    3 hours ago


















  • What about insert the right contents in array with 2 rows?
    – Sigur
    3 hours ago
















What about insert the right contents in array with 2 rows?
– Sigur
3 hours ago




What about insert the right contents in array with 2 rows?
– Sigur
3 hours ago










3 Answers
3






active

oldest

votes

















up vote
3
down vote













enter image description here



by use of array:



documentclass{article}
usepackage{amsmath}

begin{document}
[
Pr left[Xleftarrowtext{DECODE}(Delta;r_1,dotsc,r_ell) middle|
begin{array}{l}
(Delta;q_1,dotsc,q_ell)leftarrow text{QUERY}(1^lambda;J) \
Lambda(Lambda^ell _{j=1}) leftarrowtext{RESPOND}(X^{(j)}:q_j
end{array}
right]
]
end{document}





share|improve this answer



















  • 1




    You won by few seconds. lol
    – Sigur
    3 hours ago






  • 1




    Also, missing dots.
    – Sigur
    3 hours ago






  • 1




    thank you very much to all who pointed me to weakness/errors in my code. i was to much focused to show solution how to write right part of expression in two left aligned lines.
    – Zarko
    3 hours ago




















up vote
2
down vote













My main suggestions are (a) use biggl[, biggm|, and biggr] to structure the equation and (b) use a two-row array environment for the material between biggm| and biggr]. I wouldn't use a multline* environment, though. An unnumbered single-line display math environment does fine.



enter image description here



documentclass{article}
usepackage{amsmath}
usepackage{array} % for 'newcolumntype' macro
newcolumntype{L}{>{displaystyle}l} % automatic displaystyle math mode
begin{document}
[
Prbiggl[
Xleftarrow mathit{DECODE}(Delta;r_1,dots,r_ell)
biggm|
begin{array}{@{}L@{}}
(Delta;q_1,dots,q_ell)leftarrow mathit{QUERY}(1^lambda;J) \
Lambda bigl(Lambda^ell_{j=1}leftarrow mathit{RESPOND}(X^{(j)};q_j)bigr)
end{array}
biggr]
]
end{document}





share|improve this answer






























    up vote
    2
    down vote













    The image has several inconsistencies in the typesetting.



    I suggest to define semantic commands in order to be sure that similar objects are always typeset the same.



    I don't like ell, but you can use it in place of the plain l.



    documentclass{article}
    usepackage{amsmath}

    newcommand{func}[1]{mathit{#1}}

    begin{document}

    begin{equation*}
    Prleft[
    X gets func{DECODE}(Delta;r_1,dots,r_l)
    ;middle|;
    begin{matrix}
    (Delta;q_1,dots,q_l) gets func{QUERY}(1^lambda;J) \
    Lambda(Lambda_{j=1}^l gets func{RESPOND}(X^{(j)};q_j))
    end{matrix}
    right]
    end{equation*}

    end{document}


    enter image description here



    A slightly different approach, where you specify the brackets as inherently attached to Pr and can choose their size (see the documentation of DeclarePairedDelimiter in mathtools). Basically, Pr* selects automatic size, Pr[big] (or any other delimiter size changing command in the optional argument) selects the stated size.



    documentclass{article}
    usepackage{amsmath,mathtools}

    newcommand{func}[1]{mathit{#1}}

    renewcommand{Pr}{operatorname{Pr}brackets}
    DeclarePairedDelimiterX{brackets}[1]{[}{]}{#1}
    newcommand{given}{;delimsize|;mathopen{}}

    begin{document}

    begin{equation*}
    Pr*{
    X gets func{DECODE}(Delta;r_1,dots,r_l)
    given
    begin{matrix}
    (Delta;q_1,dots,q_l) gets func{QUERY}(1^lambda;J) \
    Lambda(Lambda_{j=1}^l gets func{RESPOND}(X^{(j)};q_j))
    end{matrix}
    }
    end{equation*}

    begin{equation*}
    Pr[Big]{
    X gets func{DECODE}(Delta;r_1,dots,r_l)
    given
    begin{matrix}
    (Delta;q_1,dots,q_l) gets func{QUERY}(1^lambda;J) \
    Lambda(Lambda_{j=1}^l gets func{RESPOND}(X^{(j)};q_j))
    end{matrix}
    }
    end{equation*}

    begin{equation*}
    Pr[bigg]{
    X gets func{DECODE}(Delta;r_1,dots,r_l)
    given
    begin{matrix}
    (Delta;q_1,dots,q_l) gets func{QUERY}(1^lambda;J) \
    Lambda(Lambda_{j=1}^l gets func{RESPOND}(X^{(j)};q_j))
    end{matrix}
    }
    end{equation*}

    end{document}


    enter image description here






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


      }
      });






      Tarald Riise 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%2f466089%2fmultiline-equation-with-some-characters-that-span-all-lines%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      3 Answers
      3






      active

      oldest

      votes








      3 Answers
      3






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes








      up vote
      3
      down vote













      enter image description here



      by use of array:



      documentclass{article}
      usepackage{amsmath}

      begin{document}
      [
      Pr left[Xleftarrowtext{DECODE}(Delta;r_1,dotsc,r_ell) middle|
      begin{array}{l}
      (Delta;q_1,dotsc,q_ell)leftarrow text{QUERY}(1^lambda;J) \
      Lambda(Lambda^ell _{j=1}) leftarrowtext{RESPOND}(X^{(j)}:q_j
      end{array}
      right]
      ]
      end{document}





      share|improve this answer



















      • 1




        You won by few seconds. lol
        – Sigur
        3 hours ago






      • 1




        Also, missing dots.
        – Sigur
        3 hours ago






      • 1




        thank you very much to all who pointed me to weakness/errors in my code. i was to much focused to show solution how to write right part of expression in two left aligned lines.
        – Zarko
        3 hours ago

















      up vote
      3
      down vote













      enter image description here



      by use of array:



      documentclass{article}
      usepackage{amsmath}

      begin{document}
      [
      Pr left[Xleftarrowtext{DECODE}(Delta;r_1,dotsc,r_ell) middle|
      begin{array}{l}
      (Delta;q_1,dotsc,q_ell)leftarrow text{QUERY}(1^lambda;J) \
      Lambda(Lambda^ell _{j=1}) leftarrowtext{RESPOND}(X^{(j)}:q_j
      end{array}
      right]
      ]
      end{document}





      share|improve this answer



















      • 1




        You won by few seconds. lol
        – Sigur
        3 hours ago






      • 1




        Also, missing dots.
        – Sigur
        3 hours ago






      • 1




        thank you very much to all who pointed me to weakness/errors in my code. i was to much focused to show solution how to write right part of expression in two left aligned lines.
        – Zarko
        3 hours ago















      up vote
      3
      down vote










      up vote
      3
      down vote









      enter image description here



      by use of array:



      documentclass{article}
      usepackage{amsmath}

      begin{document}
      [
      Pr left[Xleftarrowtext{DECODE}(Delta;r_1,dotsc,r_ell) middle|
      begin{array}{l}
      (Delta;q_1,dotsc,q_ell)leftarrow text{QUERY}(1^lambda;J) \
      Lambda(Lambda^ell _{j=1}) leftarrowtext{RESPOND}(X^{(j)}:q_j
      end{array}
      right]
      ]
      end{document}





      share|improve this answer














      enter image description here



      by use of array:



      documentclass{article}
      usepackage{amsmath}

      begin{document}
      [
      Pr left[Xleftarrowtext{DECODE}(Delta;r_1,dotsc,r_ell) middle|
      begin{array}{l}
      (Delta;q_1,dotsc,q_ell)leftarrow text{QUERY}(1^lambda;J) \
      Lambda(Lambda^ell _{j=1}) leftarrowtext{RESPOND}(X^{(j)}:q_j
      end{array}
      right]
      ]
      end{document}






      share|improve this answer














      share|improve this answer



      share|improve this answer








      edited 3 hours ago

























      answered 3 hours ago









      Zarko

      119k865155




      119k865155








      • 1




        You won by few seconds. lol
        – Sigur
        3 hours ago






      • 1




        Also, missing dots.
        – Sigur
        3 hours ago






      • 1




        thank you very much to all who pointed me to weakness/errors in my code. i was to much focused to show solution how to write right part of expression in two left aligned lines.
        – Zarko
        3 hours ago
















      • 1




        You won by few seconds. lol
        – Sigur
        3 hours ago






      • 1




        Also, missing dots.
        – Sigur
        3 hours ago






      • 1




        thank you very much to all who pointed me to weakness/errors in my code. i was to much focused to show solution how to write right part of expression in two left aligned lines.
        – Zarko
        3 hours ago










      1




      1




      You won by few seconds. lol
      – Sigur
      3 hours ago




      You won by few seconds. lol
      – Sigur
      3 hours ago




      1




      1




      Also, missing dots.
      – Sigur
      3 hours ago




      Also, missing dots.
      – Sigur
      3 hours ago




      1




      1




      thank you very much to all who pointed me to weakness/errors in my code. i was to much focused to show solution how to write right part of expression in two left aligned lines.
      – Zarko
      3 hours ago






      thank you very much to all who pointed me to weakness/errors in my code. i was to much focused to show solution how to write right part of expression in two left aligned lines.
      – Zarko
      3 hours ago












      up vote
      2
      down vote













      My main suggestions are (a) use biggl[, biggm|, and biggr] to structure the equation and (b) use a two-row array environment for the material between biggm| and biggr]. I wouldn't use a multline* environment, though. An unnumbered single-line display math environment does fine.



      enter image description here



      documentclass{article}
      usepackage{amsmath}
      usepackage{array} % for 'newcolumntype' macro
      newcolumntype{L}{>{displaystyle}l} % automatic displaystyle math mode
      begin{document}
      [
      Prbiggl[
      Xleftarrow mathit{DECODE}(Delta;r_1,dots,r_ell)
      biggm|
      begin{array}{@{}L@{}}
      (Delta;q_1,dots,q_ell)leftarrow mathit{QUERY}(1^lambda;J) \
      Lambda bigl(Lambda^ell_{j=1}leftarrow mathit{RESPOND}(X^{(j)};q_j)bigr)
      end{array}
      biggr]
      ]
      end{document}





      share|improve this answer



























        up vote
        2
        down vote













        My main suggestions are (a) use biggl[, biggm|, and biggr] to structure the equation and (b) use a two-row array environment for the material between biggm| and biggr]. I wouldn't use a multline* environment, though. An unnumbered single-line display math environment does fine.



        enter image description here



        documentclass{article}
        usepackage{amsmath}
        usepackage{array} % for 'newcolumntype' macro
        newcolumntype{L}{>{displaystyle}l} % automatic displaystyle math mode
        begin{document}
        [
        Prbiggl[
        Xleftarrow mathit{DECODE}(Delta;r_1,dots,r_ell)
        biggm|
        begin{array}{@{}L@{}}
        (Delta;q_1,dots,q_ell)leftarrow mathit{QUERY}(1^lambda;J) \
        Lambda bigl(Lambda^ell_{j=1}leftarrow mathit{RESPOND}(X^{(j)};q_j)bigr)
        end{array}
        biggr]
        ]
        end{document}





        share|improve this answer

























          up vote
          2
          down vote










          up vote
          2
          down vote









          My main suggestions are (a) use biggl[, biggm|, and biggr] to structure the equation and (b) use a two-row array environment for the material between biggm| and biggr]. I wouldn't use a multline* environment, though. An unnumbered single-line display math environment does fine.



          enter image description here



          documentclass{article}
          usepackage{amsmath}
          usepackage{array} % for 'newcolumntype' macro
          newcolumntype{L}{>{displaystyle}l} % automatic displaystyle math mode
          begin{document}
          [
          Prbiggl[
          Xleftarrow mathit{DECODE}(Delta;r_1,dots,r_ell)
          biggm|
          begin{array}{@{}L@{}}
          (Delta;q_1,dots,q_ell)leftarrow mathit{QUERY}(1^lambda;J) \
          Lambda bigl(Lambda^ell_{j=1}leftarrow mathit{RESPOND}(X^{(j)};q_j)bigr)
          end{array}
          biggr]
          ]
          end{document}





          share|improve this answer














          My main suggestions are (a) use biggl[, biggm|, and biggr] to structure the equation and (b) use a two-row array environment for the material between biggm| and biggr]. I wouldn't use a multline* environment, though. An unnumbered single-line display math environment does fine.



          enter image description here



          documentclass{article}
          usepackage{amsmath}
          usepackage{array} % for 'newcolumntype' macro
          newcolumntype{L}{>{displaystyle}l} % automatic displaystyle math mode
          begin{document}
          [
          Prbiggl[
          Xleftarrow mathit{DECODE}(Delta;r_1,dots,r_ell)
          biggm|
          begin{array}{@{}L@{}}
          (Delta;q_1,dots,q_ell)leftarrow mathit{QUERY}(1^lambda;J) \
          Lambda bigl(Lambda^ell_{j=1}leftarrow mathit{RESPOND}(X^{(j)};q_j)bigr)
          end{array}
          biggr]
          ]
          end{document}






          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited 2 hours ago

























          answered 3 hours ago









          Mico

          272k30369756




          272k30369756






















              up vote
              2
              down vote













              The image has several inconsistencies in the typesetting.



              I suggest to define semantic commands in order to be sure that similar objects are always typeset the same.



              I don't like ell, but you can use it in place of the plain l.



              documentclass{article}
              usepackage{amsmath}

              newcommand{func}[1]{mathit{#1}}

              begin{document}

              begin{equation*}
              Prleft[
              X gets func{DECODE}(Delta;r_1,dots,r_l)
              ;middle|;
              begin{matrix}
              (Delta;q_1,dots,q_l) gets func{QUERY}(1^lambda;J) \
              Lambda(Lambda_{j=1}^l gets func{RESPOND}(X^{(j)};q_j))
              end{matrix}
              right]
              end{equation*}

              end{document}


              enter image description here



              A slightly different approach, where you specify the brackets as inherently attached to Pr and can choose their size (see the documentation of DeclarePairedDelimiter in mathtools). Basically, Pr* selects automatic size, Pr[big] (or any other delimiter size changing command in the optional argument) selects the stated size.



              documentclass{article}
              usepackage{amsmath,mathtools}

              newcommand{func}[1]{mathit{#1}}

              renewcommand{Pr}{operatorname{Pr}brackets}
              DeclarePairedDelimiterX{brackets}[1]{[}{]}{#1}
              newcommand{given}{;delimsize|;mathopen{}}

              begin{document}

              begin{equation*}
              Pr*{
              X gets func{DECODE}(Delta;r_1,dots,r_l)
              given
              begin{matrix}
              (Delta;q_1,dots,q_l) gets func{QUERY}(1^lambda;J) \
              Lambda(Lambda_{j=1}^l gets func{RESPOND}(X^{(j)};q_j))
              end{matrix}
              }
              end{equation*}

              begin{equation*}
              Pr[Big]{
              X gets func{DECODE}(Delta;r_1,dots,r_l)
              given
              begin{matrix}
              (Delta;q_1,dots,q_l) gets func{QUERY}(1^lambda;J) \
              Lambda(Lambda_{j=1}^l gets func{RESPOND}(X^{(j)};q_j))
              end{matrix}
              }
              end{equation*}

              begin{equation*}
              Pr[bigg]{
              X gets func{DECODE}(Delta;r_1,dots,r_l)
              given
              begin{matrix}
              (Delta;q_1,dots,q_l) gets func{QUERY}(1^lambda;J) \
              Lambda(Lambda_{j=1}^l gets func{RESPOND}(X^{(j)};q_j))
              end{matrix}
              }
              end{equation*}

              end{document}


              enter image description here






              share|improve this answer

























                up vote
                2
                down vote













                The image has several inconsistencies in the typesetting.



                I suggest to define semantic commands in order to be sure that similar objects are always typeset the same.



                I don't like ell, but you can use it in place of the plain l.



                documentclass{article}
                usepackage{amsmath}

                newcommand{func}[1]{mathit{#1}}

                begin{document}

                begin{equation*}
                Prleft[
                X gets func{DECODE}(Delta;r_1,dots,r_l)
                ;middle|;
                begin{matrix}
                (Delta;q_1,dots,q_l) gets func{QUERY}(1^lambda;J) \
                Lambda(Lambda_{j=1}^l gets func{RESPOND}(X^{(j)};q_j))
                end{matrix}
                right]
                end{equation*}

                end{document}


                enter image description here



                A slightly different approach, where you specify the brackets as inherently attached to Pr and can choose their size (see the documentation of DeclarePairedDelimiter in mathtools). Basically, Pr* selects automatic size, Pr[big] (or any other delimiter size changing command in the optional argument) selects the stated size.



                documentclass{article}
                usepackage{amsmath,mathtools}

                newcommand{func}[1]{mathit{#1}}

                renewcommand{Pr}{operatorname{Pr}brackets}
                DeclarePairedDelimiterX{brackets}[1]{[}{]}{#1}
                newcommand{given}{;delimsize|;mathopen{}}

                begin{document}

                begin{equation*}
                Pr*{
                X gets func{DECODE}(Delta;r_1,dots,r_l)
                given
                begin{matrix}
                (Delta;q_1,dots,q_l) gets func{QUERY}(1^lambda;J) \
                Lambda(Lambda_{j=1}^l gets func{RESPOND}(X^{(j)};q_j))
                end{matrix}
                }
                end{equation*}

                begin{equation*}
                Pr[Big]{
                X gets func{DECODE}(Delta;r_1,dots,r_l)
                given
                begin{matrix}
                (Delta;q_1,dots,q_l) gets func{QUERY}(1^lambda;J) \
                Lambda(Lambda_{j=1}^l gets func{RESPOND}(X^{(j)};q_j))
                end{matrix}
                }
                end{equation*}

                begin{equation*}
                Pr[bigg]{
                X gets func{DECODE}(Delta;r_1,dots,r_l)
                given
                begin{matrix}
                (Delta;q_1,dots,q_l) gets func{QUERY}(1^lambda;J) \
                Lambda(Lambda_{j=1}^l gets func{RESPOND}(X^{(j)};q_j))
                end{matrix}
                }
                end{equation*}

                end{document}


                enter image description here






                share|improve this answer























                  up vote
                  2
                  down vote










                  up vote
                  2
                  down vote









                  The image has several inconsistencies in the typesetting.



                  I suggest to define semantic commands in order to be sure that similar objects are always typeset the same.



                  I don't like ell, but you can use it in place of the plain l.



                  documentclass{article}
                  usepackage{amsmath}

                  newcommand{func}[1]{mathit{#1}}

                  begin{document}

                  begin{equation*}
                  Prleft[
                  X gets func{DECODE}(Delta;r_1,dots,r_l)
                  ;middle|;
                  begin{matrix}
                  (Delta;q_1,dots,q_l) gets func{QUERY}(1^lambda;J) \
                  Lambda(Lambda_{j=1}^l gets func{RESPOND}(X^{(j)};q_j))
                  end{matrix}
                  right]
                  end{equation*}

                  end{document}


                  enter image description here



                  A slightly different approach, where you specify the brackets as inherently attached to Pr and can choose their size (see the documentation of DeclarePairedDelimiter in mathtools). Basically, Pr* selects automatic size, Pr[big] (or any other delimiter size changing command in the optional argument) selects the stated size.



                  documentclass{article}
                  usepackage{amsmath,mathtools}

                  newcommand{func}[1]{mathit{#1}}

                  renewcommand{Pr}{operatorname{Pr}brackets}
                  DeclarePairedDelimiterX{brackets}[1]{[}{]}{#1}
                  newcommand{given}{;delimsize|;mathopen{}}

                  begin{document}

                  begin{equation*}
                  Pr*{
                  X gets func{DECODE}(Delta;r_1,dots,r_l)
                  given
                  begin{matrix}
                  (Delta;q_1,dots,q_l) gets func{QUERY}(1^lambda;J) \
                  Lambda(Lambda_{j=1}^l gets func{RESPOND}(X^{(j)};q_j))
                  end{matrix}
                  }
                  end{equation*}

                  begin{equation*}
                  Pr[Big]{
                  X gets func{DECODE}(Delta;r_1,dots,r_l)
                  given
                  begin{matrix}
                  (Delta;q_1,dots,q_l) gets func{QUERY}(1^lambda;J) \
                  Lambda(Lambda_{j=1}^l gets func{RESPOND}(X^{(j)};q_j))
                  end{matrix}
                  }
                  end{equation*}

                  begin{equation*}
                  Pr[bigg]{
                  X gets func{DECODE}(Delta;r_1,dots,r_l)
                  given
                  begin{matrix}
                  (Delta;q_1,dots,q_l) gets func{QUERY}(1^lambda;J) \
                  Lambda(Lambda_{j=1}^l gets func{RESPOND}(X^{(j)};q_j))
                  end{matrix}
                  }
                  end{equation*}

                  end{document}


                  enter image description here






                  share|improve this answer












                  The image has several inconsistencies in the typesetting.



                  I suggest to define semantic commands in order to be sure that similar objects are always typeset the same.



                  I don't like ell, but you can use it in place of the plain l.



                  documentclass{article}
                  usepackage{amsmath}

                  newcommand{func}[1]{mathit{#1}}

                  begin{document}

                  begin{equation*}
                  Prleft[
                  X gets func{DECODE}(Delta;r_1,dots,r_l)
                  ;middle|;
                  begin{matrix}
                  (Delta;q_1,dots,q_l) gets func{QUERY}(1^lambda;J) \
                  Lambda(Lambda_{j=1}^l gets func{RESPOND}(X^{(j)};q_j))
                  end{matrix}
                  right]
                  end{equation*}

                  end{document}


                  enter image description here



                  A slightly different approach, where you specify the brackets as inherently attached to Pr and can choose their size (see the documentation of DeclarePairedDelimiter in mathtools). Basically, Pr* selects automatic size, Pr[big] (or any other delimiter size changing command in the optional argument) selects the stated size.



                  documentclass{article}
                  usepackage{amsmath,mathtools}

                  newcommand{func}[1]{mathit{#1}}

                  renewcommand{Pr}{operatorname{Pr}brackets}
                  DeclarePairedDelimiterX{brackets}[1]{[}{]}{#1}
                  newcommand{given}{;delimsize|;mathopen{}}

                  begin{document}

                  begin{equation*}
                  Pr*{
                  X gets func{DECODE}(Delta;r_1,dots,r_l)
                  given
                  begin{matrix}
                  (Delta;q_1,dots,q_l) gets func{QUERY}(1^lambda;J) \
                  Lambda(Lambda_{j=1}^l gets func{RESPOND}(X^{(j)};q_j))
                  end{matrix}
                  }
                  end{equation*}

                  begin{equation*}
                  Pr[Big]{
                  X gets func{DECODE}(Delta;r_1,dots,r_l)
                  given
                  begin{matrix}
                  (Delta;q_1,dots,q_l) gets func{QUERY}(1^lambda;J) \
                  Lambda(Lambda_{j=1}^l gets func{RESPOND}(X^{(j)};q_j))
                  end{matrix}
                  }
                  end{equation*}

                  begin{equation*}
                  Pr[bigg]{
                  X gets func{DECODE}(Delta;r_1,dots,r_l)
                  given
                  begin{matrix}
                  (Delta;q_1,dots,q_l) gets func{QUERY}(1^lambda;J) \
                  Lambda(Lambda_{j=1}^l gets func{RESPOND}(X^{(j)};q_j))
                  end{matrix}
                  }
                  end{equation*}

                  end{document}


                  enter image description here







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered 2 hours ago









                  egreg

                  705k8618763155




                  705k8618763155






















                      Tarald Riise is a new contributor. Be nice, and check out our Code of Conduct.










                      draft saved

                      draft discarded


















                      Tarald Riise is a new contributor. Be nice, and check out our Code of Conduct.













                      Tarald Riise is a new contributor. Be nice, and check out our Code of Conduct.












                      Tarald Riise 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.





                      Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                      Please pay close attention to the following guidance:


                      • 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%2f466089%2fmultiline-equation-with-some-characters-that-span-all-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

                      Ellipse (mathématiques)

                      Quarter-circle Tiles

                      Mont Emei