
제 생각에는 proof
환경의 최고 마진이 너무 큽니다. 나는 그것이 참조하는 명제나 정리에 시각적으로 더 가깝기를 원합니다.
\vspace{-3ex}
환경 전에 추가하면 proof
원하는 결과를 얻을 수 있음 을 확인했습니다 . 이제 증명 환경을 어떻게 수정합니까?
이를 재정의하려고 했지만 원래 정의를 모르고 내 Latex 배포판에서도 찾지 못했습니다.
MWE:
\documentclass{article}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{thmtools}
\usepackage[dvipsnames]{xcolor}
\declaretheoremstyle[
spaceabove=\topsep,
spacebelow=\topsep,
name={\color{Blue}Proposition},
]{propsty}
\declaretheorem[style=propsty]{prop}
\begin{document}
\begin{prop}
This is a proposition.
\end{prop}
\begin{proof}
The proof is left as an exercise for the reader.
\end{proof}
\begin{prop}
This is another proposition.
\end{prop}
\vspace{-3ex}
\begin{proof}
The proof is left as an exercise for the reader and it's closer to the
relevant proposition.
\end{proof}
\end{document}
음수 값을 선택해도 spacebelow
아무 일도 일어나지 않는 것 같습니다. 그래서 증명 환경을 바꾸기로 결정했습니다.
답변1
예를 들어 다음과 같이 할 수 있습니다.
\documentclass{article}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{thmtools}
\usepackage[dvipsnames]{xcolor}
\declaretheoremstyle[
spaceabove=0\topsep,
spacebelow=0\topsep,
name={\color{Blue}Proposition},
]{propsty}
\declaretheorem[style=propsty]{prop}
\declaretheoremstyle[
spaceabove=0.5\topsep,
spacebelow=0.5\topsep,
name={\color{Blue}Proposition},
]{propsty}
\declaretheoremstyle[
spaceabove=0.5\topsep,
spacebelow=1\topsep,
name=Proof,
headfont=\itshape, numbered=no
]{proofsty}
\declaretheorem[style=proofsty]{myproof}
\raggedbottom
\begin{document}
\begin{prop}
This is a proposition.
\end{prop}
\begin{myproof}
The proof is left as an exercise for the reader.
\end{myproof}
\begin{prop}
This is another proposition.
\end{prop}
\begin{myproof}
The proof is left as an exercise for the reader and it's closer to the
relevant proposition.
\end{myproof}
\end{document}