Boolean OR in LaTeX (A + B)

A+BA + B
LaTeX command
A + B
Package
No package needed: built into LaTeX
Mode
Text and math mode

Where it is used

Plus sign used as Boolean OR in switching algebra: the output is 1 when at least one input is 1.

Circuit designers write disjunction as A + B, so sum-of-products forms like AB + \overline{A}C read naturally. Be careful about the arithmetic meaning: in Boolean algebra 1 + 1 = 1, while in the field with two elements the plus sign means XOR and 1 + 1 = 0, which is why XOR often gets its own symbol \oplus. Logicians write the same OR as A \vee B or A \lor B. No special command is needed; the + already carries binary-operator spacing, and in long expressions you can break lines before a + inside a multline environment.

Minimal compilable example

Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.

A+A‾=1,A+AB=AA + \overline{A} = 1, \quad A + A B = A
\documentclass{article}
\begin{document}
Boolean OR: $A + B$

\[ A + \overline{A} = 1, \quad A + A B = A \]
\end{document}

Related symbols

All 부울 대수 →

Frequently asked questions

How do I write Boolean OR in LaTeX?
Type A + B in math mode, for example $A + \overline{A} = 1, \quad A + A B = A$. It works in plain LaTeX without loading any package.
Which package do I need for A + B?
None. A + B is part of standard LaTeX, so it compiles with nothing in the preamble but the document class.
Can I use A + B in text mode, or only in math mode?
Both. A + B compiles in running text as well as inside $...$; in a formula keep it in math mode so it gets math fonts and spacing.
Math poweredAI로 LaTeX 작성

최고의 AI LaTeX 편집기, Overleaf 대안

Octree는 15개 이상의 대학의 연구자들이 AI를 사용하여 논문을 더 빠르게 작성하도록 도움

  • AI로 아름다운 TikZ 다이어그램 생성
  • 이미지를 업로드하고 LaTeX로 원활하게 변환
  • 논문 작성 및 서식에 대한 즉각적인 지원 받기