Boolean AND in LaTeX (A \cdot B)
- LaTeX command
A \cdot B- Package
- No package needed: built into LaTeX
- Mode
- Math mode only
Where it is used
Centred dot between two variables, the engineering notation for Boolean AND (logical conjunction).
Switching algebra and digital electronics write conjunction multiplicatively: A \cdot B, or simply AB, mirroring how AND behaves like multiplication on 0 and 1. In formal logic the same operation is written A \wedge B or A \land B. \cdot is a binary operator, so it already gets medium spacing; do not use a period, which in math mode is punctuation-like and sits on the baseline. Many textbooks drop the dot entirely in sum-of-products expressions such as AB + \overline{A}C, keeping \cdot only where juxtaposition would be ambiguous, for example between multi-letter signal names.
Minimal compilable example
Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.
\documentclass{article}
\begin{document}
Boolean AND: $A \cdot B$
\[ F = A \cdot B + \overline{A} \cdot C \]
\end{document}Related symbols
- Boolean OR
A + B - Contradiction (falsum, bottom)
\bot - Boolean NOT
\overline{A} - Tautology (verum, top)
\top - Complement
A' - Left Right Arrow (Double)
\Leftrightarrow
Frequently asked questions
- How do I write Boolean AND in LaTeX?
- Type A \cdot B in math mode, for example $F = A \cdot B + \overline{A} \cdot C$. It works in plain LaTeX without loading any package.
- Which package do I need for A \cdot B?
- None. A \cdot B is part of standard LaTeX, so it compiles with nothing in the preamble but the document class.
- Can I use A \cdot B in text mode, or only in math mode?
- Only in math mode. Outside $...$ LaTeX stops with "Missing $ inserted", so write $A \cdot B$ in running text.
Pinakamahusay na AI LaTeX Editor, Alternatibo sa Overleaf
Tinutulungan ng Octree ang mga researcher mula sa 15+ na unibersidad na sumulat ng research papers nang mas mabilis gamit ang AI
- Gumawa ng magagandang TikZ diagrams gamit ang AI
- Mag-upload ng larawan at i-convert ito sa LaTeX nang walang problema
- Makakuha ng instant na tulong sa pagsulat at pag-format ng research papers