如何在 LaTex 中將 Subfig 標題包含在主圖標題下方?

如何在 LaTex 中將 Subfig 標題包含在主圖標題下方?

我正在為一份 IET 期刊準備稿件。我在圖中使用了以下軟體包:

\documentclass[10pt]{article}
\usepackage{graphicx}
\usepackage{caption}
\captionsetup[figure]{name=Fig.,labelfont={sf,bf},textfont=sl,labelsep=quad}
\usepackage[caption=false,font=footnotesize,labelformat=simple]{subfig}

然後我使用了以下程式碼片段:

\begin{figure}[tb]
\centering
\subfloat[Tunneling and thermionic component of current]{
  \includegraphics[width=0.48\linewidth]{It+Ith}
  \label{It_Ith}
  }
\subfloat[Total drain current]{
  \includegraphics[width=0.48\linewidth]{Ids}
  \label{I_ds}
  }
\label{I_V}
\caption{I-V characterstics in the subthreshold regime}
\end{figure}

副標題位於各自的數字下方,如下所示: 目前的情況

但我希望子圖標題位於主標題下方,如下所示: 所需樣品

請注意,所有標題均左對齊,且子標題不是斜體。如何產生這種類型的格式?

答案1

您可以使用空子標題來實現此目的,然後在主標題中引用它們\protect\subref*(* 刪除括號 - 沒有它,您將得到 (a) 而不是 a):

\documentclass[10pt]{article}
\usepackage{graphicx}
\usepackage{caption}
\captionsetup[figure]{name=Fig.,labelfont={sf,bf},textfont=sl,labelsep=quad}
\usepackage[caption=false,font=footnotesize,labelformat=simple]{subfig}

\begin{document}

\begin{figure}[tb]
\centering
\subfloat[]{
  \includegraphics[width=0.48\linewidth]{It+Ith}
  \label{It_Ith}
  }
\subfloat[]{
  \includegraphics[width=0.48\linewidth]{Ids}
  \label{I_ds}
  }
\label{I_V}
\caption{I-V characterstics in the subthreshold regime\\[2ex]
\protect\subref*{It_Ith} \textnormal{Tunneling and thermionic component of current}\\
\protect\subref*{I_ds} \textnormal{Total drain current}
}
\end{figure}

\end{document}

可以使用普通字體\textnormal

相關內容