将图表连续地放在第一页,从第一次引用第一幅图表开始

将图表连续地放在第一页,从第一次引用第一幅图表开始

我有一系列 8 个图,大约每页 2 个。我希望它们从第一页的第一个引用开始连续放置。我不想使用clearpage。文本应从这些图之前的页面底部延续到最后一个图之后的页面顶部。有办法实现这一点吗?

我不想使用该flafter包,因为我得到了一些非常奇怪的结果,例如,文本从某些页面的底部流出。

我添加了一个似乎有效的 MWE,但我不知道它是否足以确保图形的连续性。在实际情况中,图形引用之间的文本量会有很大差异。

\documentclass{article}
\usepackage{adjustbox}
\usepackage{lipsum}

\begin{document}

\section{This is Section 1}

Here I refere to Figure \ref{Dummy1}.
There could be a lot or a little bit of text here.
Even multiple paragraphs.

\begin{figure}[t]
    \centering
    \adjustbox{margin=1em,width=\textwidth,set height=4cm,
               set depth=4cm,frame,center}{Dummy1}
    \caption{Dummy1.\label{Dummy1}}
\end{figure}
\begin{figure}
    \centering
    \adjustbox{margin=1em,width=\textwidth,set height=4cm,
               set depth=4cm,frame,center}{Dummy2}
    \caption{Dummy2.\label{Dummy2}}
\end{figure}
\begin{figure}[t]
    \centering
    \adjustbox{margin=1em,width=\textwidth,set height=4cm,
               set depth=4cm,frame,center}{Dummy3}
    \caption{Dummy3.\label{Dummy3}}
\end{figure}
\begin{figure}
    \centering
    \adjustbox{margin=1em,width=\textwidth,set height=4cm,
               set depth=4cm,frame,center}{Dummy4}
    \caption{Dummy4.\label{Dummy4}}
\end{figure}
\begin{figure}[t]
    \centering
    \adjustbox{margin=1em,width=\textwidth,set height=4cm,
               set depth=4cm,frame,center}{Dummy5}
    \caption{Dummy5.\label{Dummy5}}
\end{figure}
\begin{figure}
    \centering
    \adjustbox{margin=1em,width=\textwidth,set height=4cm,
               set depth=4cm,frame,center}{Dummy6}
    \caption{Dummy6.\label{Dummy6}}
\end{figure}
\begin{figure}[t]
    \centering
    \adjustbox{margin=1em,width=\textwidth,set height=4cm,
               set depth=4cm,frame,center}{Dummy7}
    \caption{Dummy7.\label{Dummy7}}
\end{figure}
\begin{figure}
    \centering
    \adjustbox{margin=1em,width=\textwidth,set height=4cm,
               set depth=4cm,frame,center}{Dummy8}
    \caption{Dummy8}.\label{Dummy8}
\end{figure}

Here I refere to Figure \ref{Dummy2}.
There could be a lot or a little bit of text here.
Even multiple paragraphs.

Here I refere to Figure \ref{Dummy3}.
There could be a lot or a little bit of text here.
Even multiple paragraphs.

Here I refere to Figure \ref{Dummy4}.
There could be a lot or a little bit of text here.
Even multiple paragraphs.

Here I refere to Figure \ref{Dummy5}.
There could be a lot or a little bit of text here.
Even multiple paragraphs.

Here I refere to Figure \ref{Dummy6}.
There could be a lot or a little bit of text here.
Even multiple paragraphs.

Here I refere to Figure \ref{Dummy7}.
There could be a lot or a little bit of text here.
Even multiple paragraphs.

Here I refere to Figure \ref{Dummy8}.

\lipsum

\section{This is Section 2}

\lipsum

\end{document}

答案1

我建议您使用p(“page”)定位说明符,并且adjustbox每个环境包含两个 [2] 环境figure。简而言之,如下所示:

\begin{figure}[p]
    \centering
    \adjustbox{margin=1em,width=\textwidth,set height=4cm,
               set depth=4cm,frame,center}{Dummy1}
    \caption{Dummy1.\label{Dummy1}}

\vspace{1.5cm}
    \adjustbox{margin=1em,width=\textwidth,set height=4cm,
               set depth=4cm,frame,center}{Dummy2}
    \caption{Dummy2.\label{Dummy2}}
\end{figure}

\begin{figure}[p]
    \centering
    \adjustbox{margin=1em,width=\textwidth,set height=4cm,
               set depth=4cm,frame,center}{Dummy3}
    \caption{Dummy3.\label{Dummy3}}

\vspace{1.5cm}
    \adjustbox{margin=1em,width=\textwidth,set height=4cm,
               set depth=4cm,frame,center}{Dummy4}
    \caption{Dummy4.\label{Dummy4}}
\end{figure}

\begin{figure}[p]
    \centering
    \adjustbox{margin=1em,width=\textwidth,set height=4cm,
               set depth=4cm,frame,center}{Dummy5}
    \caption{Dummy5.\label{Dummy5}}

\vspace{1.5cm}
    \adjustbox{margin=1em,width=\textwidth,set height=4cm,
               set depth=4cm,frame,center}{Dummy6}
    \caption{Dummy6.\label{Dummy6}}
\end{figure}

\begin{figure}[p]
    \centering
    \adjustbox{margin=1em,width=\textwidth,set height=4cm,
               set depth=4cm,frame,center}{Dummy7}
    \caption{Dummy7.\label{Dummy7}}

\vspace{1.5cm}
    \adjustbox{margin=1em,width=\textwidth,set height=4cm,
               set depth=4cm,frame,center}{Dummy8}
    \caption{Dummy8}.\label{Dummy8}
\end{figure}

相关内容