Parse \newtheorem{env}[shared]{Display},
\newtheorem{env}{Display}[within] and \newtheorem*{env}{Display}
from the preamble. Custom environments gain a bold heading with their
display name, share counters through the optional parent, and can scope
their numbers to the enclosing section; the starred form stays
unnumbered. Unrecognised files and cycles are unaffected.