図の中央の矢印にラベルを追加する

図の中央の矢印にラベルを追加する

次の図がありますが、中央の矢印のラベル $\tilde{f}$ を、ファントム矢印でパスを定義した後に追加した矢印の上に配置したいと思います。

これを実行する方法はありますか?

ここに画像の説明を入力してください

% !TEX TS-program = XeLaTeX
\documentclass[draft]{article}
\usepackage{tikz-cd}
\usetikzlibrary{arrows}
\usetikzlibrary{decorations.markings,intersections}


\begin{document}

   \tikzset{%
    scalearrow/.style n args={3}{
     decoration={
      markings,
       mark=at position (1-#1)/2*\pgfdecoratedpathlength
         with {\coordinate (#2);},
       mark=at position (1+#1)/2*\pgfdecoratedpathlength
        with {\coordinate (#3);},
       },
     postaction=decorate,
     } 
    }

\begin{tikzcd}
{ } &{} &{Set} &{}  \\
{ } &{} &{\tilde{f}} &{}  \\
{A}  \ar[uurr,"!"] \ar[rrr,"f"']  \ar[rrr, shift left=5ex, phantom, scalearrow={0.1}{start}{end}] \ar[to path=(start) --(end), Rightarrow]  &{} &{}  &{B} \ar[uul, "\tilde{L}f"']&{}  \\
\end{tikzcd}



\end{document}  

答え1

ここに画像の説明を入力してください

ただし、上記の画像は純粋な TikZ 画像として描画されています。

\documentclass[tikz, margin=3mm]{standalone}
\usetikzlibrary{positioning,
                quotes}

\begin{document}
\begin{tikzpicture}[
    node distance = 24mm and 12 mm
                    ]
\node (a) {$A$};
\node (s) [above right=of a] {Set};
\node (b) [below right=of s] {$B$};
%
\draw[->]   (a) edge ["!"] (s)
            (b) edge ["$\tilde{L}f$" '] (s)
            (a) edge ["$f$"] (b);
%            
\node (f) [below=9mm of s]  {$\stackrel{\tilde{f}}{\Rightarrow}$};
\end{tikzpicture}
\end{document} 

または、Longrightarrowの代わりにを使用しますRightarrow:

ここに画像の説明を入力してください

そして最後にtikz-cd:

ここに画像の説明を入力してください

\documentclass[draft]{article}
\usepackage{tikz-cd}

\begin{document}  
\begin{tikzcd}
    &   &   \mathrm{Set}                            &   \\
    &   &   \stackrel{\tilde{f}}{\Longrightarrow}   &   \\
A  \ar[uurr,"!"] \ar[rrr,"f"']  
    &   &   &   B \ar[uul, "\tilde{L}f"']&{}            \\
\end{tikzcd}
\end{document}

関連情報