I use autonum
package to number the equations only when they are referenced. However, sometimes I want to refer to a range of equations. For example, I have 4 equations and I type \eqref{eq1}-\eqref{eq4}
. But, the 2 equations in between will not be numbered, since they are not referenced. Is there some way to manually number these equations as well?
Here is a minimal example
\documentclass{article}
\usepackage{autonum}
\begin{document}
\begin{equation}
equation 1 \label{e1}
\end{equation}
\begin{equation}
equation 2
\end{equation}
\begin{equation}
equation 3
\end{equation}
\begin{equation}
equation 4 \label{e4}
\end{equation}
I want to refer to \eqref{e1}-\eqref{e4}, but the middle two will not be numbered with autonum.
\end{document}