forest, changing `s sep` such that it is at each second end node larger? The Next CEO of Stack OverflowOverlapping nodes in a decision treeCreating a tree using the forest package such that different nodes are alignedLaTeX: how to make a horizontal tree that is closed at the end (forest)Radial node arrangement in Forest

Anatomically Correct Mesopelagic Aves

What is the point of a new vote on May's deal when the indicative votes suggest she will not win?

Unreliable Magic - Is it worth it?

Solution of this Diophantine Equation

How can I get through very long and very dry, but also very useful technical documents when learning a new tool?

How to safely derail a train during transit?

% symbol leads to superlong (forever?) compilations

Why didn't Theresa May consult with Parliament before negotiating a deal with the EU?

Why here is plural "We went to the movies last night."

Can a single photon have an energy density?

Term for the "extreme-extension" version of a straw man fallacy?

How do I construct this japanese bowl?

How do I get the green key off the shelf in the Dobby level of Lego Harry Potter 2?

What can we do to stop prior company from asking us questions?

What does "Its cash flow is deeply negative" mean?

Anatomically Correct Strange Women In Ponds Distributing Swords

Inappropriate reference requests from Journal reviewers

Rotate a column

Does it take more energy to get to Venus or to Mars?

What makes a siege story/plot interesting?

How to make a software documentation "officially" citable?

How to be diplomatic in refusing to write code that breaches the privacy of our users

Only print output after finding pattern

How do we know the LHC results are robust?



forest, changing `s sep` such that it is at each second end node larger?



The Next CEO of Stack OverflowOverlapping nodes in a decision treeCreating a tree using the forest package such that different nodes are alignedLaTeX: how to make a horizontal tree that is closed at the end (forest)Radial node arrangement in Forest










4















The following MWE generate a tree diagram (using the forest package) as I like to have:



documentclass[border=3mm]standalone
usepackageforest

begindocument
tikzsetELS/.style=% Edge Label Style
font=footnotesize, inner sep=2pt,
anchor=south #1, % label position: "ELS=west" or "EL=east"
pos=0.6

newcommandELedge label
beginforest
for tree=
draw, semithick,
parent anchor=children,
l sep=13 mm,
s sep= 1 mm,
anchor=parent,% <--- work around alignment issue
,
EL/.style =
before typesetting nodes=%% <--- work around edge labels positioning
where n=1%
edge label/.wrap value=node[ELS=east]$#1$
%
edge label/.wrap value=node[ELS=west]$#1$



[Start
[A, EL=leq 0.5
[A1, EL=leq 0.3
[A11, EL=leq 0.7]
[A12, EL=geq 0.7]
]
[,phantom,fit=band] % <---
[A2, EL=geq 0.3
[A21, EL=leq 0.7]
[A22, EL=geq 0.7]
]
]
[,phantom,fit=band] % <---
[B, EL=geq 0.5
[B1, EL=leq 0.3
[B11, EL=leq 0.7]
[B12, EL=geq 0.7]
]
[,phantom,fit=band] % <---
[B2, EL=geq 0.3
[B11, EL=leq 0.7]
[B12, EL=geq 0.7]
]
]
]
endforest
enddocument


enter image description here



I wonder, if it is possible to obtain the same result without inserting phantom nodes? Also I will appreciate any improvements of the my MWE code.



addendum: one way is insert manually s sep as is done code below:



[Start,s sep=4mm
[A, EL=leq 0.5,s sep=4mm
[A1, EL=leq 0.3,s sep=1mm
[A11, EL=leq 0.7]
[A12, EL=geq 0.7]
]
[A2, EL=geq 0.3,s sep=1mm
[A21, EL=leq 0.7]
[A22, EL=geq 0.7]
]
]
[B, EL=geq 0.5,s sep=4mm
[B1, EL=leq 0.3,s sep=1mm
[B11, EL=leq 0.7]
[B12, EL=geq 0.7]
]
[B2, EL=geq 0.3,s sep=1mm
[B11, EL=leq 0.7]
[B12, EL=geq 0.7]
]
]
]


considering above solution the question is now: is possible to write a code in fortree preamble, which will replace tose manulaly inserted s sep=...?










