Vertical alignment of subfigures LATEX

前端 未结 4 1057
执笔经年
执笔经年 2021-01-31 04:04

I am working on my thesis and I am struggling with placing 2 images next to each other, so that the second image would be centered vertically along the first one. I was also try

4条回答
  •  遥遥无期
    2021-01-31 04:43

    Another solution (which works with the subcaption package is

    \begin{figure}[p]
            \centering
            \begin{subfigure}{.49\linewidth}
                \centering
                \caption{Large Picture}
                \includegraphics{LARGEPIC}
            \end{subfigure}
            \hfill
            \begin{subfigure}{.49\linewidth}
                \centering
                \caption{SMALL PIC}
                \includegraphics{small picture}
                \begin{minipage}{.1cm}
                \vfill
                \end{minipage}
            \end{subfigure} 
            \caption{Two pictures}
    \end{figure}
    

    The \vfill alone does not work, that's why it is put into the minipage

提交回复
热议问题