考虑以下:
\documentclass[12pt, a4paper]{report}
\usepackage{verbatim, mathtools,amssymb, amsthm, mathrsfs}
\usepackage{graphicx}
\usepackage{tikz}
\usepackage{subcaption}
\begin{document}
\begin{figure}
\setkeys{Gin}{width=\linewidth}
\begin{subfigure}[h]{0.475\linewidth}
\includegraphics{example-image-A}%{1SAIRSI.pdf}
\end{subfigure}
\medskip
\begin{subfigure}[h]{0.475\linewidth}
\includegraphics{example-image-B}%{1SAIRSII.pdf}
\end{subfigure}
\hfill
\begin{subfigure}[h]{0.475\linewidth}
\includegraphics{example-image-C}%{1SAIRSIII.pdf}
\end{subfigure}
\caption{Plot of system (4.1)-(4.4) with $\beta_A=0.2$, $\beta_I=0.1$, $b=0.55$, $\mu=0.01$, $\nu=0.8$, $\rho=0.1$, $\xi =0.001$, $\gamma_A =0.15$, $\gamma_I=0.1$, $\sigma=0.2$, $\eta=0.7$ and $\alpha=0.01$ hence $\mathcal{R}_0 \approx 0.9265$.}
\end{figure}
\begin{figure}
\setkeys{Gin}{width=\linewidth}
\begin{subfigure}[h]{0.475\linewidth}
\includegraphics{example-image-A}%{1SAIRSI.pdf}
\end{subfigure}
\medskip
\begin{subfigure}[h]{0.475\linewidth}
\includegraphics{example-image-B}%{1SAIRSII.pdf}
\end{subfigure}
\hfill
\begin{subfigure}[h]{0.475\linewidth}
\includegraphics{example-image-C}%{1SAIRSIII.pdf}
\end{subfigure}
\caption{Plot of system (4.1)-(4.4) with $\beta_A=0.2$, $\beta_I=0.1$, $b=0.55$, $\mu=0.01$, $\nu=0.8$, $\rho=0.1$, $\xi =0.001$, $\gamma_A =0.15$, $\gamma_I=0.1$, $\sigma=0.2$, $\eta=0.7$ and $\alpha=0.01$ hence $\mathcal{R}_0 \approx 0.9265$.}
\end{figure}
\begin{figure}
\setkeys{Gin}{width=\linewidth}
\begin{subfigure}[h]{0.475\linewidth}
\includegraphics{example-image-A}%{1SAIRSI.pdf}
\end{subfigure}
\medskip
\begin{subfigure}[h]{0.475\linewidth}
\includegraphics{example-image-B}%{1SAIRSII.pdf}
\end{subfigure}
\hfill
\begin{subfigure}[h]{0.475\linewidth}
\includegraphics{example-image-C}%{1SAIRSIII.pdf}
\end{subfigure}
\caption{Plot of system (4.1)-(4.4) with $\beta_A=0.2$, $\beta_I=0.1$, $b=0.55$, $\mu=0.01$, $\nu=0.8$, $\rho=0.1$, $\xi =0.001$, $\gamma_A =0.15$, $\gamma_I=0.1$, $\sigma=0.2$, $\eta=0.7$ and $\alpha=0.01$ hence $\mathcal{R}_0 \approx 0.9265$.}
\end{figure}
\begin{figure}
\setkeys{Gin}{width=\linewidth}
\begin{subfigure}[h]{0.475\linewidth}
\includegraphics{example-image-A}%{1SAIRSI.pdf}
\end{subfigure}
\medskip
\begin{subfigure}[h]{0.475\linewidth}
\includegraphics{example-image-B}%{1SAIRSII.pdf}
\end{subfigure}
\hfill
\begin{subfigure}[h]{0.475\linewidth}
\includegraphics{example-image-C}%{1SAIRSIII.pdf}
\end{subfigure}
\caption{Plot of system (4.1)-(4.4) with $\beta_A=0.2$, $\beta_I=0.1$, $b=0.55$, $\mu=0.01$, $\nu=0.8$, $\rho=0.1$, $\xi =0.001$, $\gamma_A =0.15$, $\gamma_I=0.1$, $\sigma=0.2$, $\eta=0.7$ and $\alpha=0.01$ hence $\mathcal{R}_0 \approx 0.9265$.}
\end{figure}
\begin{figure}
\setkeys{Gin}{width=\linewidth}
\begin{subfigure}[h]{0.475\linewidth}
\includegraphics{example-image-A}%{1SAIRSI.pdf}
\end{subfigure}
\medskip
\begin{subfigure}[h]{0.475\linewidth}
\includegraphics{example-image-B}%{1SAIRSII.pdf}
\end{subfigure}
\hfill
\begin{subfigure}[h]{0.475\linewidth}
\includegraphics{example-image-C}%{1SAIRSIII.pdf}
\end{subfigure}
\caption{Plot of system (4.1)-(4.4) with $\beta_A=0.2$, $\beta_I=0.1$, $b=0.55$, $\mu=0.01$, $\nu=0.8$, $\rho=0.1$, $\xi =0.001$, $\gamma_A =0.15$, $\gamma_I=0.1$, $\sigma=0.2$, $\eta=0.7$ and $\alpha=0.01$ hence $\mathcal{R}_0 \approx 0.9265$.}
\end{figure}
\begin{figure}
\setkeys{Gin}{width=\linewidth}
\begin{subfigure}[h]{0.475\linewidth}
\includegraphics{example-image-A}%{1SAIRSI.pdf}
\end{subfigure}
\medskip
\begin{subfigure}[h]{0.475\linewidth}
\includegraphics{example-image-B}%{1SAIRSII.pdf}
\end{subfigure}
\hfill
\begin{subfigure}[h]{0.475\linewidth}
\includegraphics{example-image-C}%{1SAIRSIII.pdf}
\end{subfigure}
\caption{Plot of system (4.1)-(4.4) with $\beta_A=0.2$, $\beta_I=0.1$, $b=0.55$, $\mu=0.01$, $\nu=0.8$, $\rho=0.1$, $\xi =0.001$, $\gamma_A =0.15$, $\gamma_I=0.1$, $\sigma=0.2$, $\eta=0.7$ and $\alpha=0.01$ hence $\mathcal{R}_0 \approx 0.9265$.}
\end{figure}
\end{document}
为什么这些图占用了六页,而通过目测,我们可以在一页上放两张图?
答案1
这是每页容纳两幅图的一种方法。
注意,如果浮点数已被接受为 [htb],则在下一个数字到达时不会将其转换为 [p]。只有当两者都在页面开头的队列中时,或者 时,才会发生这种情况\clearpage
。
\documentclass[12pt, a4paper]{report}
\usepackage{verbatim, mathtools,amssymb, amsthm, mathrsfs}
\usepackage{graphicx}
\usepackage{tikz}
\usepackage{subcaption}
\begin{document}
\begin{figure}[p]
\setkeys{Gin}{width=\linewidth}
\begin{subfigure}{0.475\linewidth}
\includegraphics{example-image-a}%{1SAIRSI.pdf}
\end{subfigure}\hfill
\begin{subfigure}{0.475\linewidth}
\includegraphics{example-image-b}%{1SAIRSII.pdf}
\end{subfigure}
\medskip
\begin{subfigure}[c]{0.475\linewidth}% default is [b]
\includegraphics{example-image-c}%{1SAIRSIII.pdf}
\end{subfigure}\hfill
\begin{minipage}{0.475\linewidth}
\caption{Plot of system (4.1)-(4.4) with $\beta_A=0.2$, $\beta_I=0.1$, $b=0.55$, $\mu=0.01$, $\nu=0.8$, $\rho=0.1$, $\xi =0.001$, $\gamma_A =0.15$, $\gamma_I=0.1$, $\sigma=0.2$, $\eta=0.7$ and $\alpha=0.01$ hence $\mathcal{R}_0 \approx 0.9265$.}
\end{minipage}
\end{figure}
\begin{figure}[p]
\setkeys{Gin}{width=\linewidth}
\begin{subfigure}{0.475\linewidth}
\includegraphics{example-image-a}%{1SAIRSI.pdf}
\end{subfigure}\hfill
\begin{subfigure}{0.475\linewidth}
\includegraphics{example-image-b}%{1SAIRSII.pdf}
\end{subfigure}
\medskip
\begin{subfigure}[c]{0.475\linewidth}
\includegraphics{example-image-c}%{1SAIRSIII.pdf}
\end{subfigure}\hfill
\begin{minipage}{0.475\linewidth}
\caption{Plot of system (4.1)-(4.4) with $\beta_A=0.2$, $\beta_I=0.1$, $b=0.55$, $\mu=0.01$, $\nu=0.8$, $\rho=0.1$, $\xi =0.001$, $\gamma_A =0.15$, $\gamma_I=0.1$, $\sigma=0.2$, $\eta=0.7$ and $\alpha=0.01$ hence $\mathcal{R}_0 \approx 0.9265$.}
\end{minipage}
\end{figure}
\end{document}
只是为了好玩,这里是子图定位选项效果的演示。红线显示基线位置。
\documentclass{article}
\usepackage{subcaption}
\usepackage{xcolor}
\begin{document}
\begin{figure}
\begin{subfigure}{1in}
First Baseline\strut
default
Last Baseline\strut
\end{subfigure}\llap{\color{red}{\rule{1in}{0.5pt}}}
\begin{subfigure}[t]{1in}
First Baseline\strut
[t]
Last Baseline\strut
\end{subfigure}\llap{\color{red}{\rule{1in}{0.5pt}}}
\begin{subfigure}[c]{1in}
First Baseline\strut
[c]
Last Baseline\strut
\end{subfigure}\llap{\color{red}{\rule{1in}{0.5pt}}}
\begin{subfigure}[b]{1in}
First Baseline\strut
[b]
Last Baseline\strut
\end{subfigure}\llap{\color{red}{\rule{1in}{0.5pt}}}
\begin{subfigure}[T]{1in}
First Baseline\strut
[T]
Last Baseline\strut
\end{subfigure}\llap{\color{red}{\rule{1in}{0.5pt}}}
\begin{subfigure}[B]{1in}
First Baseline\strut
[B]
Last Baseline\strut
\end{subfigure}\llap{\color{red}{\rule{1in}{0.5pt}}}
\end{figure}
\end{document}