
我試圖將一個大圖分成兩頁,並添加一個從左側開始並在右側繼續的共享標題。我在下面附上了一張圖,說明了我想要的樣子。你們中的一些人有解決這個問題的方法嗎,或者有一些關於如何實現這種佈局的技巧嗎?
我的程式碼片段如下所示
\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}