Logic operators in LaTeX? (XOR?)












40















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






  • 1





    Shouldn't you accept A T's answer instead of TH.'s? Since oplus is clearly superior to mathbin{oplus} or newcommand*xor{mathbin{oplus}}.

    – Eric
    Feb 18 '16 at 7:51


















40















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






  • 1





    Shouldn't you accept A T's answer instead of TH.'s? Since oplus is clearly superior to mathbin{oplus} or newcommand*xor{mathbin{oplus}}.

    – Eric
    Feb 18 '16 at 7:51
















40












40








40


2






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
















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?







symbols






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Oct 9 '10 at 4:10









TH.

47.4k10129197




47.4k10129197










asked Oct 9 '10 at 3:51







whatnow















  • 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






  • 1





    Shouldn't you accept A T's answer instead of TH.'s? Since oplus is clearly superior to mathbin{oplus} or newcommand*xor{mathbin{oplus}}.

    – Eric
    Feb 18 '16 at 7:51
















  • 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






  • 1





    Shouldn't you accept A T's answer instead of TH.'s? Since oplus is clearly superior to mathbin{oplus} or newcommand*xor{mathbin{oplus}}.

    – Eric
    Feb 18 '16 at 7:51










2




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





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




1




1





Shouldn't you accept A T's answer instead of TH.'s? Since oplus is clearly superior to mathbin{oplus} or newcommand*xor{mathbin{oplus}}.

– Eric
Feb 18 '16 at 7:51







Shouldn't you accept A T's answer instead of TH.'s? Since oplus is clearly superior to mathbin{oplus} or newcommand*xor{mathbin{oplus}}.

– Eric
Feb 18 '16 at 7:51












6 Answers
6






active

oldest

votes


















24














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



Edit: As everybody has pointed out, the mathbin is unnecessary. I can't delete the accepted answer, sorry.






share|improve this answer





















  • 16





    I think the mathbin isn't strictly necessary because oplus is already a binary operator.

    – Philipp
    Oct 9 '10 at 9:31











  • This is so unnecessary, just do oplus

    – Axel Kennedal
    3 hours ago











  • @AxelKennedal, it's been 8 years since this question was asked, the questioner doesn't appear to have an account any more, and your comments just repeat what others already said 8 years ago. I'm not really sure what you want me to do here.

    – TH.
    4 mins ago



















61














oplus worked for me :)



I found this in List of logic symbols :P






share|improve this answer



















  • 1





    This should be the accepted answer!

    – Axel Kennedal
    3 hours ago



















8














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





















  • 1





    Hey, just added some code tags for you :)

    – Scott H.
    Oct 15 '12 at 1:18



















3














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



underline{vee}





share|improve this answer





















  • 5





    what about veebar from the mathabx package?

    – jon
    Nov 30 '11 at 16:01



















3














Another way of representing the XOR connective is by using a W-like symbol (as in p W q), also used in Set Theory to refer to disjunctive union. Since this symbol does not seem to appear in the Comprehensive LaTeX symbol list, you can create it by joining two "or" connectives together through the following command:



newcommand{xor}{%
mathbin{%
{vee}mspace{-2.9mu}nonscriptmspace{0.3mu}{vee}%
}%
}


that however doesn't work on second levels subscripts/superscripts



Full example:



documentclass{article}
usepackage{amsmath}

newcommand{xor}{%
mathbin{%
{vee}mspace{-2.9mu}nonscriptmspace{0.3mu}{vee}%
}%
}

begin{document}

$Axor B_{x xor y}$

end{document}


enter image description here






share|improve this answer





















  • 1





    Welcome! Please provide a complete example. What defines mspace? It is not a default LaTeX command.

    – cfr
    Apr 21 '16 at 1:38






  • 1





    Thanks! It would still be better to give a complete example even though other answers to this question don't. Also, I'm pretty sure this can't possibly be a good way to do it, but I've up-voting anyway as I appreciate the effort ;). (It can't be right to add space like that in maths mode and shouldn't this be declared as a maths symbol?)

    – cfr
    Apr 21 '16 at 1:50













  • You're right about the example, the spaces and the symbol declaration. The command still needs some fine-tuning. Thanks for the feedback and advice!

    – Maxime Sainte-Marie
    Apr 21 '16 at 5:15






  • 3





    I've taken the liberty of turning your good idea into working code; DeclareMathOperator was not the correct tool and ooalign did nothing; using mspace and mu units allows for making it work also in sub/superscripts (alas, not in second level ones).

    – egreg
    Apr 21 '16 at 8:01



















