From 79546e3407e6bfe416a92c5cfd7256d8d999496f Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Thu, 27 Apr 2023 01:24:24 +0300 Subject: [PATCH] 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. %%