Olaf Conradi
2006-05-17 10:58:15 UTC
Hello,
I am using autoref from hyperef package to allow me to write:
As depicted in \autoref{fig:demo}, the average...
This will insert "Figure 1" in place.
But if I do the same with a reference to a subfigure, it only gets
expanded to " 1a", not "Figure 1a".
How can I add that to autoref?
Minimal example below.
Cheers
-Olaf
\documentclass{article}
\usepackage{subfig}
%\usepackage{graphicx}
\usepackage{hyperref}
\begin{document}
Proof is given in \autoref{fig:demo}.
As depicted in \autoref{fig:demo_a}, the this and that and so on.
\begin{figure}
\centering
\subfloat[Before]{\label{fig:demo_a}
insert before picture here
%\includegraphics{demo_a}
}
\qquad
\subfloat[After]{\label{fig:demo_b}
insert after picture here
%\includegraphics{demo_b}
}
\caption{Test results for demonstrating this and that.}
\label{fig:demo}
\end{figure}
\end{document}
I am using autoref from hyperef package to allow me to write:
As depicted in \autoref{fig:demo}, the average...
This will insert "Figure 1" in place.
But if I do the same with a reference to a subfigure, it only gets
expanded to " 1a", not "Figure 1a".
How can I add that to autoref?
Minimal example below.
Cheers
-Olaf
\documentclass{article}
\usepackage{subfig}
%\usepackage{graphicx}
\usepackage{hyperref}
\begin{document}
Proof is given in \autoref{fig:demo}.
As depicted in \autoref{fig:demo_a}, the this and that and so on.
\begin{figure}
\centering
\subfloat[Before]{\label{fig:demo_a}
insert before picture here
%\includegraphics{demo_a}
}
\qquad
\subfloat[After]{\label{fig:demo_b}
insert after picture here
%\includegraphics{demo_b}
}
\caption{Test results for demonstrating this and that.}
\label{fig:demo}
\end{figure}
\end{document}