정리 전후에 LaTeX가 남기고 있는 수직 공간이 무엇인지 알 수 있는 방법이 있습니까?

정리 전후에 LaTeX가 남기고 있는 수직 공간이 무엇인지 알 수 있는 방법이 있습니까?

LaTeX가 정리 전후에 남기는 수직 공간(cm 또는 pt 단위)이 무엇인지 찾기 위해 입력할 수 있는 코드가 있는지 알고 싶습니다.

나는 사용하고있다

\documentclass[12pt]{article}

그리고

\usepackage{amsfonts, amsthm, amsmath, amssymb}

답변1

반복되는 자료를 통한 터무니없는 예정리, 정의, 예의 기울임꼴이 아닌 텍스트

\documentclass{article}
\usepackage{mathtools,amsthm,kantlipsum}

\newtheoremstyle{crampedthm}% <name>
{\topsep}% <Space above>
{-3pt}% <Space below>
{\itshape}% <Body font>
{3cm}% <Indent amount>
{\bfseries\itshape}% <Theorem head font>
{:}% <Punctuation after theorem head>
{.5em}% <Space after theorem headi>
{}% <Theorem head spec (can be left empty, meaning `normal')>


\theoremstyle{crampedthm}
\newtheorem{cthm}{Tight Theorem}

\begin{document}
\kant[1]
\begin{cthm}
Roses are red $\iff$ sky is blue such that it is self-evident that this 
theorem is true.
\end{cthm}
\kant[1-2]
\end{document}

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

답변2

다음은 일반적인 길이 매크로 목록입니다.위키북. 하지만 댓글에서 알 수 있듯이 이것이 \topsep필요한 길이 매크로라는 것을 이미 알고 계십니다. 길이 매크로의 길이를 알고 싶다면 다음과 같이 하면 됩니다.

\the\textwidth

문서에서 길이를 pt로 출력합니다. 개인적으로 저는 미터법 거리를 선호하므로 보통 pt 길이를볼프람-알파정확한 변환을 얻으려면.

관련 정보