4

Hi what I'm trying to do is having icons e.g. arrows between a subfloat images that displays some kind of a "process" between the images.

This is my code so far:

\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}

Which gives me this:

enter image description here


What I want to have:

enter image description here

Is there a way of doing it?

6

Like this?

\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} 

enter image description here

  • exactly. thx allot (but between c and f upsite down. But I will manage to tun it on my own ;) ) – user1234 Jun 25 '17 at 19:46
  • hmm well the rotating is not as easy as I thought using +90 is not what I expected :/ – user1234 Jun 25 '17 at 19:51
  • 1
    @user2798895: Sorry, I had forgotten there was an arrow upwards. I've updated my code. Your difficulty comes from the rotation centre being by default at the left side of the character. The key origin=c solves the problem, and I defined two arrows, changing the initial name. – Bernard Jun 25 '17 at 21:03
  • ohh lovely I really like it – user1234 Jun 26 '17 at 7:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.