Я хочу написать уравнения на стрелках в моем tikz
digram. Например, этот код:Как написать скобки на диаграмме стрелки в tikz
\begin{figure}
\centering
\begin{sequencediagram}
\newinst{c}{client}
\newinst[6]{s}{server}
\mess[1]{c}{X=f(y)}{s}
\stepcounter{seqlevel}
\mess[1]{c}{C}{s}
\end{sequencediagram}
\caption{Client-Server messaging}
\end{figure}
\end{sequencediagram}
\caption{Client-Server messaging}
\end{figure}
Формирует много ошибок:
> auth.tex(31): Error: Package tikz Error: A node must have a (possibly
> empty) label text. auth.tex(31): Error: Use of \@next doesn't match
> its definition. auth.tex(31): Error: Package tikz Error: A node must
> have a (possibly empty) label text. , +, coordinate, pic, or node
> expected.(31): Error: Package tikz Error: (, +, coordinate, pic, or
> node expected. , +, coordinate, pic, or node expected.(31): Error:
> Package pgf Error: No shape named is known. , +, coordinate, pic, or
> node expected.(31): Error: Package pgf Error: No shape named is
> known. , +, coordinate, pic, or node expected.(31): Error: Package
> tikz Error: Giving up on this path. Did you forget a semicolon?. , +,
> coordinate, pic, or node expected.(36): Error: Extra }, or forgotten
> \endgroup. , +, coordinate, pic, or node expected.(36): Error: Missing
> } inserted. , +, coordinate, pic, or node expected.(36): Error: Extra
> }, or forgotten \endgroup. , +, coordinate, pic, or node
> expected.(36): Error: Missing } inserted. , +, coordinate, pic, or
> node expected.(36): Error: LaTeX Error: \begin{tikzpicture} on input
> line 27 ended by \end{sequencediagram}. , +, coordinate, pic, or node
> expected.(38): Error: Extra }, or forgotten \endgroup.
Но когда сообщение стрелки не содержит скобки, я не получаю эти ошибки. Не могли бы вы мне помочь?