now clip to cell env supports clipping to bleeds.

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2023-04-19 21:20:50 +03:00
parent e85e579fca
commit 1ea6c37cfa
2 changed files with 19 additions and 23 deletions

View File

@ -25,24 +25,27 @@
\begin{frontcover}
\begin{cliptocell}[0mm \coverflap]
\imagecell[fill, clearance=-\coverflap]{}{DSC00403-2}
% title...
\begin{zinlinecell}
\begin{center}
\vfill
\color{white}
\Huge TITLE TEXT
\vfill
\end{center}
\end{zinlinecell}
\end{cliptocell}
\end{frontcover}
\begin{backcover}
\begin{cliptocell}
\imagecell[fill]{}{DSC00403-2}
\end{cliptocell}
\end{backcover}
\begin{spine}
\begin{cliptocell}
\imagecell[fill]{}{DSC00403-2}
\begin{cliptocell}[0mm \coverflap]
\imagecell[fill, clearance=-\coverflap]{}{DSC00403-2}
\end{cliptocell}
\end{spine}
\begin{frontflap}
Some text
\end{frontflap}
\begin{backflap}
Some text
\end{backflap}
\begin{backcover}
\begin{cliptocell}[0mm \coverflap]
\imagecell[fill, clearance=-\coverflap]{}{DSC00403-2}
\end{cliptocell}
\end{backcover}
\end{page}
\end{document}

View File

@ -1974,14 +1974,8 @@
%% >> \begin{cliptocell}[<horizontal> <vertical>] ... \end{cliptocell}
%% >> \begin{cliptocell}[<left> <bottom> <right> <top>] ... \end{cliptocell}
%%
%\newenvironment{cliptocell}{%
% \begin{clipbox*}{0cm {\height - \cellheight} {\cellwidth} {\height}}%
% \begin{minipage}[t][\cellheight][t]{\cellwidth}%
% \ignorespaces%
%}{%
% \end{minipage}%
% \end{clipbox*}}
%% Clipping to bleeds will not affect the cell content positioning.
%%
\newlength\photobook@cliptocell@left
\setlength\photobook@cliptocell@left{0mm}%
\newlength\photobook@cliptocell@top
@ -2035,8 +2029,7 @@
\begin{clipbox*}{{-\photobook@cliptocell@left} %
{\height - \cellheight - \photobook@cliptocell@bottom} %
{\cellwidth + \photobook@cliptocell@right} %
{\height + \photobook@cliptocell@top} %
}%
{\height + \photobook@cliptocell@top}}%
\begin{minipage}[t][\cellheight][t]{\cellwidth}%
\ignorespaces%
}{%