From c9a2565297b897fbfb144c957f900d88fc6347c0 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Tue, 18 Apr 2023 12:36:33 +0300 Subject: [PATCH] started on bleed clipping... Signed-off-by: Alex A. Naanou --- photobook.cls | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/photobook.cls b/photobook.cls index 5f061be..1b45250 100644 --- a/photobook.cls +++ b/photobook.cls @@ -1976,6 +1976,7 @@ % %% Clip content to parent cell. %% +% clipbox args: l t w h \newenvironment{cliptocell}{% \begin{clipbox*}{0cm {\height - \cellheight} {\cellwidth} {\height}}% \begin{minipage}[t][\cellheight][t]{\cellwidth}% @@ -1985,6 +1986,20 @@ \end{clipbox*}} +% XXX add args to offset the clip box... +% XXX merge with cliptocell... +\newenvironment{cliptocell*}[1][]{% + % XXX handle args... + % XXX keep content on the same sopt -- offset the content by offsets... + \begin{clipbox*}{0cm {\height - \cellheight} {\cellwidth} {\height}}% + \begin{minipage}[t][\cellheight][t]{\cellwidth}% + \ignorespaces% +}{% + \end{minipage}% + \end{clipbox*}} + + + %% \DescribeMacro{\imagecell\{..\}} %