包 pgf 错误:tikz-cd 交换图中没有已知的形状名称

包 pgf 错误:tikz-cd 交换图中没有已知的形状名称

tikz-cd我的交换图中有 3 个意外错误,称为:

Package pgf Error: No shape named A is known. I think the culprit is a tikzcd arrow in cell 2-2.

如何解决这些错误的问题?

xi这个图形已经很不错了,但是如果我们能以某种方式制作出像这样长度的箭nu,那就完美了。

MWE 在这里:

\documentclass[oneside,english]{amsart}
\usepackage{tikz-cd}
\usepackage{stackengine}[2013-09-11]
\usepackage{graphicx} 
\begin{document}

\begin{figure} 
\begin{center} %8ex
    %       \resizebox{0.25\linewidth}{!}{
    \begin{tikzcd}[row sep = 40pt, column sep = 40pt, ampersand replacement=\&]
        \& K \& \& \& \\ 
        G \arrow[end anchor={[xshift=-1ex]}]{ur}{\mbox{\scalebox{1.5}{$\varepsilon$}}}   \arrow[end anchor={[xshift=-1ex]},swap]{dr}{\mbox{\scalebox{1.5}{$\delta$}}}\&     
         \arrow[from=A,start anchor={[xshift=-8ex]},end anchor={[xshift=-5ex]}]{r}{\mbox{\scalebox{1.5}{$\zeta$}}}
        \& E_m \arrow{r}{\mbox{\scalebox{1.5}{$\mu$}}}\& E_\leq \arrow{r}{\mbox{\scalebox{1.5}{$\nu$}}} \& \mathcal{A}_\leq\\    
        \& D   
        \arrow[swap, xshift=-1.5ex,dashrightarrow,near end]{uu}{\mbox{\scalebox{1.5}{$\alpha_1$}}}
        [midway]{\ldots}
        [near start]{\mbox{\scalebox{1.5}{$\alpha_q$}}}  
        \arrow[swap, xshift=1.5ex,dashrightarrow]{uu}
        \arrow[uu, phantom, xshift=1.6ex,"=:\mathcal{A}"{name=A,right}, midway]
        \& \& \&  
    \end{tikzcd}
    %       }
\end{center}
\end{figure}
\end{document}

当前的 pdf 如下:

在此处输入图片描述

答案1

其实比这更简单:只需通过列间距返回即可:

\documentclass{amsart}
\usepackage{tikz-cd}
\usepackage{graphicx} 
\begin{document}

\[
\tikzcdset{
 every label/.style={
    /tikz/auto,
    /tikz/font=\everymath\expandafter{\the\everymath\textstyle},
    /tikz/inner sep=+0.5ex},
}
    %       \resizebox{0.25\linewidth}{!}{%
\begin{tikzcd}[row sep = 40pt, column sep = 40pt, ampersand replacement=\&]
\& K \\ 
G \arrow[end anchor={[xshift=-1ex]}]{ur}{\varepsilon}
  \arrow[end anchor={[xshift=-1ex]},swap]{dr}{\delta}
\& \&[-40pt] =:\mathcal{A} \arrow{r}{\zeta} \& 
E_m \arrow{r}{\mu} \& 
E_\leq \arrow{r}{\nu} \& \mathcal{A}_\leq\\    
\& D \arrow[swap, xshift=-1.75ex,dashrightarrow,near end]{uu}{\alpha_1}
           [midway]{\ldots}
           [near start]{\alpha_q}
     \arrow[swap, xshift=1.75ex,dashrightarrow]{uu}
\end{tikzcd}%
    %       }
\]
\end{document}

请注意我如何覆盖标签的选择。但我认为\scriptstyle最好使用默认的。\scripstyle

在此处输入图片描述

相关内容