5

I am searching for a way to create \circlearrowleft but with dot at its centre (as in \odot) .

I have searched every where, but couldn't find this particular symbol in any LaTeX help/documentation. I will be very thankful for help regarding this.

4

EDITED to make \dcirclearrowleft of type \mathrel.

\documentclass{article}
\usepackage{amssymb,stackengine}
\newcommand\dcirclearrowleft{\mathrel{%
  \ensurestackMath{\stackengine{0pt}{\circlearrowleft}{\cdot}{O}{c}{F}{T}{L}}%
}}
\begin{document}
$A \dcirclearrowleft B$
\end{document}

enter image description here

If it needs to work across math styles:

\documentclass{article}
\usepackage{amssymb,stackengine,scalerel}
\newcommand\dcirclearrowleft{\mathrel{\ThisStyle{%
  \ensurestackMath{\stackengine{0pt}{\SavedStyle\circlearrowleft}%
                                    {\SavedStyle\cdot}{O}{c}{F}{T}{L}}%
}}}
\begin{document}
$
A \dcirclearrowleft B\scriptstyle
A \dcirclearrowleft B\scriptscriptstyle
A\dcirclearrowleft B
$
\end{document}

enter image description here

| improve this answer | |
  • How can this be modified to place a small + or - in the middle? I figured out how to get the + or -, it's just big. – TraxusIV Apr 29 '19 at 18:51
  • @TraxusIV Perhaps \newcommand\dcirclearrowleft{\mathrel{\ThisStyle{% \ensurestackMath{\stackengine{\dimexpr1.4\LMpt-.3pt}{\SavedStyle\circlearrowleft}% {\scriptscriptstyle+}{O}{c}{F}{T}{L}}% }}} – Steven B. Segletes Apr 29 '19 at 18:56
5

Using ooalign:

\documentclass[]{article}
\usepackage{amssymb}

\makeatletter
\newcommand{\circdot}{%
  \mathrel{%
    \vphantom{\circlearrowleft}%
    \mathpalette\circd@t\relax
  }%
}
\newcommand{\circd@t}[1]{{\ooalign{%
            $\m@th#1\circlearrowleft$\cr
            \hidewidth$\m@th#1\cdot$\hidewidth\cr}}}
\makeatother
\begin{document}
    \(x\circdot y = a_{\circdot}\)
\end{document}

enter image description here

| improve this answer | |
  • It's better to add \vphantom{\circlearrowleft} before \mathpalette, otherwise the depth of the symbol would be wrong. Not so much in this case, though, but noticeable. I changed the centering, which doesn't need to guess a value. – egreg May 9 '17 at 17:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.