[Tex/LaTex] Labeling arrows in commutative diagrams

commutative-diagramstikz-cd

I draw a commutative diagram by following commands, but I was unable to put labels on maps (Arrows). The diagram commands are as below:

\begin{center}
\tikzcdset{row sep/normal=2cm}
\begin{tikzcd}
 & H\arrow[ddl, bend right]\arrow[ddr, bend left]\arrow[d, dashed] & \\
 & A\rtimes G \arrow[dl]\arrow[dr] & \\
 A &  & G  
\end{tikzcd}
\end{center}

The diagram appearing is as below. How to label the arrows here? What modifications in command are to be done?

enter image description here

Best Answer

First, the labels are added in the format of quotes library, so you must use " instead of ''.

To change the style of labels, you can use option labels. This is a short example:

\documentclass{article}
\usepackage{tikz-cd}
\usepackage{amssymb}
\begin{document}
\begin{center}
\tikzcdset{row sep/normal=2cm}
\begin{tikzcd}
 & H\arrow[ddl, bend right]\arrow[ddr, bend left, "xyz"]\arrow[d, dashed] & \\
 & A\rtimes G \arrow[dl,"xyz"]\arrow[dr,"abc",labels=below left] & \\
 A &  & G  
\end{tikzcd}
\end{center}
\end{document}

enter image description here

Related Question