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

\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} % - - - - - - - - - - - - - - - - - - - - - - - - - - -

\begin{page}
	cliptocellclearances=\cliptocellclearances

	\cliptocellbleeds{5pt}

	cliptocellclearances=\cliptocellclearances

	\cliptocellbleeds{1pt 2pt}

	cliptocellclearances=\cliptocellclearances

	\cliptocellbleeds{1pt 2pt 3pt 4pt}

	cliptocellclearances=\cliptocellclearances
\end{page}


% 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}



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


\begin{page}
\begin{leftside}
	\imagecell[fit]{}{DSC00403-2}
\end{leftside}
\begin{rightside*}
	\imagecell[fit, clearance=-\bleed]{}{DSC00403-2}
\end{rightside*}
\end{page}



\begin{page}
\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}
\begin{leftside*}
	\begin{cliptocell}
		% XXX this breaks things....
		%\imagecell[fit, clearance={-\bleed} {-\bleed} 0mm {-\bleed}]{}{DSC00403-2}
		\imagecell[fit, clearance=-\bleed]{}{DSC00403-2}
	\end{cliptocell}
\end{leftside*}
\begin{rightside*}
	\begin{cliptocell}
		% XXX for some reason this is undefined here...
		%\cliptocellclearances
		% XXX \cliptocellclearances does not work yet... 
		%\imagecell[fit, clearance=\cliptocellclearances]{}{DSC00403-2}
		% XXX this does not seem to be forking correctly...
		%		...looks like we are not accounting for clearance in offset...
		\imagecell[fit, clearance={0pt} {-\bleed} {-\bleed} {-\bleed}]{}{DSC00403-2}
	\end{cliptocell}
\end{rightside*}
\end{page}



\begin{page}
\begin{leftside}
	\begin{cliptocell}
		\imagecell[fill]{}{DSC00403-2}
	\end{cliptocell}
\end{leftside}
\begin{rightside*}
	\begin{cliptocell}
		% XXX \cliptocellclearances does not work yet... 
		%\imagecell[fill, clearance=\cliptocellclearances]{}{DSC00403-2}
		% XXX this does not seem to be forking correctly...
		%		...looks like we are not accounting for clearance in offset...
		\imagecell[fill, clearance={0pt} {-\bleed} {-\bleed} {-\bleed}]{}{DSC00403-2}
	\end{cliptocell}
\end{rightside*}
\end{page}





\GenerateTemplate
\GenerateTemplate


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