Graphics, Figures & Tablescaption name in reference?

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
wwoord
Posts: 2
Joined: Tue Dec 08, 2009 12:08 am

caption name in reference?

Post by wwoord »

Hey all,

I've spend a few hours searching the internet for an answer, but have been unsuccessful. I'm hoping somebody here can help me out, I'm sure somebody else must have looked in to this before....

So my question is:
is it possible to get the caption name in the reference when referring to a figure or table? Right now, each time I refer to a figure I have to write

Code: Select all

Figure~\ref{mylabel}
I'm hoping I can just write

Code: Select all

\ref{mylabel}
But get the caption name, in this case Figure added automatically. This is especially convenient if later on you want to change the caption name for example from Figure to Fig. or Image.

Many thanks for any help!

Cheers,

Walter

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

caption name in reference?

Post by localghost »

Use the cleveref package.


Best regards and welcome to the board
Thorsten
wwoord
Posts: 2
Joined: Tue Dec 08, 2009 12:08 am

Re: caption name in reference?

Post by wwoord »

Thank you so much for the solution and the welcome. I'll look in to it straight away and hopefully I can also contribute to this board.

Cheers,

Walter
Post Reply