LaTeX How do you make a circled number using LaTeX

  • Thread starter Thread starter bwpbruce
  • Start date Start date
  • Tags Tags
    Latex
AI Thread Summary
A tutorial on creating circled numbers in LaTeX using TikZ and PGF has been referenced, but users are experiencing issues with its implementation. An alternative method to enclose expressions in a circle is suggested using the command \enclose[mathcolor="color"]{circle}{expression}, where the color parameter is optional and defaults to black if omitted. An example provided demonstrates how to use this command to create a circled number within a matrix. The user seeks assistance in applying this method effectively in their LaTeX code.
Physics news on Phys.org
There may be other ways, but one way to enclose something in a circle is to use:

\enclose[mathcolor="color"]{circle}{expression}

The color is optional...if omitted, the circle will be black.

For example, the following code:

$$\enclose{circle}[mathcolor="red"]{\frac{x}{y}}$$

produces:

$$\enclose{circle}[mathcolor="red"]{\frac{x}{y}}$$
 
Thank you. All I wanted to be able to do is this:

\begin{bmatrix} \enclose{circle}1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \end{bmatrix}
 

Similar threads

Replies
4
Views
2K
Replies
12
Views
3K
Replies
1
Views
2K
Replies
6
Views
1K
Replies
14
Views
5K
Replies
11
Views
5K
Replies
0
Views
5K
Back
Top