![子图中的定位符号如何实现?](https://linux22.com/image/432778/%E5%AD%90%E5%9B%BE%E4%B8%AD%E7%9A%84%E5%AE%9A%E4%BD%8D%E7%AC%A6%E5%8F%B7%E5%A6%82%E4%BD%95%E5%AE%9E%E7%8E%B0%EF%BC%9F.png)
答案1
caption
假设图形已完成并排列为“子图”(我将它们从已发布的图形中剪下来),则可以通过重新定义格式、插入彩色框来合并表示子图相对位置的红色框。
\documentclass[12pt,a4paper]{article}
\usepackage{graphicx}
\usepackage{subcaption}% needed <<<<<<<<<<<<<<<<
\usepackage{xcolor}% needed <<<<<<<<<<<<<<<<
\newcommand{\fsymbols}{\fcolorbox{red}{gray!20}{\parbox{50pt}{\centering \bfseries a b c \\ d e}}} % colored box <<<<<<<<<<<<<<<
\DeclareCaptionFormat*{myformat}{\fsymbols \\ \\#1#2\\#3} % new format style for caption
\captionsetup[figure]{labelfont=sf, font=footnotesize, format=myformat, singlelinecheck=false}
\begin{document}
\begin{figure}
\begin{minipage}[b]{0.20\textwidth}
\caption{(a) Image I,\\ (b) Square SE \\ (c) Dilatation of A by B. \\ (d) Elongated SE. \\ (e) Dilatation of A by ...}
\end{minipage}%
\hfill
\begin{minipage}[c]{0.75\textwidth}
\centering
\begin{subfigure}[c]{0.3\textwidth}
\centering
\includegraphics[width=\textwidth, keepaspectratio]{image_a}
\end{subfigure}%
\hfill
\begin{subfigure}[c]{0.13\textwidth}
\centering
\includegraphics[width=\textwidth,keepaspectratio]{image_b}
\end{subfigure}%
\hfill
\begin{subfigure}[c]{0.3\textwidth}
\centering
\includegraphics[width=\textwidth, keepaspectratio]{image_c}
\end{subfigure}%
\vspace*{5pt}
\begin{subfigure}[c]{0.3\textwidth}
\centering
\includegraphics[width=0.4\textwidth, keepaspectratio]{image_d}
\end{subfigure}%
\vspace*{20pt}
\hfill
\begin{subfigure}[c]{0.3\textwidth}
\centering
\includegraphics[width=\textwidth, keepaspectratio]{image_e} \
\end{subfigure}%
\vspace*{20pt}
\end{minipage}
\end{figure}
\end{document}