# How do I make a commutative diagram with LaTeX? [duplicate]

How do I make a diagram like this? Thanks in advance

• \documentclass{article} \usepackage{tikz-cd} \usepackage{amsfonts} \begin{document} \begin{tikzcd} & \mathbb{F} \arrow[dl,"\mu"'] \arrow[dr,"\nu"] & \\ \mathbb{P} & & \mathbb{M}\\ \end{tikzcd} \end{document}
– user121799
Jul 31 '19 at 0:12
• Have you tried some code? Jul 31 '19 at 0:15
• \documentclass[tikz,border=2mm]{standalone} \usepackage{amsfonts} \begin{document} \begin{tikzpicture} \path (0,0) node (F) {$\mathbb{F}$} +(-45:1.5) node (M) {$\mathbb{M}$} +(-135:1.5) node (P) {$\mathbb{P}$}; \draw[->] (F)--(M) node[pos=.3,right]{$\nu$}; \draw[->] (F)--(P) node[pos=.3,left]{$\mu$}; \end{tikzpicture} \end{document} Jul 31 '19 at 0:23
• @BlackMild Hey, thanks for the reply. Is there a way to make the arrows bigger? They are too short on my document. Also, How do I put it in the center of the page? Than Jul 31 '19 at 0:30
• @marmot Thanks for the reply. The letters above the arrows do not appear for some reason Jul 31 '19 at 0:31

Such diagrams can be drawn with tikz-cd. This site is full of examples, and the manual is very well written.

\documentclass{article}
\usepackage{tikz-cd}
\usepackage{amsfonts}
\begin{document}
\begin{tikzcd}
& \mathbb{F} \arrow[dl,"\mu"'] \arrow[dr,"\nu"] &  \\
\mathbb{P} & & \mathbb{M}\\
\end{tikzcd}
\end{document}

For bigger arrows, you can use [line width=1pt] or [thick] right after \begin{tikzpicture}.

\documentclass{article}
\usepackage{tikz}
\usepackage{amsfonts}
\begin{document}
\begin{center}
\begin{tikzpicture}[thick]
\path
(0,0)       node (F) {$\mathbb{F}$}
+(-45:1.5)  node (M) {$\mathbb{M}$}
+(-135:1.5) node (P) {$\mathbb{P}$};
\draw[->] (F)--(M) node[pos=.3,right]{$\nu$};
\draw[->] (F)--(P) node[pos=.3,left]{$\mu$};
\end{tikzpicture}
\end{center}
\end{document}
• @marmot nope! my mind is free. My code is elegant, so I make it community wiki Jul 31 '19 at 1:17
• @marmot I recommend you unretiring! Jul 31 '19 at 1:20
• Your solution is original, but a tikz-cd one is more flexible and simpler. Jul 31 '19 at 12:10
• @CarLaTeX: with (original) plain tikz, I can fine-tune every commuative diagram. I don't know why tikz-cd is more flexible! I think tikz-cd is well-fitted for one who are not familiar with tikz. The amount of time for learning new syntax, new commands of tikz-cd is equal the amount of time for learning basic TikZ. Jul 31 '19 at 16:43
• It's more flexible because you don't have to set the positions explicitly. It's more convenient if you have to add new elements. Jul 31 '19 at 17:45

Here there is my proposal using the same tips of tikz-cd but with another package called xy. I have added \usepackage[bb = boondox]{mathalfa} to give you the same mathematical double struck capital. With the option @R=.6pc@C=.6pc you can increase or decrease the lenghts of the rows R, or the columns C.

\documentclass[12pt]{standalone}
\usepackage[all,cmtip]{xy}
\usepackage[bb = boondox]{mathalfa}
\begin{document}
\xymatrix@R=.6pc@C=.6pc
{ & \mathbb{F} \ar[dl]_{\scriptscriptstyle\mu} \ar[dr]^{\scriptscriptstyle\nu}  & \\
\mathbb{P} & & \mathbb{M}
}
\end{document}