I try to split my page into a text part on the left and an image on the right side. Therefore I use minipage
and flushright
.
There are 2 problems:
• I want to have the text and the image being top aligned. The minipage option [t]
does not work unfortunately, neigther the try \vspace{0pt}
.
• The image is right aligned properly, but the caption is not. It should be shifted to the right as well to be centered under the image again.
How can I achieve both? Thank you :)
MWE:
\documentclass{scrreprt}
\usepackage{caption}
\usepackage{mwe}
\begin{document}
\begin{minipage}{0.38\textwidth}
\lipsum[2]
\end{minipage}
\begin{minipage}{0.57\textwidth}
\begin{flushright}
\includegraphics[height=10cm]{example-image-9x16}
\captionof{figure}{Caption\\Long Caption}
\end{flushright}
\end{minipage}
\end{document}