Using the empheq environment from the empheq package in a TikZ node is throwing errors for me (although it seems to be plotted correctly):
\documentclass{scrartcl}
\usepackage{empheq}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\node at (0,0)
{ % empheq is plotted but throws errors
\begin{empheq}[left=\empheqlbrace]{align*}
a = b
\end{empheq}
};
\end{tikzpicture}
\end{document}
Errors
- Bad math environment delimiter.
\begin{equation*}on input line ... ended by\end{AmSequation*}.
What I already know
From Aligned equations inside of TikZ node. I have learned that align environment can be replaced by aligned:
% --- align does not work ---
\node at (0,0) { \begin{align*} a = b \end{align*} };
% --- aligned does ---
\node at (0,0) { $\begin{aligned} a = b \end{aligned}$ };
Please note that I depend on empheq's functionality although the minimal working examples here do not reveal that.
tikzmarking (see http://tex.stackexchange.com/a/76507/13304) or using thehf-tikzpackage (which its main functionality is exactly formula highlighting). BTW:alignhas to be treated carefully: see Numbering equations within dynblocks environment. – Claudio Fiandrino Nov 07 '13 at 07:40tikzmarketc. are made for... – matheburg Nov 07 '13 at 07:59tikzis an interesting beast. However, it works if you wrap theempheqin aminipageor\parbox. equivalently you could set thetext widthon the node. – daleif Nov 07 '13 at 08:37text widthversion, it seems to be the most elegant one. If you post this as an anwer I will accept it. – matheburg Nov 07 '13 at 11:27