7

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.

Mubeen Shahid
  • 195
  • 1
  • 7

2 Answers2

8

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

  • 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. – PTTHomps 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
6

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

egreg
  • 1,121,712
Troy
  • 13,741
  • 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 09 '17 at 17:38