3

I am new at this. I am making phonological trees.

I have the following code:

\documentclass{article}

\usepackage{tikz}
\usepackage{tikz-qtree}
\usepackage{tipa}

\begin{document}

\begin{tikzpicture}[baseline]
\tikzset{frontier/.style={distance from root=100pt}}
\Tree
[.$\omega$
[.$\sigma$ k [.$\mu$ i ] [.$\mu$ \node(a){t}; ] ]
[.\node(b){$\sigma$};  [.$\mu$ e ] ] ]
\end{tikzpicture}
\end{document}

\draw (b.south) -- (a.north);

\end{document}

I want to be able to connect the second sigma to the third letter "t". I tried to make the "t" a node and the second "sigma" a node and then draw a line between them, but it yielded this:

enter image description here

How can I draw a line between the second sigma and the "t"?

Thanks!

5

Put the \draw command inside the tikzpicture?

\documentclass{article}

\usepackage{tikz}
\usepackage{tikz-qtree}
\usepackage{tipa}

\begin{document}

\begin{tikzpicture}[baseline]
\tikzset{frontier/.style={distance from root=100pt}}
\Tree
[.$\omega$
[.$\sigma$ k [.$\mu$ i ] [.$\mu$ \node(a){t}; ] ]
[.\node(b){$\sigma$};  [.$\mu$ e ] ] ]
\draw (b.south) -- (a.north);
\end{tikzpicture}
\end{document}

enter image description here

  • @Ben You're welcome, to tell the truth, you already did all by yourself, only the position of the command was wrong! :) Thank you for accepting my answer! – CarLaTeX Jul 7 '17 at 18:29

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.