Guest User

Untitled

a guest
Jan 16th, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. usepackage{tikz,tikz-qtree-compat}
  2. tikzset{baseline=0pt,level distance=20pt,sibling distance=0pt}
  3. begin{document}
  4. Tree [.CP [.who ] [ [.$lambda_1$ ]
  5. [.IP [.$t_1$ ] [.registered ] ] ] ]
  6. end{document}
  7.  
  8. usepackage[linguistics]{forest}
  9. newcommand{tree}[1]{
  10. begin{forest}
  11. for tree={
  12. inner sep=0pt,
  13. % where n children=0{font=itshape}{},
  14. % calign=fixed edge angles,
  15. parent anchor=south,
  16. },
  17. before typesetting nodes={% page 52: example (81)
  18. where content={}{% shape=coordinate gives an error if used here but this is *almost* right - it just leaves a little, tiny gap
  19. text width=.001pt,
  20. inner sep=0pt,
  21. before drawing tree={% here we make sure that the tiny gap disappears so only the size is not quite dimensionless
  22. shape=coordinate,
  23. typeset node,
  24. },
  25. for parent={
  26. for children={
  27. anchor=north,
  28. }
  29. }
  30. }{}
  31. }
  32. #1
  33. end{forest}
  34. }
  35.  
  36. begin{document}
  37. tree{
  38. [CP [who] [ [$lambda_1$]
  39. [IP [$t_1$] [registered]]]]
  40. }
  41. end{document}
Add Comment
Please, Sign In to add comment