From 238597543e867c6e8620d771a61ab45a72e3ed72 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Mon, 11 Sep 2023 21:16:25 +0300 Subject: [PATCH] fixed several stray spaces. Signed-off-by: Alex A. Naanou --- examples/endpaper.tex | 17 ++++++----------- photobook.cls | 24 +++++++----------------- 2 files changed, 13 insertions(+), 28 deletions(-) diff --git a/examples/endpaper.tex b/examples/endpaper.tex index e16e909..674e813 100644 --- a/examples/endpaper.tex +++ b/examples/endpaper.tex @@ -35,28 +35,23 @@ % - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +% control #1 -- works fine... \begin{page} \begin{leftside} \imagecell[fit]{}{DSC00403-2} \end{leftside} -% XXX seems to be a gap between the image and page border -- need to investigate... -% ...setting clearance to 0pt adds a small gap -- is this a stray -% space??? -\begin{rightside*} - %\imagecell[fit, clearance=0pt]{}{DSC00403-2} - \imagecell[fit, clearance=\cliptocellclearances]{}{DSC00403-2} -\end{rightside*} +\begin{rightside} + \imagecell[fit]{}{DSC00403-2} +\end{rightside} \end{page} -% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \begin{page} \begin{leftside*} - \imagecell[fill, clearance=\cliptocellclearances]{}{DSC00403-2} + \imagecell[fill, right, clearance=\cliptocellclearances]{}{DSC00403-2} \end{leftside*} \begin{rightside*} - \imagecell[fill, clearance=\cliptocellclearances]{}{DSC00403-2} + \imagecell[fill, left, clearance=\cliptocellclearances]{}{DSC00403-2} \end{rightside*} \end{page} diff --git a/photobook.cls b/photobook.cls index 5f0de8f..7ecc155 100644 --- a/photobook.cls +++ b/photobook.cls @@ -965,8 +965,8 @@ %%% \DescribeMacro{\clearancetop=} %%% \DescribeMacro{\clearanceright=} %%% \DescribeMacro{\clearancebottom=} -% XXX LEGACY CLEARANCE -%%% \DescribeMacro{\clearance=} +% XXX revise... +%%% \DescribeMacro{\clearances=} % %% Cell geometry. %% @@ -987,7 +987,6 @@ \setlength\celloffsetleft{0pt} \newlength\celloffsettop \setlength\celloffsettop{0pt} -% XXX EXPERIMENTAL CLEARANCE \newlength\clearanceleft \setlength\clearanceleft{0pt} \newlength\clearancetop @@ -997,9 +996,6 @@ \newlength\clearancebottom \setlength\clearancebottom{0pt} \def\clearances{0pt} -% XXX LEGACY CLEARANCE -%\newlength\clearance -%\setlength\clearance{0pt} %% \DescribeMacro{\clearfoldoutgutter=} @@ -1620,8 +1616,6 @@ %%% \DescribeMacro{\clearancetop=} %%% \DescribeMacro{\clearanceright=} %%% \DescribeMacro{\clearancebottom=} -% XXX LEGACY CLEARANCE -%%% \DescribeMacro{\clearance=} %% %% A cell defines a set of contextual lengths: %% @@ -1753,13 +1747,10 @@ \setlength\cellheight{\photobook@protect@h}% \setlength\celloffsettop{0pt}% \setlength\celloffsetleft{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@minipagecell@parentvalign]{minipagecell}% }{% @@ -2110,7 +2101,7 @@ {\the\photobook@cliptocell@left} % {\the\photobook@cliptocell@bottom} % {\the\photobook@cliptocell@right} % - {\the\photobook@cliptocell@top}} + {\the\photobook@cliptocell@top}}% \def\cliptocellclearances{% {-\the\photobook@cliptocell@left} % {-\the\photobook@cliptocell@bottom} % @@ -2356,13 +2347,11 @@ \define@boolkey{imagecell@args}{center}[true]{% \def\photobook@imagecell@top{\dimexpr +0.5\cellheight - % XXX EXPERIMENTAL CLEARANCE -- test... +0.5\photobook@imagecell@clearance@top -0.5\photobook@imagecell@clearance@bottom -0.5\ht\photobook@imagebox \relax}% \def\photobook@imagecell@left{\dimexpr +0.5\cellwidth - % XXX EXPERIMENTAL CLEARANCE -- test... +0.5\photobook@imagecell@clearance@left -0.5\photobook@imagecell@clearance@right -0.5\wd\photobook@imagebox \relax}}% @@ -2588,7 +2577,6 @@ \maxdim{\celloffsetleft}{0pt}}% \setlength\celloffsettop{% \maxdim{\celloffsettop}{0pt}}% - % XXX EXPERIMENTAL CLEARANCE \setlength\clearanceleft{\photobook@imagecell@clearance@left} \setlength\clearancetop{\photobook@imagecell@clearance@top} \setlength\clearanceright{\photobook@imagecell@clearance@right} @@ -3052,10 +3040,12 @@ - \photobook@captionblockcell@spacing - \cellwidth - \clearcaption + % XXX EXPERIMENTAL CLEARANCE % XXX this is only present in images... - % XXX change this to use \clearanceleft / \clearanceright / ... + - \clearanceleft + %- \clearanceright % XXX LEGACY CLEARANCE - - \clearance + %- \clearance \relax% \else% \photobook@captionblockcell@width\fi}%