referencing a line in a proof [duplicate]

Possible Duplicate:
How to link an equation in LaTeX

I have the following mathematical statement:

$$\forall_{\epsilon > 0} \exists_{N_2} \text{ such that } n>N_2 \implies |m_n^- - 0| < \dfrac{\epsilon}{2}$$


Suppose this statement is labeled (1) by . How can I quickly reference this without typing "(1)"? I would like to say something in my proof like: by (1) this is true.

Is there a way to label and then reference these labels?

-
 See if this answers your question. tex.stackexchange.com/questions/14591/… Disregard the hyperref for now. – hpesoj626 Dec 10 '12 at 6:27

marked as duplicate by lockstep, Andrew Swann, cgnieder, barbara beeton, egregDec 10 '12 at 23:36

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer

The easiest way would be, using the amsmath package and \eqref (and \label of course). Here is an MWE

\documentclass[12pt]{scrartcl}
\usepackage{amsmath,hyperref}

\begin{document}
$$\label{eq:myformular} \forall_{\epsilon > 0} \exists_{N_2} \text{ such that } n>N_2 \implies |m_n^- - 0| < \dfrac{\epsilon}{2}$$

See for example \eqref{eq:myformular}

\end{document}


Which produces

I used a usual naming scheme (eq:something) to know from the name of the label, that it refers to an equation. That way you don't have to look up, whether the label refers to the lemma or the eqaution (using of course lem:something as labels for lemmas)

-
 Check out my related post: tex.stackexchange.com/questions/86338/… for a similar question please. – CodeKingPlusPlus Dec 10 '12 at 6:44 Well, @Werner answered the related post - and indeed also this one (by using also eqref in his answer) – Ronny Dec 10 '12 at 7:06