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!
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
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}}