texlive[67484] Master/texmf-dist: photobook (26jun23)

commits+karl at tug.org commits+karl at tug.org
Mon Jun 26 22:19:05 CEST 2023


Revision: 67484
          http://tug.org/svn/texlive?view=revision&revision=67484
Author:   karl
Date:     2023-06-26 22:19:05 +0200 (Mon, 26 Jun 2023)
Log Message:
-----------
photobook (26jun23)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/photobook/Makefile
    trunk/Master/texmf-dist/doc/latex/photobook/README.md
    trunk/Master/texmf-dist/doc/latex/photobook/photobook.pdf
    trunk/Master/texmf-dist/doc/latex/photobook/scripts/make-spreads.sh
    trunk/Master/texmf-dist/tex/latex/photobook/photobook.cls

Modified: trunk/Master/texmf-dist/doc/latex/photobook/Makefile
===================================================================
--- trunk/Master/texmf-dist/doc/latex/photobook/Makefile	2023-06-26 20:18:40 UTC (rev 67483)
+++ trunk/Master/texmf-dist/doc/latex/photobook/Makefile	2023-06-26 20:19:05 UTC (rev 67484)
@@ -43,9 +43,6 @@
 #----------------------------------------------------------------------
 # Config...
 
-.EXPORT_ALL_VARIABLES:
-
-
 # NOTE: this makes things run consistently on different systems including 
 # 		things like Android...
 SHELL := bash
@@ -245,14 +242,10 @@
 
 # list of dependencies...
 #
-# NOTE: grep's -z flag generates a bunch if nulls that we need to clean 
-# 		out via tr.
 DEPENDS.txt: $(MODULE).cls
-	cat $< \
-		| grep -Ezo '\s*\\RequirePackage(\[[^]]*\])?\{[^}]*\}' \
-		| sed -e 's/.*{\(.*\)}/hard \1\n/' \
-		| grep -a hard \
-		| tr -d '\000' \
+	make depends \
+		| grep -v make \
+		| sed -e 's/^/hard /' \
 		> $@
 
 
@@ -265,7 +258,21 @@
 	@echo $(VERSION)
 
 
+# NOTE: grep's -z flag generates a bunch if nulls that we need to clean 
+# 		out via tr.
+# XXX this is a bit ugly -- adding/removing "hard" and then adding it 
+# 		again for DEPENDS.txt...
+.PHONY: depends
+depends: $(MODULE).cls
+	@cat $< \
+		| grep -Ezo '\s*\\RequirePackage(\[[^]]*\])?\{[^}]*\}' \
+		| sed -e 's/.*{\(.*\)}/hard \1\n/' \
+		| grep -a hard \
+		| tr -d '\000' \
+		| cut -d " " -f 2
 
+
+
 #----------------------------------------------------------------------
 # Main targets...
 

