[Tex/LaTex] subfigure \autoref


I am trying to redefine the subfigure \autoref, but have not been successful. Below is example code for the figure. I am using the acticle documentclass and the subcaption package.


I tried to redefine the autorefs using the following


but it did not work. How do I change the autoreference from displaying "figure 1a" to "panel a"?

Best Answer

Without seeing your .tex-File I suggest to use \usepackage{subfig}, then you can use \newcommand{\subfigureautorefname}{\figureautorefname} to make \autoref work with \subfloat. I can't recall where I got this snippet from (probably from tex.SE), but anyways; it has worked fine for me.