열거 전후의 큰 공간

열거 전후의 큰 공간

열거된 목록을 입력하고 있는데, 컴파일할 때 목록과 목록 주변의 텍스트 사이에 약 절반 페이지의 공간이 있습니다. 코드:

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

빈 줄은 새로운 단락을 소개합니다.

환경 앞에 빈 줄을 놓으면 enumerateLaTeX에 이것이 새로운 문단임을 알리는 것입니다. 따라서 다른 항목을 어떻게 설정했는지에 따라 추가 공간이 추가되거나 추가되지 않을 수 있습니다.

\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가 새 문단을 소개하려고 한다고 생각하지 않도록 각 줄을 추가하는 것이 좋습니다.

관련 정보