I want to explain what the different signs in an expression means like this:
Currently I do this with TikZ (see MWE at the bottom), making nodes of everyting in the expression I want to point an arrow to. It is time consuming to finetune the position of the nodes so the result looks like what you would get if you just write the expression the ordinary way.
Is there a more elegant way to do this?
\documentclass[10pt]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{tikz}
\usetikzlibrary{shapes,positioning}
\begin{document}
\begin{tikzpicture}
[ plass/.style={inner sep=0pt,minimum size=4mm} ]
\node[plass] (minusfortegn) {$-$};
\node[plass] (tre) [right=-1.8mm of minusfortegn ] {$3$};
\node[plass] (minusoperator) [right=-1.0mm of tre ] {$-$};
\node[plass] (to) [right=-1.0mm of minusoperator ] {$2$};
\node[plass] (lik) [right=-1.6mm of to ] {\phantom{(}=\phantom{)}};
\node[plass] (minusfortegnto) [right=-1.4mm of lik ] {$-$};
\node[plass] (fem) [right=-1.8mm of minusfortegnto] {$5$};
\node (minusfortegntekst) [above=4mm of to] {Minustegn som fortegn};
\node (minusoperatortekst) [below=4mm of to] {Minustegn for subtraksjon};
\draw [->] (minusfortegntekst) to [out=230,in= 90] (minusfortegn);
\draw [->] (minusfortegntekst) to [out=310,in= 90] (minusfortegnto);
\draw [->] (minusoperatortekst) to [out=110,in=270] (minusoperator);
\end{tikzpicture}
\end{document}
Edit: I looked at the hf-tikz package, but it doesn't seem to be so elegant in this situation. I really like the subnode method in the tikzmark library though. @manuel shows a good way to do that in a comment below.
I tweaked the solution from @Ignasi a bit and wound up with the code below, which works well for me. Thanks a lot to @Ignasi, @Harish and @manuel for valuable feedback!
\documentclass[10pt]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{tikz}
\usetikzlibrary{positioning, tikzmark}
\begin{document}
\begin{tikzpicture}[remember picture]
\node { $\subnode{fortegn1}{$-$} 3 \mathbin{\subnode{minusoperator}{$-$}} \subnode{to}{$2$} = \subnode{fortegn2}{$-$} 5$ };
\node[above=4mm of to] (minusfortegntekst) {Minustegn som fortegn};
\node[below=4mm of to] (minusoperatortekst) {Minustegn for subtraksjon};
\draw [->] (minusfortegntekst) to [out=230,in= 90] (fortegn1);
\draw [->] (minusfortegntekst) to [out=310,in= 90] (fortegn2);
\draw [->] (minusoperatortekst) to [out=110,in=270] (minusoperator);
\end{tikzpicture}
\end{document}

\node {$\subnode{m1}{$-$} 3 \mathbin{\subnode{m2}{$-$}} 2 = \subnode{m3}{$-$} 5$};. – Manuel Jan 30 '15 at 15:09