
하나의 큰 그림을 두 페이지로 나누고 왼쪽에서 시작하여 오른쪽으로 이어지는 공유 캡션을 추가하려고 합니다. 제가 원하는 모습을 보여주는 그림을 아래에 첨부했습니다. 이 문제에 대한 해결책이나 이 레이아웃을 달성하는 방법에 대한 몇 가지 팁이 있습니까?
내 코드의 일부가 아래에 표시됩니다.
\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}