표시된 방정식 그룹 앞의 조판 시 큰 간격

표시된 방정식 그룹 앞의 조판 시 큰 간격

저는 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{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}

관련 정보