![수학 표시 후에 \smallskip이 왜 그렇게 큰가요?](https://rvso.com/image/328459/%EC%88%98%ED%95%99%20%ED%91%9C%EC%8B%9C%20%ED%9B%84%EC%97%90%20%5Csmallskip%EC%9D%B4%20%EC%99%9C%20%EA%B7%B8%EB%A0%87%EA%B2%8C%20%ED%81%B0%EA%B0%80%EC%9A%94%3F.png)
아래 MWE에서 \smallskip
수학 표시 뒤에 공간을 너무 많이 추가하는 이유는 무엇입니까? (그리고 어떻게 고치나요?)
\documentclass[12pt]{article}
\usepackage[english]{babel}
\usepackage{amsmath}
\begin{document}
This line.
Next line.
\smallskip
Next line after small skip.
\[displaymath\]
Next line.
\[displaymath\]
\smallskip
Next line after small skip.
\end{document}
답변1
좋은 LaTeX 구문은절대암시적으로 단락 나누기를 생성하는 하나 이상의 빈 줄을 즉시 남겨 두려면~ 전에디스플레이 수학 그룹. 필요한 경우 새 단락을 시작할 수 있습니다.~ 후에디스플레이 수학 그룹.
을 계속 사용하는 동안 한 디스플레이 수학 그룹의 끝과 다음 단락 사이에 과도한 양의 수직 공백이 생성되지 않도록 하려면 명령과 다음 단락 \smallskip
사이에 빈 줄을 삽입하지 마십시오 .\smallskip
\documentclass[12pt]{article}
\usepackage{amsmath}
\setlength\parindent{0pt} % just for this example
\setlength\textwidth{3in} % just for this example
\begin{document}
This line.
Another line.
\smallskip % no blank line after \smallskip
Line after a smallskip. % no blank line *before* \[...\]
\[\text{displaymath}\]
Line with no smallskip. % no blank line *before* \[...\]
\[\text{displaymath}\]
\smallskip % no blank line after \smallskip
Line after a smallskip.
\end{document}
답변2
수학 표시 전후에 빈 줄을 사용하지 마십시오. 다음과 같이 사용하세요:
\documentclass[12pt]{article}
\usepackage[english]{babel}
\usepackage{amsmath}
\begin{document}
This line.
Next line.
\smallskip
Next line after small skip.
%
\[displaymath\]
%
Next line.
%
\[displaymath\]
\smallskip
Next line after small skip.
%
\[displaymath\]
%
Next line after small skip.
\end{document}