\square

The \square command in LaTeX is used to produce a square symbol, often used in mathematical contexts to denote the end of a proof (also known as a tombstone or halmos) or to represent a square in geometric figures.

Examples

Used to denote the end of a proof for the Pythagorean theorem.

Pythagorean theorem: a^2 + b^2 = c^2 \square

Indicates the conclusion of a solution or proof.

\text{The solution is correct.} \square

Represents a geometric square named ABCD.

\square ABCD