6

Is there a built-in symbol like

enter image description here

If it does not exist, what method do you recommend to make such a symbol?

Edit:

enter image description here

3

3 Answers 3

9

Maybe something like this?

\documentclass{article}
\usepackage{amsmath, amssymb}
\usepackage{graphicx}
\newlength{\harpoonswidth}
\settowidth{\harpoonswidth}{$\rightleftharpoons$}
\newcommand*{\circnotharpoons}{%
    \mathrel{\ooalign{%
        $\rightleftharpoons$\cr%
        \makebox[\harpoonswidth]{%
            \begin{picture}(10,10)(-5,0)
                \put(0,3.5){\circle{2}}
            \end{picture}%
        }\cr%
        \makebox[\harpoonswidth]{%
            \rotatebox[origin=c]{-45}{%
                \rule[.3pt]{.4pt}{2.5pt}%
            }%
        }%
    }}%
}
\begin{document}
\(A \circnotharpoons B\)

\(A \rightleftharpoons B\)
\end{document}
1
  • Yes, that is what I want! Thank you.
    – Hermis14
    Commented Dec 20, 2021 at 19:08
14

Here's a version that also changes size in subscripts and superscripts, maintaining the correct line width for the circle and the slash.

\documentclass{article}
\usepackage{amsmath,amssymb}
\usepackage{pict2e}

\makeatletter
% line thickness
\newcommand{\hermis@thickness}[1]{%
  \fontdimen8
  \ifx#1\displaystyle\textfont\else
  \ifx#1\textstyle\textfont\else
  \ifx#1\scriptstyle\scriptfont\else
  \scriptscriptfont\fi\fi\fi 3
}
% width for the decoration
\newcommand{\hermis@width}[1]{%
  0.2\fontdimen6
  \ifx#1\displaystyle\textfont\else
  \ifx#1\textstyle\textfont\else
  \ifx#1\scriptstyle\scriptfont\else
  \scriptscriptfont\fi\fi\fi 2
}
% distance
\newcommand{\hermis@distance}[1]{%
  \ifx#1\displaystyle 0.12\fontdimen6\textfont\else
  \ifx#1\textstyle 0.12\fontdimen6\textfont\else
  \ifx#1\scriptstyle 0.075\fontdimen6\scriptfont\else
  0.0385\fontdimen6\scriptscriptfont\fi\fi\fi 2
}
% circle
\newcommand{\hermis@circle}[1]{%
  $#1\vcenter{\hbox{\begin{picture}(1,1)
  \put(0.5,0.5){\arc{0.5}}
  \end{picture}}}$%
}
% slash
\newcommand{\hermis@slash}[1]{%
  $#1\vcenter{\hbox{\begin{picture}(1,1)
  \roundcap
  \Line(0,0)(1,1)
  \end{picture}}}$%
}
% the main command
\newcommand{\sosmc}{\mathrel{\mathpalette\hermis@sosmc\relax}}
\newcommand{\hermis@sosmc}[2]{%
  \begingroup\m@th
  \vcenter{%
    \setlength{\unitlength}{\hermis@width{#1}}%
    \linethickness{\hermis@thickness{#1}}%
    \hbox{\ooalign{%
      $#1\rightharpoonup$\cr
      \hidewidth\hermis@circle{#1}\hidewidth\cr
    }}%
    \nointerlineskip\vskip-\hermis@distance{#1}%
    \hbox{\ooalign{%
      $#1\leftharpoondown$\cr
      \hidewidth\hermis@slash{#1}\hidewidth\cr
    }}%
  }%
  \endgroup
}
\makeatother

\begin{document}

$A\sosmc B$

$\scriptstyle A\sosmc B$

$\scriptscriptstyle A\sosmc B$

\end{document}

enter image description here

9

Not too sure what exactly you want, but I propose this code, based on the \stackinset command which hopefully is not too far from what you'd like:

\documentclass[11pt]{article}
 \usepackage{amsmath}
\usepackage{amssymb}
\usepackage{stackengine} 

\newcommand{\Orightharpoonup}{\mathrel{\stackMath\stackinset{c} {0pt}{c}{0.5pt}{\circ}{\relbar\mkern-3.2mu\rightharpoonup}}}%
\newcommand{\nleftharpoondown}{\mathrel{\stackMath\stackinset{c}{-4pt}{c}{0.5pt}{\not}{\leftharpoondown\mkern-3.2mu\relbar}}}%

\begin{document}

\[ \begin{matrix}
A \Orightharpoonup B \\
D \nleftharpoondown C
 \end{matrix}\]%


\[A \mathrel{\begin{matrix}
 \Orightharpoonup \\[-1.5ex]
 \nleftharpoondown
 \end{matrix}} B \]%

\end{document} 

enter image description here

6
  • Wow, it looks great! But I have to admit my request was not that clear. I want to make it a single symbol as shown in the figure I've just updated. Thank you in advance!
    – Hermis14
    Commented Dec 20, 2021 at 19:05
  • And the boundary line is not an intended one :)
    – Hermis14
    Commented Dec 20, 2021 at 19:06
  • @Hermis14: I've modified the second code. Please see if it befits you.
    – Bernard
    Commented Dec 20, 2021 at 19:18
  • Yes, it does! Thank you. I wish I could select both answers.
    – Hermis14
    Commented Dec 20, 2021 at 19:20
  • It's not that important…
    – Bernard
    Commented Dec 20, 2021 at 19:21

You must log in to answer this question.

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