标有“T”的右箭头从左图指向右图

标有“T”的右箭头从左图指向右图

我想制作一个从左图指向右图的右箭头。

所需设计


以下是我当前的代码。

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

从而产生
当前代码

答案1

您可以简单地将subfigures 减少到.47\textwidth并插入类似的内容

{\LARGE$\xrightarrow{T}$}

它们之间。

梅威瑟:

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

输出

在此处输入图片描述

答案2

以下是使用 的尝试tikz。这允许您自定义箭头样式和 的位置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}

在此处输入图片描述

答案3

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

在此处输入图片描述

相关内容