How do I do Wick contraction with Dirac bracket?











up vote
1
down vote

favorite












So I would like to be able to draw Wick contraction with Dirac bracket, the Dirac bracket is produced with package physics, and the mwe is



documentclass{article}

usepackage{physics}

begin{document}
$$
mathcal{M}_{hat{s}} sim mel**{k , k'}{overline{psi}_x psi _x overline{psi}_y psi _y}{p , p'}
$$
end{document}


The kind of effect I would like to achieve with this bracket is



wick contraction



The reason why I would like to use this package physics is, it is the only package I know that would nicely adjust the height of the angled bracket as well as the vertical lines in Dirac bracket, so I would like to stay with this package.



The problem with drawing the Wick contractions is, neither simplewick nor simpler-wick would work, so I am wondering if there is really a solution.



Also, I know it is always possible to do anything with tikz and that is something I could do, but I would appreciate if someone could offer a neater solution.










share|improve this question


























    up vote
    1
    down vote

    favorite












    So I would like to be able to draw Wick contraction with Dirac bracket, the Dirac bracket is produced with package physics, and the mwe is



    documentclass{article}

    usepackage{physics}

    begin{document}
    $$
    mathcal{M}_{hat{s}} sim mel**{k , k'}{overline{psi}_x psi _x overline{psi}_y psi _y}{p , p'}
    $$
    end{document}


    The kind of effect I would like to achieve with this bracket is



    wick contraction



    The reason why I would like to use this package physics is, it is the only package I know that would nicely adjust the height of the angled bracket as well as the vertical lines in Dirac bracket, so I would like to stay with this package.



    The problem with drawing the Wick contractions is, neither simplewick nor simpler-wick would work, so I am wondering if there is really a solution.



    Also, I know it is always possible to do anything with tikz and that is something I could do, but I would appreciate if someone could offer a neater solution.










    share|improve this question
























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      So I would like to be able to draw Wick contraction with Dirac bracket, the Dirac bracket is produced with package physics, and the mwe is



      documentclass{article}

      usepackage{physics}

      begin{document}
      $$
      mathcal{M}_{hat{s}} sim mel**{k , k'}{overline{psi}_x psi _x overline{psi}_y psi _y}{p , p'}
      $$
      end{document}


      The kind of effect I would like to achieve with this bracket is



      wick contraction



      The reason why I would like to use this package physics is, it is the only package I know that would nicely adjust the height of the angled bracket as well as the vertical lines in Dirac bracket, so I would like to stay with this package.



      The problem with drawing the Wick contractions is, neither simplewick nor simpler-wick would work, so I am wondering if there is really a solution.



      Also, I know it is always possible to do anything with tikz and that is something I could do, but I would appreciate if someone could offer a neater solution.










      share|improve this question













      So I would like to be able to draw Wick contraction with Dirac bracket, the Dirac bracket is produced with package physics, and the mwe is



      documentclass{article}

      usepackage{physics}

      begin{document}
      $$
      mathcal{M}_{hat{s}} sim mel**{k , k'}{overline{psi}_x psi _x overline{psi}_y psi _y}{p , p'}
      $$
      end{document}


      The kind of effect I would like to achieve with this bracket is



      wick contraction



      The reason why I would like to use this package physics is, it is the only package I know that would nicely adjust the height of the angled bracket as well as the vertical lines in Dirac bracket, so I would like to stay with this package.



      The problem with drawing the Wick contractions is, neither simplewick nor simpler-wick would work, so I am wondering if there is really a solution.



      Also, I know it is always possible to do anything with tikz and that is something I could do, but I would appreciate if someone could offer a neater solution.







      brackets






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 18 at 21:32









      zyy

      628612




      628612






















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          3
          down vote













          A solution with pstricks . I also defined a Dirac braket with DeclarePairedDelimiter from mathtools:



          documentclass[svgnames]{article}
          usepackage{mathtools}
          usepackage{pst-node, auto-pst-pdf}

          DeclarePairedDelimiterXDirbraket[3]{langle}{rangle}%
          {#1,delimsizevert,mathopen{}#2,delimsizevert,mathopen{}#3}

          begin{document}

          begin{postscript}
          [
          mathcal{M}_{hat{s}} sim Dirbraket*{rnode{k}{k} , rnode{k1}{k'}}{rnode{opx}{overline{psi}_x rnode{psx}{psi_x}} rnode{opy}{overline{psi}_y} rnode{psy}{psi_y}}{rnode{p}{vphantom{k} p} , rnode{p1}{p'}}
          ]
          psset{angle=90, linewidth=0.5pt, linecolor=IndianRed, nodesep=2pt, arm=3mm, linejoin=1}
          ncbar[offsetB=-8pt]{k}{opx}
          ncbar[arm=2mm]{k1}{psy}
          ncbar[offsetA=2pt]{opy}{p1}
          ncbar[offsetA=1pt, arm=4.5mm]{psx}{p}
          end{postscript}

          end{document}


          enter image description here






          share|improve this answer





















          • Perfect work. I like very much. (+1)
            – Sebastiano
            Nov 18 at 23:17


















          up vote
          2
          down vote













          langle and rangle will scale and work with simpler-wick:



          documentclass{article}

          usepackage{simpler-wick}

          begin{document}
          [
          mathcal{M}_{hat{s}} sim
          langle
          wick{
          c1 k, c2 k'
          vert
          overline{c1 psi}_x psi_x overline{psi}_y c2 psi_y
          vert
          p, p'
          }
          rangle
          ]
          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
            });


            }
            });














             

            draft saved


            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f460657%2fhow-do-i-do-wick-contraction-with-dirac-bracket%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            3
            down vote













            A solution with pstricks . I also defined a Dirac braket with DeclarePairedDelimiter from mathtools:



            documentclass[svgnames]{article}
            usepackage{mathtools}
            usepackage{pst-node, auto-pst-pdf}

            DeclarePairedDelimiterXDirbraket[3]{langle}{rangle}%
            {#1,delimsizevert,mathopen{}#2,delimsizevert,mathopen{}#3}

            begin{document}

            begin{postscript}
            [
            mathcal{M}_{hat{s}} sim Dirbraket*{rnode{k}{k} , rnode{k1}{k'}}{rnode{opx}{overline{psi}_x rnode{psx}{psi_x}} rnode{opy}{overline{psi}_y} rnode{psy}{psi_y}}{rnode{p}{vphantom{k} p} , rnode{p1}{p'}}
            ]
            psset{angle=90, linewidth=0.5pt, linecolor=IndianRed, nodesep=2pt, arm=3mm, linejoin=1}
            ncbar[offsetB=-8pt]{k}{opx}
            ncbar[arm=2mm]{k1}{psy}
            ncbar[offsetA=2pt]{opy}{p1}
            ncbar[offsetA=1pt, arm=4.5mm]{psx}{p}
            end{postscript}

            end{document}


            enter image description here






            share|improve this answer





















            • Perfect work. I like very much. (+1)
              – Sebastiano
              Nov 18 at 23:17















            up vote
            3
            down vote













            A solution with pstricks . I also defined a Dirac braket with DeclarePairedDelimiter from mathtools:



            documentclass[svgnames]{article}
            usepackage{mathtools}
            usepackage{pst-node, auto-pst-pdf}

            DeclarePairedDelimiterXDirbraket[3]{langle}{rangle}%
            {#1,delimsizevert,mathopen{}#2,delimsizevert,mathopen{}#3}

            begin{document}

            begin{postscript}
            [
            mathcal{M}_{hat{s}} sim Dirbraket*{rnode{k}{k} , rnode{k1}{k'}}{rnode{opx}{overline{psi}_x rnode{psx}{psi_x}} rnode{opy}{overline{psi}_y} rnode{psy}{psi_y}}{rnode{p}{vphantom{k} p} , rnode{p1}{p'}}
            ]
            psset{angle=90, linewidth=0.5pt, linecolor=IndianRed, nodesep=2pt, arm=3mm, linejoin=1}
            ncbar[offsetB=-8pt]{k}{opx}
            ncbar[arm=2mm]{k1}{psy}
            ncbar[offsetA=2pt]{opy}{p1}
            ncbar[offsetA=1pt, arm=4.5mm]{psx}{p}
            end{postscript}

            end{document}


            enter image description here






            share|improve this answer





















            • Perfect work. I like very much. (+1)
              – Sebastiano
              Nov 18 at 23:17













            up vote
            3
            down vote










            up vote
            3
            down vote









            A solution with pstricks . I also defined a Dirac braket with DeclarePairedDelimiter from mathtools:



            documentclass[svgnames]{article}
            usepackage{mathtools}
            usepackage{pst-node, auto-pst-pdf}

            DeclarePairedDelimiterXDirbraket[3]{langle}{rangle}%
            {#1,delimsizevert,mathopen{}#2,delimsizevert,mathopen{}#3}

            begin{document}

            begin{postscript}
            [
            mathcal{M}_{hat{s}} sim Dirbraket*{rnode{k}{k} , rnode{k1}{k'}}{rnode{opx}{overline{psi}_x rnode{psx}{psi_x}} rnode{opy}{overline{psi}_y} rnode{psy}{psi_y}}{rnode{p}{vphantom{k} p} , rnode{p1}{p'}}
            ]
            psset{angle=90, linewidth=0.5pt, linecolor=IndianRed, nodesep=2pt, arm=3mm, linejoin=1}
            ncbar[offsetB=-8pt]{k}{opx}
            ncbar[arm=2mm]{k1}{psy}
            ncbar[offsetA=2pt]{opy}{p1}
            ncbar[offsetA=1pt, arm=4.5mm]{psx}{p}
            end{postscript}

            end{document}


            enter image description here






            share|improve this answer












            A solution with pstricks . I also defined a Dirac braket with DeclarePairedDelimiter from mathtools:



            documentclass[svgnames]{article}
            usepackage{mathtools}
            usepackage{pst-node, auto-pst-pdf}

            DeclarePairedDelimiterXDirbraket[3]{langle}{rangle}%
            {#1,delimsizevert,mathopen{}#2,delimsizevert,mathopen{}#3}

            begin{document}

            begin{postscript}
            [
            mathcal{M}_{hat{s}} sim Dirbraket*{rnode{k}{k} , rnode{k1}{k'}}{rnode{opx}{overline{psi}_x rnode{psx}{psi_x}} rnode{opy}{overline{psi}_y} rnode{psy}{psi_y}}{rnode{p}{vphantom{k} p} , rnode{p1}{p'}}
            ]
            psset{angle=90, linewidth=0.5pt, linecolor=IndianRed, nodesep=2pt, arm=3mm, linejoin=1}
            ncbar[offsetB=-8pt]{k}{opx}
            ncbar[arm=2mm]{k1}{psy}
            ncbar[offsetA=2pt]{opy}{p1}
            ncbar[offsetA=1pt, arm=4.5mm]{psx}{p}
            end{postscript}

            end{document}


            enter image description here







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Nov 18 at 23:00









            Bernard

            162k767192




            162k767192












            • Perfect work. I like very much. (+1)
              – Sebastiano
              Nov 18 at 23:17


















            • Perfect work. I like very much. (+1)
              – Sebastiano
              Nov 18 at 23:17
















            Perfect work. I like very much. (+1)
            – Sebastiano
            Nov 18 at 23:17




            Perfect work. I like very much. (+1)
            – Sebastiano
            Nov 18 at 23:17










            up vote
            2
            down vote













            langle and rangle will scale and work with simpler-wick:



            documentclass{article}

            usepackage{simpler-wick}

            begin{document}
            [
            mathcal{M}_{hat{s}} sim
            langle
            wick{
            c1 k, c2 k'
            vert
            overline{c1 psi}_x psi_x overline{psi}_y c2 psi_y
            vert
            p, p'
            }
            rangle
            ]
            end{document}


            enter image description here






            share|improve this answer

























              up vote
              2
              down vote













              langle and rangle will scale and work with simpler-wick:



              documentclass{article}

              usepackage{simpler-wick}

              begin{document}
              [
              mathcal{M}_{hat{s}} sim
              langle
              wick{
              c1 k, c2 k'
              vert
              overline{c1 psi}_x psi_x overline{psi}_y c2 psi_y
              vert
              p, p'
              }
              rangle
              ]
              end{document}


              enter image description here






              share|improve this answer























                up vote
                2
                down vote










                up vote
                2
                down vote









                langle and rangle will scale and work with simpler-wick:



                documentclass{article}

                usepackage{simpler-wick}

                begin{document}
                [
                mathcal{M}_{hat{s}} sim
                langle
                wick{
                c1 k, c2 k'
                vert
                overline{c1 psi}_x psi_x overline{psi}_y c2 psi_y
                vert
                p, p'
                }
                rangle
                ]
                end{document}


                enter image description here






                share|improve this answer












                langle and rangle will scale and work with simpler-wick:



                documentclass{article}

                usepackage{simpler-wick}

                begin{document}
                [
                mathcal{M}_{hat{s}} sim
                langle
                wick{
                c1 k, c2 k'
                vert
                overline{c1 psi}_x psi_x overline{psi}_y c2 psi_y
                vert
                p, p'
                }
                rangle
                ]
                end{document}


                enter image description here







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 18 at 22:40









                daniel

                3209




                3209






























                     

                    draft saved


                    draft discarded



















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f460657%2fhow-do-i-do-wick-contraction-with-dirac-bracket%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

                    Mouse cursor on multiple screens with different PPI

                    Agildo Ribeiro

                    Sometime when accessing a menu: “Ubuntu 16.04 has experienced an internal error”