我想将这些图形排列成两个图形相邻,一个图形在下面,就像一个倒三角形,这样它们就可以放在一页上,并且大小合理。我该怎么做?
\begin{figure}[H]
\centering
\begin{subfigure}[H]{0.75\textwidth}
\centering
\includegraphics[width=0.75\linewidth]{dragratio}
\caption{}
\label{fig:dragratio}
\end{subfigure}
\begin{subfigure}[H]{0.75\textwidth}
\centering
\includegraphics[width=0.75\linewidth]{dragratio2}
\caption{}
\label{fig:dragratio2}
\end{subfigure}
\begin{subfigure}[H]{0.75\textwidth}
\centering
\includegraphics[width=0.75\linewidth]{dragratio3}
\caption{}
\label{fig:dragratio3}
\end{subfigure}
\centering
\caption{(a) Numerical solutions for the constant-curvature body, $F(x)=x(1-x), x \in (0,1)$, at small times. This figure shows the drag force $D$ versus the scaled mass $M$ for various values of the ratio between the inertia $I$ and the mass $M$, i.e. for various values of $R=\frac{I}{M}$. Here $g=10$ and $A=0.7$. (b) As for (a) but with $A=0.5$. (c) As for (a) and (b) but with $A=0.25$.}
\end{figure}
答案1
我认为以下内容可以实现您的目标:
\documentclass{book}
\usepackage{graphicx}
\usepackage{subcaption}
\begin{document}
\begin{figure}[H]
\centering
\begin{subfigure}{0.45\linewidth}
\centering
\includegraphics[width=\linewidth]{Example-Image}
\caption{}
\label{fig:dragratio}
\end{subfigure}
\hfill
\begin{subfigure}{0.45\linewidth}
\centering
\includegraphics[width=\linewidth]{Example-Image}
\caption{}
\label{fig:dragratio2}
\end{subfigure}
\\[\baselineskip]
\begin{subfigure}[H]{0.45\linewidth}
\centering
\includegraphics[width=\linewidth]{Example-Image}
\caption{}
\label{fig:dragratio3}
\end{subfigure}
\centering
\caption{(a) Numerical solutions for the constant-curvature body, $F(x)=x(1-x), x \in (0,1)$, at small times. This figure shows the drag force $D$ versus the scaled mass $M$ for various values of the ratio between the inertia $I$ and the mass $M$, i.e. for various values of $R=\frac{I}{M}$. Here $g=10$ and $A=0.7$. (b) As for (a) but with $A=0.5$. (c) As for (a) and (b) but with $A=0.25$.}
\end{figure}
\end{document}
subfigure
请注意,s的大小0.45\linewidth
要在它们之间留出一些空间,但width
的大小要在子图内includegraphics
完整\linewidth
,即子图的整个宽度。