수학 표현과 정리, 설명 등의 끝 부분에 있는 기호 사이에 공백이 너무 많습니다.

수학 표현과 정리, 설명 등의 끝 부분에 있는 기호 사이에 공백이 너무 많습니다.

정리(및 기타) 환경의 끝에 다이아몬드 기호를 추가했습니다.

여기에 이미지 설명을 입력하세요

그러나 정리 끝에 표시 수학을 사용하면 다이아몬드가 너무 낮게 설정됩니다.

여기에 이미지 설명을 입력하세요

다이아몬드를 올릴 수 있는 방법이 있나요?자동으로그러면 수학 표현식의 끝 부분에 맞춰 정렬(또는 거의 정렬)되나요? 다음과 같은 것(나는 \tag*{\diamond})을 사용했다:

여기에 이미지 설명을 입력하세요

\documentclass[letterpaper,11pt]{book}
\usepackage[english]{babel}
\usepackage[T1]{fontenc}

\usepackage{amsmath}
\usepackage{dsfont}

%im using this font (in case it is important)
\usepackage{tgbonum}
\newcommand\hmmax{0}
\newcommand\bmmax{0}
\usepackage{helvet}
\renewcommand{\familydefault}{\sfdefault}

%using the package amsthm to define theorems lemmas, corolaries etc.
\usepackage{amsthm}
\newtheorem{thrm1}{Theorem}[section]
\newtheorem{remark1}[thrm1]{Remark}
\newtheorem{prop1}[thrm1]{Proposition}

%this new commands let me end every statment of a theorem, remark or proposition with any symbol, in this case i'm using "$\diamond$"

\newcommand{\thmsymbol}{$\diamond$}

\newenvironment{thrm}{\begin{thrm1}%
  \renewcommand{\qedsymbol}{\thmsymbol}\pushQED{\qed}}%
  {\popQED\end{thrm1}}
  
\newenvironment{remark}{\begin{remark1}%
  \renewcommand{\qedsymbol}{\thmsymbol}\pushQED{\qed}}%
  {\popQED\end{remark1}}

\newenvironment{prop}{\begin{prop1}%
  \renewcommand{\qedsymbol}{\thmsymbol}\pushQED{\qed}}%
  {\popQED\end{prop1}}
\begin{document}



\section*{So, my problem is the following.}

\begin{thrm} Every end of a theorem, proposition, remark etc, is marked with the symbol ``$\diamond$''.
\end{thrm}
\begin{remark}
As you can see, the diamond symbol is positioned immediately at the end of the sentence. I mean, it is just right here $\rightarrow\rightarrow\rightarrow\rightarrow\rightarrow$
\end{remark}

\section*{My problem is when I use math mode}

\begin{prop} When I use math mode, the position of the $\diamond$ is too low
    $$\int_0^1 x \, dx = \frac{1}{2} \quad \text{i mean, it goes waaaay down: } \rightarrow\rightarrow\rightarrow\rightarrow\rightarrow\rightarrow\rightarrow \searrow $$
\end{prop}

My question is: \textbf{is there some way to get the diamond up, automatically?} aligned (or almost aligned) with the end of the math expression, something like this:

\begin{prop1} Here is Euler's formula 
\begin{align*}
e^{ix} = \cos (x) + i \sin (x) \quad\quad \forall x \in \mathds{R} \tag*{$\diamond$}
\end{align*}
\end{prop1}
And I can continue without any problem, instead of dealing with: 
\begin{prop} Here is Euler's formula 
\begin{align*}
e^{ix} = \cos (x) + i \sin (x) \quad\quad \forall x \in \mathds{R} 
\end{align*}
\end{prop}
\noindent Too much space between the math expression and the diamond symbol!

\end{document}

답변1

\qedhereQED 기호가 수학 디스플레이나 목록 끝( enumerate또는 )에 나타나야 하는 경우를 원합니다 itemize.

그러나 당신은해서는 안 된다사용 $$: 참조$$ ... $$보다 \[ ... \]를 선호하는 이유는 무엇입니까?. 여기서는 단지 "바람직한" 것이 아니라,중대한. 모든 표준 amsmath디스플레이 환경에서는 \qedhere.

\documentclass[letterpaper,11pt]{book}
\usepackage{amsmath}
\usepackage{amsthm}

\newtheorem{thrm1}{Theorem}[section]
\newtheorem{remark1}[thrm1]{Remark}
\newtheorem{prop1}[thrm1]{Proposition}

\newcommand{\thmsymbol}{$\diamond$}

\newenvironment{thrm}{\begin{thrm1}%
  \renewcommand{\qedsymbol}{\thmsymbol}\pushQED{\qed}}%
  {\popQED\end{thrm1}}
  
\newenvironment{remark}{\begin{remark1}%
  \renewcommand{\qedsymbol}{\thmsymbol}\pushQED{\qed}}%
  {\popQED\end{remark1}}

\newenvironment{prop}{\begin{prop1}%
  \renewcommand{\qedsymbol}{\thmsymbol}\pushQED{\qed}}%
  {\popQED\end{prop1}}


\begin{document}

\section*{So, my problem is the following.}

\begin{thrm}
Every end of a theorem, proposition, remark etc, is marked with the symbol ``$\diamond$''.
\end{thrm}

\begin{remark}
As you can see, the diamond symbol is positioned immediately at the end of the sentence. 
I mean, it is just right here $\rightarrow\rightarrow\rightarrow\rightarrow\rightarrow$
\end{remark}

\section*{My problem is when I use math mode}

\begin{prop}
When I use math mode correctly, the position of the $\diamond$ is perfect
\[
\int_0^1 x \, dx = \frac{1}{2} \qedhere
\]
\end{prop}

\end{document}

문서에서 관련 부분만 남겼습니다.

여기에 이미지 설명을 입력하세요

관련 정보