3

I want to define a custom statechart using TikZ-UML (http://www.ensta-paristech.fr/~kielbasi/tikzuml/index.php). My problem is that the state does not seem to render the content in its body.

\documentclass[10pt]{article}

\usepackage[utf8]{inputenc}
\usepackage{amssymb,amsmath}
\usepackage{tikz}
\usepackage{tikz-uml}

\begin{document}
\begin{figure}[h]
\begin{tikzpicture}
\begin{umlstate}[name=State]{A State}
Some

State

Content

$$x = y$$
\end{umlstate}
\end{tikzpicture}
\end{figure}
\end{document}

Does anyone know whether this is a TikZ or TikZ-UML specific issue? And ideally: How would one display abitrary content here?

tinydata
  • 103
choeger
  • 915

1 Answers1

2

It may be still not documented (if it is the case, this will be fixed soon), but you can use \umlstatetextto do it since release 0.9.8.

\begin{tikzpicture}
\begin{umlstate}[name=State]{A State}
\umlstatetext{Some

State

Content

$$x = y$$
}
\end{umlstate}
\end{tikzpicture}