我写了这段代码:
\documentclass[journal]{IEEEtran}
\usepackage[english]{babel}
\usepackage{nccmath, amssymb,mathtools}% nccmath had to be loaded before mathtools
\usepackage{graphicx}
\usepackage{booktabs, makecell, multirow}
\usepackage{float}
\usepackage[caption=false,font=footnotesize]{subfig}
\usepackage{varwidth}
\graphicspath{ {./images/} }
\usepackage{afterpage}
\usepackage{placeins}
\begin{document}
\begin{figure*}
\centering
\begin{tabular}{c c c}
\includegraphics[width=2in]{1}&
\includegraphics[width=2in]{2} &
\includegraphics[width=2in]{3} \\
\includegraphics[width=2in]{1} &
\includegraphics[width=2in]{2} &
\includegraphics[width=2in]{3} \\
\includegraphics[width=2in]{1} &
\includegraphics[width=2in]{2} &
\includegraphics[width=2in]{3} \\
a.~Subcaption A & b.~Subcaption B & c.~Subcaption C
\end{tabular}
\caption{A caption}
\end{figure*}
我想给每个单独的图添加标题。而且图的一般标题不符合 IEEEtran 格式。
编辑:
整体标题应与图像中的标题类似(IEEEtran 格式 - 主标题正文为斜体)。
答案1
像这样吗?
\documentclass[journal,demo]{IEEEtran} % remove 'demo' option in real document
\usepackage[english]{babel}
\usepackage{nccmath, amssymb,mathtools}
\usepackage{graphicx}
\usepackage{booktabs, makecell, multirow}
\usepackage{float}
\usepackage[caption=false,font=footnotesize]{subfig}
\usepackage{varwidth}
\graphicspath{ {./images/} }
\usepackage{afterpage}
\usepackage{placeins}
\begin{document}
\begin{figure*}
\centering
\subfloat[aaa]{\includegraphics[width=2in]{1}}
\label{fig:aa}\hfill
\subfloat[bbb]{\includegraphics[width=2in]{2}}
\label{fig:bb}\hfill
\subfloat[ccc]{\includegraphics[width=2in]{3}}
\label{fig:cc}
\subfloat[ddd]{\includegraphics[width=2in]{4}}
\label{fig:dd}\hfill
\subfloat[eee]{\includegraphics[width=2in]{5}}
\label{fig:ee}\hfill
\subfloat[fff]{\includegraphics[width=2in]{6}}
\label{fig:ff}
\subfloat[ggg]{\includegraphics[width=2in]{7}}
\label{fig:gg}\hspace{0.1\textwidth}
\subfloat[hhh]{\includegraphics[width=2in]{8}}
\label{fig:hh}
\caption{Overall caption}
\label{fig:images}
\end{figure*}
\end{document}