I'm having trouble to define vertical spacing within a minipage, as \vspace seems to behave in a special way within it. For instance, in the example below I'd like to set the vertical spacing between figure A and B to 1cm, but it's being added at the end instead of in between the figures. What is the proper way of defining this spacing? Thanks, Jorge.
\documentclass[12pt,a4paper]{article}
\usepackage{graphicx}
\usepackage{subfig}
\begin{document}
\begin{figure*}[!t]
\fbox{\noindent\begin{minipage}[b][6cm]{0.45\linewidth}
\includegraphics[height=2cm,width=1.0\linewidth]{example-image}
\subfloat[]{\includegraphics[height=2cm,width=1.0\linewidth]{example-image}}
\end{minipage}}%
\hfill
\fbox{\noindent\begin{minipage}[b][6cm]{0.45\linewidth}
\includegraphics[height=2cm,width=1.0\linewidth]{example-image-a}
\vspace{1cm}
\subfloat[]{\includegraphics[height=2cm,width=1.0\linewidth]{example-image-b}}
\end{minipage}}%
\end{figure*}
\end{document}
Results:
EDIT: Adding some blanks do alter the behavior, but I'm still unable to get it right; moreover; a spurious indentation appears!:
\begin{document}
\begin{figure*}[!t]
\fbox{\noindent\begin{minipage}[b][6cm]{0.45\linewidth}
\includegraphics[height=2cm,width=1.0\linewidth]{example-image}
\subfloat[]{\includegraphics[height=2cm,width=1.0\linewidth]{example-image}}
\end{minipage}}%
\hfill
\fbox{\begin{minipage}[b][6cm]{0.45\linewidth}
\includegraphics[height=2cm,width=1.0\linewidth]{example-image-a}
\\
\\
\vspace{1cm}
\subfloat[]{\includegraphics[height=2cm,width=1.0\linewidth]{example-image-b}}
\end{minipage}}%
\end{figure*}
\end{document}
Result:


\noindentin the\fboxis doing nothing. – David Carlisle Feb 25 '18 at 17:01\\the vspace will still be added after the second image. the indentation is because you have added a word space from the end of line after\vspace– David Carlisle Feb 25 '18 at 17:18\fboxis set in horizontal mode so ther eare no paragraphs so no paragraph indentation so\noindentwill do nothing. You probably had a space there note\fbox{ a }is not the same as\fbox{a}\fbox{\noindent a}may appear to do something but it is just the lack of space token,\noindentdoes nothing. – David Carlisle Feb 25 '18 at 17:22