I would like to know how make a circle and then insert text. There has to be a way.. right?
Asked
Active
Viewed 1.8k times
4
1 Answers
8
Latex has a \textcircled command for making a fixed size circle around a letter \textcircled{R} and its picture mode has a \circle command for making circles in a range of sizes (or arbitrary size if you use pict2e).
You don't mention mathjax but I note you tagged the question mathjax. Mathjax specific questions are off topic, but I'll note that mathjax does not support either of the above commands but you can do
\enclose{circle}[mathcolor="red"]{\color{black}{x}}
If you use its enclose extension.
David Carlisle
- 757,742
-
I think it looks better with downscaling the character, e.g. \textcircled{\scalebox{0.7}{3}} (tested in LaTeX only) – cknoll Nov 28 '19 at 09:21
-
@cknoll It does seem to need some alignment, but I don't think your command is correct. Can you give an example trying to encircle the letter 'M'? – mcp Feb 23 '22 at 18:37
-
Indeed. It seems to depend on the font. If I use
\usepackage{lmodern}(for my preferred font) then\textcircled{\raisebox{0.14em}{\scalebox{0.5}{M}}}gives good results. It uses\raiseboxto shift the glyph upwards. Note that\raiseboxalso accepts negative values for its first argument. – cknoll Feb 23 '22 at 18:49 -
When I do
\textcircled{R}circle is kind of small, it is possible to make it larger ? – alper Jan 09 '23 at 10:40 -
nodewithintikz. But you have to explain better what you want, where you wish to use it, etc... – Sigur Feb 19 '15 at 13:13