General ⇒ referencing and changing text in figures
referencing and changing text in figures
1) I want to change the default text from "Figure" to something else (the pdf is in another language, so I don't want the English word there).
2) I added a label after my caption command but when I use ref to create a reference to that label I only get the number and not the full text "figure 1". How do I change this so it automatically uses the text in front of the numbering as well?
thanks!
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Re: referencing and changing text in figures
2): the cleveref seems to do what you want.
B.A.
referencing and changing text in figures
1) If you do not use the babel package:
Code: Select all
\renewcommand{\figurename}{Your selected figure name}
Code: Select all
\addto\captionslanguage{\renewcommand{\figurename}{Your selected figure name}}
2) Define the macro \figref as follows
Code: Select all
\newcommand{\figref}[1]{\figurename~\ref{#1}}