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$ | |
| Or | $\lor$ | |
| Not | $\lnot$ | |
| Xor | $\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:

Leave a Reply