我正在使用软件包mathtools
和graphbox
,它们似乎会干扰lineno
——包含显示方程式的段落不会打印数字。
这类似于这个问题,但是我正在使用equation
环境。我尝试将行号 call 放在有问题的包之前和之后,但没有任何变化。
我还不能完全重现 MWE 的问题 - 在下面,删除 MWEmathtools
可以解决问题,但在我主文档中,这没有影响。如果我删除两者,mathtools
它就graphbox
可以正常工作,但除非迫不得已,否则我宁愿不丢失 graphbox。
我并不担心显示方程式的行数,但我确实希望文本有编号。有没有简单的解决方法?
平均能量损失
\documentclass[draft,12]{agujournal2018}
\usepackage{apacite}
\usepackage{url} %this package should fix any errors with URLs in refs.
\usepackage{mathtools}
\usepackage{graphbox}
\usepackage{lineno}
\linenumbers
\usepackage[english]{babel}
\journalname{Journal Name}
\begin{document}
Sed augue lacus viverra vitae congue eu consequat ac felis. Blandit libero volutpat sed cras ornare arcu dui vivamus arcu. Enim lobortis scelerisque fermentum dui faucibus in ornare quam. Urna neque viverra justo nec. At lectus urna duis convallis convallis tellus id interdum. Habitant morbi tristique senectus et netus et malesuada fames ac. Adipiscing bibendum est ultricies integer quis auctor elit sed vulputate. Scelerisque purus semper eget duis at tellus at urna.
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Sed risus pretium quam vulputate dignissim suspendisse in est. Platea dictumst quisque sagittis Non pulvinar neque laoreet suspendisse interdum consectetur libero id faucibus. Amet aliquam id diam maecenas ultricies mi eget mauris. Molestie nunc non blandit massa enim nec dui.
\begin{equation}\label{eq:ConservationOfMass}
1 + 1 = 2
\end{equation}
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Sed risus pretium quam vulputate dignissim suspendisse in est. Platea dictumst quisque sagittis
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Sed risus pretium quam vulputate dignissim suspendisse in est. Platea dictumst quisque sagittis purus sit amet. Tristique et egestas quis ipsum. Pulvinar proin gravida hendrerit lectus a. Hac habitasse platea
\begin{figure} \begin{center}
\includegraphics[height = 1cm,align=c]{example-image-a} \includegraphics[align=c,height = 1.6cm]{example-image-c}
\caption{Caption}
\label{fig} \end{center}
\end{figure}
\end{document}