用 `subfig` 宏包的方案
```tex
\documentclass[journal]{IEEEtran}
\usepackage{graphicx}
\usepackage{subfig}
\captionsetup[subfigure]{labelformat=simple}
\renewcommand\thesubfigure{(\alph{subfigure})}
\usepackage{hyperref}
\newcommand{\subfigureautorefname}{Fig.} % the name is sub-figure-auto-ref-name
\usepackage{mwe} % for use of sample images
\begin{document}
\begin{figure}[!t]
\centering
\subfloat[]{\includegraphics[width=2.5in]{example-image-a}\label{A}}
\\
\subfloat[]{\includegraphics[width=2.5in]{example-image-b}\label{B}}
\caption{LETTER }
\label{LETTER}
\end{figure}
The letter A is shown in \autoref{A}
\end{document}
```
![](https://pics.latexstudio.net/data/images/201911/f83d03e970c60ef.png)
------
另提供一个 `subcaption` 宏包的方案,这个宏包可用来替代 `subfig` 和 `subfigure`。输出无变化,不重复贴图。
```tex
\documentclass[journal]{IEEEtran}
\usepackage{graphicx}
% ref: https://tex.stackexchange.com/a/512010
\usepackage{subcaption}
\renewcommand\thesubfigure{(\alph{subfigure})}
\captionsetup[sub]{labelformat=simple}
\usepackage{hyperref}
\renewcommand{\figureautorefname}{Fig.}
\usepackage{mwe} % for use of sample images
\begin{document}
\begin{figure}[!t]
\centering
\subfloat[]{\includegraphics[width=2.5in]{example-image-a}\label{A}}
\\
\subfloat[]{\includegraphics[width=2.5in]{example-image-b}\label{B}}
\caption{LETTER }
\label{LETTER}
\end{figure}
The letter A is shown in \autoref{A}
\end{document}
```
一周热门 更多>