2

How do I label the arrows below with "1," "2," and "3"?

\documentclass[a4paper,12pt]{article}
\usepackage{tikz, tikz-qtree}
\begin{document}
\begin{tikzpicture}

\begin{tikzpicture}
\tikzset{every tree node/.style={align=center,anchor=north}}
\Tree [.TP [.DP$_i$ \edge[roof]; \node(subj){She\\$[${\sc nom}$]$}; ]
[.T$’$ [.T \node(aux){was$_j$ \\$[${\sc epp}$]$\\$[${\sc nom}$]$}; ]
[.VP [.V$’$ [.V \node(aux-t){$t_j$}; \node(tense-t){$t_k$}; ]
[.VP \node(subj-t){$t_i$}; [.V$’$ [.V \node(tense){hide-ing$_k$\\$[${\sc acc}$]$}; ]
[.DP$_l$ \edge[roof]; \node(obj){him\\$[${\sc acc}$]$}; ]]]]]]]
\draw[semithick,->] (subj-t)..controls +(south west:2) and +(south west:4)..(subj);
\draw[semithick,->] (aux-t)..controls +(south west:1) and +(south west:2)..(aux);
\draw[semithick,->] (tense-t)..controls +(south:4) and +(south west:1)..(tense);
\end{tikzpicture}

\end{document}
3

Use of node[pos=xx, above]{<number>} at the end of the draw. pos=0 means the staring point while pos=1 means the ending point. In addition to above, there are left, right, below and above right ... variants available.

enter image description here

\documentclass[a4paper,12pt]{article}
\usepackage{tikz, tikz-qtree}
\begin{document}
\begin{tikzpicture}

\tikzset{every tree node/.style={align=center,anchor=north}}
\Tree [.TP [.DP$_i$ \edge[roof]; \node(subj){She\\$[${\sc nom}$]$}; ]
[.T$’$ [.T \node(aux){was$_j$ \\$[${\sc epp}$]$\\$[${\sc nom}$]$}; ]
[.VP [.V$’$ [.V \node(aux-t){$t_j$}; \node(tense-t){$t_k$}; ]
[.VP \node(subj-t){$t_i$}; [.V$’$ [.V \node(tense){hide-ing$_k$\\$[${\sc acc}$]$}; ]
[.DP$_l$ \edge[roof]; \node(obj){him\\$[${\sc acc}$]$}; ]]]]]]]
\draw[semithick,->] (subj-t)..controls +(south west:2) and +(south west:4)..(subj)node[pos=0.5,above]{1};
\draw[semithick,->] (aux-t)..controls +(south west:1) and +(south west:2)..(aux)node[pos=0.5,above]{2};
\draw[semithick,->] (tense-t)..controls +(south:4) and +(south west:1)..(tense)node[pos=0.5,above]{3};
\end{tikzpicture}

\end{document}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.