I have a sentence with two possible meanings - so, two possible syntactic trees.
I read the documentation of tikz-qtree and learned how to do upside-down trees. but I can't find a way to combine the two trees in one; both leading to the same sentence.
This is my code at the moment:
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[portuguese]{babel}
\usepackage{tikz}
\usepackage{tikz-qtree}
\usepackage{tikz-qtree-compat}
\usepackage{tikz-dependency}
\begin{document}
\begin{tikzpicture}[frontier/.style={distance from root=5cm}]
\Tree [.S [.SN [.Det o ] [.N menino ] ] [.SV [.Vtd viu ] [.SN [.Det a ] [.N menina ] ] [.SP [.P com ] [.SN [.Det o ] [.N telescópio ] ] ] ] ]
\end{tikzpicture}
\par
\begin{tikzpicture}[frontier/.style={distance from root=5cm}, grow'=up ]
\Tree [.S [.SN [.Det o ] [.N menino ] ] [.SV [.SV [.Vtd viu ] [.SN [.Det a ] [.N menina ] ] ] [.SP [.P com ] [.SN [.Det o ] [.N telescópio ] ] ] ] ]
\end{tikzpicture}
\end{document}
And the result:
What can I do to have only one tree (or better saying: two trees leading to only one sentence) with this structure?


forestan option? -> How to combine a top-down and bottom-up binary tree in one picture? – Bobyandbob Nov 22 '17 at 09:18