# LaTeX equation Numbering

1. Aug 29, 2009

### Apteronotus

Hi, when I want to reference an equation in my latex file I use "eqref{}" with produces "(1)".
I would like to change this so that it appears as "(eqn. 1)"

Is there any way to get the desired affect?

2. Aug 29, 2009

### fleem

The only way i know how to do that is to go back to using the /ref keyword and put parens around it, yourself. For example, instead of \eqref{abc}, use (eqn. \ref{abc}).

3. Aug 29, 2009

### Apteronotus

Yes, that works.
Thank you.

4. Aug 29, 2009

### cristo

Staff Emeritus
Alternatively, you can use macros. Add something like

Code (Text):
\newcommand\eqnrf[1]{(eqn.~\ref{#1})}
into your preamble. Then,

Code (Text):
\eqnrf{abc}
will produce something like (eqn. 1)

(Of course, it's a little sloppy to do things like that, since the equation is called (1): you should say something like "eqn. (1)")