软件包 TikZ 编译错误

软件包 TikZ 编译错误

我收到此错误:

! Package pgfkeys Error: I do not know the key '/tikz/arrow right' and I am goi
ng to ignore it. Perhaps you misspelled it.

See the pgfkeys package documentation for explanation.
Type  H <return>  for immediate help.
 ...                                              

l.187   \end{tikzcd}

出现错误时的代码部分如下:

    \begin{figure}[H]
      \centering
      \begin{tikzpicture}[baseline= (a).base]
        \node[scale=1.3] (a) at (0, 0){
        \begin{tikzcd}
        U\arrow[arrow left]{drr}{\phi \ \circ \ \pi_{y}}
        \arrow[arrow right]{dr}[description]{\phi}
        \arrow[dotted]{ddr}[description]{\phi \ \circ \ \pi_{x}} & & \\
                                                                 & W \arrow{r}[swap]{\pi_{y}} \arrow{d}{\pi_{x}} & Y \arrow{d}[swap]{g} \\
                                               & X \arrow{r}{f} & Z
187.-      \end{tikzcd}
      };
      \end{tikzpicture}
    \end{figure}

我输入数字“187”是因为这是您可以注意到的错误行,也许我错过了一个库...但如果是这样...我不知道是哪一个。

答案1

rightarrow和替换那些leftarrow适当的命令,例如

\arrow[rightarrow]...

相关内容