How do you make a circled number using LaTeX

  • Topic: LaTeX 
  • Thread starter bwpbruce
  • Start date
  • Tags Tags
    Latex
2 replies · 11K views · last reply
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}