I'm having trouble connecting a node inside of a forest tree diagram with some arbitrary text outside it.
MWE:
\documentclass[12pt,paper=a4]{scrartcl}
\usepackage[linguistics]{forest}
\usetikzlibrary{positioning}
% cf. http://tex.stackexchange.com/a/1912/60686
\tikzstyle{na} = [shape=rectangle,inner sep=0pt,text depth=0pt]
\begin{document}
\begin{forest}
[A, name=A
[B]
[C
[X, name=X]
[Y]
]
]
\draw[-latex,dotted] (A) to[out=west,in=west] (X);
\end{forest}
\tikzstyle{every picture}+=[remember picture]
\tikz\node[na](lorem){Lorem}; ipsum \tikz\node[na](abc){dolor}; sit \tikz\node[na](amet){amet};.
\begin{tikzpicture}[overlay]
\draw (X) to (abc);
\draw[-latex] (lorem) to[out=south,in=south] (amet);
\end{tikzpicture}
\end{document}
The result of the above code unfortunately looks like this:
In other words, tikz can't seem to find the node X, so the line just trails off to nowhere instead of connecting the X node to the abc node. In order to demonstrate that connecting things works inside of either the diagram or the text, I drew a bunch of arrows there as well.
Putting the line \tikzstyle{every picture}+=[remember picture] above \begin{forest} causes the various content boxes and drawings to appear all on different pages.



\tikzstyleis considered deprecated in favor of\tikzset{stylename/.style={...}}.) – Torbjørn T. Nov 18 '16 at 13:21! Package tikz Error: Cannot parse this coordinate.I have an up-to-date TeX Live 2016, perhaps there have been some changes inforestin the time since that question was asked and answered. Anyway, I know next to nothing aboutforest, but there are certainly other users around here that know quite a lot, so there's probably a good chance of getting an answer. – Torbjørn T. Nov 18 '16 at 14:41