Espaçamento acima e abaixo da equação

Espaçamento acima e abaixo da equação

Na minha tese eu uso muitos ambientes de equações, mas não apenas para as equações em si. Eu o uso para enfatizar coisas do texto. Mas tenho a sensação de que o espaço acima e abaixo é demais. Não alterei nenhuma opção para isso, mas é normal que haja tanto espaço, como no código a seguir?

\documentclass[ngerman, fontsize=11pt, DIV=12 ,BCOR = 10mm, parskip=half-, twoside]{scrbook}

\usepackage{amsmath}
\usepackage{amssymb}
\counterwithout{equation}{chapter}
\begin{document}
    We will use the following very often.
    As the set of naturals numbers we have
    \begin{equation*}
        \mathbb N 
        = 
        \left\{ 
        1,2,\dots
        \right\}.
    \end{equation*}
    To note that two elements $a$ and $b$ are equivalent modulo an integer $n$ we will write
\begin{equation*}
    a \equiv b \pmod n.
\end{equation*}
    If we want to note the remainder of $a$ divided by $n$ we will write
\begin{equation*}
    \left({a\bmod n}\right).
\end{equation*}
\end{document}

A saída é insira a descrição da imagem aqui

Responder1

Conforme observado, ajustar o espaço vertical pode não ser uma boa ideia, mas se for realmente necessário, você pode usar um valor negativo.valor, como o seguinte.

\documentclass[ngerman, fontsize=11pt, DIV=12 ,BCOR = 10mm, parskip=half-, twoside]{scrbook}

\usepackage{amsmath}
\usepackage{amssymb}
\counterwithout{equation}{chapter}
\begin{document}
    We will use the following very often.
    As the set of naturals numbers we have

    \vspace{-5ex}

    \begin{equation*}
        \mathbb N 
        = 
        \left\{ 
        1,2,\dots
        \right\}.
    \end{equation*}

    To note that two elements $a$ and $b$ are equivalent modulo an integer $n$ we will write

    \vspace{-5ex}

\begin{equation*}
    a \equiv b \pmod n.
\end{equation*}

    If we want to note the remainder of $a$ divided by $n$ we will write

    \vspace{-5ex}

\begin{equation*}
    \left({a\bmod n}\right).
\end{equation*}
\end{document}

Espero que ajude.

Responder2

É uma questão de gosto e convenções.

Você pode definir um espaçamento diferente (aqui metade do padrão), se preferir:

\documentclass[
%  ngerman,
  fontsize=11pt,
  DIV=12,
  BCOR = 10mm,
  parskip=half-,
  twoside,
]{scrbook}

\usepackage{amsmath}
\usepackage{amssymb}

\usepackage{lipsum}% for mock text

\counterwithout{equation}{chapter}

\AtBeginDocument{%
  \setlength{\abovedisplayskip}{\skipeval{\abovedisplayskip/2}}%
  \setlength{\belowdisplayskip}{\skipeval{\belowdisplayskip/2}}%
}

\begin{document}

\lipsum[1][1-4]

We will use the following very often.
As the set of naturals numbers we have
\begin{equation*}
  \mathbb{N} = \{1,2,\dotsc\}.
\end{equation*}
To note that two elements $a$ and $b$ are equivalent modulo an integer $n$ we will write
\begin{equation*}
  a \equiv b \pmod{n}.
\end{equation*}
If we want to note the remainder of $a$ divided by $n$ we will write
\begin{equation*}
  ({a\bmod n}).
\end{equation*}

\end{document}

insira a descrição da imagem aqui

Compare com o resultadosem parskipe o ajuste:

insira a descrição da imagem aqui

Talvez você julgue que o espaço é excessivo. Mas eu gostaria de observar que com parskipseus leitoresnãoser capaz de distinguir se um novo parágrafo começa após a primeira ou a segunda exibição.

O que acontece se você tiver um parágrafo começando com sua configuração (e o espaçamento vertical reduzido? Aqui está:

insira a descrição da imagem aqui

Sem parskip, você obteria o mesmo espaçamento vertical da segunda imagem e o recuo do parágrafo.

Pontos a serem observados: \mathbb Nestá errado e deveria estar \mathbb{N}; \lefte \rightnos locais onde você os utiliza basta adicionar espaço horizontal indesejado; \dotscé o comando correto para reticências após uma vírgula sem outra vírgula a seguir.

informação relacionada