From e6a8b50a638ee72fb71b75e1d24410ca5ae59095 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Thu, 4 May 2023 18:53:19 +0300 Subject: [PATCH] experimenting with cells... Signed-off-by: Alex A. Naanou --- examples/endpaper-template.tex | 27 +++++++++++++++++++++++++++ examples/endpaper.tex | 25 +++++++++++++++++-------- photobook.cls | 18 ++++++++++++++++++ 3 files changed, 62 insertions(+), 8 deletions(-) create mode 100644 examples/endpaper-template.tex diff --git a/examples/endpaper-template.tex b/examples/endpaper-template.tex new file mode 100644 index 0000000..d64641a --- /dev/null +++ b/examples/endpaper-template.tex @@ -0,0 +1,27 @@ +%---------------------------------------------------------------------- + +\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} + +\GenerateTemplate + +\end{document} + + +%---------------------------------------------------------------------- +% vim:set ts=4 sw=4 : diff --git a/examples/endpaper.tex b/examples/endpaper.tex index d64641a..6108e56 100644 --- a/examples/endpaper.tex +++ b/examples/endpaper.tex @@ -14,14 +14,23 @@ ]{photobook} -% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\begin{document} - -\GenerateTemplate - -\end{document} +\begin{document} % - - - - - - - - - - - - - - - - - - - - - - - - - - - -%---------------------------------------------------------------------- +% XXX BUG: there is an offset (\bleed sized???) on the left... +\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{document} %------------------------------------------------------- % vim:set ts=4 sw=4 : diff --git a/photobook.cls b/photobook.cls index 0e760f8..189b97e 100644 --- a/photobook.cls +++ b/photobook.cls @@ -40,6 +40,7 @@ % % XXX ASAP should cover/jacket/endpaper/spread cells set default cliptocell % bleeds??? +% ...needs testing and experimenting... % XXX ASAP should cover/jacket/endpaper/spread templates/cells account % for \bindingoffset (likely no) and/or \gutteroffset ??? % ...especially relevant to endpaper/spread... @@ -3913,7 +3914,9 @@ %%%%% Endpaper cells % %% \DescribeEnv{leftside} +%%% \DescribeEnv{leftside*} %% \DescribeEnv{rightside} +%%% \DescribeEnv{rightside*} % %% \begin{minipage}{\textwidth} %% \begin{verbatim} @@ -3929,6 +3932,8 @@ %% \end{verbatim} %% \end{minipage} %% +%%% The star versions set the appropriate bleeds for cliptocell. +%%% % XXX for some reason naming these anything starting with endpaper will % make LaTeX complain that that is already defined... @@ -3937,6 +3942,12 @@ \begin{pagecell}% }{% \end{pagecell}} +% XXX EXPERIMENTAL +\newenvironment{leftside*}{% + \begin{leftside}% + \cliptocellbleeds{{\bleed} {\bleed} 0mm {\bleed}}% +}{% + \end{leftside}} \newenvironment{rightside}{% \begin{cell*}% @@ -3944,6 +3955,13 @@ {\pageblockwidth}{\pageblockheight}% }{% \end{cell*}} +% XXX EXPERIMENTAL +\newenvironment{rightside*}{% + \begin{rightside}% + \cliptocellbleeds{0mm {\bleed} {\bleed} {\bleed}}% +}{% + \end{rightside}} + % - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -