TIKZ-cd 中的標籤有問題

TIKZ-cd 中的標籤有問題

我似乎無法弄清楚為什麼當我添加標籤時以下內容不起作用。我將首先展示工作範例,我想要一個簡單的交換圖,每個箭頭上都有一個標籤。工作示例如下:

\begin{tikzcd}[matrix scale=2.5, transform shape, nodes={scale=1.5}] % M \arrow{rd}{\varphi} \arrow[r] &N\dar[dashed]{\,\exists!\Phi}\\ &L \end{tikzcd}

這使:

在此輸入影像描述

但我想在 N 的箭頭上添加 iota,我在這裡嘗試過:

\begin{tikzcd}[matrix scale=2.5, transform shape, nodes={scale=1.5}] % M \arrow{rd}{\varphi} \arrow[r]{\iota} &N\dar[dashed]{\,\exists!\Phi}\\ &L \end{tikzcd}

但我收到「插入缺少\endcsname」的訊息,我似乎不知道如何解決這個問題。

答案1

這是一個簡單的錯字

\arrow{r}{\iota} 

不是

\arrow[r]{\iota} 

相關內容