Just wondered if anyone could help me with this issue. I'm trying to reference a theorem using \cite{ref}, but the theorem finishes with an equation, so the citation move onto the next line. This is the code I have:
\begin{thm}[Euler's Formula]
Let $G$ be any planar graph which contains $v$ vertices, $e$ edges and $f$ faces of $G$. Then,
$$v-e+f=2.$$
\cite{ref}
\end{thm}
amsmath, you could try this:\[ v-e+f=2. \qquad \text{\cite{ref}} \]– barbara beeton Mar 19 '16 at 21:27\ref{ref}rather than\cite{ref}. – Mico Mar 19 '16 at 21:28