# Compiling asymptote code for a figure in Math Stack Exchange

I wanted to ask a question in Mathematics Stack Exchange. In the question, I wanted to add a geometric figure. I have the asymptote code of the figure. I know I can compile the code in other sites and then take a screenshot to add the image. But I want to know if I can compile the code in math stack exchange. I added the code inside  and [asy][/asy] but that didn't work.

(I thought this question belonged to the TeX Stack Exchange and asked it here (now deleted). But the users there suggested asking it here.)

• A possible duplicate - Creating diagrams
– user876009
Aug 26 at 12:19
• @JitendraSingh Please note that the question isn't asked to find sites or softwares for creating digrams. Rather it asks whether one can compile asymptotes in Math SE. Using the word related will be much more meaningful than using duplicate in this case. Aug 26 at 19:34
• My guess is that the same issue would arise for other popular latex-graphics packages, such as PSTricks or PGF-Tikz. I strongly suspect the issue is that you have to have specific rendering packages in the preamble to your latex document in order for the corresponding latex graphics package to be invoked. mathSE maintainers (or Stack Exchange maintainers in general) must balance the effort needed to allow (for example) Asymptote/PSTricks/PgF-Tikz invocations against what it would gain. ...see next comment Sep 6 at 11:29
• Conversion of an image into (for example) a png or jpeg file is routine. Also, uploading an image and inserting into a document is routine, as discussed here and here, so image management doesn't seem to be an issue at mathSE. Sep 6 at 11:32