I am using the textext extension to Inkscape to insert LaTeX into my figure. I am trying to insert a mathematical equation in which I need a cases environment, but when I put a:
\begin{equation}
f(x) =
\begin{cases}
x & x>0, \\
0 & \textrm{otherwise},
\end{cases}
\end{equation}
I get a bunch of errors from textext, like ! Misplaced alignment tab character &.. How can I fix this? The example screenshot on the textext website has a cases environment, so it has to work somehow.
\usepackage{amsmath}, – Torbjørn T. Feb 18 '15 at 15:00textexthas a Preamble file option, but I don't know how to use it. Exactly what does this preamble file contain? – a06e Feb 18 '15 at 15:15\usepackage{amsmath}) in it. – Torbjørn T. Feb 18 '15 at 15:17