mirror of
https://github.com/flynx/photobook.git
synced 2025-12-16 08:31:42 +00:00
now clip to cell env supports clipping to bleeds.
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
e85e579fca
commit
1ea6c37cfa
@ -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}
|
||||
|
||||
@ -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%
|
||||
}{%
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user