我正在使用子图:
\documentclass[12pt, a4paper]{report}
\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}
\centering
\begin{subfigure}{.3\linewidth}
\centering
\fakeimage
\caption{Image}\label{fig:image1}
\end{subfigure} %
\hfill
\begin{subfigure}{.3\linewidth}
%\centering
\fakeimage
\caption{Image}\label{fig:image12}
\end{subfigure}
\hfill
\begin{subfigure}{.3\linewidth}
\centering
\fakeimage
\caption{Image}\label{fig:image12}
\end{subfigure}
\hfill
\begin{subfigure}{\linewidth}
\centering
\fakeimage
\caption{Image}\label{fig:image3}
\end{subfigure}
\RawCaption{\caption{General caption}
\label{fig:images}}
\end{figure}
\end{document}
我越来越:
答案1
正如 Mico 所说,消除空行。以下是代码:
\documentclass[12pt, a4paper]{report}
\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}
\centering
\begin{subfigure}{.3\linewidth}
\centering
\fakeimage
\caption{Image}\label{fig:image1}
\end{subfigure}
\hfill
\begin{subfigure}{.3\linewidth}
\centering
\fakeimage
\caption{Image}\label{fig:image12}
\end{subfigure}
\hfill
\begin{subfigure}{.3\linewidth}
\centering
\fakeimage
\caption{Image}\label{fig:image13}
\end{subfigure}
\bigskip
\begin{subfigure}{\linewidth}
\centering
\fakeimage
\caption{Image}\label{fig:image3}
\end{subfigure}
\RawCaption{\caption{General caption}
\label{fig:images}}
\end{figure}
\end{document}
结果如下:
希望这可以帮助!
感谢 Mico 提供的解决方案(见评论)!