Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2021-08-30 19:00:40 +03:00
parent c7333e4a4b
commit 9f2697234c

View File

@ -2025,8 +2025,11 @@
% XXX revise name... % XXX revise name...
\NewEnviron{spreadtopages*}[2][2]{% \NewEnviron{spreadtopages*}[2][2]{%
\newcounter{spreadtopages#2page} % setup page count...
\@ifundefined{thespreadtopages#2page}{%
\newcounter{spreadtopages#2page}}{}
\setcounter{spreadtopages#2page}{1} \setcounter{spreadtopages#2page}{1}
%
\begingroup% \begingroup%
% create the actual cell... % create the actual cell...
\setlength\cellparentwidth{\cellwidth}% \setlength\cellparentwidth{\cellwidth}%
@ -2064,8 +2067,6 @@
\setlength\cellheight{\pageblockheight}% \setlength\cellheight{\pageblockheight}%
% %
\savecell{photobook@spreadtopages}{\cellwidth}{\cellheight}{\BODY}% \savecell{photobook@spreadtopages}{\cellwidth}{\cellheight}{\BODY}%
%
% generate pages...
\foreach \photobook@spreadtopages@page in {1, ..., #1}{% \foreach \photobook@spreadtopages@page in {1, ..., #1}{%
\usespreadpage[\photobook@spreadtopages@page]{photobook@spreadtopages}}% \usespreadpage[\photobook@spreadtopages@page]{photobook@spreadtopages}}%
\endgroup% \endgroup%