
페이지의 section
와 부분 사이에 추가 공간이 있습니다 . align*
방정식이 단순히 로 묶인 경우에는 이런 일이 발생하지 않습니다 \[...\]
.
\documentclass{article}
\usepackage[fleqn]{amsmath}
\setlength{\mathindent}{0cm}
\begin{document}
\section{Test}
\[
a^2 + b^2 = c^2
\]
\section{Test}
\begin{align*}
a^2 + b^2 &= c^2
\end{align*}
\end{document}
align*
그냥 negative 를 사용하여 환경을 키울 수도 있는데 \vspace
, 좀 더 적절한 방법이 있는지 궁금합니다.
편집하다:
다음을 정의했습니다.
\newcommand{\A}[1]{{\setlength{\abovedisplayskip}{0pt}\begin{align*}#1%
\end{align*}}}
나는 필요한 것을 다음 \begin{align*}...\end{align*}
으로 대체했고 \A{...}
이제 이것을 얻습니다(이것이 나의 실제 문서입니다):
바닥 공간이 더 커지는 원인은 무엇일까요?
답변1
align
환경 위 align*
의 수직 건너뛰기 양을 사용합니다 . 10pt
로 설정할 수 있지만 0pt
그룹 내에서 수행해야 합니다.
{%
\abovedisplayskip=0pt%
\begin{align*}
...
\end{align*}
}%
\belowdisplayskip
환경 아래 공간과 유사한 의미를 갖는 것도 있다는 점에 유의하세요 . 건너뛰기 레지스터 값 중 하나만 줄이면 출력이 보기에 좋지 않을 수 있습니다.
둘 다 로 설정하는 것은 0pt
권장되지 않습니다.
\documentclass{article}
\usepackage[fleqn]{amsmath}
\setlength{\mathindent}{0cm}
\begin{document}
\section{Test}
\[
a^2 + b^2 = c^2
\]
\section{Test}
\begin{align*}
a^2 + b^2 &= c^2
\end{align*}
Some other text
\section{Another Test}
{%
\abovedisplayskip=0pt
\begin{align*}
a^2 + b^2 &= c^2
\end{align*}
}%
Some other text
\section{Another Test}
\begin{align*}
a^2 + b^2 &= c^2
\end{align*}
Some other text
\end{document}