Nth Problem with TikZ and Extensive Form GamesAdjust edge endpoints depending on node labelText alignment and...

If all stars rotate, why was there a theory developed that requires non-rotating stars?

What are some interesting features that are common cross-linguistically but don't exist in English?

What do these triangles above and below the staff mean?

Can a Rogue PC teach an NPC to perform Sneak Attack?

Couple of slangs I've heard when watching anime

Non-visual Computers - thoughts?

Are the players on the same team as the DM?

Is gzip atomic?

Ensuring all network services on a device use strong TLS cipher suites

Why doesn't 'd /= d' throw a division by zero exception?

An interview question: What's the number of String objects being created?

Disambiguation of "nobis vobis" and "nobis nobis"

What is this symbol: semicircles facing each other?

SQL Server Management Studio - Why is Dark Theme Disabled by Default?

Pythagorean triple with hypotenuse a power of 2

How to prevent clipped screen edges on my TV, HDMI-connected?

How to make Ubuntu support single display 5120x1440 resolution?

Did a flight controller ever answer Flight with a no-go?

Examples of topos that are not ordinary spaces

Numbers Decrease while Letters Increase

Is “I am getting married with my sister” ambiguous?

Why did Khan ask Admiral James T. Kirk about Project Genesis?

Why in most German places is the church the tallest building?

How do I get toddlers to stop asking for food every hour?



Nth Problem with TikZ and Extensive Form Games


Adjust edge endpoints depending on node labelText alignment and form of connectors (edges) in tikz treeLatex and Game Theory: Combining an Extensive and Normal Form for a Three Players GameTikz Tree problem with positionMindmap and trees : length of edges for the 3rd level nodes and the rotation around the Root NodeGame tree in tikz - edge from parent node to label branchesGame theory trees, solid node size






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







5















I'd like to typset the tree on the left of the image. Unfortunately, TikZ seems way to complicated to me... I tried with this code, without success enter image description here



documentclass{beamer}
usepackage{tikz} % Game theory packages
usetikzlibrary{calc}

% Node styles
tikzset{
% Two node styles for game trees: solid and hollow
solid node/.style={circle,draw,inner sep=1.5,fill=black},
hollow node/.style={circle,draw,inner sep=1.5}
}

begin{document}

begin{frame}
begin{tikzpicture}[scale=0.7,font=footnotesize]
% Specify spacing for each level of the tree
tikzstyle{level 1}=[level distance=18mm,sibling distance=27mm]
tikzstyle{level 2}=[level distance=18mm,sibling distance=27mm]
% The Tree
node(0)[hollow node,label=above:{$1$}]{}
child{node(1)[solid node, label=above:{$2$}]{}
child{node(0-1-1)[solid node, label=above:{$1$}]{} edge from parent node[left]{$E$}}
child{node(0-1-2)[label=below:{$(3,1)$}]{} edge from parent node[right]{$F$}}
child{node(0-1-1-1)[label=below:{$(1,2)$}]{} edge from parent node[right]{$G$}} % The error is here
edge from parent node[left,xshift=-3]{$C$}
}
child{node(2)[label=below:{$(0,3)$}]{} edge from parent node[right, xshift=3]{$D$}
};

end{tikzpicture}
end{frame}
end{document}


I'd like also to ask you if something easier for game theory than Tikz exists for trees.










share|improve this question









