顯示方程組之前的排版間隙較大

顯示方程組之前的排版間隙較大

我是 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}

獎勵:我希望逗號和 lambda 之間有更大的空間。

任何幫助或資訊將不勝感激。我歡迎文檔。

答案1

預設情況下,包的多行顯示方程式環境amsmath不允許分欄和分頁。要覆蓋此設置,您需要發出指令\allowdisplaybreaks

順便說一句,不要對交叉引用進行硬編碼,例如“\textit{Eq. 2}”。相反,\label向有問題的方程式添加一條指令並使用\ref——或者更好的是\cref聰明人套件-使 LaTeX 為您產生交叉引用標註。

最後,正如 @ChristianHupfer 已經指出的那樣,您可以\quad在分隔等式 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}

相關內容