share|improve this question




























    4















    The following MWE generate a tree diagram (using the forest package) as I like to have:



    documentclass[border=3mm]standalone
    usepackageforest

    begindocument
    tikzsetELS/.style=% Edge Label Style
    font=footnotesize, inner sep=2pt,
    anchor=south #1, % label position: "ELS=west" or "EL=east"
    pos=0.6

    newcommandELedge label
    beginforest
    for tree=
    draw, semithick,
    parent anchor=children,
    l sep=13 mm,
    s sep= 1 mm,
    anchor=parent,% <--- work around alignment issue
    ,
    EL/.style =
    before typesetting nodes=%% <--- work around edge labels positioning
    where n=1%
    edge label/.wrap value=node[ELS=east]$#1$
    %
    edge label/.wrap value=node[ELS=west]$#1$



    [Start
    [A, EL=leq 0.5
    [A1, EL=leq 0.3
    [A11, EL=leq 0.7]
    [A12, EL=geq 0.7]
    ]
    [,phantom,fit=band] % <---
    [A2, EL=geq 0.3
    [A21, EL=leq 0.7]
    [A22, EL=geq 0.7]
    ]
    ]
    [,phantom,fit=band] % <---
    [B, EL=geq 0.5
    [B1, EL=leq 0.3
    [B11, EL=leq 0.7]
    [B12, EL=geq 0.7]
    ]
    [,phantom,fit=band] % <---
    [B2, EL=geq 0.3
    [B11, EL=leq 0.7]
    [B12, EL=geq 0.7]
    ]
    ]
    ]
    endforest
    enddocument


    enter image description here



    I wonder, if it is possible to obtain the same result without inserting phantom nodes? Also I will appreciate any improvements of the my MWE code.



    addendum: one way is insert manually s sep as is done code below:



    [Start,s sep=4mm
    [A, EL=leq 0.5,s sep=4mm
    [A1, EL=leq 0.3,s sep=1mm
    [A11, EL=leq 0.7]
    [A12, EL=geq 0.7]
    ]
    [A2, EL=geq 0.3,s sep=1mm
    [A21, EL=leq 0.7]
    [A22, EL=geq 0.7]
    ]
    ]
    [B, EL=geq 0.5,s sep=4mm
    [B1, EL=leq 0.3,s sep=1mm
    [B11, EL=leq 0.7]
    [B12, EL=geq 0.7]
    ]
    [B2, EL=geq 0.3,s sep=1mm
    [B11, EL=leq 0.7]
    [B12, EL=geq 0.7]
    ]
    ]
    ]


    considering above solution the question is now: is possible to write a code in fortree preamble, which will replace tose manulaly inserted s sep=...?










    share|improve this question


























      4












      4








      4








      The following MWE generate a tree diagram (using the forest package) as I like to have:



      documentclass[border=3mm]standalone
      usepackageforest

      begindocument
      tikzsetELS/.style=% Edge Label Style
      font=footnotesize, inner sep=2pt,
      anchor=south #1, % label position: "ELS=west" or "EL=east"
      pos=0.6

      newcommandELedge label
      beginforest
      for tree=
      draw, semithick,
      parent anchor=children,
      l sep=13 mm,
      s sep= 1 mm,
      anchor=parent,% <--- work around alignment issue
      ,
      EL/.style =
      before typesetting nodes=%% <--- work around edge labels positioning
      where n=1%
      edge label/.wrap value=node[ELS=east]$#1$
      %
      edge label/.wrap value=node[ELS=west]$#1$



      [Start
      [A, EL=leq 0.5
      [A1, EL=leq 0.3
      [A11, EL=leq 0.7]
      [A12, EL=geq 0.7]
      ]
      [,phantom,fit=band] % <---
      [A2, EL=geq 0.3
      [A21, EL=leq 0.7]
      [A22, EL=geq 0.7]
      ]
      ]
      [,phantom,fit=band] % <---
      [B, EL=geq 0.5
      [B1, EL=leq 0.3
      [B11, EL=leq 0.7]
      [B12, EL=geq 0.7]
      ]
      [,phantom,fit=band] % <---
      [B2, EL=geq 0.3
      [B11, EL=leq 0.7]
      [B12, EL=geq 0.7]
      ]
      ]
      ]
      endforest
      enddocument


      enter image description here



      I wonder, if it is possible to obtain the same result without inserting phantom nodes? Also I will appreciate any improvements of the my MWE code.



      addendum: one way is insert manually s sep as is done code below:



      [Start,s sep=4mm
      [A, EL=leq 0.5,s sep=4mm
      [A1, EL=leq 0.3,s sep=1mm
      [A11, EL=leq 0.7]
      [A12, EL=geq 0.7]
      ]
      [A2, EL=geq 0.3,s sep=1mm
      [A21, EL=leq 0.7]
      [A22, EL=geq 0.7]
      ]
      ]
      [B, EL=geq 0.5,s sep=4mm
      [B1, EL=leq 0.3,s sep=1mm
      [B11, EL=leq 0.7]
      [B12, EL=geq 0.7]
      ]
      [B2, EL=geq 0.3,s sep=1mm
      [B11, EL=leq 0.7]
      [B12, EL=geq 0.7]
      ]
      ]
      ]


      considering above solution the question is now: is possible to write a code in fortree preamble, which will replace tose manulaly inserted s sep=...?










      share|improve this question
















      The following MWE generate a tree diagram (using the forest package) as I like to have:



      documentclass[border=3mm]standalone
      usepackageforest

      begindocument
      tikzsetELS/.style=% Edge Label Style
      font=footnotesize, inner sep=2pt,
      anchor=south #1, % label position: "ELS=west" or "EL=east"
      pos=0.6

      newcommandELedge label
      beginforest
      for tree=
      draw, semithick,
      parent anchor=children,
      l sep=13 mm,
      s sep= 1 mm,
      anchor=parent,% <--- work around alignment issue
      ,
      EL/.style =
      before typesetting nodes=%% <--- work around edge labels positioning
      where n=1%
      edge label/.wrap value=node[ELS=east]$#1$
      %
      edge label/.wrap value=node[ELS=west]$#1$



      [Start
      [A, EL=leq 0.5
      [A1, EL=leq 0.3
      [A11, EL=leq 0.7]
      [A12, EL=geq 0.7]
      ]
      [,phantom,fit=band] % <---
      [A2, EL=geq 0.3
      [A21, EL=leq 0.7]
      [A22, EL=geq 0.7]
      ]
      ]
      [,phantom,fit=band] % <---
      [B, EL=geq 0.5
      [B1, EL=leq 0.3
      [B11, EL=leq 0.7]
      [B12, EL=geq 0.7]
      ]
      [,phantom,fit=band] % <---
      [B2, EL=geq 0.3
      [B11, EL=leq 0.7]
      [B12, EL=geq 0.7]
      ]
      ]
      ]
      endforest
      enddocument


      enter image description here



      I wonder, if it is possible to obtain the same result without inserting phantom nodes? Also I will appreciate any improvements of the my MWE code.



      addendum: one way is insert manually s sep as is done code below:



      [Start,s sep=4mm
      [A, EL=leq 0.5,s sep=4mm
      [A1, EL=leq 0.3,s sep=1mm
      [A11, EL=leq 0.7]
      [A12, EL=geq 0.7]
      ]
      [A2, EL=geq 0.3,s sep=1mm
      [A21, EL=leq 0.7]
      [A22, EL=geq 0.7]
      ]
      ]
      [B, EL=geq 0.5,s sep=4mm
      [B1, EL=leq 0.3,s sep=1mm
      [B11, EL=leq 0.7]
      [B12, EL=geq 0.7]
      ]
      [B2, EL=geq 0.3,s sep=1mm
      [B11, EL=leq 0.7]
      [B12, EL=geq 0.7]
      ]
      ]
      ]


      considering above solution the question is now: is possible to write a code in fortree preamble, which will replace tose manulaly inserted s sep=...?







      forest






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 3 hours ago







      Zarko

















      asked 5 hours ago









      ZarkoZarko

      128k868167




      128k868167




















          2 Answers
          2






          active

          oldest

          votes


















          3














          Yes. Use s sep+.



          documentclass[border=3mm]standalone
          usepackageforest

          begindocument
          tikzsetELS/.style=% Edge Label Style
          font=footnotesize, inner sep=2pt,
          anchor=south #1, % label position: "ELS=west" or "EL=east"
          pos=0.6

          newcommandELedge label
          beginforest
          for tree=
          draw, semithick,
          parent anchor=children,
          l sep=13 mm,
          s sep+=2mm,
          anchor=parent,% <--- work around alignment issue
          ,
          EL/.style =
          before typesetting nodes=%% <--- work around edge labels positioning
          where n=1%
          edge label/.wrap value=node[ELS=east]$#1$
          %
          edge label/.wrap value=node[ELS=west]$#1$



          [Start
          [A, EL=leq 0.5
          [A1, EL=leq 0.3,s sep+=-3mm
          [A11, EL=leq 0.7]
          [A12, EL=geq 0.7]
          ]
          %[,phantom,fit=band] % <---
          [A2, EL=geq 0.3,s sep+=-3mm
          [A21, EL=leq 0.7]
          [A22, EL=geq 0.7]
          ]
          ]
          %[,phantom,fit=band] % <---
          [B, EL=geq 0.5
          [B1, EL=leq 0.3,s sep+=-3mm
          [B11, EL=leq 0.7]
          [B12, EL=geq 0.7]
          ]
          %[,phantom,fit=band] % <---
          [B2, EL=geq 0.3,s sep+=-3mm
          [B11, EL=leq 0.7]
          [B12, EL=geq 0.7]
          ]
          ]
          ]
          endforest
          enddocument


          enter image description here



          And I had this on my machine before Zarko pinged me. (I didn't think it is worthwhile to add an update for it.)



          documentclass[border=3mm]standalone
          usepackageforest

          begindocument
          tikzsetELS/.style=% Edge Label Style
          font=footnotesize, inner sep=2pt,
          anchor=south #1, % label position: "ELS=west" or "EL=east"
          pos=0.6

          newcommandELedge label
          beginforest
          for tree=
          draw, semithick,
          parent anchor=children,
          s sep=4mm,
          l sep=13 mm,
          anchor=parent,% <--- work around alignment issue
          ,
          EL/.style =
          before typesetting nodes=%% <--- work around edge labels positioning
          where n=1%
          edge label/.wrap value=node[ELS=east]$#1$
          %
          edge label/.wrap value=node[ELS=west]$#1$
          ,
          where level=2s sep+=-1mms sep+=0.5mm


          [Start
          [A, EL=leq 0.5
          [A1, EL=leq 0.3
          [A11, EL=leq 0.7]
          [A12, EL=geq 0.7]
          ]
          %[,phantom,fit=band] % <---
          [A2, EL=geq 0.3
          [A21, EL=leq 0.7]
          [A22, EL=geq 0.7]
          ]
          ]
          %[,phantom,fit=band] % <---
          [B, EL=geq 0.5
          [B1, EL=leq 0.3
          [B11, EL=leq 0.7]
          [B12, EL=geq 0.7]
          ]
          %[,phantom,fit=band] % <---
          [B2, EL=geq 0.3
          [B11, EL=leq 0.7]
          [B12, EL=geq 0.7]
          ]
          ]
          ]
          endforest
          enddocument


          enter image description here






          share|improve this answer

























          • thank you very much for answer. apparently my question is not clear enough. i like to obtain in question showed image with removed ˙phantom` nodes (indicated by % <---). as i see, in your suggestion the distances between nodes at level 0 are equal. i like to have smaller between A11 and A12 and bigger between A21 and A22, etc.

            – Zarko
            3 hours ago











          • @Zarko Sorry, didn't read carefully. Better now?

            – marmot
            3 hours ago











          • yes, that is. i need to check how you achieve this :-)

            – Zarko
            3 hours ago











          • with help of your answer and after reading forest documentation again (and again) i figured out solution which i like to have: from your code i remove all s sep+=-3mm from nodes on the second level and to fortree add option where level=2s sep+=-1mm. it works fine.

            – Zarko
            1 hour ago












          • @Zarko Yes, I have almost the same thing on my machine. where level=2s sep+=...s sep+=... but with other dimensions.

            – marmot
            57 mins ago


















          2














          Just for record. With help of nice @marmot answer and after reading forest documentation again (and again) i figured out the solution which i looked for:



          documentclass[border=3mm, preview]standalone
          usepackageforest

          begindocument
          tikzsetELS/.style=% Edge Label Style
          font=footnotesizesffamily, inner sep=2pt,
          anchor=south #1, % label position: "ELS=west" or "ELS=east"
          pos=0.6

          beginforest
          for tree=
          draw,
          semithick,
          % fill=orange!20,
          parent anchor=children,
          l sep=13 mm,
          s sep=4mm,
          where level=2s sep=1mm
          ,
          EL/.style =
          before typesetting nodes=%
          where n=1%
          edge label/.wrap value=node[ELS=east]$#1$
          %
          edge label/.wrap value=node[ELS=west]$#1$



          [Start
          [A, EL=leq 0.5
          [A1, EL=leq 0.3
          [A11, EL=leq 0.7]
          [A12, EL=geq 0.7]
          ]
          [A2, EL=geq 0.3
          [A21, EL=leq 0.7]
          [A22, EL=geq 0.7]
          ]
          ]
          [B, EL=geq 0.5
          [B1, EL=leq 0.3
          [B11, EL=leq 0.7]
          [B12, EL=geq 0.7]
          ]
          [B2, EL=geq 0.3
          [B11, EL=leq 0.7]
          [B12, EL=geq 0.7]
          ]
          ]
          ] endforest
          enddocument


          which gives desired result:



          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
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f481967%2fforest-changing-s-sep-such-that-it-is-at-each-second-end-node-larger%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









            3














            Yes. Use s sep+.



            documentclass[border=3mm]standalone
            usepackageforest

            begindocument
            tikzsetELS/.style=% Edge Label Style
            font=footnotesize, inner sep=2pt,
            anchor=south #1, % label position: "ELS=west" or "EL=east"
            pos=0.6

            newcommandELedge label
            beginforest
            for tree=
            draw, semithick,
            parent anchor=children,
            l sep=13 mm,
            s sep+=2mm,
            anchor=parent,% <--- work around alignment issue
            ,
            EL/.style =
            before typesetting nodes=%% <--- work around edge labels positioning
            where n=1%
            edge label/.wrap value=node[ELS=east]$#1$
            %
            edge label/.wrap value=node[ELS=west]$#1$



            [Start
            [A, EL=leq 0.5
            [A1, EL=leq 0.3,s sep+=-3mm
            [A11, EL=leq 0.7]
            [A12, EL=geq 0.7]
            ]
            %[,phantom,fit=band] % <---
            [A2, EL=geq 0.3,s sep+=-3mm
            [A21, EL=leq 0.7]
            [A22, EL=geq 0.7]
            ]
            ]
            %[,phantom,fit=band] % <---
            [B, EL=geq 0.5
            [B1, EL=leq 0.3,s sep+=-3mm
            [B11, EL=leq 0.7]
            [B12, EL=geq 0.7]
            ]
            %[,phantom,fit=band] % <---
            [B2, EL=geq 0.3,s sep+=-3mm
            [B11, EL=leq 0.7]
            [B12, EL=geq 0.7]
            ]
            ]
            ]
            endforest
            enddocument


            enter image description here



            And I had this on my machine before Zarko pinged me. (I didn't think it is worthwhile to add an update for it.)



            documentclass[border=3mm]standalone
            usepackageforest

            begindocument
            tikzsetELS/.style=% Edge Label Style
            font=footnotesize, inner sep=2pt,
            anchor=south #1, % label position: "ELS=west" or "EL=east"
            pos=0.6

            newcommandELedge label
            beginforest
            for tree=
            draw, semithick,
            parent anchor=children,
            s sep=4mm,
            l sep=13 mm,
            anchor=parent,% <--- work around alignment issue
            ,
            EL/.style =
            before typesetting nodes=%% <--- work around edge labels positioning
            where n=1%
            edge label/.wrap value=node[ELS=east]$#1$
            %
            edge label/.wrap value=node[ELS=west]$#1$
            ,
            where level=2s sep+=-1mms sep+=0.5mm


            [Start
            [A, EL=leq 0.5
            [A1, EL=leq 0.3
            [A11, EL=leq 0.7]
            [A12, EL=geq 0.7]
            ]
            %[,phantom,fit=band] % <---
            [A2, EL=geq 0.3
            [A21, EL=leq 0.7]
            [A22, EL=geq 0.7]
            ]
            ]
            %[,phantom,fit=band] % <---
            [B, EL=geq 0.5
            [B1, EL=leq 0.3
            [B11, EL=leq 0.7]
            [B12, EL=geq 0.7]
            ]
            %[,phantom,fit=band] % <---
            [B2, EL=geq 0.3
            [B11, EL=leq 0.7]
            [B12, EL=geq 0.7]
            ]
            ]
            ]
            endforest
            enddocument


            enter image description here






            share|improve this answer

























            • thank you very much for answer. apparently my question is not clear enough. i like to obtain in question showed image with removed ˙phantom` nodes (indicated by % <---). as i see, in your suggestion the distances between nodes at level 0 are equal. i like to have smaller between A11 and A12 and bigger between A21 and A22, etc.

              – Zarko
              3 hours ago











            • @Zarko Sorry, didn't read carefully. Better now?

              – marmot
              3 hours ago











            • yes, that is. i need to check how you achieve this :-)

              – Zarko
              3 hours ago











            • with help of your answer and after reading forest documentation again (and again) i figured out solution which i like to have: from your code i remove all s sep+=-3mm from nodes on the second level and to fortree add option where level=2s sep+=-1mm. it works fine.

              – Zarko
              1 hour ago












            • @Zarko Yes, I have almost the same thing on my machine. where level=2s sep+=...s sep+=... but with other dimensions.

              – marmot
              57 mins ago















            3














            Yes. Use s sep+.



            documentclass[border=3mm]standalone
            usepackageforest

            begindocument
            tikzsetELS/.style=% Edge Label Style
            font=footnotesize, inner sep=2pt,
            anchor=south #1, % label position: "ELS=west" or "EL=east"
            pos=0.6

            newcommandELedge label
            beginforest
            for tree=
            draw, semithick,
            parent anchor=children,
            l sep=13 mm,
            s sep+=2mm,
            anchor=parent,% <--- work around alignment issue
            ,
            EL/.style =
            before typesetting nodes=%% <--- work around edge labels positioning
            where n=1%
            edge label/.wrap value=node[ELS=east]$#1$
            %
            edge label/.wrap value=node[ELS=west]$#1$



            [Start
            [A, EL=leq 0.5
            [A1, EL=leq 0.3,s sep+=-3mm
            [A11, EL=leq 0.7]
            [A12, EL=geq 0.7]
            ]
            %[,phantom,fit=band] % <---
            [A2, EL=geq 0.3,s sep+=-3mm
            [A21, EL=leq 0.7]
            [A22, EL=geq 0.7]
            ]
            ]
            %[,phantom,fit=band] % <---
            [B, EL=geq 0.5
            [B1, EL=leq 0.3,s sep+=-3mm
            [B11, EL=leq 0.7]
            [B12, EL=geq 0.7]
            ]
            %[,phantom,fit=band] % <---
            [B2, EL=geq 0.3,s sep+=-3mm
            [B11, EL=leq 0.7]
            [B12, EL=geq 0.7]
            ]
            ]
            ]
            endforest
            enddocument


            enter image description here



            And I had this on my machine before Zarko pinged me. (I didn't think it is worthwhile to add an update for it.)



            documentclass[border=3mm]standalone
            usepackageforest

            begindocument
            tikzsetELS/.style=% Edge Label Style
            font=footnotesize, inner sep=2pt,
            anchor=south #1, % label position: "ELS=west" or "EL=east"
            pos=0.6

            newcommandELedge label
            beginforest
            for tree=
            draw, semithick,
            parent anchor=children,
            s sep=4mm,
            l sep=13 mm,
            anchor=parent,% <--- work around alignment issue
            ,
            EL/.style =
            before typesetting nodes=%% <--- work around edge labels positioning
            where n=1%
            edge label/.wrap value=node[ELS=east]$#1$
            %
            edge label/.wrap value=node[ELS=west]$#1$
            ,
            where level=2s sep+=-1mms sep+=0.5mm


            [Start
            [A, EL=leq 0.5
            [A1, EL=leq 0.3
            [A11, EL=leq 0.7]
            [A12, EL=geq 0.7]
            ]
            %[,phantom,fit=band] % <---
            [A2, EL=geq 0.3
            [A21, EL=leq 0.7]
            [A22, EL=geq 0.7]
            ]
            ]
            %[,phantom,fit=band] % <---
            [B, EL=geq 0.5
            [B1, EL=leq 0.3
            [B11, EL=leq 0.7]
            [B12, EL=geq 0.7]
            ]
            %[,phantom,fit=band] % <---
            [B2, EL=geq 0.3
            [B11, EL=leq 0.7]
            [B12, EL=geq 0.7]
            ]
            ]
            ]
            endforest
            enddocument


            enter image description here






            share|improve this answer

























            • thank you very much for answer. apparently my question is not clear enough. i like to obtain in question showed image with removed ˙phantom` nodes (indicated by % <---). as i see, in your suggestion the distances between nodes at level 0 are equal. i like to have smaller between A11 and A12 and bigger between A21 and A22, etc.

              – Zarko
              3 hours ago











            • @Zarko Sorry, didn't read carefully. Better now?

              – marmot
              3 hours ago











            • yes, that is. i need to check how you achieve this :-)

              – Zarko
              3 hours ago











            • with help of your answer and after reading forest documentation again (and again) i figured out solution which i like to have: from your code i remove all s sep+=-3mm from nodes on the second level and to fortree add option where level=2s sep+=-1mm. it works fine.

              – Zarko
              1 hour ago












            • @Zarko Yes, I have almost the same thing on my machine. where level=2s sep+=...s sep+=... but with other dimensions.

              – marmot
              57 mins ago













            3












            3








            3







            Yes. Use s sep+.



            documentclass[border=3mm]standalone
            usepackageforest

            begindocument
            tikzsetELS/.style=% Edge Label Style
            font=footnotesize, inner sep=2pt,
            anchor=south #1, % label position: "ELS=west" or "EL=east"
            pos=0.6

            newcommandELedge label
            beginforest
            for tree=
            draw, semithick,
            parent anchor=children,
            l sep=13 mm,
            s sep+=2mm,
            anchor=parent,% <--- work around alignment issue
            ,
            EL/.style =
            before typesetting nodes=%% <--- work around edge labels positioning
            where n=1%
            edge label/.wrap value=node[ELS=east]$#1$
            %
            edge label/.wrap value=node[ELS=west]$#1$



            [Start
            [A, EL=leq 0.5
            [A1, EL=leq 0.3,s sep+=-3mm
            [A11, EL=leq 0.7]
            [A12, EL=geq 0.7]
            ]
            %[,phantom,fit=band] % <---
            [A2, EL=geq 0.3,s sep+=-3mm
            [A21, EL=leq 0.7]
            [A22, EL=geq 0.7]
            ]
            ]
            %[,phantom,fit=band] % <---
            [B, EL=geq 0.5
            [B1, EL=leq 0.3,s sep+=-3mm
            [B11, EL=leq 0.7]
            [B12, EL=geq 0.7]
            ]
            %[,phantom,fit=band] % <---
            [B2, EL=geq 0.3,s sep+=-3mm
            [B11, EL=leq 0.7]
            [B12, EL=geq 0.7]
            ]
            ]
            ]
            endforest
            enddocument


            enter image description here



            And I had this on my machine before Zarko pinged me. (I didn't think it is worthwhile to add an update for it.)



            documentclass[border=3mm]standalone
            usepackageforest

            begindocument
            tikzsetELS/.style=% Edge Label Style
            font=footnotesize, inner sep=2pt,
            anchor=south #1, % label position: "ELS=west" or "EL=east"
            pos=0.6

            newcommandELedge label
            beginforest
            for tree=
            draw, semithick,
            parent anchor=children,
            s sep=4mm,
            l sep=13 mm,
            anchor=parent,% <--- work around alignment issue
            ,
            EL/.style =
            before typesetting nodes=%% <--- work around edge labels positioning
            where n=1%
            edge label/.wrap value=node[ELS=east]$#1$
            %
            edge label/.wrap value=node[ELS=west]$#1$
            ,
            where level=2s sep+=-1mms sep+=0.5mm


            [Start
            [A, EL=leq 0.5
            [A1, EL=leq 0.3
            [A11, EL=leq 0.7]
            [A12, EL=geq 0.7]
            ]
            %[,phantom,fit=band] % <---
            [A2, EL=geq 0.3
            [A21, EL=leq 0.7]
            [A22, EL=geq 0.7]
            ]
            ]
            %[,phantom,fit=band] % <---
            [B, EL=geq 0.5
            [B1, EL=leq 0.3
            [B11, EL=leq 0.7]
            [B12, EL=geq 0.7]
            ]
            %[,phantom,fit=band] % <---
            [B2, EL=geq 0.3
            [B11, EL=leq 0.7]
            [B12, EL=geq 0.7]
            ]
            ]
            ]
            endforest
            enddocument


            enter image description here






            share|improve this answer















            Yes. Use s sep+.



            documentclass[border=3mm]standalone
            usepackageforest

            begindocument
            tikzsetELS/.style=% Edge Label Style
            font=footnotesize, inner sep=2pt,
            anchor=south #1, % label position: "ELS=west" or "EL=east"
            pos=0.6

            newcommandELedge label
            beginforest
            for tree=
            draw, semithick,
            parent anchor=children,
            l sep=13 mm,
            s sep+=2mm,
            anchor=parent,% <--- work around alignment issue
            ,
            EL/.style =
            before typesetting nodes=%% <--- work around edge labels positioning
            where n=1%
            edge label/.wrap value=node[ELS=east]$#1$
            %
            edge label/.wrap value=node[ELS=west]$#1$



            [Start
            [A, EL=leq 0.5
            [A1, EL=leq 0.3,s sep+=-3mm
            [A11, EL=leq 0.7]
            [A12, EL=geq 0.7]
            ]
            %[,phantom,fit=band] % <---
            [A2, EL=geq 0.3,s sep+=-3mm
            [A21, EL=leq 0.7]
            [A22, EL=geq 0.7]
            ]
            ]
            %[,phantom,fit=band] % <---
            [B, EL=geq 0.5
            [B1, EL=leq 0.3,s sep+=-3mm
            [B11, EL=leq 0.7]
            [B12, EL=geq 0.7]
            ]
            %[,phantom,fit=band] % <---
            [B2, EL=geq 0.3,s sep+=-3mm
            [B11, EL=leq 0.7]
            [B12, EL=geq 0.7]
            ]
            ]
            ]
            endforest
            enddocument


            enter image description here



            And I had this on my machine before Zarko pinged me. (I didn't think it is worthwhile to add an update for it.)



            documentclass[border=3mm]standalone
            usepackageforest

            begindocument
            tikzsetELS/.style=% Edge Label Style
            font=footnotesize, inner sep=2pt,
            anchor=south #1, % label position: "ELS=west" or "EL=east"
            pos=0.6

            newcommandELedge label
            beginforest
            for tree=
            draw, semithick,
            parent anchor=children,
            s sep=4mm,
            l sep=13 mm,
            anchor=parent,% <--- work around alignment issue
            ,
            EL/.style =
            before typesetting nodes=%% <--- work around edge labels positioning
            where n=1%
            edge label/.wrap value=node[ELS=east]$#1$
            %
            edge label/.wrap value=node[ELS=west]$#1$
            ,
            where level=2s sep+=-1mms sep+=0.5mm


            [Start
            [A, EL=leq 0.5
            [A1, EL=leq 0.3
            [A11, EL=leq 0.7]
            [A12, EL=geq 0.7]
            ]
            %[,phantom,fit=band] % <---
            [A2, EL=geq 0.3
            [A21, EL=leq 0.7]
            [A22, EL=geq 0.7]
            ]
            ]
            %[,phantom,fit=band] % <---
            [B, EL=geq 0.5
            [B1, EL=leq 0.3
            [B11, EL=leq 0.7]
            [B12, EL=geq 0.7]
            ]
            %[,phantom,fit=band] % <---
            [B2, EL=geq 0.3
            [B11, EL=leq 0.7]
            [B12, EL=geq 0.7]
            ]
            ]
            ]
            endforest
            enddocument


            enter image description here







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited 32 mins ago

























            answered 3 hours ago









            marmotmarmot

            112k5143270




            112k5143270












            • thank you very much for answer. apparently my question is not clear enough. i like to obtain in question showed image with removed ˙phantom` nodes (indicated by % <---). as i see, in your suggestion the distances between nodes at level 0 are equal. i like to have smaller between A11 and A12 and bigger between A21 and A22, etc.

              – Zarko
              3 hours ago











            • @Zarko Sorry, didn't read carefully. Better now?

              – marmot
              3 hours ago











            • yes, that is. i need to check how you achieve this :-)

              – Zarko
              3 hours ago











            • with help of your answer and after reading forest documentation again (and again) i figured out solution which i like to have: from your code i remove all s sep+=-3mm from nodes on the second level and to fortree add option where level=2s sep+=-1mm. it works fine.

              – Zarko
              1 hour ago












            • @Zarko Yes, I have almost the same thing on my machine. where level=2s sep+=...s sep+=... but with other dimensions.

              – marmot
              57 mins ago

















            • thank you very much for answer. apparently my question is not clear enough. i like to obtain in question showed image with removed ˙phantom` nodes (indicated by % <---). as i see, in your suggestion the distances between nodes at level 0 are equal. i like to have smaller between A11 and A12 and bigger between A21 and A22, etc.

              – Zarko
              3 hours ago











            • @Zarko Sorry, didn't read carefully. Better now?

              – marmot
              3 hours ago











            • yes, that is. i need to check how you achieve this :-)

              – Zarko
              3 hours ago











            • with help of your answer and after reading forest documentation again (and again) i figured out solution which i like to have: from your code i remove all s sep+=-3mm from nodes on the second level and to fortree add option where level=2s sep+=-1mm. it works fine.

              – Zarko
              1 hour ago












            • @Zarko Yes, I have almost the same thing on my machine. where level=2s sep+=...s sep+=... but with other dimensions.

              – marmot
              57 mins ago
















            thank you very much for answer. apparently my question is not clear enough. i like to obtain in question showed image with removed ˙phantom` nodes (indicated by % <---). as i see, in your suggestion the distances between nodes at level 0 are equal. i like to have smaller between A11 and A12 and bigger between A21 and A22, etc.

            – Zarko
            3 hours ago





            thank you very much for answer. apparently my question is not clear enough. i like to obtain in question showed image with removed ˙phantom` nodes (indicated by % <---). as i see, in your suggestion the distances between nodes at level 0 are equal. i like to have smaller between A11 and A12 and bigger between A21 and A22, etc.

            – Zarko
            3 hours ago













            @Zarko Sorry, didn't read carefully. Better now?

            – marmot
            3 hours ago





            @Zarko Sorry, didn't read carefully. Better now?

            – marmot
            3 hours ago













            yes, that is. i need to check how you achieve this :-)

            – Zarko
            3 hours ago





            yes, that is. i need to check how you achieve this :-)

            – Zarko
            3 hours ago













            with help of your answer and after reading forest documentation again (and again) i figured out solution which i like to have: from your code i remove all s sep+=-3mm from nodes on the second level and to fortree add option where level=2s sep+=-1mm. it works fine.

            – Zarko
            1 hour ago






            with help of your answer and after reading forest documentation again (and again) i figured out solution which i like to have: from your code i remove all s sep+=-3mm from nodes on the second level and to fortree add option where level=2s sep+=-1mm. it works fine.

            – Zarko
            1 hour ago














            @Zarko Yes, I have almost the same thing on my machine. where level=2s sep+=...s sep+=... but with other dimensions.

            – marmot
            57 mins ago





            @Zarko Yes, I have almost the same thing on my machine. where level=2s sep+=...s sep+=... but with other dimensions.

            – marmot
            57 mins ago











            2














            Just for record. With help of nice @marmot answer and after reading forest documentation again (and again) i figured out the solution which i looked for:



            documentclass[border=3mm, preview]standalone
            usepackageforest

            begindocument
            tikzsetELS/.style=% Edge Label Style
            font=footnotesizesffamily, inner sep=2pt,
            anchor=south #1, % label position: "ELS=west" or "ELS=east"
            pos=0.6

            beginforest
            for tree=
            draw,
            semithick,
            % fill=orange!20,
            parent anchor=children,
            l sep=13 mm,
            s sep=4mm,
            where level=2s sep=1mm
            ,
            EL/.style =
            before typesetting nodes=%
            where n=1%
            edge label/.wrap value=node[ELS=east]$#1$
            %
            edge label/.wrap value=node[ELS=west]$#1$



            [Start
            [A, EL=leq 0.5
            [A1, EL=leq 0.3
            [A11, EL=leq 0.7]
            [A12, EL=geq 0.7]
            ]
            [A2, EL=geq 0.3
            [A21, EL=leq 0.7]
            [A22, EL=geq 0.7]
            ]
            ]
            [B, EL=geq 0.5
            [B1, EL=leq 0.3
            [B11, EL=leq 0.7]
            [B12, EL=geq 0.7]
            ]
            [B2, EL=geq 0.3
            [B11, EL=leq 0.7]
            [B12, EL=geq 0.7]
            ]
            ]
            ] endforest
            enddocument


            which gives desired result:



            enter image description here






            share|improve this answer





























              2














              Just for record. With help of nice @marmot answer and after reading forest documentation again (and again) i figured out the solution which i looked for:



              documentclass[border=3mm, preview]standalone
              usepackageforest

              begindocument
              tikzsetELS/.style=% Edge Label Style
              font=footnotesizesffamily, inner sep=2pt,
              anchor=south #1, % label position: "ELS=west" or "ELS=east"
              pos=0.6

              beginforest
              for tree=
              draw,
              semithick,
              % fill=orange!20,
              parent anchor=children,
              l sep=13 mm,
              s sep=4mm,
              where level=2s sep=1mm
              ,
              EL/.style =
              before typesetting nodes=%
              where n=1%
              edge label/.wrap value=node[ELS=east]$#1$
              %
              edge label/.wrap value=node[ELS=west]$#1$



              [Start
              [A, EL=leq 0.5
              [A1, EL=leq 0.3
              [A11, EL=leq 0.7]
              [A12, EL=geq 0.7]
              ]
              [A2, EL=geq 0.3
              [A21, EL=leq 0.7]
              [A22, EL=geq 0.7]
              ]
              ]
              [B, EL=geq 0.5
              [B1, EL=leq 0.3
              [B11, EL=leq 0.7]
              [B12, EL=geq 0.7]
              ]
              [B2, EL=geq 0.3
              [B11, EL=leq 0.7]
              [B12, EL=geq 0.7]
              ]
              ]
              ] endforest
              enddocument


              which gives desired result:



              enter image description here






              share|improve this answer



























                2












                2








                2







                Just for record. With help of nice @marmot answer and after reading forest documentation again (and again) i figured out the solution which i looked for:



                documentclass[border=3mm, preview]standalone
                usepackageforest

                begindocument
                tikzsetELS/.style=% Edge Label Style
                font=footnotesizesffamily, inner sep=2pt,
                anchor=south #1, % label position: "ELS=west" or "ELS=east"
                pos=0.6

                beginforest
                for tree=
                draw,
                semithick,
                % fill=orange!20,
                parent anchor=children,
                l sep=13 mm,
                s sep=4mm,
                where level=2s sep=1mm
                ,
                EL/.style =
                before typesetting nodes=%
                where n=1%
                edge label/.wrap value=node[ELS=east]$#1$
                %
                edge label/.wrap value=node[ELS=west]$#1$



                [Start
                [A, EL=leq 0.5
                [A1, EL=leq 0.3
                [A11, EL=leq 0.7]
                [A12, EL=geq 0.7]
                ]
                [A2, EL=geq 0.3
                [A21, EL=leq 0.7]
                [A22, EL=geq 0.7]
                ]
                ]
                [B, EL=geq 0.5
                [B1, EL=leq 0.3
                [B11, EL=leq 0.7]
                [B12, EL=geq 0.7]
                ]
                [B2, EL=geq 0.3
                [B11, EL=leq 0.7]
                [B12, EL=geq 0.7]
                ]
                ]
                ] endforest
                enddocument


                which gives desired result:



                enter image description here






                share|improve this answer















                Just for record. With help of nice @marmot answer and after reading forest documentation again (and again) i figured out the solution which i looked for:



                documentclass[border=3mm, preview]standalone
                usepackageforest

                begindocument
                tikzsetELS/.style=% Edge Label Style
                font=footnotesizesffamily, inner sep=2pt,
                anchor=south #1, % label position: "ELS=west" or "ELS=east"
                pos=0.6

                beginforest
                for tree=
                draw,
                semithick,
                % fill=orange!20,
                parent anchor=children,
                l sep=13 mm,
                s sep=4mm,
                where level=2s sep=1mm
                ,
                EL/.style =
                before typesetting nodes=%
                where n=1%
                edge label/.wrap value=node[ELS=east]$#1$
                %
                edge label/.wrap value=node[ELS=west]$#1$



                [Start
                [A, EL=leq 0.5
                [A1, EL=leq 0.3
                [A11, EL=leq 0.7]
                [A12, EL=geq 0.7]
                ]
                [A2, EL=geq 0.3
                [A21, EL=leq 0.7]
                [A22, EL=geq 0.7]
                ]
                ]
                [B, EL=geq 0.5
                [B1, EL=leq 0.3
                [B11, EL=leq 0.7]
                [B12, EL=geq 0.7]
                ]
                [B2, EL=geq 0.3
                [B11, EL=leq 0.7]
                [B12, EL=geq 0.7]
                ]
                ]
                ] endforest
                enddocument


                which gives desired result:



                enter image description here







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited 11 mins ago

























                answered 55 mins ago









                ZarkoZarko

                128k868167




                128k868167



























                    draft saved

                    draft discarded
















































                    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%2f481967%2fforest-changing-s-sep-such-that-it-is-at-each-second-end-node-larger%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

                    Magento 2 duplicate PHPSESSID cookie when using session_start() in custom php scriptMagento 2: User cant logged in into to account page, no error showing!Magento duplicate on subdomainGrabbing storeview from cookie (after using language selector)How do I run php custom script on magento2Magento 2: Include PHP script in headerSession lock after using Cm_RedisSessionscript php to update stockMagento set cookie popupMagento 2 session id cookie - where to find it?How to import Configurable product from csv with custom attributes using php scriptMagento 2 run custom PHP script

                    Can not update quote_id field of “quote_item” table magento 2Magento 2.1 - We can't remove the item. (Shopping Cart doesnt allow us to remove items before becomes empty)Add value for custom quote item attribute using REST apiREST API endpoint v1/carts/cartId/items always returns error messageCorrect way to save entries to databaseHow to remove all associated quote objects of a customer completelyMagento 2 - Save value from custom input field to quote_itemGet quote_item data using quote id and product id filter in Magento 2How to set additional data to quote_item table from controller in Magento 2?What is the purpose of additional_data column in quote_item table in magento2Set Custom Price to Quote item magento2 from controller

                    How to solve knockout JS error in Magento 2 Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?(Magento2) knockout.js:3012 Uncaught ReferenceError: Unable to process bindingUnable to process binding Knockout.js magento 2Cannot read property `scopeLabel` of undefined on Product Detail PageCan't get Customer Data on frontend in Magento 2Magento2 Order Summary - unable to process bindingKO templates are not loading in Magento 2.1 applicationgetting knockout js error magento 2Product grid not load -— Unable to process binding Knockout.js magento 2Product form not loaded in magento2Uncaught ReferenceError: Unable to process binding “if: function()return (isShowLegend()) ” magento 2