我正在尝试将一个大图分成两页,并添加一个从左侧开始并延续到右侧的共享标题。我在下面附上了一个图,说明了我想要的外观。你们中有人有解决这个问题的方法吗?或者有关于如何实现这种布局的一些提示吗?
我的代码片段显示如下
\documentclass[12pt,b5paper]{article}
\usepackage{lipsum}
\usepackage{afterpage}
\usepackage{graphicx}
\begin{document}
\section{Headline}
\lipsum[2-8]
\afterpage{%
\clearpage% flush all other floats
\ifodd\value{page}
%\else% uncomment this else to get odd/even instead of even/odd
\expandafter\afterpage% put it on the next page if this one is odd
\fi
{%
\begin{figure}[p]
\centering
\includegraphics[width=\textwidth,height=0.9\textheight]{example-image-a}
\caption{This caption should break apart and continue under the figure on the next page.
\\ \\ \lipsum[5]}
\label{fig:example-image-a}
\end{figure}
\clearpage
\begin{figure}[p]
\centering
\includegraphics[width=\textwidth,height=0.9\textheight]{example-image-b}
\label{fig:example-image-b}
\end{figure}
\clearpage
}%
}
\lipsum[2-7]
\end{document}
答案1
欢迎来到 TeX StackExchange。请始终在您的问题中包含问题的 MWE,以及我们应该知道的所有代码,以了解您堆叠的位置,但只包含与问题相关的代码,以及使其可“按原样”重现的最小文档结构,仅此 MWE 是一种可能的解决方案:
\documentclass[twoside]{article}
\usepackage{lipsum} %just for make dummy text
\usepackage{dpfloat,graphicx} % needed for the solution
\begin{document}
\lipsum[1-10] % Dummy text
\begin{figure}[p]% will be the left-side figure
\begin{leftfullpage}
\includegraphics[width=\linewidth, trim=0pt 0pt 5.5cm 0pt,clip]{example-image}
\caption{\lipsum[1][1]\ldots}
\end{leftfullpage}
\end{figure}
\begin{figure}[p]% will be the right-side figure
\begin{fullpage}
\includegraphics[width=\linewidth, trim=5.5cm 0pt 0pt 0pt,clip]{example-image}
\vspace{\abovecaptionskip}\ldots\lipsum[1][3]
\end{fullpage}
\end{figure}
\lipsum[11-40] % Dummy text
\end{document}