I am writing 2 long equations in the top of a page in a paper. For paper construction and presentation purposes, I want to write the both in one place (so their code are brought together using Figure environment). The problem is that the second one will be introduced one page later and I want its number adjusted according to the place I mention it for the first time, not the place of it in the code. Is this possible? (For clarification, first equation number is 35, then I have to bring 5 equations to obtain the second formula whose number should be 41, but now it is 36 and those 5 equations required to obtain second one is numbered after that.) When I use \tag, latex automatically assign it again to another equation later.
-
it's rather unusual to float equations, but for any numbered construct it is best to make them all float or non float. If you mix then as you find, the floating ones can float past the non floating ones.– David CarlisleJan 14, 2020 at 18:15
-
it's rather unusual to float equations, but for any numbered construct it is best to make them all float or non float. If you mix then as you find, the floating ones can float past the non floating ones.– David CarlisleJan 14, 2020 at 18:15
1 Answer
If you want the equation number to come from a specific location, you can use \refstepcounter{equation}\label{...}
at the location and \tag{\ref{...}}
in the float.
\documentclass{article}
\usepackage{amsmath}
\usepackage{lipsum}% MWE only
\begin{document}
\begin{figure}[b]% just to force a delay
\begin{equation}
x=b \tag{\ref{mary}}
\end{equation}
\end{figure}
Given
\begin{equation}
x=a
\end{equation}
and
\begin{equation}
a=b
\end{equation}
we can obtain the equation on the bottom of the page.%
\refstepcounter{equation}\label{mary}
\lipsum[1-8]
\end{document}
-
1
-
-
Mhhh... possible pagebreak there and so
\pageref{mary}
will point to the next page? (Guessing...) @egreg– RmanoJan 14, 2020 at 17:49 -
@Rmano Yes, the space after “the page." would not be removed, maybe leading to a line that has to be broken and the float pushed one page further…– egregJan 14, 2020 at 17:59
-