I am using tikZ to draw mathematical commutative diagrams. I am struggling to draw a diagram as the image attached, but I don't really know how to draw the double diagonal line, the one labeled with H.
My code is
Code: Select all
\begin{tikzpicture}
\matrix (m) [matrix of math nodes, row sep=3em, column sep=3em, text height=1.5ex, text depth=0.25ex]
{ K & X \\
L & Y \\ };
\path[->]
(m-1-1) edge (m-1-2)
(m-1-1) edge node[left] {$ i $} (m-2-1)
(m-1-2) edge node[right] {$ p $} (m-2-2)
(m-2-1) edge (m-2-2);
\path[dotted,->]
(m-2-1) edge (m-1-2);
\end{tikzpicture}
\Rightarrow
for the diagonal dotted line L \to X
, but then I get it horizontal on the right, instead of diagonal pointing down right. I feel like looking for a double diagonal line as a latex symbol is not the right way to solve the problem. Is there another way to draw the double line I want? Also, I may want to label this double line, so is it possible to draw it like a \path
? Thank you very much,
Bogdan