0

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.

2
  • 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. Jan 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. Jan 14, 2020 at 18:15

1 Answer 1

1

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}
6
  • 1
    Add % after the page. Murphy's law is always ready to strike.
    – egreg
    Jan 14, 2020 at 17:24
  • @egreg - Why there? Jan 14, 2020 at 17:32
  • Mhhh... possible pagebreak there and so \pageref{mary} will point to the next page? (Guessing...) @egreg
    – Rmano
    Jan 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…
    – egreg
    Jan 14, 2020 at 17:59
  • Thanks a lot @JohnKormylo Kormylo. Great. It worked. Jan 15, 2020 at 9:08

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .