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の長さをウォルフラムアルファ正確な変換を取得します。

関連情報