$\let\divisionsymbol\div \let\oldRe\Re \let\oldIm\Im$

Rectangle

square

$\square$

\square
Copy
box

$\Box$

\Box
Copy

It is important to note that "Box" is spelled with an uppercase "B".

box and cross

$\boxplus$

\boxplus
Copy

A "+" sign (plus) is placed inside the box.

box and line

$\boxminus$

\boxminus
Copy

A "-" sign (minus) is placed inside the box.

box and x

$\boxtimes$

\boxtimes
Copy

A "times" (multiplication symbol) is placed inside the box.

box and dot

$\boxdot$

\boxdot
Copy

A dot is placed inside the box.

black square

$\blacksquare$

\blacksquare
Copy

A square shape that is filled in black.

diamond

$\diamond$

\diamond
Copy
diamond 2

$\Diamond$

\Diamond
Copy

When the "d" in "diamond" is capitalized, it represents a larger-sized diamond shape.

lozenge

$\lozenge$

\lozenge
Copy

The "lozenge" is a term used to refer to a diamond.

black lozenge

$\blacklozenge$

\blacklozenge
Copy

A lozenge shape that is filled in black.

boxed text

$\boxed{ abc }$

\boxed{ abc }
Copy

The "\boxed" is used to enclose an equation within a box.

boxed text 2

$\fbox{ abc }$

\fbox{ abc }
Copy

The "\fbox" is used to enclose text within a frame.

boxed text 3

$\bbox[yellow, 5pt, border: 2px dotted red]{abc}$

\bbox[yellow, 5pt, border: 2px dotted red]{abc}
Copy

The "\bbox" is not a native command in $\TeX$, but it can be used in MathJax to finely customize the appearance of a framed box around text or equation. It allows you to specify various settings such as background color, margin, and style by separating them with commas within the brackets, while the equation is written within braces. The "\bbox" is derived from "bounding box".