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.)

  • 1
    $\begingroup$ A possible duplicate - Creating diagrams $\endgroup$
    – user876009
    Commented Aug 26, 2021 at 12:19
  • 2
    $\begingroup$ @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. $\endgroup$
    – Oshawott
    Commented Aug 26, 2021 at 19:34
  • $\begingroup$ 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 $\endgroup$ Commented Sep 6, 2021 at 11:29
  • $\begingroup$ 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. $\endgroup$ Commented Sep 6, 2021 at 11:32

1 Answer 1


No, it is not possible. What we use here for mathematical typesetting is MathJax, which does not have that possibility.

I suggest that you take a look at this question about creating diagrams.


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .