表示された数式のグループの前のタイプセットに大きなギャップがある

表示された数式のグループの前のタイプセットに大きなギャップがある

私は LaTeX の初心者です。研究室の教授は、最初の研究をきれいにタイプできたら素晴らしいだろうと言っていました。将来は研究をするつもりなので、早いうちに LaTeX を学ぶのは素晴らしい試みだと思いました。

つまり、私のタイプセッティングには大きなギャップがあり、なぜこのようなことが起こるのか全く分かりません。

ここで、大きなギャップが見られます。

関連コード:

\documentclass[twoside]{article}
\usepackage{mathtools}
\DeclarePairedDelimiter{\abs}{\lvert}{\rvert}
\newcommand\degree{^{\circ}}
\usepackage{multicol}
\begin{document}
\begin{multicols}{2}
\section{Introduction}

    Furthermore, $KE=\frac{mv^2}{2}=e\Delta V$, which can be used to eliminate the velocity. 
    Moreover, the angle between the trajectory of the emission filament and the magnetic field is $90\degree$ making $\sin(90\degree)=1$. The Lorentz force equation can be simplified and combined with these to derive \textit{Eq. 2}:
    \begin{gather*}
    \abs{\vec{F}} = q\abs{\vec{v}}\abs{\vec{B}}\sin(\theta)\\
    m\frac{v^2}{r}=qvB\\
    \frac{2qV}{r}=qvB\\
    \frac{V}{r}=B\sqrt{\dfrac{q}{2m}}\sqrt{V}
    \end{gather*}
    \begin{equation}
    \boxed{\frac{V}{r}=\lambda\sqrt{V},\lambda\equiv B\sqrt{\frac{q}{2m}}}
    \end{equation}
\end{multicols}
\end{document}

ボーナス: カンマとラムダの間にもっと大きなスペースを入れたいです。

どのようなご支援や情報でも大歓迎です。ドキュメントも歓迎します。

答え1

デフォルトでは、パッケージの複数行表示される数式環境では、amsmath列区切りやページ区切りは許可されません。この設定を無効にするには、命令を発行する必要があります\allowdisplaybreaks

ちなみに、「\textit{式2}」のような相互参照をハードコードしないでください。代わりに、\label問題の式に指示を追加して\ref、または、さらに良いの\crefは、賢いパッケージ -- LaTeX が相互参照の呼び出しを生成するようにします。

最後に、@ChristianHupfer がすでに指摘しているように、\quad式 2 の 2 つの主要な項を区切るコンマの後に、もう少しスペースを確保するために挿入することもできます。

ここに画像の説明を入力してください

\documentclass{article}
\usepackage{mathtools}  % loads 'amsmath' automatically
\allowdisplaybreaks     % allow column and page breaks
\DeclarePairedDelimiter{\abs}{\lvert}{\rvert}
\newcommand\degree{^{\circ}}
\usepackage[capitalize]{cleveref} % for '\cref' macro
\usepackage{multicol}
\setcounter{equation}{1} % just for this example
\begin{document}
\begin{multicols}{2}
Furthermore, $KE=\frac{mv^2}{2}=e\Delta V$, which can be used to eliminate the velocity. 
Moreover, the angle between the trajectory of the emission filament and the magnetic field is $90\degree$, making $\sin(90\degree)=1$. The Lorentz force equation can be simplified and combined with these to derive \cref{eq:2}:
\begin{gather*}
\abs{\vec{F}} = q\abs{\vec{v}}\abs{\vec{B}}\sin(\theta)\\
m\frac{v^2}{r}=qvB\\
\frac{2qV}{r}=qvB\\
\frac{V}{r}=B\sqrt{\dfrac{q}{2m}}\,\sqrt{V}
\end{gather*}
\begin{equation} \label{eq:2}
\boxed{\frac{V}{r}=\lambda\sqrt{V}, 
\quad 
\lambda\equiv B\sqrt{\frac{q}{2m}}}
\end{equation}
\end{multicols}
\end{document}

関連情報