From c8645478f56192bb4ea7a684bb3ad82900f4a218 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Wed, 26 Apr 2023 16:53:34 +0300 Subject: [PATCH 1/4] ... Signed-off-by: Alex A. Naanou --- photobook.cls | 1 + 1 file changed, 1 insertion(+) diff --git a/photobook.cls b/photobook.cls index 64bebe3..03c5ca7 100644 --- a/photobook.cls +++ b/photobook.cls @@ -2006,6 +2006,7 @@ % XXX EXPERIMENTAL % XXX should this set the setsepchar back to default??? % XXX should this be public??? +% ...mainly due to setsepchar... \newcommand\cliptocellbleeds[1]{ \setsepchar{ }% \readlist*\photobook@cliptocell@bleeds{#1}% From 3a4a0b6fd5d8526e2766323ae8ec6a6f94a83736 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Thu, 27 Apr 2023 00:37:37 +0300 Subject: [PATCH 2/4] cleanup + docs... Signed-off-by: Alex A. Naanou --- photobook.cls | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/photobook.cls b/photobook.cls index 03c5ca7..320ebae 100644 --- a/photobook.cls +++ b/photobook.cls @@ -1970,6 +1970,7 @@ %% \DescribeEnv{cliptocell} +%%% \DescribeEnv{cliptocellbleeds} % %% Clip content to parent cell. %% @@ -2003,13 +2004,22 @@ \newlength\photobook@cliptocell@bottom \setlength\photobook@cliptocell@bottom{0mm}% -% XXX EXPERIMENTAL +%% Set the default bleeds for |cliptocell| environments +%% +%% >> \cliptocellbleeds{} +%% >> \cliptocellbleeds{ } +%% >> \cliptocellbleeds{ } +%% +%% This will only affect |cliptocell| environments on the same level, +%% without affecting the nested |cliptocell|s. +%% % XXX should this set the setsepchar back to default??? % XXX should this be public??? % ...mainly due to setsepchar... \newcommand\cliptocellbleeds[1]{ \setsepchar{ }% \readlist*\photobook@cliptocell@bleeds{#1}% + \setsepchar{,}% % args: size \ifnum \photobook@cliptocell@bleedslen = 1% \setlength\photobook@cliptocell@left{% @@ -2054,10 +2064,7 @@ {\cellwidth + \photobook@cliptocell@right} % {\height + \photobook@cliptocell@top}}% % set defaults for nested cells... - \setlength\photobook@cliptocell@left{0mm}% - \setlength\photobook@cliptocell@top{0mm}% - \setlength\photobook@cliptocell@right{0mm}% - \setlength\photobook@cliptocell@bottom{0mm}% + \cliptocellbleeds{0mm}% \begin{minipage}[t][\cellheight][t]{\cellwidth}% \ignorespaces% }{% @@ -3563,6 +3570,7 @@ \begingroup% \setsepchar{ }% \readlist*\photobook@foldout@args{#1}% + \setsepchar{,}% % % defaults... \setcounter{photobook@foldoutpanel}{1} @@ -3701,6 +3709,7 @@ % parse args... \setsepchar{-}% \readlist*\photobook@foldoutcell@panels{#1}% + \setsepchar{,}% % % auto advance panel... \ifnum \photobook@foldoutcell@panels[1] = 0% From 79546e3407e6bfe416a92c5cfd7256d8d999496f Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Thu, 27 Apr 2023 01:24:24 +0300 Subject: [PATCH 3/4] added \cliptocellbleeds{..} to set default clipping bleeds for cliptocell env + updated how fold marks are set on jackets Signed-off-by: Alex A. Naanou --- examples/cover.tex | 8 ++++++-- examples/jacket.tex | 12 ++++++------ photobook.cls | 24 +++++++++++++++--------- 3 files changed, 27 insertions(+), 17 deletions(-) diff --git a/examples/cover.tex b/examples/cover.tex index fe3e8ff..a6f5226 100644 --- a/examples/cover.tex +++ b/examples/cover.tex @@ -23,7 +23,11 @@ \begin{page} \begin{frontcover} - \begin{cliptocell}[0mm \coverflap] + % NOTE: in the real world there is no need to extend the bleeds + % all the way to the end of the flaps, they need to go + % only 2-4 millimeters under the endpaper to account for + % cut and alignment errors... + \begin{cliptocell}[0mm {\coverflap} {\coverflap} {\coverflap}] \imagecell[fill, clearance=-\coverflap]{}{DSC00403-2} % title... \begin{zinlinecell} @@ -42,7 +46,7 @@ \end{cliptocell} \end{spine} \begin{backcover} - \begin{cliptocell}[0mm \coverflap] + \begin{cliptocell}[{\coverflap} {\coverflap} 0mm {\coverflap}] \imagecell[fill, clearance=-\coverflap]{}{DSC00403-2} \end{cliptocell} \end{backcover} diff --git a/examples/jacket.tex b/examples/jacket.tex index c5202d3..ee3a240 100644 --- a/examples/jacket.tex +++ b/examples/jacket.tex @@ -24,18 +24,18 @@ \begin{page} \begin{frontcover} - \begin{cliptocell} - \imagecell[fill]{}{DSC00403-2} + \begin{cliptocell}[0mm \bleed] + \imagecell[fill, clearance=-\bleed]{}{DSC00403-2} \end{cliptocell} \end{frontcover} \begin{backcover} - \begin{cliptocell} - \imagecell[fill]{}{DSC00403-2} + \begin{cliptocell}[0mm \bleed] + \imagecell[fill, clearance=-\bleed]{}{DSC00403-2} \end{cliptocell} \end{backcover} \begin{spine} - \begin{cliptocell} - \imagecell[fill]{}{DSC00403-2} + \begin{cliptocell}[0mm \bleed] + \imagecell[fill, clearance=-\bleed]{}{DSC00403-2} \end{cliptocell} \end{spine} \begin{frontflap} diff --git a/photobook.cls b/photobook.cls index 320ebae..a0188d7 100644 --- a/photobook.cls +++ b/photobook.cls @@ -85,7 +85,7 @@ %%% NOTE: \def\@[A-Z]+ macros will be visible to both the %%% code and the generated docs... -\edef\photobook@FILEVERSION{v0.1.20} +\edef\photobook@FILEVERSION{v0.1.21} \edef\photobook@FILEDATE{2023-04-22} @@ -383,9 +383,10 @@ %% %% blockwidth blockwidth %% <---------------> <---------------> -%% <-> coverboardgrow <-> coverboardgrow -%% <-> coverflap . <-> coverflap -%% . . . . . . +%% <-> coverboardgrow. . <-> coverboardgrow +%% <-> coverflap . . . <-> coverflap +%% . . . . . . . . +%% .xx . xx xx . xx. ] fold marks %% +-------------------++---++-------------------+ --- %% | + - - - - - - - - ++ - ++ - - - - - - - - + | --^ coverflap %% | . + - - - - - - - ++ - ++ - - - - - - - + . | --^ coverboardgrow @@ -397,6 +398,7 @@ %% | . + - - - - - - - ++ - ++ - - - - - - - + . | --v coverboardgrow %% | + - - - - - - - - ++ - ++ - - - - - - - - + | --v coverflap %% +-------------------++---++-------------------+ --- +%% xx xx xx xx ] fold marks %% . . %% ^. .^ spinefold %% . . @@ -422,8 +424,9 @@ %% . . . . %% . . blockwidth blockwidth . . %% . . <---------------> <---------------> . . -%% . .<-> coverboardgrow <-> coverboardgrow -%% . . . . . . +%% . .<-> coverboardgrow. . <-> coverboardgrow +%% . . . . . . . . +%% . xx . .x x. . xx . ] fold marks %% +---++-----------------++---++-----------------++---+ --- %% | .. + - - - - - - - ++ - ++ - - - - - - - + .. | --^ coverboardgrow %% | .. . .. .. . .. | ^ @@ -433,6 +436,7 @@ %% | .. . .. .. . .. | v %% | .. + - - - - - - - ++ - ++ - - - - - - - + .. | --v coverboardgrow %% +---++-----------------++---++-----------------++---+ --- +%% xx x x xx ] fold marks %% .. . . .. %% ^ jacketwrap . . ^ jacketwrap %% ^. .^ spinefold @@ -1075,6 +1079,7 @@ % layout: cover... \ifcoverlayout \pagestyle{empty}% + % XXX should spinefolds be panels??? \setsepchar{,}% \readlist*\pagefoldpanels{% \the\coverflap, @@ -1108,12 +1113,12 @@ \the\jacketwrap, \the\dimexpr \coverboardgrow + + \spinefold + \pageblockwidth \relax, - \the\spinefold, \the\spinewidth, - \the\spinefold, \the\dimexpr \coverboardgrow + + \spinefold + \pageblockwidth \relax, \the\jacketwrap, \the\photobook@jacketflapfront@active}% @@ -1130,6 +1135,7 @@ % layout: spread/endpaper... \ifspreadlayout \pagestyle{empty}% + \setsepchar{,}% \readlist*\pagefoldpanels{% \the\pageblockwidth, \the\pageblockwidth}% @@ -1970,7 +1976,7 @@ %% \DescribeEnv{cliptocell} -%%% \DescribeEnv{cliptocellbleeds} +%% \DescribeEnv{cliptocellbleeds} % %% Clip content to parent cell. %% From c670c4ccf886202855f31d94afc2ef895428d41b Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Thu, 27 Apr 2023 01:27:51 +0300 Subject: [PATCH 4/4] cleanup... Signed-off-by: Alex A. Naanou --- photobook.cls | 3 --- 1 file changed, 3 deletions(-) diff --git a/photobook.cls b/photobook.cls index a0188d7..277b34f 100644 --- a/photobook.cls +++ b/photobook.cls @@ -2019,9 +2019,6 @@ %% This will only affect |cliptocell| environments on the same level, %% without affecting the nested |cliptocell|s. %% -% XXX should this set the setsepchar back to default??? -% XXX should this be public??? -% ...mainly due to setsepchar... \newcommand\cliptocellbleeds[1]{ \setsepchar{ }% \readlist*\photobook@cliptocell@bleeds{#1}%