Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. documentclass[border=10pt]{standalone}
  2. usepackage{forest}
  3. begin{document}
  4. begin{forest}
  5. div2/.style={
  6. append/.process={ Ow+PS _>? l_w2 {content}{int(floor(##1/2)){1}{div2}{}{[##1,##2]}},
  7. },
  8. [10, div2]
  9. end{forest}
  10. end{document}
  11.  
  12. documentclass[border=10pt]{standalone}
  13. usepackage{forest}
  14. begin{document}
  15. begin{forest}
  16. divn/.style args={1} ={
  17. append/.process={ Ow+PS _>? l_w2 {content}
  18. {int(floor(##1/#1))}{1}{divn}{}{[##1,##2]}},
  19. },
  20. %
  21. tempcounta = {1},
  22. branches/.style={
  23. until{2*tempcounta > content}{
  24. divn={content},
  25. tempcounta/.pgfmath={tempcounta+1},
  26. },
  27. },
  28. %
  29. %
  30. [3, branches]
  31. end{forest}
  32. end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement