Compare commits

..

No commits in common. "6ef54c69396e1c4abcf0e7d20cfd946082c8e96e" and "4a19fc5a98d958f0a7adf9a2404109a2c169a92a" have entirely different histories.

4 changed files with 140 additions and 80 deletions

View File

@ -75,16 +75,6 @@
\end{page}% \end{page}%
\begin{page}% \begin{page}%
\fbox{%
\begin{inlinecell*}{\cellsize}{\cellsize}%
% XXX this is offset by 1mm for some reason...
\imagecell[fit]{}{DSC00403-2}%
\end{inlinecell*}}%
\hspace{1cm}%
\fbox{%
\begin{inlinecell*}{\cellsize}{\cellsize}%
\imagecell[fit, clearance=-1mm -2mm -3mm -4mm]{}{DSC00403-2}%
\end{inlinecell*}}%
\end{page}% \end{page}%

View File

@ -50,10 +50,6 @@
\imagecell[fill, clearance=-\coverflap]{}{DSC00403-2} \imagecell[fill, clearance=-\coverflap]{}{DSC00403-2}
\end{cliptocell} \end{cliptocell}
\end{backcover} \end{backcover}
\textblockrulecolour{white}
\textcolor{white}
\GenerateTemplate
\end{page} \end{page}
\end{document} \end{document}

View File

@ -16,48 +16,119 @@
\begin{document} % - - - - - - - - - - - - - - - - - - - - - - - - - - - \begin{document} % - - - - - - - - - - - - - - - - - - - - - - - - - - -
% the simplest way to fill... \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} \ImagePageFill{}{DSC00403-2}
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
% manual... % XXX ignores layoutmode=endpaper....
% NOTE: to fill the page the image cell needs to be placed relative to
% the page (papercell / pagecell) and not the text (page env)
\begin{page} \begin{page}
\begin{papercell} \begin{pagecell}
\imagecell[fill, clearance=-\bleed]{}{DSC00403-2} \imagecell[fill]{}{DSC00403-2}
\end{papercell} \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} \end{page}
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - % - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
% control #1 -- works fine...
\begin{page} \begin{page}
\begin{leftside} \begin{leftside}
\imagecell[fit]{}{DSC00403-2} \imagecell[fit]{}{DSC00403-2}
\end{leftside} \end{leftside}
\begin{rightside}
\imagecell[fit]{}{DSC00403-2}
\end{rightside}
\end{page}
\begin{page}
\begin{leftside*}
\imagecell[fill, right, clearance=\cliptocellclearances]{}{DSC00403-2}
\end{leftside*}
\begin{rightside*} \begin{rightside*}
\imagecell[fill, left, clearance=\cliptocellclearances]{}{DSC00403-2} \imagecell[fit, clearance=-\bleed]{}{DSC00403-2}
\end{rightside*} \end{rightside*}
\end{page} \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 \GenerateTemplate

View File

@ -93,7 +93,7 @@
%%% NOTE: \def\<module-name>@[A-Z]+ macros will be visible to both the %%% NOTE: \def\<module-name>@[A-Z]+ macros will be visible to both the
%%% code and the generated docs... %%% code and the generated docs...
\edef\photobook@FILEVERSION{v0.1.28} \edef\photobook@FILEVERSION{v0.1.26}
\edef\photobook@FILEDATE{2023-08-24} \edef\photobook@FILEDATE{2023-08-24}
@ -965,8 +965,8 @@
%%% \DescribeMacro{\clearancetop=<len>} %%% \DescribeMacro{\clearancetop=<len>}
%%% \DescribeMacro{\clearanceright=<len>} %%% \DescribeMacro{\clearanceright=<len>}
%%% \DescribeMacro{\clearancebottom=<len>} %%% \DescribeMacro{\clearancebottom=<len>}
% XXX revise... % XXX LEGACY CLEARANCE
%%% \DescribeMacro{\clearances=<len's>} %%% \DescribeMacro{\clearance=<len>}
% %
%% Cell geometry. %% Cell geometry.
%% %%
@ -987,6 +987,7 @@
\setlength\celloffsetleft{0pt} \setlength\celloffsetleft{0pt}
\newlength\celloffsettop \newlength\celloffsettop
\setlength\celloffsettop{0pt} \setlength\celloffsettop{0pt}
% XXX EXPERIMENTAL CLEARANCE
\newlength\clearanceleft \newlength\clearanceleft
\setlength\clearanceleft{0pt} \setlength\clearanceleft{0pt}
\newlength\clearancetop \newlength\clearancetop
@ -996,6 +997,9 @@
\newlength\clearancebottom \newlength\clearancebottom
\setlength\clearancebottom{0pt} \setlength\clearancebottom{0pt}
\def\clearances{0pt} \def\clearances{0pt}
% XXX LEGACY CLEARANCE
%\newlength\clearance
%\setlength\clearance{0pt}
%% \DescribeMacro{\clearfoldoutgutter=<len>} %% \DescribeMacro{\clearfoldoutgutter=<len>}
@ -1487,9 +1491,6 @@
%% %%
%% Note that this may span more than one page if there is enough stuff %% Note that this may span more than one page if there is enough stuff
%% packed in. %% packed in.
%% Also note that items within the page environment are placed in the
%% same way as in any normal page, for absolute placement use either
%% specific cells/environments like |papercell| or more generic |call|.
%% %%
\newenvironment{page}{% \newenvironment{page}{%
% XXX do we need \null here??? % XXX do we need \null here???
@ -1616,6 +1617,8 @@
%%% \DescribeMacro{\clearancetop=<len>} %%% \DescribeMacro{\clearancetop=<len>}
%%% \DescribeMacro{\clearanceright=<len>} %%% \DescribeMacro{\clearanceright=<len>}
%%% \DescribeMacro{\clearancebottom=<len>} %%% \DescribeMacro{\clearancebottom=<len>}
% XXX LEGACY CLEARANCE
%%% \DescribeMacro{\clearance=<len>}
%% %%
%% A cell defines a set of contextual lengths: %% A cell defines a set of contextual lengths:
%% %%
@ -1747,10 +1750,13 @@
\setlength\cellheight{\photobook@protect@h}% \setlength\cellheight{\photobook@protect@h}%
\setlength\celloffsettop{0pt}% \setlength\celloffsettop{0pt}%
\setlength\celloffsetleft{0pt}% \setlength\celloffsetleft{0pt}%
% XXX EXPERIMENTAL CLEARANCE
\setlength\clearanceleft{0pt}% \setlength\clearanceleft{0pt}%
\setlength\clearancetop{0pt}% \setlength\clearancetop{0pt}%
\setlength\clearanceright{0pt}% \setlength\clearanceright{0pt}%
\setlength\clearancebottom{0pt}% \setlength\clearancebottom{0pt}%
% XXX LEGACY CLEARANCE
%\setlength\clearance{0pt}%
% %
\begin{MinipageCellContent}[\photobook@minipagecell@parentvalign]{minipagecell}% \begin{MinipageCellContent}[\photobook@minipagecell@parentvalign]{minipagecell}%
}{% }{%
@ -2007,7 +2013,7 @@
%% \DescribeEnv{cliptocell} %% \DescribeEnv{cliptocell}
%% \DescribeEnv{setcliptocellbleeds} %% \DescribeEnv{cliptocellbleeds}
% %
%% Clip content to parent cell. %% Clip content to parent cell.
%% %%
@ -2040,27 +2046,24 @@
\setlength\photobook@cliptocell@right{0mm}% \setlength\photobook@cliptocell@right{0mm}%
\newlength\photobook@cliptocell@bottom \newlength\photobook@cliptocell@bottom
\setlength\photobook@cliptocell@bottom{0mm}% \setlength\photobook@cliptocell@bottom{0mm}%
\def\cliptocellbleeds{{0mm} {0mm} {0mm} {0mm}}%
\def\cliptocellclearances{{0mm} {0mm} {0mm} {0mm}}% \def\cliptocellclearances{{0mm} {0mm} {0mm} {0mm}}%
%% Set the default bleeds for |cliptocell| environments %% Set the default bleeds for |cliptocell| environments
%% %%
%% >> \setcliptocellbleeds{<size>} %% >> \cliptocellbleeds{<size>}
%% >> \setcliptocellbleeds{<horizontal> <vertical>} %% >> \cliptocellbleeds{<horizontal> <vertical>}
%% >> \setcliptocellbleeds{<left> <bottom> <right> <top>} %% >> \cliptocellbleeds{<left> <bottom> <right> <top>}
%% %%
%% This will only affect |cliptocell| environments on the same level, %% This will only affect |cliptocell| environments on the same level,
%% without affecting the nested |cliptocell|s. %% without affecting the nested |cliptocell|s.
%% %%
%%% \DescribeEnv{cliptocellbleeds=<left> <bottom> <right> <top>}
%%% \DescribeEnv{cliptocellclearances=<left> <bottom> <right> <top>} %%% \DescribeEnv{cliptocellclearances=<left> <bottom> <right> <top>}
%%% %%%
%%% Set by |\setcliptocellbleeds{..}| and contain bleeds and clearances (negative %%% Set by |\cliptocellbleeds{..}| and contains clearances (negative
%%% clipping bleeds) respectively, usable by imagecell and others. %%% clipping bleeds) usable by imagecell.
%%% %%%
%%% XXX still testing.... %%% XXX still testing....
\newcommand\setcliptocellbleeds[1]{ \newcommand\cliptocellbleeds[1]{
\setsepchar{ }% \setsepchar{ }%
\readlist*\photobook@cliptocell@bleeds{#1}% \readlist*\photobook@cliptocell@bleeds{#1}%
\setsepchar{,}% \setsepchar{,}%
@ -2097,20 +2100,16 @@
% NOTE: trailing spaces here are significant... % NOTE: trailing spaces here are significant...
% XXX should we use \the here? % XXX should we use \the here?
% ...it makes things printable... % ...it makes things printable...
\def\cliptocellbleeds{%
{\the\photobook@cliptocell@left} %
{\the\photobook@cliptocell@bottom} %
{\the\photobook@cliptocell@right} %
{\the\photobook@cliptocell@top}}%
\def\cliptocellclearances{% \def\cliptocellclearances{%
{-\the\photobook@cliptocell@left} % {-\the\photobook@cliptocell@left} %
{-\the\photobook@cliptocell@bottom} % {-\the\photobook@cliptocell@bottom} %
{-\the\photobook@cliptocell@right} % {-\the\photobook@cliptocell@right} %
{-\the\photobook@cliptocell@top}}} {-\the\photobook@cliptocell@top}}}
% XXX use \cliptocellclearances as default...
\newenvironment{cliptocell}[1][0mm]{% \newenvironment{cliptocell}[1][0mm]{%
\begingroup% \begingroup%
\setcliptocellbleeds{#1} \cliptocellbleeds{#1}
% NOTE: the spaces at the end of each line here are significant!! % NOTE: the spaces at the end of each line here are significant!!
\begin{trimbox}{{\photobook@cliptocell@left} % \begin{trimbox}{{\photobook@cliptocell@left} %
{\photobook@cliptocell@bottom} % {\photobook@cliptocell@bottom} %
@ -2121,7 +2120,7 @@
{\cellwidth + \photobook@cliptocell@right} % {\cellwidth + \photobook@cliptocell@right} %
{\height + \photobook@cliptocell@top}}% {\height + \photobook@cliptocell@top}}%
% set defaults for nested cells... % set defaults for nested cells...
\setcliptocellbleeds{0mm}% \cliptocellbleeds{0mm}%
\begin{minipage}[t][\cellheight][t]{\cellwidth}% \begin{minipage}[t][\cellheight][t]{\cellwidth}%
\ignorespaces% \ignorespaces%
}{% }{%
@ -2219,9 +2218,7 @@
%% Image |clearance|. This sets the amount of clearance around an image %% Image |clearance|. This sets the amount of clearance around an image
%% (default: |0pt|). %% (default: |0pt|).
%% %%
%% >> \imagecell[clearance=<size>]{}{<image>} %% >> \imagecell[clearance=-4mm]{}{<image>}
%% >> \imagecell[clearance=<horizontal> <vertical>]{}{<image>}
%% >> \imagecell[clearance=<left> <bottom> <top> <right>]{}{<image>}
%% %%
%% \begin{minipage}{\textwidth} %% \begin{minipage}{\textwidth}
%% \begin{verbatim} %% \begin{verbatim}
@ -2334,6 +2331,9 @@
\setlength\photobook@imagecell@clearance@right{0pt} \setlength\photobook@imagecell@clearance@right{0pt}
\newlength\photobook@imagecell@clearance@bottom \newlength\photobook@imagecell@clearance@bottom
\setlength\photobook@imagecell@clearance@bottom{0pt} \setlength\photobook@imagecell@clearance@bottom{0pt}
% XXX LEGACY
\newlength\photobook@imagecell@clearance
\setlength\photobook@imagecell@clearance{0pt}
% NOTE: these feel like a hack... % NOTE: these feel like a hack...
\newlength\photobook@imagecell@imgratio \newlength\photobook@imagecell@imgratio
@ -2348,11 +2348,13 @@
\define@boolkey{imagecell@args}{center}[true]{% \define@boolkey{imagecell@args}{center}[true]{%
\def\photobook@imagecell@top{\dimexpr \def\photobook@imagecell@top{\dimexpr
+0.5\cellheight +0.5\cellheight
% XXX EXPERIMENTAL CLEARANCE -- test...
+0.5\photobook@imagecell@clearance@top +0.5\photobook@imagecell@clearance@top
-0.5\photobook@imagecell@clearance@bottom -0.5\photobook@imagecell@clearance@bottom
-0.5\ht\photobook@imagebox \relax}% -0.5\ht\photobook@imagebox \relax}%
\def\photobook@imagecell@left{\dimexpr \def\photobook@imagecell@left{\dimexpr
+0.5\cellwidth +0.5\cellwidth
% XXX EXPERIMENTAL CLEARANCE -- test...
+0.5\photobook@imagecell@clearance@left +0.5\photobook@imagecell@clearance@left
-0.5\photobook@imagecell@clearance@right -0.5\photobook@imagecell@clearance@right
-0.5\wd\photobook@imagebox \relax}}% -0.5\wd\photobook@imagebox \relax}}%
@ -2361,6 +2363,7 @@
\newcommand\photobook@imagecell@LEFT{% \newcommand\photobook@imagecell@LEFT{%
\def\photobook@imagecell@left{\dimexpr% \def\photobook@imagecell@left{\dimexpr%
+\photobook@imagecell@clearance@left \relax}% +\photobook@imagecell@clearance@left \relax}%
%+\photobook@imagecell@clearance \relax}%
\def\photobook@imagecell@captionleft{ \def\photobook@imagecell@captionleft{
% XXX not sure why this branch is needed... % XXX not sure why this branch is needed...
\ifKV@imagecell@args@fit \ifKV@imagecell@args@fit
@ -2400,6 +2403,7 @@
\define@boolkey{imagecell@args}{top}[true]{% \define@boolkey{imagecell@args}{top}[true]{%
\def\photobook@imagecell@top{% \def\photobook@imagecell@top{%
\photobook@imagecell@clearance@top}% \photobook@imagecell@clearance@top}%
%\photobook@imagecell@clearance}%
\def\photobook@imagecell@captiontop{% \def\photobook@imagecell@captiontop{%
-\dimexpr -\dimexpr
+\cellheight +\cellheight
@ -2415,6 +2419,7 @@
\dimexpr \dimexpr
\photobook@imagecell@top \photobook@imagecell@top
+\photobook@imagecell@clearance@bottom \relax}}% +\photobook@imagecell@clearance@bottom \relax}}%
%+\photobook@imagecell@clearance \relax}}%
% clearance=<len>... % clearance=<len>...
% clearance=<horizontal> <vertical>... % clearance=<horizontal> <vertical>...
% clearance=<left> <bottom> <right> <top>... % clearance=<left> <bottom> <right> <top>...
@ -2422,7 +2427,7 @@
% XXX EXPERIMENTAL % XXX EXPERIMENTAL
% XXX this is essentially the same as \photobook@cliptocell@bleeds -- unite... % XXX this is essentially the same as \photobook@cliptocell@bleeds -- unite...
\def\photobook@imagecell@clearances{#1}% \def\photobook@imagecell@clearances{#1}%
\setsepchar{ }% \setsepchar{ }
\readlist*\photobook@imagecell@clearencelist{#1}% \readlist*\photobook@imagecell@clearencelist{#1}%
\setsepchar{,}% \setsepchar{,}%
%% args: size %% args: size
@ -2454,7 +2459,9 @@
\setlength\photobook@imagecell@clearance@right{% \setlength\photobook@imagecell@clearance@right{%
\photobook@imagecell@clearencelist[3]}% \photobook@imagecell@clearencelist[3]}%
\setlength\photobook@imagecell@clearance@top{% \setlength\photobook@imagecell@clearance@top{%
\photobook@imagecell@clearencelist[4]}\fi}% \photobook@imagecell@clearencelist[4]}\fi%
% XXX LEGACY...
\setlength\photobook@imagecell@clearance{#1}}%
% offsettop=<len> / offsetleft=<len>... % offsettop=<len> / offsetleft=<len>...
% XXX DOC!!! % XXX DOC!!!
@ -2504,10 +2511,12 @@
\cellwidth \cellwidth
- \photobook@imagecell@clearance@left - \photobook@imagecell@clearance@left
- \photobook@imagecell@clearance@right \relax, - \photobook@imagecell@clearance@right \relax,
%- ((\photobook@imagecell@clearance) * 2) \relax,
height=\photobook@imagecell@scale\dimexpr height=\photobook@imagecell@scale\dimexpr
\cellheight \cellheight
- \photobook@imagecell@clearance@top - \photobook@imagecell@clearance@top
- \photobook@imagecell@clearance@bottom \relax]{#3}}% - \photobook@imagecell@clearance@bottom \relax]{#3}}%
%- ((\photobook@imagecell@clearance) * 2) \relax]{#3}}%
% fill... % fill...
\else\ifKV@imagecell@args@fill% \else\ifKV@imagecell@args@fill%
% preload image to get its proportions... % preload image to get its proportions...
@ -2528,6 +2537,7 @@
+ \cellwidth + \cellwidth
- \photobook@imagecell@clearance@left - \photobook@imagecell@clearance@left
- \photobook@imagecell@clearance@right \relax]{#3}}% - \photobook@imagecell@clearance@right \relax]{#3}}%
%- ((\photobook@imagecell@clearance) * 2) \relax]{#3}}%
\else% \else%
\sbox{\photobook@imagebox}{% \sbox{\photobook@imagebox}{%
\includegraphics[% \includegraphics[%
@ -2536,6 +2546,7 @@
+ \cellheight + \cellheight
- \photobook@imagecell@clearance@top - \photobook@imagecell@clearance@top
- \photobook@imagecell@clearance@bottom \relax]{#3}}% - \photobook@imagecell@clearance@bottom \relax]{#3}}%
%- ((\photobook@imagecell@clearance) * 2) \relax]{#3}}%
\fi\fi\fi% \fi\fi\fi%
% %
\setlength\celloffsetleft{% \setlength\celloffsetleft{%
@ -2578,11 +2589,14 @@
\maxdim{\celloffsetleft}{0pt}}% \maxdim{\celloffsetleft}{0pt}}%
\setlength\celloffsettop{% \setlength\celloffsettop{%
\maxdim{\celloffsettop}{0pt}}% \maxdim{\celloffsettop}{0pt}}%
% XXX EXPERIMENTAL CLEARANCE
\setlength\clearanceleft{\photobook@imagecell@clearance@left} \setlength\clearanceleft{\photobook@imagecell@clearance@left}
\setlength\clearancetop{\photobook@imagecell@clearance@top} \setlength\clearancetop{\photobook@imagecell@clearance@top}
\setlength\clearanceright{\photobook@imagecell@clearance@right} \setlength\clearanceright{\photobook@imagecell@clearance@right}
\setlength\clearancebottom{\photobook@imagecell@clearance@bottom} \setlength\clearancebottom{\photobook@imagecell@clearance@bottom}
\def\clearances{\photobook@imagecell@clearences} \def\clearances{\photobook@imagecell@clearences}
% XXX LEGACY CLEARANCE
%\setlength\clearance{\photobook@imagecell@clearance}%
% clear parent... % clear parent...
% XXX might be a good idea to put this into a special reusable cell... % XXX might be a good idea to put this into a special reusable cell...
\ifphotobook@imagecell@captionclearparent% \ifphotobook@imagecell@captionclearparent%
@ -3041,12 +3055,10 @@
- \photobook@captionblockcell@spacing - \photobook@captionblockcell@spacing
- \cellwidth - \cellwidth
- \clearcaption - \clearcaption
% XXX EXPERIMENTAL CLEARANCE
% XXX this is only present in images... % XXX this is only present in images...
- \clearanceleft % XXX change this to use \clearanceleft / \clearanceright / ...
%- \clearanceright
% XXX LEGACY CLEARANCE % XXX LEGACY CLEARANCE
%- \clearance - \clearance
\relax% \relax%
\else% \else%
\photobook@captionblockcell@width\fi}% \photobook@captionblockcell@width\fi}%
@ -4067,10 +4079,8 @@
% XXX EXPERIMENTAL % XXX EXPERIMENTAL
\newenvironment{leftside*}{% \newenvironment{leftside*}{%
\begin{leftside}% \begin{leftside}%
\begin{cliptocell}[{\bleed} {\bleed} 0mm {\bleed}]% \cliptocellbleeds{{\bleed} {\bleed} 0mm {\bleed}}%
\setcliptocellbleeds{{\bleed} {\bleed} 0mm {\bleed}}%
}{% }{%
\end{cliptocell}
\end{leftside}} \end{leftside}}
\newenvironment{rightside}{% \newenvironment{rightside}{%
@ -4082,10 +4092,8 @@
% XXX EXPERIMENTAL % XXX EXPERIMENTAL
\newenvironment{rightside*}{% \newenvironment{rightside*}{%
\begin{rightside}% \begin{rightside}%
\begin{cliptocell}[0mm {\bleed} {\bleed} {\bleed}]% \cliptocellbleeds{0mm {\bleed} {\bleed} {\bleed}}%
\setcliptocellbleeds{0mm {\bleed} {\bleed} {\bleed}}%
}{% }{%
\end{cliptocell}
\end{rightside}} \end{rightside}}
@ -4864,8 +4872,7 @@
%\clearpage% %\clearpage%
\begin{page}% \begin{page}%
% NOTE: this does not account for \bindingoffset... % NOTE: this does not account for \bindingoffset...
% XXX should this be a page or a paper cell??? \begin{pagecell}%
\begin{papercell}%
\imagecell[% \imagecell[%
center, center,
clearance=-\bleed, clearance=-\bleed,
@ -4874,7 +4881,7 @@
offsetleft=\imageoffsetleft, offsetleft=\imageoffsetleft,
captionclearparent=\captionclearpage, captionclearparent=\captionclearpage,
#1]{#2}{#3}% #1]{#2}{#3}%
\end{papercell}% \end{pagecell}%
\end{page}% \end{page}%
% special case: centered vertical image -> account for \bindingoffset... % special case: centered vertical image -> account for \bindingoffset...
\else% \else%
@ -5455,10 +5462,6 @@
%% %%
%% This is a no-op for |layoutmode=block|. %% This is a no-op for |layoutmode=block|.
%% %%
%% To change text color set |\textcolor{<color>}| the usual way and for
%% line and fill colors use |\textblockrulecolour{<color>}| and
%% |\textblockcolour{<colour>}| respecitvely.
%%
% XXX should digits/rounding be configurable??? % XXX should digits/rounding be configurable???
\newcommand\photobook@TemplateCell[2][mm]{ \newcommand\photobook@TemplateCell[2][mm]{
\begin{center} \begin{center}