帶有標籤“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} 

在此輸入影像描述

相關內容