# 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 Mod
Apr 21, 2019 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/… Apr 21, 2019 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 Mod
Apr 21, 2019 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. Apr 21, 2019 at 17:52
• What do you mean by "tags" exactly? Apr 22, 2019 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.