From 14aaeb8db6ad8b3a3945e884721ca9f3d724cdff Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Thu, 12 Aug 2021 17:00:23 +0300 Subject: [PATCH] added pagecell env... Signed-off-by: Alex A. Naanou --- photobook.cls | 34 +++++++++++++++++++++++++++++----- 1 file changed, 29 insertions(+), 5 deletions(-) diff --git a/photobook.cls b/photobook.cls index f4f2c6e..6409393 100644 --- a/photobook.cls +++ b/photobook.cls @@ -44,10 +44,10 @@ %% \maketitle %% %% \fbox{\bf% -%% Note: all older templates/commnads/macros will get reworked soon!} +%% Note: all older templates/commnads/macros will get reworked soon! } %% %%%% Usage -%% +% %% >> \documentclass[]{photobook} %% % @@ -1005,6 +1005,31 @@ \end{textblock*} } +% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + +%% \DescribeEnv{pagecell} +% +%% \begin{minipage}{\textwidth} +%% \begin{verbatim} +%% +%% +---------------+ +%% | | +%% | | +%% | pagecell | +%% | | +%% | | +%% +---------------+ +%% +%% \end{verbatim} +%% \end{minipage} +%% +% XXX +\newenvironment{pagecell}{% + \begin{cell}{\bleed, \bleed}{\pageblockwidth}{\pageblockheight}% +}{% + \end{cell} } + + % - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - %%%%% Endpaper cells % @@ -1031,9 +1056,9 @@ \NewEnviron{leftside}{% \ifendpaperlayout% - \begin{cell}{\bleed, \bleed}{\pageblockwidth}{\pageblockheight}% + \begin{pagecell}% \BODY% - \end{cell} \fi } + \end{pagecell} \fi } \NewEnviron{rightside}{% \ifendpaperlayout% @@ -1184,7 +1209,6 @@ % - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - %%%%% Cell helper macros - % XXX should digits/rounding be configurable??? \newcommand\photobook@TemplateCell[2][mm]{ % XXX this seems to be bigger than the size given...