你好,我想做的是在子浮动图像之间添加图标(例如箭头),以显示图像之间的某种“过程”。
这是我目前的代码:
\documentclass{report}
\usepackage{graphicx}
\usepackage{caption}
\usepackage{subfig}
\begin{document}
\begin{figure} [h]
\subfloat[text 1]{
\includegraphics[width=0.28\textwidth]
{example-image-a}}
\hfil
\subfloat[text 2]{
\includegraphics[width=0.28\textwidth]
{example-image-b}}
\hfil
\subfloat[text 3]{
\includegraphics[width=0.28\textwidth]
{example-image-c}}
\subfloat[text 4]{
\includegraphics[width=0.28\textwidth]
{example-image}}
\hfil
\subfloat[text 5]{
\includegraphics[width=0.28\textwidth]
{example-image}}
\hfil
\subfloat[text 6]{
\includegraphics[width=0.28\textwidth]
{example-image}}
\captionof{figure}[]{long text}
\label{fig:merge}
\end{figure}
\end{document}
这给了我这个:
我想要的是:
有办法吗?
答案1
像这样?
\documentclass{report}
\usepackage{pifont}
\usepackage[svgnames, x11names]{xcolor}
\usepackage{graphicx
}
\usepackage{caption}
\usepackage{subfig}
\usepackage{tabularx}
\newcommand\bigdownArrow{\color{Tomato2}\rotatebox[origin=c]{-90}{\scalebox{2.4}[3.6]{\ding{225}}}}
\newcommand\bigupArrow{\color{Tomato2}\rotatebox[origin=c]{90}{\scalebox{2.4}[3.6]{\ding{225}}}}
\begin{document}
\begin{figure} [h]
\begin{tabularx}{\textwidth}{@{}*{3}{>{\centering\arraybackslash}X}@{}}
\subfloat[text 1]{
\includegraphics[width=0.28\textwidth]
{example-image-a}}
&
\subfloat[text 2]{
\includegraphics[width=0.28\textwidth]
{example-image-b}}
&
\subfloat[text 3]{
\includegraphics[width=0.28\textwidth]
{example-image-c}}
\\
\bigdownArrow & \bigdownArrow & \bigupArrow
\\[-1ex]
\subfloat[text 4]{
\includegraphics[width=0.28\textwidth]
{example-image}}
&
\subfloat[text 5]{
\includegraphics[width=0.28\textwidth]
{example-image}}
&
\subfloat[text 6]{
\includegraphics[width=0.28\textwidth]
{example-image}}
\end{tabularx}
\captionof{figure}[]{long text}
\label{fig:merge}
\end{figure}
\end{document}