Logic operators (And, Or, Not, and Xor) in LaTeX

In this tutorial, I will show you how to print the logical And (∧), Or (∨), Not (¬), and Xor (⊕) characters in LaTeX with default commands.

In the table given below, I provide all default commands to print these characters in a LaTeX document.

Name Command Output
And $\land$ \land
Or $\lor$ \lor
Not $\lnot$ \lnot
Xor $\oplus$ \oplus
\documentclass{article}

\begin{document}

  $$ \verb|A\land B| \rightarrow A\land B $$
  $$ \verb|A\lor B| \rightarrow A\lor B $$
  $$ \verb|\lnot A| \rightarrow \lnot A $$
  $$ \verb|A\oplus B| \rightarrow A\oplus B $$

\end{document}

Output:

logic operators And, Or, Not and ,Xor.

Leave a Reply

Your email address will not be published. Required fields are marked *