答案1
尝试使用ntheorem
和nonumberplain
定理样式。结束标记的放置是自动的(即使环境最终出现在显示的方程式中)。以下是可能的代码:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{lipsum}
\usepackage{amsmath}
\usepackage[thmmarks, amsmath, thref]{ntheorem}
\theoremstyle{nonumberplain}
\theoremheaderfont{\itshape\bfseries}
\theoremseparator{:}
\theorembodyfont{\normalfont}
\theoremsymbol{\ensuremath{\clubsuit}}
\newtheorem{rjesenje}{\hskip\parindent Rješenje}
\begin{document}
\begin{rjesenje}
\lipsum[2-6] So
\begin{equation*}
\{x ∈ E: x = 2\} = \{2\}\text{.}
\end{equation*}
\end{rjesenje}
\end{document}