1














I use this one overline{vee}.






share|improve this answer

























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "85"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f3936%2flogic-operators-in-latex-xor%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown
























    6 Answers
    6






    active

    oldest

    votes








    6 Answers
    6






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    24














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



    Edit: As everybody has pointed out, the mathbin is unnecessary. I can't delete the accepted answer, sorry.






    share|improve this answer





















    • 16





      I think the mathbin isn't strictly necessary because oplus is already a binary operator.

      – Philipp
      Oct 9 '10 at 9:31











    • This is so unnecessary, just do oplus

      – Axel Kennedal
      3 hours ago











    • @AxelKennedal, it's been 8 years since this question was asked, the questioner doesn't appear to have an account any more, and your comments just repeat what others already said 8 years ago. I'm not really sure what you want me to do here.

      – TH.
      4 mins ago
















    24














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



    Edit: As everybody has pointed out, the mathbin is unnecessary. I can't delete the accepted answer, sorry.






    share|improve this answer





















    • 16





      I think the mathbin isn't strictly necessary because oplus is already a binary operator.

      – Philipp
      Oct 9 '10 at 9:31











    • This is so unnecessary, just do oplus

      – Axel Kennedal
      3 hours ago











    • @AxelKennedal, it's been 8 years since this question was asked, the questioner doesn't appear to have an account any more, and your comments just repeat what others already said 8 years ago. I'm not really sure what you want me to do here.

      – TH.
      4 mins ago














    24












    24








    24







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



    Edit: As everybody has pointed out, the mathbin is unnecessary. I can't delete the accepted answer, sorry.






    share|improve this answer















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



    Edit: As everybody has pointed out, the mathbin is unnecessary. I can't delete the accepted answer, sorry.







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited 15 mins ago

























    answered Oct 9 '10 at 4:10









    TH.TH.

    47.4k10129197




    47.4k10129197








    • 16





      I think the mathbin isn't strictly necessary because oplus is already a binary operator.

      – Philipp
      Oct 9 '10 at 9:31











    • This is so unnecessary, just do oplus

      – Axel Kennedal
      3 hours ago











    • @AxelKennedal, it's been 8 years since this question was asked, the questioner doesn't appear to have an account any more, and your comments just repeat what others already said 8 years ago. I'm not really sure what you want me to do here.

      – TH.
      4 mins ago














    • 16





      I think the mathbin isn't strictly necessary because oplus is already a binary operator.

      – Philipp
      Oct 9 '10 at 9:31











    • This is so unnecessary, just do oplus

      – Axel Kennedal
      3 hours ago











    • @AxelKennedal, it's been 8 years since this question was asked, the questioner doesn't appear to have an account any more, and your comments just repeat what others already said 8 years ago. I'm not really sure what you want me to do here.

      – TH.
      4 mins ago








    16




    16





    I think the mathbin isn't strictly necessary because oplus is already a binary operator.

    – Philipp
    Oct 9 '10 at 9:31





    I think the mathbin isn't strictly necessary because oplus is already a binary operator.

    – Philipp
    Oct 9 '10 at 9:31













    This is so unnecessary, just do oplus

    – Axel Kennedal
    3 hours ago





    This is so unnecessary, just do oplus

    – Axel Kennedal
    3 hours ago













    @AxelKennedal, it's been 8 years since this question was asked, the questioner doesn't appear to have an account any more, and your comments just repeat what others already said 8 years ago. I'm not really sure what you want me to do here.

    – TH.
    4 mins ago





    @AxelKennedal, it's been 8 years since this question was asked, the questioner doesn't appear to have an account any more, and your comments just repeat what others already said 8 years ago. I'm not really sure what you want me to do here.

    – TH.
    4 mins ago











    61














    oplus worked for me :)



    I found this in List of logic symbols :P






    share|improve this answer



















    • 1





      This should be the accepted answer!

      – Axel Kennedal
      3 hours ago
















    61














    oplus worked for me :)



    I found this in List of logic symbols :P






    share|improve this answer



















    • 1





      This should be the accepted answer!

      – Axel Kennedal
      3 hours ago














    61












    61








    61







    oplus worked for me :)



    I found this in List of logic symbols :P






    share|improve this answer













    oplus worked for me :)



    I found this in List of logic symbols :P







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Nov 30 '11 at 14:55









    A TA T

    1,89952343




    1,89952343








    • 1





      This should be the accepted answer!

      – Axel Kennedal
      3 hours ago














    • 1





      This should be the accepted answer!

      – Axel Kennedal
      3 hours ago








    1




    1





    This should be the accepted answer!

    – Axel Kennedal
    3 hours ago





    This should be the accepted answer!

    – Axel Kennedal
    3 hours ago











    8














    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





















    • 1





      Hey, just added some code tags for you :)

      – Scott H.
      Oct 15 '12 at 1:18
















    8














    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





















    • 1





      Hey, just added some code tags for you :)

      – Scott H.
      Oct 15 '12 at 1:18














    8












    8








    8







    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















    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














    share|improve this answer



    share|improve this answer








    edited Oct 15 '12 at 1:17









    Scott H.

    8,17222463




    8,17222463










    answered Oct 15 '12 at 1:11









    Jonathan BaldwinJonathan Baldwin

    18013




    18013








    • 1





      Hey, just added some code tags for you :)

      – Scott H.
      Oct 15 '12 at 1:18














    • 1





      Hey, just added some code tags for you :)

      – Scott H.
      Oct 15 '12 at 1:18








    1




    1





    Hey, just added some code tags for you :)

    – Scott H.
    Oct 15 '12 at 1:18





    Hey, just added some code tags for you :)

    – Scott H.
    Oct 15 '12 at 1:18











    3














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



    underline{vee}





    share|improve this answer





















    • 5





      what about veebar from the mathabx package?

      – jon
      Nov 30 '11 at 16:01
















    3














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



    underline{vee}





    share|improve this answer





















    • 5





      what about veebar from the mathabx package?

      – jon
      Nov 30 '11 at 16:01














    3












    3








    3







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



    underline{vee}





    share|improve this answer















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



    underline{vee}






    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Nov 9 '11 at 19:49









    Stefan Kottwitz

    176k63570759




    176k63570759










    answered Nov 9 '11 at 19:41









    MushMush

    311




    311








    • 5





      what about veebar from the mathabx package?

      – jon
      Nov 30 '11 at 16:01














    • 5





      what about veebar from the mathabx package?

      – jon
      Nov 30 '11 at 16:01








    5




    5





    what about veebar from the mathabx package?

    – jon
    Nov 30 '11 at 16:01





    what about veebar from the mathabx package?

    – jon
    Nov 30 '11 at 16:01











    3














    Another way of representing the XOR connective is by using a W-like symbol (as in p W q), also used in Set Theory to refer to disjunctive union. Since this symbol does not seem to appear in the Comprehensive LaTeX symbol list, you can create it by joining two "or" connectives together through the following command:



    newcommand{xor}{%
    mathbin{%
    {vee}mspace{-2.9mu}nonscriptmspace{0.3mu}{vee}%
    }%
    }


    that however doesn't work on second levels subscripts/superscripts



    Full example:



    documentclass{article}
    usepackage{amsmath}

    newcommand{xor}{%
    mathbin{%
    {vee}mspace{-2.9mu}nonscriptmspace{0.3mu}{vee}%
    }%
    }

    begin{document}

    $Axor B_{x xor y}$

    end{document}


    enter image description here






    share|improve this answer





















    • 1





      Welcome! Please provide a complete example. What defines mspace? It is not a default LaTeX command.

      – cfr
      Apr 21 '16 at 1:38






    • 1





      Thanks! It would still be better to give a complete example even though other answers to this question don't. Also, I'm pretty sure this can't possibly be a good way to do it, but I've up-voting anyway as I appreciate the effort ;). (It can't be right to add space like that in maths mode and shouldn't this be declared as a maths symbol?)

      – cfr
      Apr 21 '16 at 1:50













    • You're right about the example, the spaces and the symbol declaration. The command still needs some fine-tuning. Thanks for the feedback and advice!

      – Maxime Sainte-Marie
      Apr 21 '16 at 5:15






    • 3





      I've taken the liberty of turning your good idea into working code; DeclareMathOperator was not the correct tool and ooalign did nothing; using mspace and mu units allows for making it work also in sub/superscripts (alas, not in second level ones).

      – egreg
      Apr 21 '16 at 8:01
















    3














    Another way of representing the XOR connective is by using a W-like symbol (as in p W q), also used in Set Theory to refer to disjunctive union. Since this symbol does not seem to appear in the Comprehensive LaTeX symbol list, you can create it by joining two "or" connectives together through the following command:



    newcommand{xor}{%
    mathbin{%
    {vee}mspace{-2.9mu}nonscriptmspace{0.3mu}{vee}%
    }%
    }


    that however doesn't work on second levels subscripts/superscripts



    Full example:



    documentclass{article}
    usepackage{amsmath}

    newcommand{xor}{%
    mathbin{%
    {vee}mspace{-2.9mu}nonscriptmspace{0.3mu}{vee}%
    }%
    }

    begin{document}

    $Axor B_{x xor y}$

    end{document}


    enter image description here






    share|improve this answer





















    • 1





      Welcome! Please provide a complete example. What defines mspace? It is not a default LaTeX command.

      – cfr
      Apr 21 '16 at 1:38






    • 1





      Thanks! It would still be better to give a complete example even though other answers to this question don't. Also, I'm pretty sure this can't possibly be a good way to do it, but I've up-voting anyway as I appreciate the effort ;). (It can't be right to add space like that in maths mode and shouldn't this be declared as a maths symbol?)

      – cfr
      Apr 21 '16 at 1:50













    • You're right about the example, the spaces and the symbol declaration. The command still needs some fine-tuning. Thanks for the feedback and advice!

      – Maxime Sainte-Marie
      Apr 21 '16 at 5:15






    • 3





      I've taken the liberty of turning your good idea into working code; DeclareMathOperator was not the correct tool and ooalign did nothing; using mspace and mu units allows for making it work also in sub/superscripts (alas, not in second level ones).

      – egreg
      Apr 21 '16 at 8:01














    3












    3








    3







    Another way of representing the XOR connective is by using a W-like symbol (as in p W q), also used in Set Theory to refer to disjunctive union. Since this symbol does not seem to appear in the Comprehensive LaTeX symbol list, you can create it by joining two "or" connectives together through the following command:



    newcommand{xor}{%
    mathbin{%
    {vee}mspace{-2.9mu}nonscriptmspace{0.3mu}{vee}%
    }%
    }


    that however doesn't work on second levels subscripts/superscripts



    Full example:



    documentclass{article}
    usepackage{amsmath}

    newcommand{xor}{%
    mathbin{%
    {vee}mspace{-2.9mu}nonscriptmspace{0.3mu}{vee}%
    }%
    }

    begin{document}

    $Axor B_{x xor y}$

    end{document}


    enter image description here






    share|improve this answer















    Another way of representing the XOR connective is by using a W-like symbol (as in p W q), also used in Set Theory to refer to disjunctive union. Since this symbol does not seem to appear in the Comprehensive LaTeX symbol list, you can create it by joining two "or" connectives together through the following command:



    newcommand{xor}{%
    mathbin{%
    {vee}mspace{-2.9mu}nonscriptmspace{0.3mu}{vee}%
    }%
    }


    that however doesn't work on second levels subscripts/superscripts



    Full example:



    documentclass{article}
    usepackage{amsmath}

    newcommand{xor}{%
    mathbin{%
    {vee}mspace{-2.9mu}nonscriptmspace{0.3mu}{vee}%
    }%
    }

    begin{document}

    $Axor B_{x xor y}$

    end{document}


    enter image description here







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Apr 21 '16 at 7:59









    egreg

    714k8618983184




    714k8618983184










    answered Apr 21 '16 at 1:25









    Maxime Sainte-MarieMaxime Sainte-Marie

    313




    313








    • 1





      Welcome! Please provide a complete example. What defines mspace? It is not a default LaTeX command.

      – cfr
      Apr 21 '16 at 1:38






    • 1





      Thanks! It would still be better to give a complete example even though other answers to this question don't. Also, I'm pretty sure this can't possibly be a good way to do it, but I've up-voting anyway as I appreciate the effort ;). (It can't be right to add space like that in maths mode and shouldn't this be declared as a maths symbol?)

      – cfr
      Apr 21 '16 at 1:50













    • You're right about the example, the spaces and the symbol declaration. The command still needs some fine-tuning. Thanks for the feedback and advice!

      – Maxime Sainte-Marie
      Apr 21 '16 at 5:15






    • 3





      I've taken the liberty of turning your good idea into working code; DeclareMathOperator was not the correct tool and ooalign did nothing; using mspace and mu units allows for making it work also in sub/superscripts (alas, not in second level ones).

      – egreg
      Apr 21 '16 at 8:01














    • 1





      Welcome! Please provide a complete example. What defines mspace? It is not a default LaTeX command.

      – cfr
      Apr 21 '16 at 1:38






    • 1





      Thanks! It would still be better to give a complete example even though other answers to this question don't. Also, I'm pretty sure this can't possibly be a good way to do it, but I've up-voting anyway as I appreciate the effort ;). (It can't be right to add space like that in maths mode and shouldn't this be declared as a maths symbol?)

      – cfr
      Apr 21 '16 at 1:50













    • You're right about the example, the spaces and the symbol declaration. The command still needs some fine-tuning. Thanks for the feedback and advice!

      – Maxime Sainte-Marie
      Apr 21 '16 at 5:15






    • 3





      I've taken the liberty of turning your good idea into working code; DeclareMathOperator was not the correct tool and ooalign did nothing; using mspace and mu units allows for making it work also in sub/superscripts (alas, not in second level ones).

      – egreg
      Apr 21 '16 at 8:01








    1




    1





    Welcome! Please provide a complete example. What defines mspace? It is not a default LaTeX command.

    – cfr
    Apr 21 '16 at 1:38





    Welcome! Please provide a complete example. What defines mspace? It is not a default LaTeX command.

    – cfr
    Apr 21 '16 at 1:38




    1




    1





    Thanks! It would still be better to give a complete example even though other answers to this question don't. Also, I'm pretty sure this can't possibly be a good way to do it, but I've up-voting anyway as I appreciate the effort ;). (It can't be right to add space like that in maths mode and shouldn't this be declared as a maths symbol?)

    – cfr
    Apr 21 '16 at 1:50







    Thanks! It would still be better to give a complete example even though other answers to this question don't. Also, I'm pretty sure this can't possibly be a good way to do it, but I've up-voting anyway as I appreciate the effort ;). (It can't be right to add space like that in maths mode and shouldn't this be declared as a maths symbol?)

    – cfr
    Apr 21 '16 at 1:50















    You're right about the example, the spaces and the symbol declaration. The command still needs some fine-tuning. Thanks for the feedback and advice!

    – Maxime Sainte-Marie
    Apr 21 '16 at 5:15





    You're right about the example, the spaces and the symbol declaration. The command still needs some fine-tuning. Thanks for the feedback and advice!

    – Maxime Sainte-Marie
    Apr 21 '16 at 5:15




    3




    3





    I've taken the liberty of turning your good idea into working code; DeclareMathOperator was not the correct tool and ooalign did nothing; using mspace and mu units allows for making it work also in sub/superscripts (alas, not in second level ones).

    – egreg
    Apr 21 '16 at 8:01





    I've taken the liberty of turning your good idea into working code; DeclareMathOperator was not the correct tool and ooalign did nothing; using mspace and mu units allows for making it work also in sub/superscripts (alas, not in second level ones).

    – egreg
    Apr 21 '16 at 8:01











    1














    I use this one overline{vee}.






    share|improve this answer






























      1














      I use this one overline{vee}.






      share|improve this answer




























        1












        1








        1







        I use this one overline{vee}.






        share|improve this answer















        I use this one overline{vee}.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Sep 25 '12 at 21:05









        Kurt

        36.1k847161




        36.1k847161










        answered Sep 25 '12 at 20:08









        DeepakDeepak

        111




        111






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f3936%2flogic-operators-in-latex-xor%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            サソリ

            広島県道265号伴広島線

            Setup Asymptote in Texstudio