octree
ToolsTemplatesSymbols
Get Started
octree

Free LaTeX tools and templates for everyone.

Menu

  • Learn
  • About
  • Templates
  • Tools
  • Symbols

Learn

  • Learn LaTeX
  • Learn TikZ
  • Learn PGFPlots
  • View all tutorials →

Tools

  • Image to LaTeX
  • Excel to LaTeX
  • TikZ Generator
  • Image to TikZ
  • LaTeX Preview
  • Markdown to LaTeX
  • Citation Generator
  • AI LaTeX Generator
  • View all tools →

Templates

  • Research Paper
  • PhD Thesis
  • Beamer Presentation
  • Academic CV
  • Cover Letter
  • Lab Report
  • NeurIPS 2026
  • ICML 2026
  • View all 71 templates →

Symbols

  • Greek Letters
  • Math Operators
  • Arrows
  • Relations
  • Set Theory
  • Calculus
  • Logic
  • Linear Algebra
  • Browse all 37 categories →

Open Source

  • Octree Editor
  • Tools & Templates
  • Marketing & Blogs
  • View all repositories →

Socials

  • Instagram
  • LinkedIn
  • TikTok
  • X
  • Reddit
  • Discord

© 2026 Octree. All rights reserved.

Back to Symbols

Boolean Algebra

Logic gates, AND, OR, NOT, XOR, NAND, and boolean operations.

Boolean algebra symbols in LaTeX

Boolean algebra reuses the logic connectives: \land for AND, \lor for OR and \lnot (or \neg) for NOT. Exclusive or is \oplus, and the constants are \top (true, 1) and \bot (false, 0). Digital-design and circuit texts prefer the algebraic style instead: A \cdot B or just AB for AND, A + B for OR, and a bar for negation, written \overline{A} for a whole expression or \bar{A} for a single letter. De Morgan’s law then reads \overline{A \cdot B} = \overline{A} + \overline{B}.

The less common gates have dedicated symbols in amssymb: \barwedge for NAND, \veebar for XOR, and the Sheffer stroke and Peirce arrow can be written as \uparrow and \downarrow. Implication and equivalence are \Rightarrow and \Leftrightarrow (or the spaced \implies, from amsmath, and \iff), and the Boolean domain is \mathbb{B} = \{0, 1\}.

Add \usepackage{amsmath, amssymb} to the preamble and keep every symbol in math mode. For truth tables, the tabular environment with $\land$ in the header row is enough. See our guide to mathematical expressions in LaTeX for spacing and alignment, and the logic symbols page for quantifiers and turnstiles.

Loading...