I want to draw this digram below in Latex and thank you .
[Tex/LaTex] Drawing commutative diagram in tex
diagrams
Related Solutions
One LaTeX-friendly tool for doing this type of drawing is MetaPost. Getting started details are in the linked answer.
One technique for filling the background of an image, is to save the whole drawing in a picture
variable, and then fill the bbox
of the picture with the background colour, and then draw the picture on top.
Here's an example using a version of the OP image.
prologues := 3;
outputtemplate := "%j%c.eps";
beginfig(1);
u = 1.4cm;
numeric theta[];
theta1 = 12;
theta2 = 24;
theta3 = 36;
path segment[];
segment1 = (origin -- down) scaled 1.2u rotated theta1;
segment2 = (origin -- down) scaled 1.2u rotated theta2 shifted point 1 of segment1;
segment3 = (origin -- down) scaled 1.2u rotated theta3 shifted point 1 of segment2;
picture pendulum;
pendulum = image(
draw (left--right) scaled 2u;
for i=1 upto 3:
draw segment[i];
draw (origin--down) scaled 1u
shifted point 0 of segment[i]
dashed withdots scaled 1/3;
label.urt(btex $\ell$ etex, point 1/2 of segment[i]);
label.urt(btex $m$ etex, point 1 of segment[i]);
draw subpath(0, 1/45 (theta[i]-8)) of fullcircle
rotated 274 scaled .6u shifted point 0 of segment[i]
withpen pencircle scaled .3;
endfor
for i=1 upto 3:
fill fullcircle scaled 4 shifted point 1 of segment[i] withcolor .87 blue;
endfor
label(btex $\theta_1$ etex scaled 0.8, point 0 of segment1 shifted (-6,-12));
label(btex $\theta_2$ etex scaled 0.8, point 0 of segment2 shifted ( 6,-25));
label(btex $\theta_3$ etex scaled 0.8, point 0 of segment3 shifted ( 8,-20));
);
bboxmargin := 10;
fill bbox pendulum withcolor .2[white,blue];
draw pendulum;
endfig;
end.
If you don't mind using xy-pic, the code
\documentclass{beamer}
\usepackage[all,cmtip]{xy}
\begin{document}
\begin{displaymath}
\xymatrix{
{X} \ar[rr]^{\gamma} \ar[dr]^{\alpha}
&& {Y}\\
{\varepsilon_{3}} \ar[r]
& {Z} \ar[ur]^{\beta}
& {\varepsilon_{2}} \ar[u]
}% xymatrix
\end{displaymath}
\end{document}
will produce
For a tutorial on commutative diagrams using xy-pic, see section 8 of "Getting up and running with AMS-LaTeX", at https://www.ctan.org/tex-archive/info/amslatex-primer?lang=en
Best Answer
You may want to learn
tikz-cd
:The only trick is to draw the "g" arrow later (and in the opposite direction), so that it can properly cross over the "k'" arrow that would be drawn later if the "g" arrow started from "A" instead of "C".