我的兩個圖形之間有大約半頁的空間:我希望它們更靠近。這是一個 MWE:
\documentclass[notitlepage]{report}
\usepackage[left=1in, right=1in, top=1in, bottom=1in]{geometry}
\usepackage{enumitem}
\usepackage{titling}
\usepackage{lipsum}
\usepackage[backend=biber]{biblatex}
\usepackage{graphicx}
\usepackage{placeins}
\usepackage{subcaption}
\begin{document}
\begin{figure}
\centering
\begin{subfigure}{0.5\textwidth}
\centering
\includegraphics[height=2.0in]{linear.png}
\caption{$\delta_{1}$ and $\delta_{2}$ $= 0.3$}
\end{subfigure}%
~
\begin{subfigure}{0.5\textwidth}
\centering
\includegraphics[height=2.0in]{exponential.png}
\caption{$\delta_{1}$ and $\delta_{2}$ $= 0.81$}
\end{subfigure}
\caption{Small $x[0]$}
\addtolength{\textfloatsep}{-0.2in}
\end{figure}
\FloatBarrier
This behavior could be due to $y'[t]$ decreasing in value quickly with large $y[0], \delta_{1}$, and $\delta_{2}$ and $x'[t]$ then increasing in value as the $-\delta_{2}y$ decreases in absolute value while the denominator, $1-\delta_{1}$ is small, causing $x[t]$ to increase faster.
For $x_[0] = .45$, we see similar behavior as we adjust our deltas, but $x[t]$ is monotone decreasing.
\begin{figure}
\centering
\begin{subfigure}{0.5\textwidth}
\centering
\includegraphics[height=2.0in]{LowD.png}
\caption{$\delta_{1}$ and $\delta_{2}$ $= 0.3$}
\end{subfigure}%
~
\begin{subfigure}{0.5\textwidth}
\centering
\includegraphics[height=2.0in]{HigherD.png}
\caption{$\delta_{1}$ and $\delta_{2}$ $= 0.81$}
\setlength{\belowcaptionskip}{-10pt}
\end{subfigure}
\caption{Large $x[0]$}
\end{figure}
\FloatBarrier
\end{document}
如何節省頁面中間的空間?
答案1
如果新增 - 選項,您可以強制第二個數字靠近文字!htbp
。
\documentclass[notitlepage]{report}
\usepackage[left=1in, right=1in, top=1in, bottom=1in]{geometry}
\usepackage{enumitem}
\usepackage{titling}
\usepackage{lipsum}
\usepackage[backend=biber]{biblatex}
\usepackage{graphicx}
\usepackage{placeins}
\usepackage{subcaption}
\usepackage{setspace}
\renewcommand{\topfraction}{0.45}
\begin{document}
\begin{figure}
\begin{subfigure}{0.5\textwidth}
\centering
\includegraphics[height=2.0in]{1}
\caption{$\delta_{1}$ and $\delta_{2}$ $= 0.3$}
\end{subfigure}%
~
\begin{subfigure}{0.5\textwidth}
\centering
\includegraphics[height=2.0in]{1}
\caption{$\delta_{1}$ and $\delta_{2}$ $= 0.81$}
\end{subfigure}
\caption{Small $x[0]$}
\addtolength{\textfloatsep}{-0.2in}
\end{figure}
\FloatBarrier
This behavior could be due to $y'[t]$ decreasing in value quickly with large $y[0], \delta_{1}$, and $\delta_{2}$ and $x'[t]$ then increasing in value as the $-\delta_{2}y$ decreases in absolute value while the denominator, $1-\delta_{1}$ is small, causing $x[t]$ to increase faster.
For $x_[0] = .45$, we see similar behavior as we adjust our deltas, but $x[t]$ is monotone decreasing.
\begin{figure}[!htbp]
\centering
\begin{subfigure}{0.5\textwidth}
\centering
\includegraphics[height=2.0in]{1}
\caption{$\delta_{1}$ and $\delta_{2}$ $= 0.3$}
\end{subfigure}%
~
\begin{subfigure}{0.5\textwidth}
\centering
\includegraphics[height=2.0in]{1}
\caption{$\delta_{1}$ and $\delta_{2}$ $= 0.81$}
\setlength{\belowcaptionskip}{-10pt}
\end{subfigure}
\caption{Large $x[0]$}
\end{figure}
\FloatBarrier
\end{document}
答案2
- 你不需要使用
\FloatBarrier
- 浮動
figure
添加選項以放置其位置[ht]
(也建議@Jan他的回答) - 例如減少
subcption
from到 的寬度0.5
0.4
- 對於子圖之間的空間使用
\hfil
\setlength{\belowcaptionskip}{-10pt}
從figure
文件序言中刪除或移動它
\documentclass[notitlepage, demo]{report}% in real document delete option demo
\usepackage[margin=1in]{geometry}
\usepackage{enumitem}
\usepackage{titling}
\usepackage{lipsum}
\usepackage[backend=biber]{biblatex}
\usepackage{graphicx}
\usepackage{placeins}
\usepackage{subcaption}
\begin{document}
\begin{figure}[ht]
\centering
\begin{subfigure}{0.4\textwidth}
\centering
\includegraphics[height=2.0in]{linear.png}
\caption{$\delta_{1}$ and $\delta_{2}$ $= 0.3$}
\end{subfigure}%
\hfil
\begin{subfigure}{0.4\textwidth}
\centering
\includegraphics[height=2.0in]{exponential.png}
\caption{$\delta_{1}$ and $\delta_{2}$ $= 0.81$}
\end{subfigure}
\caption{Small $x[0]$}
\end{figure}
%\FloatBarrier
This behavior could be due to $y'[t]$ decreasing in value quickly with large $y[0], \delta_{1}$, and $\delta_{2}$ and $x'[t]$ then increasing in value as the $-\delta_{2}y$ decreases in absolute value while the denominator, $1-\delta_{1}$ is small, causing $x[t]$ to increase faster.
For $x_[0] = .45$, we see similar behavior as we adjust our deltas, but $x[t]$ is monotone decreasing.
\begin{figure}[ht]
\centering
\begin{subfigure}{0.4\textwidth}
\centering
\includegraphics[height=2.0in]{LowD.png}
\caption{$\delta_{1}$ and $\delta_{2}$ $= 0.3$}
\end{subfigure}
\hfil
\begin{subfigure}{0.4\textwidth}
\centering
\includegraphics[height=2.0in]{HigherD.png}
\caption{$\delta_{1}$ and $\delta_{2}$ $= 0.81$}
\end{subfigure}
\caption{Large $x[0]$}
\end{figure}
%\FloatBarrier
\end{document}