I have three subfigures as shown in the MWE below, I want to align the subfigure c
in the center below the two upper figures, how to do that?
\documentclass{scrartcl}
\usepackage{caption}
\usepackage{floatrow}
\usepackage{subcaption}
\usepackage{graphicx,xcolor}
\usepackage[framemethod=tikz]{mdframed}
\newcommand{\fakeimage}{{\fboxsep=-\fboxrule\fbox{\rule{0pt}{3cm}\hspace{4cm}}}}
\begin{document}
\begin{figure}
\begin{mdframed}[
align=center,
linecolor=black,
fontcolor=black,
backgroundcolor=white,
userdefinedwidth=0.9\textwidth,
roundcorner=5pt,
skipabove=0pt,
skipbelow=0pt,
leftmargin=0pt,
innerleftmargin=20pt,
innerrightmargin=0pt,
innertopmargin=5pt,
innerbottommargin=5pt,
innerlinewidth=0pt,
middlelinewidth=0pt,
outerlinewidth=1pt]
\floatsetup[subfigure]{captionskip=10pt}
%===================== the two upper subfigures ================
\begin{minipage}{.44\textwidth}
\begin{subfigure}{\linewidth}
\centering
\fakeimage
\caption{Image}\label{fig:image1}
\end{subfigure}\\[0ex] %
\qquad
\end{minipage}
\begin{minipage}{.44\textwidth}
\begin{subfigure}{\linewidth}
\centering
\fakeimage
\caption{Image}\label{fig:image12}
\end{subfigure}
\end{minipage}%
\vfill
%===================== the one below subfigure ================
\begin{minipage}[c]{.94\textwidth}
\centering
\begin{subfigure}{\linewidth}
\fakeimage
\caption{Image}\label{fig:image3}
\end{subfigure}
\end{minipage}%
\end{mdframed}
\RawCaption{\caption{General caption}
\label{fig:images}}
\end{figure}
\end{document}
which results in:
Best Answer
I wouldn't be using
minipage
at all; justsubfigure
is enough.Code
Output