减少图形之间的空间

减少图形之间的空间

我的两张图之间大约有半页的空间:我希望它们靠得更近一些。这是 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

如果添加 -option,您可以强制第二个图形靠近文本!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所建议的他的回答
  • 减少宽度subcption0.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}

相关内容