How do you make a circled number using LaTeX

  • Context: LaTeX 
  • Thread starter Thread starter bwpbruce
  • Start date Start date
  • Tags Tags
    Latex
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
2 replies · 11K views
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}