另外,也可以使用`cleveref`宏包实现,如:
```tex
\documentclass[journal]{IEEEtran}
\hyphenation{op-tical net-works semi-conduc-tor} \label{setting}
\usepackage{graphicx} % add figures\\
\usepackage{mwe}
%
\usepackage[caption=false,font=normalsize,labelfont=sf,textfont=sf]{subfig}
% anothor is to use the cleveref package.
\usepackage[nameinlink]{cleveref}
% set crefname
\crefname{figure}{Fig.}{Fig.}
\begin{document}
\begin{figure}[!t]
\centering
\subfloat[]{\includegraphics[width=2.5in]{example-image-a}\label{subfig:a}}
\\
\subfloat[]{\includegraphics[width=2.5in]{example-image-b}\label{subfig:b}}
\caption{subfigexample}
\label{fig:figexample}
\end{figure}
The letter A is shown in \cref{subfig:a}
The letter B is shown in \cref{subfig:b}
The letter is shown in \cref{fig:figexample}
\end{document}
```
一周热门 更多>