I could add text "Figure" to the List of figures (\listoffigures), but the problem is that hyperref can not cover those extra text "Figure"s. Can you please suggest a solution for this?
Thanks a lot.
\cftfigfont
is a just a quick hack, I guess you read it on some web site. \cftfigfont
is a macro for the figure font name, for example one writes \renewcommand{\cftfigfont}{\bfseries}
to get bold figure numbers. That hack sets Figure
instead of \bfseries
right before a figure number, so it seems to work in the text but hyperref
cannot see this to extend the hyperlink.Code: Select all
\usepackage{tocloft}
\usepackage{hyperref}
\renewcommand{\cftfigpresnum}{Figure\ }
\newlength{\figlen}
\settowidth{\figlen}{\cftfigpresnum}
\setlength{\cftfignumwidth}{\dimexpr\figlen+1.5em}