TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do I create my own custom symbols?

I want to make a symbol similar to that of $\otimes,\ominus$, etc. It should be an equals sign enclosed by a circle, and also a slashed equals sign enclosed by a circle. Preferrably, the code should read $\oeq$ and $\oneq$, or something similar.

Thank you for your answers, they were very beneficial.

I am, so far, satisfied with the following definition for $\oeq$:


Could anyone use this definition to obtain similarly $\oneq$, with the slash fully inside the circle?

share|improve this question
Welcome to TeX.SX! While there is \olessthan in the stmaryrd package, there's nothing predefined for your \oeq and \oneq in the usually recommended Comprehensive List of LaTeX symbols. – egreg Jan 27 '13 at 17:07

enter image description here





\[ \text{\ttfamily\ \ oeq: }A \oeq B_{A \oeq B_{A \oeq B}} \]
\[ \text{\ttfamily oneqx: }A \oneqx B_{A \oneqx B_{A \oneqx B}} \]
\[ \text{\ttfamily\ oneq: }A \oneq B_{A \oneq B_{A \oneq B}} \]
\[ \text{\ttfamily\ \ olt: }A \olt B_{A \olt B_{A \olt B}} \]
\[ \text{\ttfamily\ \ ogt: }A \ogt B_{A \ogt B_{A \ogt B}} \]



  • There's proper empty \ocircle in the package wasysym, one that matches oplus etc.

  • For the explanation of the code, this is a good reading: \subseteq + \circ as a single symbol ("open subset")

  • Since I was digged in the problem, I made matching \olt and \ogt as well.

share|improve this answer

Here is a stab at it; it doesn't match the rule thickness contained in \oplus and \ominus though, nor does it bound the negation to the circle:

enter image description here

\usepackage{amsmath}% http://ctan.org/pkg/amsmath
$a \oplus b \ominus c$ \par
$a = b \neq c \oeq d \oneq e$ \par

amsmath's \text allows for ease-of-use when these relations are in super-/subscripts.

share|improve this answer
there's \ocircle in wasysym – yo' Jan 27 '13 at 17:36

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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