我希望能够为这里的每个图添加一个小标题,以及整体的标题。你能帮我吗?
\documentclass[twocolumn]{article}
\usepackage{graphicx}
\usepackage{mwe}
\begin{document}
\begin{figure*}[h]
\centering
\includegraphics[width=0.47\linewidth]{example-image}\hfil
\includegraphics[width=0.47\linewidth]{example-image-a}\par\medskip
\includegraphics[width=0.47\linewidth]{example-image-b}\hfil
\includegraphics[width=0.47\linewidth]{example-image-c}
\caption{caption here}
\end{figure*}
\end{document}
答案1
这可以通过使用包来实现subfig
。
MWE 如下:
\documentclass[twocolumn]{article}
\usepackage{graphicx}
\usepackage{subfig}
\usepackage{mwe}
\begin{document}
Figure \ref{fig1} % Cross reference for the Main
Sub Figure \ref{fig1a}--\ref{fig1f} % cross reference for the sub figures
\begin{figure*}[h]
\centering
\subfloat[Sub-Caption a]{\fbox{\includegraphics[width=0.47\linewidth]{figure1}}\label{fig1a}}\
\subfloat[Sub-Caption b]{\fbox{\includegraphics[width=0.47\linewidth]{figure2}}\label{fig1b}}\\
\subfloat[Sub-Caption c]{\fbox{\includegraphics[width=0.47\linewidth]{figure1}}\label{fig1c}}\
\subfloat[Sub-Caption d]{\fbox{\includegraphics[width=0.47\linewidth]{figure2}}\label{fig1d}}\\
\subfloat[Sub-Caption e]{\fbox{\includegraphics[width=0.47\linewidth]{figure1}}\label{fig1e}}\
\subfloat[Sub-Caption f]{\fbox{\includegraphics[width=0.47\linewidth]{figure2}}\label{fig1f}}
\caption{caption here}\label{fig1}
\end{figure*}
\end{document}
输出: