6

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.

2 Answers 2

7

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

2
  • 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, 2019 at 18:51
  • @TraxusIV Perhaps \newcommand\dcirclearrowleft{\mathrel{\ThisStyle{% \ensurestackMath{\stackengine{\dimexpr1.4\LMpt-.3pt}{\SavedStyle\circlearrowleft}% {\scriptscriptstyle+}{O}{c}{F}{T}{L}}% }}} Apr 29, 2019 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

1
  • 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, 2017 at 17:38

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .