列舉前後的大空間

列舉前後的大空間

我正在輸入一個枚舉列表,當我編譯時,列表與其周圍的文字之間大約有半頁的空間。代碼:

and $a,b\in\R$.  Then

\begin{enumerate}

    \item $\vecv+(\vecw+\vecu)=(\vecv+\vecw)+\vecu$

    \item $\vecv+\vecw=\vecw+\vecv$

    \item $\zvect+\vecv=\vecv$

    \item $\vecv+(-\vecv)=\zvect$

    \item $(a+c)\vecv=a\vecv+c\vecv$

    \item $a(\vecv+\vecw)=a\vecv+b\vecw$

    \item $(ab)\vecv=a(b\vecv)$

    \item $1\vecv=\vecv$    

\end{enumerate}

We have proven

我輸入的每個清單都會發生這種情況。我正在定理環境中工作,採用 newtheoremstyle

 \newtheoremstyle{mytheorem}
 {12pt}
 {12pt}
 {}
 {1.27cm}
 {\bf}
 {}
 {.5em}
 {}

答案1

空行引入新的段落。

透過在環境前面放置一個空白行enumerate,您可以告訴 LaTeX 這是一個新段落。因此,可能會或可能不會添加額外的空間,具體取決於您如何設定其他內容。

\documentclass{article}
\usepackage{enumitem}
\begin{document}

\noindent
and $a,b\in R$.  Then
%%
\begin{enumerate}[topsep=1ex]

    \item A is for Amy who fell down the stairs

    \item B is Basil assaulted by bears

    \item C is for Clara who wasted away

    \item D is for Desmond thrown out of a sleigh

    \item E is for Ernest who choked on a peach

    \item F is for Fanny sucked dry by a leech

    \item G is for George smothered under a rug

    \item H is for Hector done in by a thug

\end{enumerate}
%%
We have proven

\end{document}

在此輸入影像描述

透過使用該enumitem包,您可以更輕鬆地控制enumerateitemize環境中的間距。我在上面說明瞭如何控制環境之前的空間。

如果您想留出空間以使來源文件更清晰,那麼我建議在%每一行中添加這樣的行,以防止 LaTeX 認為您將要引入一個新段落。

相關內容