New contributor



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




























    5















    I'd like to typset the tree on the left of the image. Unfortunately, TikZ seems way to complicated to me... I tried with this code, without success enter image description here



    documentclass{beamer}
    usepackage{tikz} % Game theory packages
    usetikzlibrary{calc}

    % Node styles
    tikzset{
    % Two node styles for game trees: solid and hollow
    solid node/.style={circle,draw,inner sep=1.5,fill=black},
    hollow node/.style={circle,draw,inner sep=1.5}
    }

    begin{document}

    begin{frame}
    begin{tikzpicture}[scale=0.7,font=footnotesize]
    % Specify spacing for each level of the tree
    tikzstyle{level 1}=[level distance=18mm,sibling distance=27mm]
    tikzstyle{level 2}=[level distance=18mm,sibling distance=27mm]
    % The Tree
    node(0)[hollow node,label=above:{$1$}]{}
    child{node(1)[solid node, label=above:{$2$}]{}
    child{node(0-1-1)[solid node, label=above:{$1$}]{} edge from parent node[left]{$E$}}
    child{node(0-1-2)[label=below:{$(3,1)$}]{} edge from parent node[right]{$F$}}
    child{node(0-1-1-1)[label=below:{$(1,2)$}]{} edge from parent node[right]{$G$}} % The error is here
    edge from parent node[left,xshift=-3]{$C$}
    }
    child{node(2)[label=below:{$(0,3)$}]{} edge from parent node[right, xshift=3]{$D$}
    };

    end{tikzpicture}
    end{frame}
    end{document}


    I'd like also to ask you if something easier for game theory than Tikz exists for trees.










    share|improve this question









    New contributor



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
























      5












      5








      5


      0






      I'd like to typset the tree on the left of the image. Unfortunately, TikZ seems way to complicated to me... I tried with this code, without success enter image description here



      documentclass{beamer}
      usepackage{tikz} % Game theory packages
      usetikzlibrary{calc}

      % Node styles
      tikzset{
      % Two node styles for game trees: solid and hollow
      solid node/.style={circle,draw,inner sep=1.5,fill=black},
      hollow node/.style={circle,draw,inner sep=1.5}
      }

      begin{document}

      begin{frame}
      begin{tikzpicture}[scale=0.7,font=footnotesize]
      % Specify spacing for each level of the tree
      tikzstyle{level 1}=[level distance=18mm,sibling distance=27mm]
      tikzstyle{level 2}=[level distance=18mm,sibling distance=27mm]
      % The Tree
      node(0)[hollow node,label=above:{$1$}]{}
      child{node(1)[solid node, label=above:{$2$}]{}
      child{node(0-1-1)[solid node, label=above:{$1$}]{} edge from parent node[left]{$E$}}
      child{node(0-1-2)[label=below:{$(3,1)$}]{} edge from parent node[right]{$F$}}
      child{node(0-1-1-1)[label=below:{$(1,2)$}]{} edge from parent node[right]{$G$}} % The error is here
      edge from parent node[left,xshift=-3]{$C$}
      }
      child{node(2)[label=below:{$(0,3)$}]{} edge from parent node[right, xshift=3]{$D$}
      };

      end{tikzpicture}
      end{frame}
      end{document}


      I'd like also to ask you if something easier for game theory than Tikz exists for trees.










      share|improve this question









      New contributor



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











      I'd like to typset the tree on the left of the image. Unfortunately, TikZ seems way to complicated to me... I tried with this code, without success enter image description here



      documentclass{beamer}
      usepackage{tikz} % Game theory packages
      usetikzlibrary{calc}

      % Node styles
      tikzset{
      % Two node styles for game trees: solid and hollow
      solid node/.style={circle,draw,inner sep=1.5,fill=black},
      hollow node/.style={circle,draw,inner sep=1.5}
      }

      begin{document}

      begin{frame}
      begin{tikzpicture}[scale=0.7,font=footnotesize]
      % Specify spacing for each level of the tree
      tikzstyle{level 1}=[level distance=18mm,sibling distance=27mm]
      tikzstyle{level 2}=[level distance=18mm,sibling distance=27mm]
      % The Tree
      node(0)[hollow node,label=above:{$1$}]{}
      child{node(1)[solid node, label=above:{$2$}]{}
      child{node(0-1-1)[solid node, label=above:{$1$}]{} edge from parent node[left]{$E$}}
      child{node(0-1-2)[label=below:{$(3,1)$}]{} edge from parent node[right]{$F$}}
      child{node(0-1-1-1)[label=below:{$(1,2)$}]{} edge from parent node[right]{$G$}} % The error is here
      edge from parent node[left,xshift=-3]{$C$}
      }
      child{node(2)[label=below:{$(0,3)$}]{} edge from parent node[right, xshift=3]{$D$}
      };

      end{tikzpicture}
      end{frame}
      end{document}


      I'd like also to ask you if something easier for game theory than Tikz exists for trees.







      tikz-trees game-tree






      share|improve this question









      New contributor



      Matteo Bulgarelli 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



      Matteo Bulgarelli 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 days ago







      Matteo Bulgarelli













      New contributor



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








      asked 2 days ago









      Matteo BulgarelliMatteo Bulgarelli

      262 bronze badges




      262 bronze badges




      New contributor



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




      New contributor




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



























          4 Answers
          4






          active

          oldest

          votes


















          8















          Note that there is a package, istgame, which specializes on game trees. For general trees, forest is a very powerful tool. It allows you to draw your tree very easily.



          documentclass{article}
          usepackage{forest}
          forestset{el/.style={edge label={node [pos=0.7,above,outer sep=3pt] {$#1$} }}}
          begin{document}
          begin{forest}
          for tree={circle,fill,inner sep=1pt,calign=fixed edge angles}
          [,label=above:1
          [,label=above left:2,el=A
          [,label=above left:1,el=C
          [,label=below:{0,2},el=E ]
          [,label=below:{2,0},el=F ]
          ]
          [,label=below:{1,1},el=D]
          ]
          [,label=below:{3,3},el=B]
          ]
          end{forest}
          end{document}


          enter image description here






          share|improve this answer








          New contributor



          Schrödinger's cat is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.





























            5















            My plain TikZ code is a bit long but easy to read.



            enter image description here



            documentclass{article}
            %documentclass{beamer}
            usepackage{tikz}
            begin{document}
            %begin{frame}
            begin{center}
            begin{tikzpicture}[scale=1,
            h/.style={circle,draw=magenta,thick,inner sep=1.5},
            s/.style={h,fill=magenta}]
            path
            (0,0) node[h] (1) {} node[above] {1}
            +(1,-1) node[s] (2b) {} node[below] {3,3}
            ++(-1,-1) node[s] (2a) {} node[left] {2}
            +(1,-1) node[s] (3b) {} node[below] {1,1}
            ++(-1,-1) node[s] (3a) {} node[left] {1}
            +(1,-1) node[s] (4b) {} node[below] {0,2}
            +(-1,-1) node[s] (4a) {} node[below] {2,0};

            draw (1)
            --(2a) node[pos=.4,left]{A}
            --(3a) node[pos=.4,left]{C}
            --(4a) node[pos=.4,left]{E}
            (1)--(2b) node[pos=.4,right]{B}
            (2a)--(3b) node[pos=.4,right]{D}
            (3a)--(4b) node[pos=.4,right]{F};

            newcommand{putcolumn}[6]{%
            path #1 node{#2}
            ++(-90:1) node{#3} ++(-90:1) node{#4}
            ++(-90:1) node{#5} ++(-90:1) node{#6};
            }%
            begin{scope}[shift={(4,0)}]
            draw (0,0) grid (2,-4);
            putcolumn{(.5,.5)}{C}{2,0}{0,2}{3,3}{3,3}
            putcolumn{(1.5,.5)}{D}{1,1}{1,1}{3,3}{3,3}
            putcolumn{(-.5,.5)}{}{AE}{AF}{BE}{BF}
            end{scope}
            end{tikzpicture}
            end{center}
            %end{frame}
            end{document}





            share|improve this answer


























            • it works well with article, but some errors appear with beamer. Did I miss something?

              – Black Mild
              2 days ago






            • 3





              It works with beamer if you add [fragile], i.e. use begin{frame}[fragile]. (+1)

              – Schrödinger's cat
              yesterday





















            4















            I propose this short code with pstricks – more specifically pst-tree:



            documentclass{article}
            usepackage[utf8]{inputenc}
            usepackage[T1]{fontenc}
            usepackage{fourier}
            usepackage{pst-tree}
            usepackage{auto-pst-pdf}

            begin{document}

            begin{pspicture}
            psset{tnsep=1pt, labelsep=3pt}
            pstree[nodesep=0pt, levelsep=1.5cm, treesep=3cm]{Tc{2pt}~[ tnpos=a, tnsep=-1pt]{1}} {
            pstree{Tdotnbput{$ A $} uput[ul](pssucc){$ 2 $}} {%
            pstree{Tdot nbput{$ C $} uput[ul](pssucc){{1}}}{%
            pstree{Tdot nbput{$ E $} uput[ul](pssucc){{2}}}{}%
            Tdotnaput{$F$}uput[d](pssucc){$0,2$}}%
            Tdot_{$D$} uput[d](pssucc){$1,1$}}%
            Tdot_{$B$} uput[d](pssucc){$3,3$}}
            end{pspicture}%

            end{document}


            enter image description here






            share|improve this answer

































              0















              My attempt with tikz-qtree, but I did not find out how to fix the angles:



              usepackage{tikz-qtree}

              tikzset{grow'=down}

              begin{document}
              begin{standalone}
              begin{tikzpicture}[level distance=30pt,
              sibling distance=10pt,
              every tree node/.style={draw,circle,inner sep=0pt,minimum size=3pt},
              edge from parent path={(tikzparentnode) -- (tikzchildnode)},
              ]
              Tree [. node[label=above:1] {};
              edge node[auto=left,pos=.6] {$B$};
              [. node[fill=black,label=below:{3,3}] {}; ]
              edge node[auto=right,pos=.6] {$A$};
              [.node[fill=black,label=above left:2] {};
              edge node[auto=left,pos=.6] {$D$};
              [.node[fill=black,label=below:{1,1}] {}; ]
              edge node[auto=right,pos=.6] {$C$};
              [.node[fill=black,label=above left:1] {};
              edge node[auto=left,pos=.6] {$F$};
              [.node[fill=black,label=below:{2,2}] {}; ]
              edge node[auto=right,pos=.6] {$E$};
              [.node[fill=black,label=above left:2] {}; ]
              ]
              ]
              ]
              end{tikzpicture}
              end{standalone}
              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',
                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
                });


                }
                });






                Matteo Bulgarelli 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%2f505169%2fnth-problem-with-tikz-and-extensive-form-games%23new-answer', 'question_page');
                }
                );

                Post as a guest















                Required, but never shown

























                4 Answers
                4






                active

                oldest

                votes








                4 Answers
                4






                active

                oldest

                votes









                active

                oldest

                votes






                active

                oldest

                votes









                8















                Note that there is a package, istgame, which specializes on game trees. For general trees, forest is a very powerful tool. It allows you to draw your tree very easily.



                documentclass{article}
                usepackage{forest}
                forestset{el/.style={edge label={node [pos=0.7,above,outer sep=3pt] {$#1$} }}}
                begin{document}
                begin{forest}
                for tree={circle,fill,inner sep=1pt,calign=fixed edge angles}
                [,label=above:1
                [,label=above left:2,el=A
                [,label=above left:1,el=C
                [,label=below:{0,2},el=E ]
                [,label=below:{2,0},el=F ]
                ]
                [,label=below:{1,1},el=D]
                ]
                [,label=below:{3,3},el=B]
                ]
                end{forest}
                end{document}


                enter image description here






                share|improve this answer








                New contributor



                Schrödinger's cat is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.


























                  8















                  Note that there is a package, istgame, which specializes on game trees. For general trees, forest is a very powerful tool. It allows you to draw your tree very easily.



                  documentclass{article}
                  usepackage{forest}
                  forestset{el/.style={edge label={node [pos=0.7,above,outer sep=3pt] {$#1$} }}}
                  begin{document}
                  begin{forest}
                  for tree={circle,fill,inner sep=1pt,calign=fixed edge angles}
                  [,label=above:1
                  [,label=above left:2,el=A
                  [,label=above left:1,el=C
                  [,label=below:{0,2},el=E ]
                  [,label=below:{2,0},el=F ]
                  ]
                  [,label=below:{1,1},el=D]
                  ]
                  [,label=below:{3,3},el=B]
                  ]
                  end{forest}
                  end{document}


                  enter image description here






                  share|improve this answer








                  New contributor



                  Schrödinger's cat is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.
























                    8














                    8










                    8









                    Note that there is a package, istgame, which specializes on game trees. For general trees, forest is a very powerful tool. It allows you to draw your tree very easily.



                    documentclass{article}
                    usepackage{forest}
                    forestset{el/.style={edge label={node [pos=0.7,above,outer sep=3pt] {$#1$} }}}
                    begin{document}
                    begin{forest}
                    for tree={circle,fill,inner sep=1pt,calign=fixed edge angles}
                    [,label=above:1
                    [,label=above left:2,el=A
                    [,label=above left:1,el=C
                    [,label=below:{0,2},el=E ]
                    [,label=below:{2,0},el=F ]
                    ]
                    [,label=below:{1,1},el=D]
                    ]
                    [,label=below:{3,3},el=B]
                    ]
                    end{forest}
                    end{document}


                    enter image description here






                    share|improve this answer








                    New contributor



                    Schrödinger's cat is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                    Check out our Code of Conduct.









                    Note that there is a package, istgame, which specializes on game trees. For general trees, forest is a very powerful tool. It allows you to draw your tree very easily.



                    documentclass{article}
                    usepackage{forest}
                    forestset{el/.style={edge label={node [pos=0.7,above,outer sep=3pt] {$#1$} }}}
                    begin{document}
                    begin{forest}
                    for tree={circle,fill,inner sep=1pt,calign=fixed edge angles}
                    [,label=above:1
                    [,label=above left:2,el=A
                    [,label=above left:1,el=C
                    [,label=below:{0,2},el=E ]
                    [,label=below:{2,0},el=F ]
                    ]
                    [,label=below:{1,1},el=D]
                    ]
                    [,label=below:{3,3},el=B]
                    ]
                    end{forest}
                    end{document}


                    enter image description here







                    share|improve this answer








                    New contributor



                    Schrödinger's cat 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






                    New contributor



                    Schrödinger's cat is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                    Check out our Code of Conduct.








                    answered 2 days ago









                    Schrödinger's catSchrödinger's cat

                    2,0713 silver badges10 bronze badges




                    2,0713 silver badges10 bronze badges




                    New contributor



                    Schrödinger's cat is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                    Check out our Code of Conduct.




                    New contributor




                    Schrödinger's cat is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                    Check out our Code of Conduct.






























                        5















                        My plain TikZ code is a bit long but easy to read.



                        enter image description here



                        documentclass{article}
                        %documentclass{beamer}
                        usepackage{tikz}
                        begin{document}
                        %begin{frame}
                        begin{center}
                        begin{tikzpicture}[scale=1,
                        h/.style={circle,draw=magenta,thick,inner sep=1.5},
                        s/.style={h,fill=magenta}]
                        path
                        (0,0) node[h] (1) {} node[above] {1}
                        +(1,-1) node[s] (2b) {} node[below] {3,3}
                        ++(-1,-1) node[s] (2a) {} node[left] {2}
                        +(1,-1) node[s] (3b) {} node[below] {1,1}
                        ++(-1,-1) node[s] (3a) {} node[left] {1}
                        +(1,-1) node[s] (4b) {} node[below] {0,2}
                        +(-1,-1) node[s] (4a) {} node[below] {2,0};

                        draw (1)
                        --(2a) node[pos=.4,left]{A}
                        --(3a) node[pos=.4,left]{C}
                        --(4a) node[pos=.4,left]{E}
                        (1)--(2b) node[pos=.4,right]{B}
                        (2a)--(3b) node[pos=.4,right]{D}
                        (3a)--(4b) node[pos=.4,right]{F};

                        newcommand{putcolumn}[6]{%
                        path #1 node{#2}
                        ++(-90:1) node{#3} ++(-90:1) node{#4}
                        ++(-90:1) node{#5} ++(-90:1) node{#6};
                        }%
                        begin{scope}[shift={(4,0)}]
                        draw (0,0) grid (2,-4);
                        putcolumn{(.5,.5)}{C}{2,0}{0,2}{3,3}{3,3}
                        putcolumn{(1.5,.5)}{D}{1,1}{1,1}{3,3}{3,3}
                        putcolumn{(-.5,.5)}{}{AE}{AF}{BE}{BF}
                        end{scope}
                        end{tikzpicture}
                        end{center}
                        %end{frame}
                        end{document}





                        share|improve this answer


























                        • it works well with article, but some errors appear with beamer. Did I miss something?

                          – Black Mild
                          2 days ago






                        • 3





                          It works with beamer if you add [fragile], i.e. use begin{frame}[fragile]. (+1)

                          – Schrödinger's cat
                          yesterday


















                        5















                        My plain TikZ code is a bit long but easy to read.



                        enter image description here



                        documentclass{article}
                        %documentclass{beamer}
                        usepackage{tikz}
                        begin{document}
                        %begin{frame}
                        begin{center}
                        begin{tikzpicture}[scale=1,
                        h/.style={circle,draw=magenta,thick,inner sep=1.5},
                        s/.style={h,fill=magenta}]
                        path
                        (0,0) node[h] (1) {} node[above] {1}
                        +(1,-1) node[s] (2b) {} node[below] {3,3}
                        ++(-1,-1) node[s] (2a) {} node[left] {2}
                        +(1,-1) node[s] (3b) {} node[below] {1,1}
                        ++(-1,-1) node[s] (3a) {} node[left] {1}
                        +(1,-1) node[s] (4b) {} node[below] {0,2}
                        +(-1,-1) node[s] (4a) {} node[below] {2,0};

                        draw (1)
                        --(2a) node[pos=.4,left]{A}
                        --(3a) node[pos=.4,left]{C}
                        --(4a) node[pos=.4,left]{E}
                        (1)--(2b) node[pos=.4,right]{B}
                        (2a)--(3b) node[pos=.4,right]{D}
                        (3a)--(4b) node[pos=.4,right]{F};

                        newcommand{putcolumn}[6]{%
                        path #1 node{#2}
                        ++(-90:1) node{#3} ++(-90:1) node{#4}
                        ++(-90:1) node{#5} ++(-90:1) node{#6};
                        }%
                        begin{scope}[shift={(4,0)}]
                        draw (0,0) grid (2,-4);
                        putcolumn{(.5,.5)}{C}{2,0}{0,2}{3,3}{3,3}
                        putcolumn{(1.5,.5)}{D}{1,1}{1,1}{3,3}{3,3}
                        putcolumn{(-.5,.5)}{}{AE}{AF}{BE}{BF}
                        end{scope}
                        end{tikzpicture}
                        end{center}
                        %end{frame}
                        end{document}





                        share|improve this answer


























                        • it works well with article, but some errors appear with beamer. Did I miss something?

                          – Black Mild
                          2 days ago






                        • 3





                          It works with beamer if you add [fragile], i.e. use begin{frame}[fragile]. (+1)

                          – Schrödinger's cat
                          yesterday
















                        5














                        5










                        5









                        My plain TikZ code is a bit long but easy to read.



                        enter image description here



                        documentclass{article}
                        %documentclass{beamer}
                        usepackage{tikz}
                        begin{document}
                        %begin{frame}
                        begin{center}
                        begin{tikzpicture}[scale=1,
                        h/.style={circle,draw=magenta,thick,inner sep=1.5},
                        s/.style={h,fill=magenta}]
                        path
                        (0,0) node[h] (1) {} node[above] {1}
                        +(1,-1) node[s] (2b) {} node[below] {3,3}
                        ++(-1,-1) node[s] (2a) {} node[left] {2}
                        +(1,-1) node[s] (3b) {} node[below] {1,1}
                        ++(-1,-1) node[s] (3a) {} node[left] {1}
                        +(1,-1) node[s] (4b) {} node[below] {0,2}
                        +(-1,-1) node[s] (4a) {} node[below] {2,0};

                        draw (1)
                        --(2a) node[pos=.4,left]{A}
                        --(3a) node[pos=.4,left]{C}
                        --(4a) node[pos=.4,left]{E}
                        (1)--(2b) node[pos=.4,right]{B}
                        (2a)--(3b) node[pos=.4,right]{D}
                        (3a)--(4b) node[pos=.4,right]{F};

                        newcommand{putcolumn}[6]{%
                        path #1 node{#2}
                        ++(-90:1) node{#3} ++(-90:1) node{#4}
                        ++(-90:1) node{#5} ++(-90:1) node{#6};
                        }%
                        begin{scope}[shift={(4,0)}]
                        draw (0,0) grid (2,-4);
                        putcolumn{(.5,.5)}{C}{2,0}{0,2}{3,3}{3,3}
                        putcolumn{(1.5,.5)}{D}{1,1}{1,1}{3,3}{3,3}
                        putcolumn{(-.5,.5)}{}{AE}{AF}{BE}{BF}
                        end{scope}
                        end{tikzpicture}
                        end{center}
                        %end{frame}
                        end{document}





                        share|improve this answer













                        My plain TikZ code is a bit long but easy to read.



                        enter image description here



                        documentclass{article}
                        %documentclass{beamer}
                        usepackage{tikz}
                        begin{document}
                        %begin{frame}
                        begin{center}
                        begin{tikzpicture}[scale=1,
                        h/.style={circle,draw=magenta,thick,inner sep=1.5},
                        s/.style={h,fill=magenta}]
                        path
                        (0,0) node[h] (1) {} node[above] {1}
                        +(1,-1) node[s] (2b) {} node[below] {3,3}
                        ++(-1,-1) node[s] (2a) {} node[left] {2}
                        +(1,-1) node[s] (3b) {} node[below] {1,1}
                        ++(-1,-1) node[s] (3a) {} node[left] {1}
                        +(1,-1) node[s] (4b) {} node[below] {0,2}
                        +(-1,-1) node[s] (4a) {} node[below] {2,0};

                        draw (1)
                        --(2a) node[pos=.4,left]{A}
                        --(3a) node[pos=.4,left]{C}
                        --(4a) node[pos=.4,left]{E}
                        (1)--(2b) node[pos=.4,right]{B}
                        (2a)--(3b) node[pos=.4,right]{D}
                        (3a)--(4b) node[pos=.4,right]{F};

                        newcommand{putcolumn}[6]{%
                        path #1 node{#2}
                        ++(-90:1) node{#3} ++(-90:1) node{#4}
                        ++(-90:1) node{#5} ++(-90:1) node{#6};
                        }%
                        begin{scope}[shift={(4,0)}]
                        draw (0,0) grid (2,-4);
                        putcolumn{(.5,.5)}{C}{2,0}{0,2}{3,3}{3,3}
                        putcolumn{(1.5,.5)}{D}{1,1}{1,1}{3,3}{3,3}
                        putcolumn{(-.5,.5)}{}{AE}{AF}{BE}{BF}
                        end{scope}
                        end{tikzpicture}
                        end{center}
                        %end{frame}
                        end{document}






                        share|improve this answer












                        share|improve this answer



                        share|improve this answer










                        answered 2 days ago









                        Black MildBlack Mild

                        1,9289 silver badges15 bronze badges




                        1,9289 silver badges15 bronze badges
















                        • it works well with article, but some errors appear with beamer. Did I miss something?

                          – Black Mild
                          2 days ago






                        • 3





                          It works with beamer if you add [fragile], i.e. use begin{frame}[fragile]. (+1)

                          – Schrödinger's cat
                          yesterday





















                        • it works well with article, but some errors appear with beamer. Did I miss something?

                          – Black Mild
                          2 days ago






                        • 3





                          It works with beamer if you add [fragile], i.e. use begin{frame}[fragile]. (+1)

                          – Schrödinger's cat
                          yesterday



















                        it works well with article, but some errors appear with beamer. Did I miss something?

                        – Black Mild
                        2 days ago





                        it works well with article, but some errors appear with beamer. Did I miss something?

                        – Black Mild
                        2 days ago




                        3




                        3





                        It works with beamer if you add [fragile], i.e. use begin{frame}[fragile]. (+1)

                        – Schrödinger's cat
                        yesterday







                        It works with beamer if you add [fragile], i.e. use begin{frame}[fragile]. (+1)

                        – Schrödinger's cat
                        yesterday













                        4















                        I propose this short code with pstricks – more specifically pst-tree:



                        documentclass{article}
                        usepackage[utf8]{inputenc}
                        usepackage[T1]{fontenc}
                        usepackage{fourier}
                        usepackage{pst-tree}
                        usepackage{auto-pst-pdf}

                        begin{document}

                        begin{pspicture}
                        psset{tnsep=1pt, labelsep=3pt}
                        pstree[nodesep=0pt, levelsep=1.5cm, treesep=3cm]{Tc{2pt}~[ tnpos=a, tnsep=-1pt]{1}} {
                        pstree{Tdotnbput{$ A $} uput[ul](pssucc){$ 2 $}} {%
                        pstree{Tdot nbput{$ C $} uput[ul](pssucc){{1}}}{%
                        pstree{Tdot nbput{$ E $} uput[ul](pssucc){{2}}}{}%
                        Tdotnaput{$F$}uput[d](pssucc){$0,2$}}%
                        Tdot_{$D$} uput[d](pssucc){$1,1$}}%
                        Tdot_{$B$} uput[d](pssucc){$3,3$}}
                        end{pspicture}%

                        end{document}


                        enter image description here






                        share|improve this answer






























                          4















                          I propose this short code with pstricks – more specifically pst-tree:



                          documentclass{article}
                          usepackage[utf8]{inputenc}
                          usepackage[T1]{fontenc}
                          usepackage{fourier}
                          usepackage{pst-tree}
                          usepackage{auto-pst-pdf}

                          begin{document}

                          begin{pspicture}
                          psset{tnsep=1pt, labelsep=3pt}
                          pstree[nodesep=0pt, levelsep=1.5cm, treesep=3cm]{Tc{2pt}~[ tnpos=a, tnsep=-1pt]{1}} {
                          pstree{Tdotnbput{$ A $} uput[ul](pssucc){$ 2 $}} {%
                          pstree{Tdot nbput{$ C $} uput[ul](pssucc){{1}}}{%
                          pstree{Tdot nbput{$ E $} uput[ul](pssucc){{2}}}{}%
                          Tdotnaput{$F$}uput[d](pssucc){$0,2$}}%
                          Tdot_{$D$} uput[d](pssucc){$1,1$}}%
                          Tdot_{$B$} uput[d](pssucc){$3,3$}}
                          end{pspicture}%

                          end{document}


                          enter image description here






                          share|improve this answer




























                            4














                            4










                            4









                            I propose this short code with pstricks – more specifically pst-tree:



                            documentclass{article}
                            usepackage[utf8]{inputenc}
                            usepackage[T1]{fontenc}
                            usepackage{fourier}
                            usepackage{pst-tree}
                            usepackage{auto-pst-pdf}

                            begin{document}

                            begin{pspicture}
                            psset{tnsep=1pt, labelsep=3pt}
                            pstree[nodesep=0pt, levelsep=1.5cm, treesep=3cm]{Tc{2pt}~[ tnpos=a, tnsep=-1pt]{1}} {
                            pstree{Tdotnbput{$ A $} uput[ul](pssucc){$ 2 $}} {%
                            pstree{Tdot nbput{$ C $} uput[ul](pssucc){{1}}}{%
                            pstree{Tdot nbput{$ E $} uput[ul](pssucc){{2}}}{}%
                            Tdotnaput{$F$}uput[d](pssucc){$0,2$}}%
                            Tdot_{$D$} uput[d](pssucc){$1,1$}}%
                            Tdot_{$B$} uput[d](pssucc){$3,3$}}
                            end{pspicture}%

                            end{document}


                            enter image description here






                            share|improve this answer













                            I propose this short code with pstricks – more specifically pst-tree:



                            documentclass{article}
                            usepackage[utf8]{inputenc}
                            usepackage[T1]{fontenc}
                            usepackage{fourier}
                            usepackage{pst-tree}
                            usepackage{auto-pst-pdf}

                            begin{document}

                            begin{pspicture}
                            psset{tnsep=1pt, labelsep=3pt}
                            pstree[nodesep=0pt, levelsep=1.5cm, treesep=3cm]{Tc{2pt}~[ tnpos=a, tnsep=-1pt]{1}} {
                            pstree{Tdotnbput{$ A $} uput[ul](pssucc){$ 2 $}} {%
                            pstree{Tdot nbput{$ C $} uput[ul](pssucc){{1}}}{%
                            pstree{Tdot nbput{$ E $} uput[ul](pssucc){{2}}}{}%
                            Tdotnaput{$F$}uput[d](pssucc){$0,2$}}%
                            Tdot_{$D$} uput[d](pssucc){$1,1$}}%
                            Tdot_{$B$} uput[d](pssucc){$3,3$}}
                            end{pspicture}%

                            end{document}


                            enter image description here







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered 2 days ago









                            BernardBernard

                            189k7 gold badges85 silver badges224 bronze badges




                            189k7 gold badges85 silver badges224 bronze badges


























                                0















                                My attempt with tikz-qtree, but I did not find out how to fix the angles:



                                usepackage{tikz-qtree}

                                tikzset{grow'=down}

                                begin{document}
                                begin{standalone}
                                begin{tikzpicture}[level distance=30pt,
                                sibling distance=10pt,
                                every tree node/.style={draw,circle,inner sep=0pt,minimum size=3pt},
                                edge from parent path={(tikzparentnode) -- (tikzchildnode)},
                                ]
                                Tree [. node[label=above:1] {};
                                edge node[auto=left,pos=.6] {$B$};
                                [. node[fill=black,label=below:{3,3}] {}; ]
                                edge node[auto=right,pos=.6] {$A$};
                                [.node[fill=black,label=above left:2] {};
                                edge node[auto=left,pos=.6] {$D$};
                                [.node[fill=black,label=below:{1,1}] {}; ]
                                edge node[auto=right,pos=.6] {$C$};
                                [.node[fill=black,label=above left:1] {};
                                edge node[auto=left,pos=.6] {$F$};
                                [.node[fill=black,label=below:{2,2}] {}; ]
                                edge node[auto=right,pos=.6] {$E$};
                                [.node[fill=black,label=above left:2] {}; ]
                                ]
                                ]
                                ]
                                end{tikzpicture}
                                end{standalone}
                                end{document}


                                enter image description here






                                share|improve this answer






























                                  0















                                  My attempt with tikz-qtree, but I did not find out how to fix the angles:



                                  usepackage{tikz-qtree}

                                  tikzset{grow'=down}

                                  begin{document}
                                  begin{standalone}
                                  begin{tikzpicture}[level distance=30pt,
                                  sibling distance=10pt,
                                  every tree node/.style={draw,circle,inner sep=0pt,minimum size=3pt},
                                  edge from parent path={(tikzparentnode) -- (tikzchildnode)},
                                  ]
                                  Tree [. node[label=above:1] {};
                                  edge node[auto=left,pos=.6] {$B$};
                                  [. node[fill=black,label=below:{3,3}] {}; ]
                                  edge node[auto=right,pos=.6] {$A$};
                                  [.node[fill=black,label=above left:2] {};
                                  edge node[auto=left,pos=.6] {$D$};
                                  [.node[fill=black,label=below:{1,1}] {}; ]
                                  edge node[auto=right,pos=.6] {$C$};
                                  [.node[fill=black,label=above left:1] {};
                                  edge node[auto=left,pos=.6] {$F$};
                                  [.node[fill=black,label=below:{2,2}] {}; ]
                                  edge node[auto=right,pos=.6] {$E$};
                                  [.node[fill=black,label=above left:2] {}; ]
                                  ]
                                  ]
                                  ]
                                  end{tikzpicture}
                                  end{standalone}
                                  end{document}


                                  enter image description here






                                  share|improve this answer




























                                    0














                                    0










                                    0









                                    My attempt with tikz-qtree, but I did not find out how to fix the angles:



                                    usepackage{tikz-qtree}

                                    tikzset{grow'=down}

                                    begin{document}
                                    begin{standalone}
                                    begin{tikzpicture}[level distance=30pt,
                                    sibling distance=10pt,
                                    every tree node/.style={draw,circle,inner sep=0pt,minimum size=3pt},
                                    edge from parent path={(tikzparentnode) -- (tikzchildnode)},
                                    ]
                                    Tree [. node[label=above:1] {};
                                    edge node[auto=left,pos=.6] {$B$};
                                    [. node[fill=black,label=below:{3,3}] {}; ]
                                    edge node[auto=right,pos=.6] {$A$};
                                    [.node[fill=black,label=above left:2] {};
                                    edge node[auto=left,pos=.6] {$D$};
                                    [.node[fill=black,label=below:{1,1}] {}; ]
                                    edge node[auto=right,pos=.6] {$C$};
                                    [.node[fill=black,label=above left:1] {};
                                    edge node[auto=left,pos=.6] {$F$};
                                    [.node[fill=black,label=below:{2,2}] {}; ]
                                    edge node[auto=right,pos=.6] {$E$};
                                    [.node[fill=black,label=above left:2] {}; ]
                                    ]
                                    ]
                                    ]
                                    end{tikzpicture}
                                    end{standalone}
                                    end{document}


                                    enter image description here






                                    share|improve this answer













                                    My attempt with tikz-qtree, but I did not find out how to fix the angles:



                                    usepackage{tikz-qtree}

                                    tikzset{grow'=down}

                                    begin{document}
                                    begin{standalone}
                                    begin{tikzpicture}[level distance=30pt,
                                    sibling distance=10pt,
                                    every tree node/.style={draw,circle,inner sep=0pt,minimum size=3pt},
                                    edge from parent path={(tikzparentnode) -- (tikzchildnode)},
                                    ]
                                    Tree [. node[label=above:1] {};
                                    edge node[auto=left,pos=.6] {$B$};
                                    [. node[fill=black,label=below:{3,3}] {}; ]
                                    edge node[auto=right,pos=.6] {$A$};
                                    [.node[fill=black,label=above left:2] {};
                                    edge node[auto=left,pos=.6] {$D$};
                                    [.node[fill=black,label=below:{1,1}] {}; ]
                                    edge node[auto=right,pos=.6] {$C$};
                                    [.node[fill=black,label=above left:1] {};
                                    edge node[auto=left,pos=.6] {$F$};
                                    [.node[fill=black,label=below:{2,2}] {}; ]
                                    edge node[auto=right,pos=.6] {$E$};
                                    [.node[fill=black,label=above left:2] {}; ]
                                    ]
                                    ]
                                    ]
                                    end{tikzpicture}
                                    end{standalone}
                                    end{document}


                                    enter image description here







                                    share|improve this answer












                                    share|improve this answer



                                    share|improve this answer










                                    answered yesterday









                                    Pierre MarchandPierre Marchand

                                    453 bronze badges




                                    453 bronze badges

























                                        Matteo Bulgarelli is a new contributor. Be nice, and check out our Code of Conduct.










                                        draft saved

                                        draft discarded


















                                        Matteo Bulgarelli is a new contributor. Be nice, and check out our Code of Conduct.













                                        Matteo Bulgarelli is a new contributor. Be nice, and check out our Code of Conduct.












                                        Matteo Bulgarelli 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%2f505169%2fnth-problem-with-tikz-and-extensive-form-games%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

                                        Hudson River Historic District Contents Geography History The district today Aesthetics Cultural...

                                        The number designs the writing. Feandra Aversely Definition: The act of ingrafting a sprig or shoot of one...

                                        Ayherre Geografie Demografie Externe links Navigatiemenu43° 23′ NB, 1° 15′ WL43° 23′ NB, 1°...