Modified: trunk/Master/texmf-dist/doc/latex/photobook/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/photobook/README.md	2023-06-26 20:18:40 UTC (rev 67483)
+++ trunk/Master/texmf-dist/doc/latex/photobook/README.md	2023-06-26 20:19:05 UTC (rev 67484)
@@ -4,27 +4,19 @@
 [LaTeX](https://www.latex-project.org/) document class for making photo books.
 
 
-## Build requirements for docs
+Available on:
+- CTAN: https://ctan.org/pkg/photobook
+- GitHub: https://github.com/flynx/photobook
 
-- LaTeX tool chain (including: `lualatex`, `latexmk`, ..)  
-  The simplest way to get started is [TeX Live](https://www.tug.org/texlive/), 
-  either a full install or for specific modules see the _Packages_ section 
-  in [photobook.cls](./photobook.cls),
-- Un\*x-like environment (`bash`, GNU Make, coreutils, ...),  
-  on Windows systems, either [Cygwin](https://www.cygwin.com/) or 
-  [WSL/WSL2](https://en.wikipedia.org/wiki/Windows_Subsystem_for_Linux) 
-  should work fine.
 
+## Install / Build
 
+The simplest way to install is to use either 
+[TeX Live](https://www.tug.org/texlive/)'s or [MiLTeX](https://miktex.org/)'s 
+standard way to install modules.
 
-## Build / Install
 
-The package is available on: 
-- CTAN: https://ctan.org/pkg/photobook
-- GitHub: https://github.com/flynx/photobook
-
-
-To install from source:
+Installing from source:
 ```shell
 # get the source...
 $ git clone https://github.com/flynx/photobook.git
@@ -34,14 +26,38 @@
 $ make install
 ```
 
-If only building the docs is required without installing:
+The `photobook` document class requires a set of modules to be installed
+for it to function, the full list is included in the docs and can be 
+printed by calling:
 ```shell
-$ make pdf 
+$ make depends
 ```
 
 For more info on `make` targets see the: [./Makefile](./Makefile)
 
 
+
+# Documentation
+
+Pre-built documentation can be found on 
+[CTAN](http://mirrors.ctan.org/macros/latex/contrib/photobook/photobook.pdf)
+or it can be built from source by:
+```shell
+$ make pdf 
+```
+
+Build requirements for docs:
+- LaTeX tool chain (including: `lualatex`, `latexmk`, ..)  
+  The simplest way to get started is [TeX Live](https://www.tug.org/texlive/), 
+  either a full install or for specific modules see the _Packages_ section 
+  in [photobook.cls](./photobook.cls),
+- Un\*x-like environment (`bash`, GNU Make, coreutils, ...),  
+  on Windows systems, either [Cygwin](https://www.cygwin.com/) or 
+  [WSL/WSL2](https://en.wikipedia.org/wiki/Windows_Subsystem_for_Linux) 
+  should work fine.
+
+
+
 ## Notes
 
 - The main refetence is inline with the source [photobook.cls](./photobook.cls) 

Modified: trunk/Master/texmf-dist/doc/latex/photobook/photobook.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/photobook/scripts/make-spreads.sh
===================================================================
--- trunk/Master/texmf-dist/doc/latex/photobook/scripts/make-spreads.sh	2023-06-26 20:18:40 UTC (rev 67483)
+++ trunk/Master/texmf-dist/doc/latex/photobook/scripts/make-spreads.sh	2023-06-26 20:19:05 UTC (rev 67484)
@@ -56,9 +56,11 @@
 # supported formats/extensions...
 TEXT_FORMATS=${TEXT_FORMATS:=$CFG_TEXT_FORMATS}
 TEXT_FORMATS=${TEXT_FORMATS:=txt}
+TEXT_FORMATS=${TEXT_FORMATS,,}
 
 IMAGE_FORMATS=${IMAGE_FORMATS:=$CFG_IMAGE_FORMATS}
 IMAGE_FORMATS=${IMAGE_FORMATS:=jpeg|jpg|png|pdf|svg|eps}
+IMAGE_FORMATS=${IMAGE_FORMATS,,}
 
 
 SPREADS_DIR=${SPREADS_DIR:=$CFG_SPREADS_DIR}
@@ -366,9 +368,9 @@
 	local txt=()
 	local elem
 	for elem in "${items[@]}" ; do
-		if [[ "$elem" =~ $IMAGE_FORMATS ]] ; then
+		if [[ "${elem,,}" =~ $IMAGE_FORMATS ]] ; then
 			img+=("$elem")
-		elif [[ "$elem" =~ $TEXT_FORMATS ]] ; then
+		elif [[ "${elem,,}" =~ $TEXT_FORMATS ]] ; then
 			txt+=("$elem")
 		fi
 	done
@@ -491,10 +493,10 @@
 	local txt=()
 	local items=()
 	for elem in "$spread"/* ; do
-		if [[ "$elem" =~ $IMAGE_FORMATS ]] ; then
+		if [[ "${elem,,}" =~ $IMAGE_FORMATS ]] ; then
 			img+=("$elem")
 			items+=("$elem")
-		elif [[ "$elem" =~ $TEXT_FORMATS ]] ; then
+		elif [[ "${elem,,}" =~ $TEXT_FORMATS ]] ; then
 			txt+=("$elem")
 			items+=("$elem")
 		fi
@@ -574,7 +576,7 @@
 					#		slots/files from list...
 
 					# image...
-					if [[ "$elem" =~ $IMAGE_FORMATS ]] ; then
+					if [[ "${elem,,}" =~ $IMAGE_FORMATS ]] ; then
 						echo %
 						echo "% $P page (image)..."
 						template=`getTemplate "$spread" "$IMAGE_PAGE"`

Modified: trunk/Master/texmf-dist/tex/latex/photobook/photobook.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/photobook/photobook.cls	2023-06-26 20:18:40 UTC (rev 67483)
+++ trunk/Master/texmf-dist/tex/latex/photobook/photobook.cls	2023-06-26 20:19:05 UTC (rev 67484)
@@ -38,10 +38,18 @@
 %
 % - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 %
-% XXX should cliptocell offsets be tweakable???
-% XXX ASAP should cover/jacket/endpaper/spread template cells account 
-%		for bleeds as an option???
-%		...i.e. include cliptocell defaults???
+% XXX ASAP: imagecell: photobook at imagecell@left and photobook at imagecell@left
+%		should explicitly account for clearence at left and clearence at top resp.
+% XXX ASAP: imagecell: clearance should have the same semantics as cliptocell 
+%		offsts... 
+%		(CLEARANCE)
+% XXX ASAP should cover/jacket/endpaper/spread cells set default cliptocell 
+%		bleeds???
+%		...needs testing and experimenting...
+% XXX ASAP: should \blockwidth include \bindingoffset (current) or not???
+%		...currently I think that no, as \blockwidth indicates the outer 
+%		width of the block, and this poses the question:
+%			should \pagewidth include \bindingoffset???
 % XXX ASAP should cover/jacket/endpaper/spread templates/cells account
 %		for \bindingoffset (likely no) and/or \gutteroffset ???
 %		...especially relevant to endpaper/spread...
@@ -49,11 +57,11 @@
 %		...all cells should ignore bleeds unless explicitly stated 
 %		otherwise -- needs testing...
 %
+%
 % XXX captions behave in an odd way...
 %		the internal (macro) minipage for some reason does not affect text 
 %		justification while adding a minipage in the macro argument works
 %		as expected -- some odd input mode???
-% XXX Q: should \blockwidth include \bindingoffset (current) or not???
 % XXX revise \clearcaption / \captionclearpage...
 % XXX unify API -- see CellContent env...
 % XXX make this loadable both as a class and as a package...
@@ -85,8 +93,8 @@
 
 %%% NOTE: \def\<module-name>@[A-Z]+ macros will be visible to both the 
 %%%		code and the generated docs...
-\edef\photobook at FILEVERSION{v0.1.21}
-\edef\photobook at FILEDATE{2023-04-22}
+\edef\photobook at FILEVERSION{v0.1.23}
+\edef\photobook at FILEDATE{2023-05-05}
 
 
 %% \documentclass{ltxdoc}
@@ -952,7 +960,13 @@
 %% \DescribeMacro{\cellheight=<len>}
 %% \DescribeMacro{\celloffsetleft=<len>}
 %% \DescribeMacro{\celloffsettop=<len>}
-%% \DescribeMacro{\clearance=<len>}
+% XXX EXPERIMENTAL CLEARANCE
+%%% \DescribeMacro{\clearanceleft=<len>}
+%%% \DescribeMacro{\clearancetop=<len>}
+%%% \DescribeMacro{\clearanceright=<len>}
+%%% \DescribeMacro{\clearancebottom=<len>}
+% XXX LEGACY CLEARANCE
+%%% \DescribeMacro{\clearance=<len>}
 %
 %% Cell geometry. 
 %%
@@ -973,8 +987,19 @@
 \setlength\celloffsetleft{0pt}
 \newlength\celloffsettop
 \setlength\celloffsettop{0pt}
-\newlength\clearance
-\setlength\clearance{0pt}
+% XXX EXPERIMENTAL CLEARANCE
+\newlength\clearanceleft
+\setlength\clearanceleft{0pt}
+\newlength\clearancetop
+\setlength\clearancetop{0pt}
+\newlength\clearanceright
+\setlength\clearanceright{0pt}
+\newlength\clearancebottom
+\setlength\clearancebottom{0pt}
+\def\clearances{0pt}
+% XXX LEGACY CLEARANCE
+%\newlength\clearance
+%\setlength\clearance{0pt}
 
 
 %% \DescribeMacro{\clearfoldoutgutter=<len>}
@@ -1587,7 +1612,13 @@
 %% \DescribeMacro{\cellparentheight=<len>}
 %% \DescribeMacro{\celloffsettop=<len>}
 %% \DescribeMacro{\celloffsetleft=<len>}
-%% \DescribeMacro{\clearance=<len>}
+% XXX EXPERIMENTAL CLEARANCE
+%%% \DescribeMacro{\clearanceleft=<len>}
+%%% \DescribeMacro{\clearancetop=<len>}
+%%% \DescribeMacro{\clearanceright=<len>}
+%%% \DescribeMacro{\clearancebottom=<len>}
+% XXX LEGACY CLEARANCE
+%%% \DescribeMacro{\clearance=<len>}
 %%
 %% A cell defines a set of contextual lengths:
 %%
@@ -1719,7 +1750,13 @@
 		\setlength\cellheight{\photobook at protect@h}%
 		\setlength\celloffsettop{0pt}%
 		\setlength\celloffsetleft{0pt}%
-		\setlength\clearance{0pt}%
+		% XXX EXPERIMENTAL CLEARANCE
+		\setlength\clearanceleft{0pt}%
+		\setlength\clearancetop{0pt}%
+		\setlength\clearanceright{0pt}%
+		\setlength\clearancebottom{0pt}%
+		% XXX LEGACY CLEARANCE
+		%\setlength\clearance{0pt}%
 		%
 		\begin{MinipageCellContent}[\photobook at minipagecell@parentvalign]{minipagecell}%
 }{%
@@ -2009,6 +2046,7 @@
 \setlength\photobook at cliptocell@right{0mm}%
 \newlength\photobook at cliptocell@bottom
 \setlength\photobook at cliptocell@bottom{0mm}%
+\def\cliptocellclearances{0mm 0mm 0mm 0mm}%
 
 %% Set the default bleeds for |cliptocell| environments
 %%
@@ -2019,9 +2057,13 @@
 %% This will only affect |cliptocell| environments on the same level, 
 %% without affecting the nested |cliptocell|s.
 %%
-% XXX should this set the setsepchar back to default???
-% XXX should this be public???
-%		...mainly due to setsepchar...
+%%% \DescribeEnv{cliptocellclearances=<left> <bottom> <right> <top>}
+%%%
+%%% Set by |\cliptocellbleeds{..}| and contains clearances (negative 
+%%% clipping bleeds) usable by imagecell.
+%
+% XXX BUG: bleeds is set correctly for one value but 2 and 4 seem to be 
+%		misbehaving (see: ./examples/endpaper.tex)
 \newcommand\cliptocellbleeds[1]{
 	\setsepchar{ }%
 	\readlist*\photobook at cliptocell@bleeds{#1}%
@@ -2055,7 +2097,13 @@
 		\setlength\photobook at cliptocell@right{%
 			\photobook at cliptocell@bleeds[3]}%
 		\setlength\photobook at cliptocell@top{%
-			\photobook at cliptocell@bleeds[4]}\fi}
+			\photobook at cliptocell@bleeds[4]}\fi%
+	% NOTE: trailing spaces here are significant...
+	\def\cliptocellclearances{%
+		{-\photobook at cliptocell@left} %
+		{-\photobook at cliptocell@bottom} %
+		{-\photobook at cliptocell@right} %
+		{-\photobook at cliptocell@top}}}
 
 \newenvironment{cliptocell}[1][0mm]{%
 	\begingroup%
@@ -2272,6 +2320,16 @@
 \def\photobook at imagecell@captiontop{0pt}
 \def\photobook at imagecell@captionleft{0pt}
 
+% XXX EXPERIMENTAL
+\newlength\photobook at imagecell@clearance at left
+\setlength\photobook at imagecell@clearance at left{0pt}
+\newlength\photobook at imagecell@clearance at top
+\setlength\photobook at imagecell@clearance at top{0pt}
+\newlength\photobook at imagecell@clearance at right
+\setlength\photobook at imagecell@clearance at right{0pt}
+\newlength\photobook at imagecell@clearance at bottom
+\setlength\photobook at imagecell@clearance at bottom{0pt}
+% XXX LEGACY
 \newlength\photobook at imagecell@clearance
 \setlength\photobook at imagecell@clearance{0pt}
 
@@ -2288,15 +2346,22 @@
 \define at boolkey{imagecell at args}{center}[true]{%
 	\def\photobook at imagecell@top{\dimexpr 
 		+0.5\cellheight 
+		% XXX EXPERIMENTAL CLEARANCE -- test...
+		+0.5\photobook at imagecell@clearance at top
+		-0.5\photobook at imagecell@clearance at bottom
 		-0.5\ht\photobook at imagebox \relax}%
 	\def\photobook at imagecell@left{\dimexpr 
 		+0.5\cellwidth 
+		% XXX EXPERIMENTAL CLEARANCE -- test...
+		+0.5\photobook at imagecell@clearance at left
+		-0.5\photobook at imagecell@clearance at right
 		-0.5\wd\photobook at imagebox \relax}}%
 % left/right...
 % shortdands...
 \newcommand\photobook at imagecell@LEFT{%
 	\def\photobook at imagecell@left{\dimexpr%
-		+\photobook at imagecell@clearance \relax}%
+		+\photobook at imagecell@clearance at left \relax}%
+		%+\photobook at imagecell@clearance \relax}%
 	\def\photobook at imagecell@captionleft{
 		% XXX not sure why this branch is needed...
 		\ifKV at imagecell@args at fit
@@ -2304,12 +2369,14 @@
 		\else%
 			\dimexpr%
 				+\cellwidth 
-				-\photobook at imagecell@clearance
+				-\photobook at imagecell@clearance at left
+				%-\photobook at imagecell@clearance
 				-\wd\photobook at imagebox \relax\fi}}%
 \newcommand\photobook at imagecell@RIGHT{%
 	\def\photobook at imagecell@left{\dimexpr 
 		+\cellwidth 
-		-\photobook at imagecell@clearance
+		-\photobook at imagecell@clearance at right
+		%-\photobook at imagecell@clearance
 		-\wd\photobook at imagebox \relax}
 	% XXX not sure why 0.5 but it seems to work...
 	\def\photobook at imagecell@captionleft{%
@@ -2333,7 +2400,8 @@
 % top/bottom...
 \define at boolkey{imagecell at args}{top}[true]{%
 	\def\photobook at imagecell@top{%
-		\photobook at imagecell@clearance}%
+		\photobook at imagecell@clearance at top}%
+		%\photobook at imagecell@clearance}%
 	\def\photobook at imagecell@captiontop{%
 		-\dimexpr 
 			+\cellheight 
@@ -2342,14 +2410,55 @@
 	\def\photobook at imagecell@top{%
 		\dimexpr 
 			+\cellheight 
-			-\photobook at imagecell@clearance
+			-\photobook at imagecell@clearance at bottom
+			%-\photobook at imagecell@clearance
 			-\ht\photobook at imagebox \relax}%
 	\def\photobook at imagecell@captiontop{%
 		\dimexpr
 			\photobook at imagecell@top 
-			+\photobook at imagecell@clearance \relax}}%
+			+\photobook at imagecell@clearance at bottom \relax}}%
+			%+\photobook at imagecell@clearance \relax}}%
 % clearance=<len>...
+% clearance=<horizontal> <vertical>...
+% clearance=<left> <bottom> <right> <top>...
 \define at key{imagecell at args}{clearance}{%
+	% XXX EXPERIMENTAL
+	% XXX this is essentially the same as \photobook at cliptocell@bleeds -- unite...
+	\def\photobook at imagecell@clearances{#1}%
+	\setsepchar{ }
+	\readlist*\photobook at imagecell@clearencelist{#1}%
+	\setsepchar{,}%
+	%% args: size
+	\ifnum \photobook at imagecell@clearencelistlen = 1%
+		\setlength\photobook at imagecell@clearance at left{%
+			\photobook at imagecell@clearencelist[1]}%
+		\setlength\photobook at imagecell@clearance at bottom{%
+			\photobook at imagecell@clearencelist[1]}%
+		\setlength\photobook at imagecell@clearance at right{%
+			\photobook at imagecell@clearencelist[1]}%
+		\setlength\photobook at imagecell@clearance at top{%
+			\photobook at imagecell@clearencelist[1]}\fi%
+	% args: horizontal vertical
+	\ifnum \photobook at imagecell@clearencelistlen = 2%
+		\setlength\photobook at imagecell@clearance at left{%
+			\photobook at imagecell@clearencelist[1]}%
+		\setlength\photobook at imagecell@clearance at bottom{%
+			\photobook at imagecell@clearencelist[2]}%
+		\setlength\photobook at imagecell@clearance at right{%
+			\photobook at imagecell@clearencelist[1]}%
+		\setlength\photobook at imagecell@clearance at top{%
+			\photobook at imagecell@clearencelist[2]}\fi%
+	% args: left bottom right top
+	\ifnum \photobook at imagecell@clearencelistlen = 4%
+		\setlength\photobook at imagecell@clearance at left{%
+			\photobook at imagecell@clearencelist[1]}%
+		\setlength\photobook at imagecell@clearance at bottom{%
+			\photobook at imagecell@clearencelist[2]}%
+		\setlength\photobook at imagecell@clearance at right{%
+			\photobook at imagecell@clearencelist[3]}%
+		\setlength\photobook at imagecell@clearance at top{%
+			\photobook at imagecell@clearencelist[4]}\fi%
+	% XXX LEGACY...
 	\setlength\photobook at imagecell@clearance{#1}}%
 
 % offsettop=<len> / offsetleft=<len>...
@@ -2398,10 +2507,14 @@
 					keepaspectratio, 
 					width=\photobook at imagecell@scale\dimexpr 
 						\cellwidth 
-						- ((\photobook at imagecell@clearance) * 2) \relax,
+						- \photobook at imagecell@clearance at left 
+						- \photobook at imagecell@clearance at right \relax,
+						%- ((\photobook at imagecell@clearance) * 2) \relax,
 					height=\photobook at imagecell@scale\dimexpr 
 						\cellheight 
-						- ((\photobook at imagecell@clearance) * 2) \relax]{#3}}%
+						- \photobook at imagecell@clearance at top 
+						- \photobook at imagecell@clearance at bottom \relax]{#3}}%
+						%- ((\photobook at imagecell@clearance) * 2) \relax]{#3}}%
 		% fill...
 		\else\ifKV at imagecell@args at fill%
 			% preload image to get its proportions...
@@ -2420,7 +2533,9 @@
 						keepaspectratio, 
 						width=\photobook at imagecell@scale\dimexpr 
 							+ \cellwidth
-							- ((\photobook at imagecell@clearance) * 2) \relax]{#3}}%
+							- \photobook at imagecell@clearance at left
+							- \photobook at imagecell@clearance at right \relax]{#3}}%
+							%- ((\photobook at imagecell@clearance) * 2) \relax]{#3}}%
 			\else%
 				\sbox{\photobook at imagebox}{%
 					\includegraphics[%
@@ -2427,7 +2542,9 @@
 						keepaspectratio, 
 						height=\photobook at imagecell@scale\dimexpr 
 							+ \cellheight 
-							- ((\photobook at imagecell@clearance) * 2) \relax]{#3}}%
+							- \photobook at imagecell@clearance at top
+							- \photobook at imagecell@clearance at bottom \relax]{#3}}%
+							%- ((\photobook at imagecell@clearance) * 2) \relax]{#3}}%
 		\fi\fi\fi%
 		%
 		\setlength\celloffsetleft{%
@@ -2470,7 +2587,14 @@
 			\maxdim{\celloffsetleft}{0pt}}%
 		\setlength\celloffsettop{%
 			\maxdim{\celloffsettop}{0pt}}%
-		\setlength\clearance{\photobook at imagecell@clearance}%
+		% XXX EXPERIMENTAL CLEARANCE
+		\setlength\clearanceleft{\photobook at imagecell@clearance at left}
+		\setlength\clearancetop{\photobook at imagecell@clearance at top}
+		\setlength\clearanceright{\photobook at imagecell@clearance at right}
+		\setlength\clearancebottom{\photobook at imagecell@clearance at bottom}
+		\def\clearances{\photobook at imagecell@clearences}
+		% XXX LEGACY CLEARANCE
+		%\setlength\clearance{\photobook at imagecell@clearance}%
 		% clear parent...
 		% XXX might be a good idea to put this into a special reusable cell...
 		\ifphotobook at imagecell@captionclearparent%
@@ -2930,7 +3054,10 @@
 						- \cellwidth 
 						- \clearcaption 
 						% XXX this is only present in images...
-						- \clearance \relax%
+						% XXX change this to use \clearanceleft / \clearanceright / ...
+						% XXX LEGACY CLEARANCE
+						- \clearance 
+					\relax%
 				\else%
 					\photobook at captionblockcell@width\fi}%
 			\setlength\cellparentwidth{%
@@ -3917,7 +4044,9 @@
 %%%%% Endpaper cells
 %
 %% \DescribeEnv{leftside}
+%%% \DescribeEnv{leftside*}
 %% \DescribeEnv{rightside}
+%%% \DescribeEnv{rightside*}
 %
 %% \begin{minipage}{\textwidth}
 %% \begin{verbatim}
@@ -3933,14 +4062,24 @@
 %% \end{verbatim}
 %% \end{minipage}
 %%
+%%% The star versions set the appropriate bleeds for cliptocell.
+%%%
 
 % XXX for some reason naming these anything starting with endpaper will
 %		make LaTeX complain that that is already defined...
 %		...collision with bools???
 \newenvironment{leftside}{%
-	\begin{pagecell}%
+	\begin{cell*}%
+			{\bleed, \bleed}%
+			{\pageblockwidth}{\pageblockheight}%
 }{%
-	\end{pagecell}}
+	\end{cell*}}
+% XXX EXPERIMENTAL
+\newenvironment{leftside*}{%
+	\begin{leftside}%
+		\cliptocellbleeds{{\bleed} {\bleed} 0mm {\bleed}}%
+}{%
+	\end{leftside}}
 
 \newenvironment{rightside}{%
 	\begin{cell*}%
@@ -3948,8 +4087,15 @@
 			{\pageblockwidth}{\pageblockheight}%
 }{%
 	\end{cell*}}
+% XXX EXPERIMENTAL
+\newenvironment{rightside*}{%
+	\begin{rightside}%
+		\cliptocellbleeds{0mm {\bleed} {\bleed} {\bleed}}%
+}{%
+	\end{rightside}}
 
 
+
 % - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 %%%%% Cover and dust jacket cells
 %



More information about the tex-live-commits mailing list.