Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

When I google this, it seems that \XOR is how you would get an XOR symbol in LaTeX, however that is giving me the 'undefined control sequence' error. How does one get the xor symbol?

share|improve this question
2  
You probably need to load some package. However, symbols does not list \xor, so I can’t help you without knowing what the symbol looks like. Have a look at “How to look up a math symbol?” for ideas how you can easily find a particular symbol. –  Caramdir Oct 9 '10 at 4:07

5 Answers 5

up vote 17 down vote accepted

How about \newcommand*\xor{\mathbin{\oplus}}?

share|improve this answer
10  
I think the \mathbin isn't strictly necessary because \oplus is already a binary operator. –  Philipp Oct 9 '10 at 9:31

I found a bit lame solution, but it works for me. Just do:

\underline{\vee}
share|improve this answer
4  
what about \veebar from the mathabx package? –  jon Nov 30 '11 at 16:01

\oplus worked for me :)

I found this in List of logic symbols :P

share|improve this answer

I use this one \overline{\vee}.

share|improve this answer

What you're looking for is \veebar in amssymb.

\usepackage{amssymb}

$\veebar$

If you like, you can create a new command \lxor, named to match \lor and \land:

\providecommand{\lxor}{\veebar}
share|improve this answer
    
Hey, just added some code tags for you :) –  Scott H. Oct 15 '12 at 1:18
    
Welcome to TeX.sx! –  Kurt Oct 15 '12 at 1:20

Your Answer

 
discard

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