Code: Select all
\usepackage[framemethod=TikZ]{mdframed}
\usepackage{lipsum}
\usepackage{caption}
\mdfdefinestyle{MyFrame}{%
frametitlealignment=\center,
frametitlerulecolor= black,
frametitlerulewidth=0.2pt
outerlinewidth=0pt,
repeatframetitle =false,
frametitlebackgroundcolor=gray!55!white,
frametitlerule=true,
topline=false,
rightline=false,
leftline=false,
bottomline=false,
roundcorner=20pt,
splittopskip=\baselineskip,
innertopmargin= 5pt\baselineskip,
innerbottommargin=\baselineskip,
innerrightmargin=20pt,
(see full text)
\begin{mdframed}[frametitle={a short history of supernovae observations from the classic age to the renaissance},style = MyFrame] \label{box: storysn1}
\input{insbox}
In Europe the event was recorded by the monks at St. Gall's Abbey in Switzerland in the \textit{"Annales Sangallenses Maiores, dicti Hepidanni"} with the words
\InsertBoxR{0}{\enspace\includegraphics[width=0.39\textwidth]{images/annales.PNG}}
\textit{"Nova stella apparuit insolitae magnitudinis, aspectu fulgurans, et oculos verberans, non sine terrore. Quae mirum in modum aliquando contractior, aliquando diffusior, et iam extinguebatur interdum. Visa est autem per tres menses in intimis finibus austri, ultra omnia signa qua videntur in coelo "}.
The remnants associated with this star has been identified in 1965 with the radio source PKS 1459-41 by Gardner and Milne.
\end{mdframed}

another latex user suggest to use
Code: Select all
\parbox{5cm}{ \raggedleft \includegraphics[width = 5cm]{images/annales.PNG}}
Code: Select all
\insertBoxR

do you know how to correctly add the caption under the image in mdframed and place it to the right of the text?