如何在定義之間新增垂直間距

如何在定義之間新增垂直間距

我試圖在定義、定理等之間添加垂直空間。

\begin{definition}

blah blah blah

\end{definition}

%%%should be space here but there's not

\begin{theorem}

blah blah blah

\end{theorem}

在我的定義之後和我的新定理之前幾乎沒有垂直空間。我該如何解決?

答案1

你正確定義了定理和定義嗎?當我使用以下程式碼時,行之間有空格:

\documentclass{article}
\usepackage{amsmath}
\newtheorem{theorem}{Theory of Blahblah}
\newtheorem{definition}{Definition of Blah}
\begin{document}
    \begin{definition}
        blah blah blah
    \end{definition}
%%%should be space here but there's not
    \begin{theorem}
        blah blah blah
    \end{theorem}
\end{document}

如果這對您來說空間不足,您可以透過多種方法「強力」增加行之間的垂直空間。在文字行之間新增 \smallskip 可能就是您想要的。

如果您在每個定理或定義之後始終需要更多空間,您可以嘗試重新定義環境。不過,我現在將忽略這一點。在像 amsmath 這樣嚴格的環境中閒逛可能會讓一些觀眾不高興。

相關內容