Math & ScienceModify Equation Cross-reference

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
Willie
Posts: 42
Joined: Sat Aug 27, 2011 3:43 am

Modify Equation Cross-reference

Post by Willie »

Hi. I want to edit the \eqref command so that \eqref will produce Eq. (1), for example, instead of (1).
Of course, I could define

Code: Select all

\newcommand{\reff}{Eq.~\eqref}
but then I lose my editor's ability to present a list of former labelled equations when encountering the \eqref command (I am using Inlage).

So I was wondering if it is possible to refer to a previous command definition, without re-defining it, and just append the changes. something in the form

Code: Select all

\renewcommand{\eqref}{Eq.~[old_\eqref definition]}
Hope it's clear. Thanks
Last edited by Willie on Tue Sep 20, 2011 3:10 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Modify Equation Cross-reference

Post by localghost »

No redefinition necessary. Either use hyperref's \autoref command or the cleveref package.


Thorsten
Willie
Posts: 42
Joined: Sat Aug 27, 2011 3:43 am

Re: Modify Equation Cross-reference

Post by Willie »

Thanks. but how can I achieve what I wanted with that package? can you give a working example?
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Modify Equation Cross-reference

Post by Stefan Kottwitz »

Hi Willie,

you posted the same question to TeX.SX: Modify \eqref command. You did not provide a link and you did not mention it here at all. There's already an answer to the question copy which you accepted there. Why don't you share that information? Should the users here (who don't know that) still try to solve your already solved problem?

Please always add a link if you make a cross-posting to make related information visible. Have a look at the board rules.

Stefan
LaTeX.org admin
Willie
Posts: 42
Joined: Sat Aug 27, 2011 3:43 am

Modify Equation Cross-reference

Post by Willie »

Stefan_K wrote:Hi Willie,

you posted the same question to TeX.SX: Modify \eqref command. You did not provide a link and you did not mention it here at all. There's already an answer to the question copy which you accepted there. Why don't you share that information? Should the users here (who don't know that) still try to solve your already solved problem?

Please always add a link if you make a cross-posting to make related information visible. Have a look at the board rules.

Stefan
You are right. I am sorry. I wanted to get a fast answer to what I needed so I posted there on approx. the same time and I forgot to mark it here as solved.
Next time I will also provide a link

Willie
Post Reply