# How do I add captions to inserted figures

Some of my MO answers have figures in them. How do I add captions and tags to them?

• How do you make those figures? If it's an external image file, just add the caption there. – Asaf Karagila Apr 21 '19 at 14:51
• I wrote a caption but it did not come out right. See the 6th picture (from ttop to bottom) in this answer mathoverflow.net/questions/328497/… – Liviu Nicolaescu Apr 21 '19 at 14:53
• Those captions are not captions that appear below your figure. Those are meant as alternative text for screen readers or so. – Asaf Karagila Apr 21 '19 at 15:03
• This rather old feature request is a bit related: Add Image Captions. The answer posted there basically explains that MarkDown has no predefined way to do that. – Martin Sleziak Apr 21 '19 at 17:52
• What do you mean by "tags" exactly? – Federico Poloni Apr 22 '19 at 19:01

One way to approximate a figure caption is to add this immediately after your image:

<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
<sup>
Figure caption here.
</sup>
<br />


The br breaks to a new line. The &nbsp's tab in horizontally. The sup's make the tex smaller (superscript). For example:

Random vectors in a disk: MSE post.