Math & ScienceReferencing Equation

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
macdatar
Posts: 3
Joined: Mon Sep 27, 2010 2:22 pm

Referencing Equation

Post by macdatar »

Hi,

Lets say that I have an equation with \label{eq:eq1}. When I refer to this equation in my text I do it like this: "see equation \eqref{eq:eq1}". Since I know that I am always going to need the word equation before the \eqref, how can I make it part of the reference itself? So that I can say: "see \eqref{eq:eq1}" and then \eqref will put "equation (1)" instead of just "(1)". I hope my question is clear and I want to thank you in advance for helping me out. I appreciate all the help.
Thanks

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Montag
Posts: 340
Joined: Wed Jul 15, 2009 9:25 am

Referencing Equation

Post by Montag »

http://ctan.org/pkg/hyperref
The command you are looking for is

Code: Select all

\autoref{}
Be very careful where you pute the labels, it can be a bit tricky in the beginning.
OS: Win 7 64-bit LaTeX: MikTeX 2.9 64-bit Editor: TXC 1 RC1
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Referencing Equation

Post by localghost »

The cleveref package might be an option if you are not already using hyperref.


Thorsten
Post Reply