0

I want to put an arrow vertically centered to show a transition from a state top another. What I have is The arrow is showing on the bottom part, but I want it centered (vertically)

\begin{center}
\includegraphics[scale=0.3]{img/1.1.PNG}$\longrightarrow$\includegraphics[scale=0.33]{img/1.2.PNG}
\end{center}

How can I do this? Any alternative arrangement that shows the idea I want to transmit is well recieved, even if it doesn't solve my question

Cheers

New contributor
Bruno Andrades is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.

1 Answer 1

3

Like this:

enter image description here

You need to set images baseline on theirs vertical center:

\documentclass{article}
\usepackage[export]{adjustbox}    % <---

\begin{document}
\begin{center}
\includegraphics[scale=0.33, valign=m]{example-image-a}
    $\longrightarrow$
\includegraphics[scale=0.33, valign=m]{example-image-b}
\end{center}
\end{document}
2
  • Thank you so much! Sep 23 at 15:27
  • @BrunoAndrades, you are welcome. BTW, you may consider to accept answer (by clicking on the check mark at top of answer).
    – Zarko
    Sep 23 at 15:50

Your Answer

Bruno Andrades is a new contributor. Be nice, and check out our Code of Conduct.

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.