I'm trying to create the following scheme in latex, where is given outcome is that some subfigures have both a caption on the bottom and on the left. Currently, the closest thing I've got was
\documentclass{article}
\usepackage{subfig}
\usepackage{graphicx}
\usepackage{lipsum} % for mock caption text
\begin{document}
\begin{figure}
\begin{tabular}{@{}cc@{}}
\subfloat[subfigure]{%
\label{a}%
\includegraphics[width=0.25\textwidth]{example-image}%
}&
\subfloat[subfigure]{%
\label{b}%
\includegraphics[width=0.25\textwidth]{example-image}%
}\
\subfloat[subfigure]{%
\label{c}%
\includegraphics[width=0.25\textwidth]{example-image}%
}&
\subfloat[subfigure]{%
\label{d}%
\includegraphics[width=0.25\textwidth]{example-image}%
}\
\subfloat[subfigure]{%
\label{e}%
\includegraphics[width=0.25\textwidth]{example-image}%
}&
\subfloat[subfigure]{%
\label{f}%
\includegraphics[width=0.25\textwidth]{example-image}%
}\
\subfloat[subfigure]{%
\label{g}%
\includegraphics[width=0.25\textwidth]{example-image}%
}&
\subfloat[subfigure]{%
\label{h}%
\includegraphics[width=0.25\textwidth]{example-image}%
}\
\subfloat[subfigure]{%
\label{i}%
\includegraphics[width=0.25\textwidth]{example-image}%
}&
\subfloat[subfigure]{%
\label{j}%
\includegraphics[width=0.25\textwidth]{example-image}%
}\
\end{tabular}\hfill
\begin{minipage}{0.4\textwidth}
\caption{\lipsum[2]}
\label{x}
\end{minipage}
\end{figure}
\end{document}
Thanks to this post, which results in one side figure for the whole figure.
