![强制 qed 符号停留在同一页面上](https://linux22.com/image/334534/%E5%BC%BA%E5%88%B6%20qed%20%E7%AC%A6%E5%8F%B7%E5%81%9C%E7%95%99%E5%9C%A8%E5%90%8C%E4%B8%80%E9%A1%B5%E9%9D%A2%E4%B8%8A.png)
答案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}