Document Classes ⇒ How to modify \autoref?
How to modify \autoref?
I am using \autoref and \hyperref commands, and now I have some trouble with them:
When I liked to create a link to a Figure, the text of the \autoref will be always "Figure 1", but I would like to get "1 Figure". I tried many things with renewcommand and so on, but there was no result.
So I would like to get a link with text "1 Figure", but for now I can only get link for "1" and then goes the non-link "Figure" word, which is not so good for me.
I would appreciate any help..
Peter Major
Hungary
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
How to modify \autoref?
Code: Select all
\usepackage{varioref}
\labelformat{figure}{#1~Figure}
In order to modify also the caption of the figures:
Code: Select all
\usepackage{caption}
\DeclareCaptionLabelFormat{number-fig}{#2~#1}
\captionsetup{labelformat=number-fig}How to modify \autoref?
Thanks! It works like a charm, it doesn't work with \autoref, but it works perfectly with \ref or \aref.corderin wrote:Using varioref package ...Code: Select all
\usepackage{varioref} \labelformat{figure}{#1~Figure}
In order to modify also the caption of the figures:Code: Select all
\usepackage{caption} \DeclareCaptionLabelFormat{number-fig}{#2~#1} \captionsetup{labelformat=number-fig}
Thanks again.
Best regards,
Peter Major