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{frontcover}
\begin{cliptocell}[0mm \coverflap] \begin{cliptocell}[0mm \coverflap]
\imagecell[fill, clearance=-\coverflap]{}{DSC00403-2} \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{cliptocell}
\end{frontcover} \end{frontcover}
\begin{backcover}
\begin{cliptocell}
\imagecell[fill]{}{DSC00403-2}
\end{cliptocell}
\end{backcover}
\begin{spine} \begin{spine}
\begin{cliptocell} \begin{cliptocell}[0mm \coverflap]
\imagecell[fill]{}{DSC00403-2} \imagecell[fill, clearance=-\coverflap]{}{DSC00403-2}
\end{cliptocell} \end{cliptocell}
\end{spine} \end{spine}
\begin{frontflap} \begin{backcover}
Some text \begin{cliptocell}[0mm \coverflap]
\end{frontflap} \imagecell[fill, clearance=-\coverflap]{}{DSC00403-2}
\begin{backflap} \end{cliptocell}
Some text \end{backcover}
\end{backflap}
\end{page} \end{page}
\end{document} \end{document}

View File

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