I drew the following commutative diagram with tikz
(I can't use tikz-cd
since it's not on my version of LaTeX ; I tried to install it but doesn't seem to work)
\documentclass[11pt]{beamer}
\usetheme{default}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{tikz}
%\usepackage{tikz-cd}
\usetikzlibrary{matrix,arrows,decorations.pathmorphing}
\begin{center}
\begin{tikzpicture}[scale=2]
\node (X) at (1,1){$X$};
\node (A) at (0,0){$A$};
\node (B) at (2,0){$B$};
\node (axb) at (1,0){$A \times B$};
\path[->,font=\scriptsize,>=angle 90]
(axb) edge node[below]{$x_1$} (A)
(axb) edge node[below]{$p_B$} (B)
(X) edge node[above]{$p_A$} (A)
(X) edge node[above]{$p_B$} (B)
(X) edge node[left]{$w$} (axb);
\end{tikzpicture}
\end{center}
I need the w arrow to be dotted, how can I do that ?
Best Answer
Edit: doted line was solved by AboAmar comment slightly before my answer ... so I add some of topic issues. With use of the library
\quotes
you can make your code more concise and also gives better positioning of edge labels: