Math & ScienceRepeat Equation with original Number

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
gliu
Posts: 3
Joined: Wed Apr 03, 2013 7:06 pm

Repeat Equation with original Number

Post by gliu »

In my research paper I have very early on inside the document the following.

Code: Select all

\begin{equation}
x^2 + y^2 = 1
\end{equation}
The auto numbering system numbered this equation as equation "2.1".

Now I want to have a way of displaying that equation once more, without having to type out the {equation} environment, because that would create a completely different number for the Equation which I don't want.

I want something like this.
Recall Equation 2.1:

[Display equation here with its number]

...
I'm using the report class, is it possible?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX books
User avatar
svend_tveskaeg
Posts: 478
Joined: Sun Jul 12, 2009 5:31 am

Repeat Equation with original Number

Post by svend_tveskaeg »

If the only problem is that the equation number becomes different, you can use the following:

Code: Select all

\documentclass{article}

\usepackage{amsmath}

\begin{document}
\[
x^2 + y^2 = 1 \tag{2.1}
\]
\end{document}
``In the game of chess, you can never let your adversary see your pieces.''
-- Zapp Brannigan, Futurama (season 1, episode 4)
alainremillard
Posts: 45
Joined: Fri Mar 16, 2012 8:22 pm

Repeat Equation with original Number

Post by alainremillard »

Just to complete Svend's answer, you could use label and reference to acheive this

Code: Select all

\documentclass{article}
    \usepackage{amsmath}
    \begin{document}
    \begin{equation}\label{myeqn}
        x^2 + y^2 = 1
    \end{equation}
    
    Recall equation~\eqref{myeqn}
    \begin{equation}
        x^2 + y^2 = 1 \tag{\ref{myeqn}}
    \end{equation}
\end{document}
Have a nice day
Alain Rémillard
gliu
Posts: 3
Joined: Wed Apr 03, 2013 7:06 pm

Re: Repeat Equation with original Number

Post by gliu »

Thank you for your help. I'm quite new to this language so the straight-up code helps a lot.
gliu
Posts: 3
Joined: Wed Apr 03, 2013 7:06 pm

Repeat Equation with original Number

Post by gliu »

alainremillard wrote:Just to complete Svend's answer, you could use label and reference to acheive this

Code: Select all

\documentclass{article}
    \usepackage{amsmath}
    \begin{document}
    \begin{equation}\label{myeqn}
        x^2 + y^2 = 1
    \end{equation}
    
    Recall equation~\eqref{myeqn}
    \begin{equation}
        x^2 + y^2 = 1 \tag{\ref{myeqn}}
    \end{equation}
\end{document}
Have a nice day
Alain Rémillard
But let's say I'm writing my document across different .tex files. Say I declare the equation x^2+y^2=1 in FileA.tex and then I want to ref. it in FileB.tex, how would I do this?
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Repeat Equation with original Number

Post by cgnieder »

gliu wrote:But let's say I'm writing my document across different .tex files. Say I declare the equation x^2+y^2=1 in FileA.tex and then I want to ref. it in FileB.tex, how would I do this?
This should also work when used across several included tex files. If it doesn't please provide a Infominimal working example so we can reproduce the issue.

Regards
site moderator & package author
Post Reply