Quiero hacer una flecha hacia la derecha que apunte de la figura izquierda a la figura derecha.
El siguiente es mi código actual.
\begin{figure}[H]
\centering
\begin{subfigure}{.5\textwidth}
\centering
\includegraphics[width=.7\linewidth]{2D/cc1.png}
\caption{Original Matrix, $A$}
\end{subfigure}%
\begin{subfigure}{.5\textwidth}
\centering
\includegraphics[width=.7\linewidth]{2D/cc2.png}
\caption{Jordan Canonical Form of Matrix, $A$}
\end{subfigure}
\caption{Changing Coordinates}
\end{figure}
que genera
Respuesta1
Simplemente puede reducir su subfigure
s a .47\textwidth
e insertar algo como
{\LARGE$\xrightarrow{T}$}
entre ellos.
MWE:
\documentclass{article}
\usepackage{float,subcaption}
\usepackage[demo]{graphicx}
\usepackage{amsmath}
\begin{document}
\begin{figure}[H]
\centering
\begin{subfigure}{.47\textwidth}
\centering
\includegraphics[width=.7\linewidth]{2D/cc1.png}
\caption{Original Matrix, $A$}
\end{subfigure}%
{\LARGE$\xrightarrow{T}$}%
\begin{subfigure}{.47\textwidth}
\centering
\includegraphics[width=.7\linewidth]{2D/cc2.png}
\caption{Jordan Canonical Form of Matrix, $A$}
\end{subfigure}
\caption{Changing Coordinates}
\end{figure}
\end{document}
Producción
Respuesta2
Aquí hay un intento de usar tikz
. Esto le permite personalizar el estilo de la flecha y la posición de T
.
\documentclass{article}
\usepackage{float,subcaption}
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage{tikz}
\begin{document}
\begin{figure}[H]
\centering
\begin{subfigure}{.47\textwidth}
\centering
\tikz[remember picture]\node[inner sep=0pt,outer sep=0pt] (a){\includegraphics[width=.7\linewidth]{example-image-a}};
\caption{Original Matrix, $A$}
\end{subfigure}%
\begin{subfigure}{.47\textwidth}
\centering
\tikz[remember picture]\node[inner sep=0pt,outer sep=0pt] (b){\includegraphics[width=.7\linewidth]{example-image-b}};
\caption{Jordan Canonical Form of Matrix, $A$}
\end{subfigure}
\tikz[remember picture,overlay]\draw[line width=2pt,-stealth,magenta] ([xshift=2mm]a.east) -- ([xshift=-2mm]b.west)node[midway,above,text=black,font=\LARGE\bfseries\sffamily] {T};
\caption{Changing Coordinates}
\end{figure}
\end{document}
Respuesta3
\documentclass{article}
\usepackage{subcaption}
\usepackage[demo]{graphicx}
\usepackage{stackengine}
\begin{document}
\begin{figure}[H]
\centering
\begin{subfigure}{.5\textwidth}
\centering
\includegraphics[width=.7\linewidth]{2D/cc1.png}
\caption{Original Matrix, $A$}
\end{subfigure}%
\hsmash{\scalebox{2.7}{\stackon{$\rightarrow$}{\scriptsize\textsf{T\,}}}}%
\begin{subfigure}{.5\textwidth}
\centering
\includegraphics[width=.7\linewidth]{2D/cc2.png}
\caption{Jordan Canonical Form of Matrix, $A$}
\end{subfigure}
\caption{Changing Coordinates}
\end{figure}
\end{document}