%----------------------------------------------------------------------

\documentclass[
	layoutmode=endpaper,
	% page size...
	blockwidth=240mm, blockheight=220mm,
	bleed=4mm,
	%bindingoffset=5mm,
	% image block configuration...
	imageblockwidth=0.98, imageblockheight=0.98,
	imageblockoffsettop=-0.1,
	% misc...
	9pt,final,openany
]{photobook}


\begin{document} % - - - - - - - - - - - - - - - - - - - - - - - - - - -

% XXX ignores layoutmode=endpaper....
\ImagePageFill{}{DSC00403-2}



% XXX ignores layoutmode=endpaper....
\begin{page}
\begin{pagecell}
    \imagecell[fill]{}{DSC00403-2}
\end{pagecell}
\end{page}



% XXX for some reason this is not centered correctly but scaling seems
%       correct...
\begin{page}
    \imagecell[fill]{}{DSC00403-2}
\end{page}



% XXX there is an offset (\bleed sized???) on the left...
\begin{page}
% XXX leftside: width seems to be off by one bleed....
\begin{leftside}
    \imagecell[fit]{}{DSC00403-2}
\end{leftside}
\begin{rightside}
    \imagecell[fit]{}{DSC00403-2}
\end{rightside}
\end{page}



\begin{page}
% XXX leftside: width seems to be off by one bleed....
\begin{leftside}
    \begin{cliptocell}
        \imagecell[fit]{}{DSC00403-2}
    \end{cliptocell}
\end{leftside}
\begin{rightside}
    \begin{cliptocell}
        \imagecell[fit]{}{DSC00403-2}
    \end{cliptocell}
\end{rightside}
\end{page}



\begin{page}
% XXX leftside: width seems to be off by one bleed....
\begin{leftside}
    \begin{cliptocell}
        \imagecell[fill]{}{DSC00403-2}
    \end{cliptocell}
\end{leftside}
\begin{rightside}
    \begin{cliptocell}
        \imagecell[fill]{}{DSC00403-2}
    \end{cliptocell}
\end{rightside}
\end{page}





% XXX the left side's width seems to be off by one \bleed + it is offset
%       by a bleed depending on page being even/odd...
%       ...is this a binding offset issue???
\GenerateTemplate
\GenerateTemplate


\end{document} %-------------------------------------------------------
%                                                  vim:set ts=4 sw=4 :
