General ⇒ recalling an equation without rewriting it?
-
- Posts: 1
- Joined: Mon Apr 23, 2018 5:40 am
recalling an equation without rewriting it?
When writing a very long document full of formulae, one often needs to recall them a few times at different pages. An easy way to do this is, of course, to use cross referencing, i.e. \label{} and \ref{}.
Sometimes, cross referencing is not enough since one would like to see the equation again next to the one currently discussed, without having to use hyperlinks or going through the pages of a printed document.
Is there a way to recall an equation without rewriting it?
(I mean to automatically reprint the equation when needed by using a simple reference without having to rewrite it in the source text.)
In other words, is there something like a "\recallequation{}" command that could automatically regenerate the equation?
(The reference of this new equation should remain the same than the original one.)
(Hyperlinking to the new equation should come as an option.)
For instance, today one has to rewrite the same equation again to recall and reprint it:
- Page 1 -
[...]
... energy is given by the equation \ref{eq:energy} hereafter...
\begin{equation}
e = mc^2
\label{eq:energy}
\end{equation}
[...]
- Page 1000 -
[...]
... one recalls from equation \ref{eq:energy} that energy can be obtained by the equation \ref{eq:energybis} hereafter ...
\begin{equation}
e = mc^2
\label{eq:energybis}
\end{equation}
[...]
One would instead like to write the source of Page 1000 as follows:
- Page 1000 -
[...]
... one recalls from equation \ref{eq:energy} that energy can be obtained by the equation \ref{eq:energybis} hereafter ...
\recallequation[eq:energybis]{eq:energy}
[...]
Any idea?
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- Stefan Kottwitz
- Site Admin
- Posts: 10361
- Joined: Mon Mar 10, 2008 9:44 pm
recalling an equation without rewriting it?
welcome to the forum!
A good way is to put the equation into a theorem-like environment, and use

Stefan