I am trying to reference a set of equations that are placed within a alignat
and subequations
environments. I would like to reference them as Eq. 1
together, rather than Eqs. 1a and 1b
separately. The MWE below does exactly this, yet leaves a small indentation in the paragraph just below the equations. Is there a way to circumvent this or use a different environment?
\documentclass{article}
\usepackage{mathtools}
\usepackage{lipsum}
\begin{document}
\lipsum[1]
\begin{subequations}
\begin{alignat}{1}
\dot{\mathbf{u}}_{i} &= \frac{\mathbf{u}_{i+1} - \mathbf{u}_{i-1}}{2\Delta t} + \mathcal{O}(\Delta t^2) \\
\ddot{\mathbf{u}}_{i} &= \frac{\mathbf{u}_{i+1} - 2\mathbf{u}_{i} + \mathbf{u}_{i-1}}{\Delta t^2} + \mathcal{O}(\Delta t^2)
\end{alignat}
\label{eq}
\end{subequations}
\lipsum[2]
I'm referencing the equation here: \ref{eq}
\end{document}