0

enter image description here

Does anyone know how to make the symbol in the red box? It's the exclusive or. I've tried using detexify and looking up the symbol, but I haven't found anything.

1
  • 4
    This is not the common xor symbol. Should be \oplus.
    – SebGlav
    Commented Jan 25, 2022 at 21:27

2 Answers 2

5

Here is a solution using the\stackinset command from the stackengine package:

\documentclass{article}
\usepackage{stackengine}
\newcommand{\xor}{\mathrel{\stackinset{c}{}{c}{-0.15ex}{$ \vee $}{$ \bigcirc $}}}

\begin{document}

    \[ A \xor B\]%

\end{document} 

enter image description here

1

You can roll your own:

\documentclass{article}
\usepackage{tikz}
  \newcommand*\circledlor{\tikz[baseline=(char.base)]{\node[shape=circle,draw,inner sep=1pt] (char) {\lor};}}

\begin{document}
  \(\circledlor\)
\end{document}

enter image description here

1
  • 1
    Of course this will get mathord spacing and not mathbin spacing.
    – Don Hosek
    Commented Jan 25, 2022 at 21:57

You must log in to answer this question.

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