The following code mis-renders the multi-line label:
\documentclass{article}
\usepackage{tikz}
\usepackage{amsmath}
\begin{document}
\begin{equation}
\begin{aligned}
\begin{tikzpicture}
\node (A) at (0,0) {A};
\node (B) at (0,2) {B};
\draw (A) to node [anchor=east, align=right] {my\\multi-line\\label} (B);
\end{tikzpicture}
\end{aligned}
\end{equation}
\end{document}
It's all the fault of the aligned environment - which, however, is necessary to get the equation number to typeset in the proper place with respect to the diagram.
So: is this a weird interaction bug? Can it be solved? Or is there a hack that just lets me align my picture using a different method to avoid this strange issue? Or perhaps my TikZ is buggy, or this isn't the correct way to do multi-line labels.
Screenshot with code as above:

Screenshot without aligned environment:




alignedenvironment.:)– Werner Dec 09 '11 at 19:19splitinstead ofalignedseems to help, but the line spacing is a little different. – Torbjørn T. Dec 09 '11 at 19:20alignedenvironment and you'll see what I mean. – Jamie Vicary Dec 09 '11 at 19:24alignedenvironment for is the numbering, you could take a look at http://tex.stackexchange.com/q/14599/86 which provides a pure TikZ way of putting in equation numbers (the code is at http://bazaar.launchpad.net/~tex-sx/tex-sx/development/files astikzeqnos.texbut as the file extension suggests, I haven't worked on it much since the original code. My converting-answers-to-packages time recently has been taken up with some random knot package. Maybe I should switch to the equation number one for a while ...) – Andrew Stacey Dec 09 '11 at 21:18