The \twopagepicture package is definitely worth it when you have many large pictures. But perhaps I'm not getting the required results because I'm not following the advice correctly. Here are some steps I need to clarify:
- When you say "These type of figures are best to insert them manually". You meant insert in the chapter directly? Where is the
\twopagepicturecommand line then? - You adviced to "Try modifying the
\twopagepictureby copying it and renaming it". Where should I copy the file? and HOW could I rename it? The commands:
\cleartoevenpage \includegraphics[height=0.95\textheight]{petra} \newpageshould come in the chapter I'm writing? How do I combine these commands with the
\twopagepicturecommand? Is the0.95indicative of an "OK" rescaling of my picture or should I try other ratios until I reach the desired results?
Last, I used the commands as follows in my chapter:
\cleartoevenpage
\twopagepicture{b}{p}{mypicture.jpg}{very very very very very very very very very very long caption }
\label{fig:mypicture}
\pagebreak
\cleardoublepage
By trying the \cleartoevenpage before the \includegraphics and the \newpage after, I do not get me the required results. Notice that I need to omit all paper margins and that still my float goes to the end of the chapter leaving a blank paper at the required section. Here is the picture
My .sty file has the following code for the \twopagepicture:
\usepackage{caption}
\usepackage{crop}
\usepackage[strict]{changepage}
\makeatletter
\newcommand{\cleartoevenpage}{%
\clearpage%
\ifoddpage\c@page\hbox{}\clearpage\fi}
\makeatother
\setcounter{totalnumber}{1}
\setcounter{topnumber}{1}
\setcounter{bottomnumber}{1}
\renewcommand{\topfraction}{.99}
\renewcommand{\bottomfraction}{.99}
\renewcommand{\textfraction}{.01}
\makeatletter
\newcommand*{\twopagepicture}[4]{%
\checkoddpage
\ifoddpage
\expandafter\@firstofone
\else
\expandafter\afterpage
\fi
{\afterpage{%
\if #1t%
\if #2p%
\thispagestyle{empty}%
\afterpage{\thispagestyle{empty}}%
\fi
\fi
\begin{figure}[#1]
\if #2p%
\if #1t%
\vspace*{-\dimexpr1in+\voffset+\topmargin+\headheight+\headsep\relax}%
\fi
\fi
\if #1b%
\caption{#4}%
\fi
\makebox[\textwidth][l]{%
\if #2p\relax
\let\mywidth\paperwidth
\hskip-\dimexpr1in+\hoffset+\evensidemargin\relax
\else
\let\mywidth\linewidth
\fi
\adjustbox{trim=0 0 {\mywidth} 0,clip}{\includegraphics[width=2\mywidth]{#3}}}%
\if #1b\else
\caption{#4}%
\fi
\if #2p%
\if #1b%
\vspace*{-\dimexpr\paperheight-\textheight-1in-\voffset-\topmargin-\headheight-\headsep\relax}%
\fi
\fi
\end{figure}%
\begin{figure}[#1]
\if #2p%
\if #1t%
\vspace*{-\dimexpr1in+\voffset+\topmargin+\headheight+\headsep\relax}%
\fi
\fi
\makebox[\textwidth][l]{%
\if #2p%
\let\mywidth\paperwidth
\hskip-\dimexpr1in+\hoffset+\oddsidemargin\relax
\else
\let\mywidth\linewidth
\fi
\adjustbox{trim={\mywidth} 0 0 0,clip}{\includegraphics[width=2\mywidth]{#3}}}%
\if #2p%
\if #1b%
\vspace*{-\dimexpr\paperheight-\textheight-1in-\voffset-\topmargin-\headheight-\headsep\relax}%
\fi
\fi
\end{figure}%
}}%
}
working under \documentclass[a4paper,12pt,twoside]{StyleThese}.
Finally, how can I manage a caption that spans above the two pages? If this is not possible, how to produce on the second page a white caption so that the tow parts of the picture level up together?

