Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

LaTeX equation Numbering

  1. Aug 29, 2009 #1
    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?

    Thanks in advance,
     
  2. jcsd
  3. Aug 29, 2009 #2
    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}).
     
  4. Aug 29, 2009 #3
    Yes, that works.
    Thank you.
     
  5. Aug 29, 2009 #4

    cristo

    User Avatar
    Staff Emeritus
    Science Advisor

    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)")
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: LaTeX equation Numbering
Loading...