I would like to make a custom node shape with a small picture (on north east) using the svg directive of TikZ, because the picture comes from a svg path.
As you can see with this simple code, the picture is clipped and I don't want to add text (aaaa) to make the attached node larger.
It would be great if you can show me how to operate a scale and a shift on this small picture. All my tests failed!
\documentclass{article}
\usepackage{tikz}
\begin{document}
\usetikzlibrary{svg.path}
\tikzset{
t1/.style={rectangle,fill=blue!20},
t2/.style={path picture={ \draw[fill=red,draw=blue] svg "M0,0L10,10L20,0L10,-10Z";} }
}
\begin{tikzpicture}
\node[t1](A) at (1,1){A}; \draw(A.north east) node[t2]{aaaa};
\node[t1](B) at (2,1){B}; \draw(B.north east) node[t2]{};
\end{tikzpicture}
\end{document}

:)You don't need to add 'thank you' or sign your post. This is the way we keep it concise; your username automatically appears at the bottom of your posts. – Count Zero Jun 14 '12 at 16:10