The LaTeX command for lozenge (◊) is \lozenge (diamond / modal possibility).
\lozengeWriting a paper? The table generator and the BibTeX cleaner are one click away, no account.
Write \lozenge inside math mode, that is between $…$ for inline math or in a \[ … \] or equation block for display math. This symbol needs the amssymb package, so add \usepackage{amssymb} to your preamble.
\lozenge keeps its spacing inside a formula; for a word such as "and" in the middle of one, use \text{ and } from amsmath. With unicode-math under XeLaTeX or LuaLaTeX, typing ◊ in a formula gives the same symbol.
$p \lozenge q$Open this example in the live preview: it renders as you type, with no compiler and no signup.
Logic symbols in LaTeX: the full table or search all 350+ LaTeX symbols.
Use \lozenge in math mode after adding \usepackage{amssymb} to your preamble. For example, $p \lozenge q$.
It comes from the amssymb package: add \usepackage{amssymb} to your preamble.