# What are your options to draw commutative diagrams on MSE? [duplicate]

I know that I asked similar questions in the past, but I still do not seem to figure it out, what the best way is to post a 'complex' diagram on this website.

Nothing seems to work, and the things that do work aquire a lot of work and take to much time in my opinion...

I just posted this question: Universal property of product topology, unique up to homeomorphism

Which was not fun at all. Can you please tell me, how I could have drawn these diagrams here with the most efficient method?

Thank you!

• See also: How to draw a commutative diagram? If you know xypic syntax, you could use presheaf for the type of diagrams in the linked post: Challenge: can you draw the following triangular diagram? and Triangle commutative diagram does not work here at MO. Aug 20, 2019 at 3:58
• The limited $\LaTeX$ implementation here for MathJax purposes is likely a factor in the difficulty of drawing such diagrams. See the numerous posts on this subject at TeX.SE, e.g. Drawing a commutative diagram. If you do a fair amount of these, esp. more complicated ones, then a standalone implementation with tikz-cd might be worth the learning curve (to prepare images for uploading). Aug 20, 2019 at 23:30
• Technically MathJaX is an AJAX( javascript engine) library, with LaTeX style commands. But I agree with @hardmath That learning a LaTeX package or two to upload clean images. might go a long way.
– user645636
Aug 20, 2019 at 23:45

$$\underset{\underset{\hspace{-20px}l_k}\searrow}{y\overset{f}\longrightarrow}\underset{\hspace{-20px}X_{l_K}}{\underset{\downarrow P_{r_k}}{\hspace{-20px}X}}$$
I mostly used underset and overset:

\underset{\underset{\hspace{-20px}l_k}\searrow}{y\overset{f}\longrightarrow}\underset{\hspace{-20px}X_{l_K}}{\underset{\downarrow P_{r_k}}{\hspace{-20px}X}}

Might be able to use stackrel after grouping the main line, or getting the arrows longer by requiring an extended arrow package. Could define the triangle with optional arguments to fill in.

• Thank you, but this looks terrible. :) Well... better then my awful hand drawings. Aug 20, 2019 at 16:45
• it's the ahort arrows below. without using style to rotate them, or extendible arrows, I'm no expert.
– user645636
Aug 20, 2019 at 18:14
• – user645636
Sep 13, 2019 at 21:45