
Я новичок в 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}