tikz-uml“额外\或。\end{umlcall}”错误

tikz-uml“额外\或。\end{umlcall}”错误

我试图弄清楚为什么我刚安装的 TexStudio(+ MikTex)找不到 tikz-uml 包。

作为测试,我尝试构建以下示例(克隆整个项目,因此 .sty 文件位于其应在的位置): https://github.com/lebedov/tikzumlx/blob/master/examples/seqdiag.tex

我得到的错误是Extra \or. \end{umlcall}

! 额外的 \or。 \ifthenelse #1->\toks@ {#1}\TE@repl \or \TE@or \TE@repl \and \TE@and \TE@rep... l.90 \end{umlcall} 我忽略了这一点;它与任何 \if 都不匹配。

PS 在 Ubuntu 上,我可以编译该示例,因此它似乎与 Windows 相关。


最小失败示例:

\documentclass[10pt,a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{listings}

\usepackage{tikz-uml}
\usepackage{tkz-graph}
\begin{document}
\begin{tikzpicture}
\begin{umlseqdiag}
\umlobject[no ddots]{B}
\umlobject[x=11,no ddots]{A}
\begin{umlcallself}[op={$\alpha$}]{B}
    \begin{umlcall}[op=$\beta$, type=synchron, dt=4]{B}{A} 
        \begin{umlcall}[op=$\gamma$, type=synchron, dt= 6]{A}{B}
            \begin{umlcallself}[op={$\epsilon$}, dt = 1]{B}
                \begin{umlcallself}[op={$\theta$}, dt = 1]{B}
                \end{umlcallself}
            \end{umlcallself}
        \end{umlcall}
    \end{umlcall}
\end{umlcallself}
\end{umlseqdiag}
\end{tikzpicture}
\end{document}

Ubuntu – 可用。Windows: 在此处输入图片描述

! Extra \or.
\ifthenelse #1->\toks@ {#1}\TE@repl \or 
                                        \TE@or \TE@repl \and \TE@and \TE@rep...
l.20            \end{umlcallself}
                         
I'm ignoring this; it doesn't match any \if.

! Extra \or.
\ifthenelse #1->\toks@ {#1}\TE@repl \or 
                                        \TE@or \TE@repl \and \TE@and \TE@rep...
l.21        \end{umlcall}
                    
I'm ignoring this; it doesn't match any \if.

! Extra \or.
\ifthenelse #1->\toks@ {#1}\TE@repl \or 
                                        \TE@or \TE@repl \and \TE@and \TE@rep...
l.22    \end{umlcall}
                   
I'm ignoring this; it doesn't match any \if.

! Extra \or.
\ifthenelse #1->\toks@ {#1}\TE@repl \or 
                                        \TE@or \TE@repl \and \TE@and \TE@rep...
l.23 \end{umlcallself}
                      
I'm ignoring this; it doesn't match any \if.

相关内容