![Por que \smallskip é tão grande depois da matemática de exibição?](https://rvso.com/image/328459/Por%20que%20%5Csmallskip%20%C3%A9%20t%C3%A3o%20grande%20depois%20da%20matem%C3%A1tica%20de%20exibi%C3%A7%C3%A3o%3F.png)
No MWE abaixo, por que \smallskip
adicionar tanto espaço extra após a exibição matemática? (E como faço para corrigir isso?)
\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}
Responder1
Uma boa sintaxe do LaTeX énuncadeixar uma ou mais linhas em branco - que geram implicitamente uma quebra de parágrafo - imediatamenteantesum grupo de exibição matemática. Se necessário, pode-se iniciar um novo parágrafodepoisum grupo de exibição matemática.
Se você quiser evitar a geração de uma quantidade excessiva de espaços em branco verticais entre o final de um grupo displaymath e o próximo parágrafo, enquanto ainda estiver usando \smallskip
, certifique-se de não inserir uma linha em branco entre a \smallskip
instrução e o próximo parágrafo.
\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}
Responder2
Não use linhas em branco antes/depois da exibição matemática. Use desta forma:
\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}