[Tex/LaTex] A circled inequality relation symbol similar to the circled arithmetic operators

symbols

I'm looking for a variation on the \odot (a circled dot) and \oplus (a circled plus) operators, but for the inequality relations. In other words, I'm looking for the symbol to substitute for the blank in the second printed line of following example.

\documentclass{amsart}
\begin{document}
\begin{align*}
c\cdot x + y &\leq z\\
c\odot x\oplus y &\quad\ z
\end{align*}
\end{document}

A missing circled less-than relation symbol

I couldn't find any matching symbol using detexify.

Best Answer

We can make the circle match the \oplus one by suitable scaling.

The symbol to be circled has to be scaled depending on its size, so \ogeneric provides for an optional argument (default 0.7 that seems good for <).

\documentclass{article}
\usepackage{amsmath,graphicx,color}

\makeatletter
\newcommand{\ogeneric}[2][0.7]{%
  \vphantom{\oplus}\mathpalette\o@generic{{#1}{#2}}%
}
\newcommand{\o@generic}[2]{\o@@generic#1#2}
\newcommand{\o@@generic}[3]{%
  \begingroup
  \sbox\z@{$\m@th#1\oplus$}%
  \dimen@=\dimexpr\ht\z@+\dp\z@\relax
  \savebox\tw@[\totalheight]{$\m@th#1\bigcirc$}%
  \makebox[\wd\z@]{%
    \ooalign{%
      $#1\vcenter{\hbox{\resizebox{\dimen@}{!}{\usebox\tw@}}}$\cr
      \hidewidth
      $#1\vcenter{\hbox{\resizebox{#2\dimen@}{!}{$#1\vphantom{\oplus}{#3}$}}}$%
      \hidewidth
      \cr
    }%
  }%
  \endgroup
}
\makeatother

\newcommand{\ole}{\mathrel{\ogeneric{<}}}
\newcommand{\oleq}{\mathrel{\ogeneric[0.6]{\leq}}}

\begin{document}

\begin{align*}
c\cdot x + y &\leq z\\
c\odot x\oplus y &\oleq z \\
c\odot x\oplus y &\ole z \\
\mbox{\textcolor{red}{$\oplus$}\llap{$\ole$}
$\oplus$\llap{\textcolor{red}{$\ole$}}}
\end{align*}

\end{document}

Note that color is just for the last line where \ole is superimposed to \oplus in order to see they match.

The defined symbols can be used also in subscripts and superscripts and they scale properly.

enter image description here