We noted the following TeX code support in mathjax in referring in the net but it is undefined while compiling in latex, what package I should used here?
$$\enclose{circle}[mathcolor="red"]{\color{black}{x}}$$
We noted the following TeX code support in mathjax in referring in the net but it is undefined while compiling in latex, what package I should used here?
$$\enclose{circle}[mathcolor="red"]{\color{black}{x}}$$
You can use the new circledsteps package. Please use \[ ... \] instead of $$ ... $$, see the answers to this question.
\documentclass{article}
\usepackage{xcolor}
\usepackage{circledsteps}
\newcommand{\CCircled}[2][]{\begingroup
\pgfkeys{/csteps/.cd,inner color=.,#1}%
\ifmmode
\Circled{$#2$}%
\else
\Circled{#2}%
\fi
\endgroup}
\begin{document}
\[\CCircled[outer color=red]{x}\]
\end{document}
\enclosein LaTeX, but of course I may be wrong. (The downvote is not from me, I do not downvote.) – Dec 31 '19 at 06:57\enclosecommand in some standard package. (To be clear, there is no problem in defining a command that does what\enclosedoes. I am just doubting that there is a standard package that carries this command.) – Dec 31 '19 at 07:13mathjax, in general, is out-of-scope of this site. – Raaja_is_at_topanswers.xyz Dec 31 '19 at 07:25