I want to make a figure that contains 2 images and text as presented in the following figure with two images A and B :
I work with Overleaf so the two images are in pdf format.
This is where I am (the result is far from what I expect), and I don't understand why the two images are framed with this code:
\documentclass[symmetric,justified,marginals=raggedouter]{tufte-book}
\usepackage[utf8] {inputenc}
\usepackage[T1]{fontenc}
\usepackage[french]{babel}
\usepackage{geometry,afterpage}
\geometry{height=9.8in,width=6.9in}
\usepackage{graphicx}
\setkeys{Gin}{width=\linewidth,totalheight=\textheight,keepaspectratio}
\graphicspath{{graphics/}}
\usepackage{float}
\usepackage{mathtools}
\usepackage[most]{tcolorbox}
\begin{document}
\begin{figure*}[h]
\fbox{\includegraphics[width=\linewidth]{Prelude_1-5_sys1.pdf}}\\
\hfill
\fbox{\includegraphics[width=0.75\linewidth]{Prelude_1-5_sys2.pdf}
\noindent
\textbf{$\xrightarrow{\makebox[0.5cm]{}}$Conséquent sur Pédale de dominante en \textit{la} majeur}
}
\end{document}
Who can help me to do this figure ? Thank you !
\fbox
around the\includegraphics
command.