From 66525072e11e750c6b3efbd8cc3e89d3cd76bff1 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sun, 26 Sep 2021 03:04:07 +0300 Subject: [PATCH] updated docs... Signed-off-by: Alex A. Naanou --- photobook.cls | 95 +++++++++++++++++++++++++++------------------------ 1 file changed, 51 insertions(+), 44 deletions(-) diff --git a/photobook.cls b/photobook.cls index c04c729..c6649e8 100644 --- a/photobook.cls +++ b/photobook.cls @@ -2691,7 +2691,6 @@ % XXX EXPERIMENTAL %% \DescribeEnv{foldout} -%%% \DescribeMacro{\foldoutpagecell\{..\}} % %% \EXPERIMENTAL %% @@ -2728,7 +2727,7 @@ %% | .. .. = %% | .. .. = %% | .. .. = -%% | (4) .. (5) .. (6) = +%% | (1) .. (2) .. (3) = %% +--------------++---------------++----------------+-- - %% %% ^ ^ @@ -2838,9 +2837,7 @@ \def\foldoutcellwidths{} - % >> \photobook@setfoldoutoffset{}{}{} -% % XXX doc [from, to[ % XXX this can't be used outside of a foldout... \newcommand\photobook@setfoldoutoffset[3]{% @@ -2856,46 +2853,6 @@ \csname #1\endcsname% + \foldoutcellwidths[##1]}}\fi} - -\newlength\photobook@foldoutcell@left -\setlength\photobook@foldoutcell@left{0pt} -\newlength\photobook@foldoutcell@width -\setlength\photobook@foldoutcell@width{0pt} - -% XXX doc [from, to] -% XXX if no args are given, should this auto-advance??? -% XXX need to clip left/right of all but first/last panels... -% XXX this can't be used outside of a foldout... -\newenvironment{foldoutcell}[1][1]{% - \begingroup% - \setsepchar{-}% - \readlist*\photobook@foldoutcell@panels{#1}% - % left offset... - \photobook@setfoldoutoffset{photobook@foldoutcell@left}{% - 1 - }{% - \photobook@foldoutcell@panels[1]}% - % panel width... - \ifnum \photobook@foldoutcell@panelslen > 1% - \photobook@setfoldoutoffset{photobook@foldoutcell@width}{% - \photobook@foldoutcell@panels[1]% - }{% - \photobook@foldoutcell@panels[2] + 1}% - \else% - \setlength\photobook@foldoutcell@width{% - \foldoutcellwidths[{\photobook@foldoutcell@panels[1]}]}\fi% - % - % XXX need to clip bleeds on left (except panel 1) and right (except panel -1)... - \begin{cell*}{% - \photobook@foldoutcell@left,% - \bleed}% - {\photobook@foldoutcell@width}% - {\pageblockheight}% -}{% - \end{cell*}% - \endgroup} - - % XXX revise starting dimensions... % XXX add fold marks in bleeds... \newenvironment{foldout}[1][2]{% @@ -2937,6 +2894,56 @@ \endgroup} +%% \DescribeEnv{foldoutcell} +% +%% \EXPERIMENTAL +%% +%% Create a cell spanning one or more foldout panels. +% +%% >> \begin{foldoutcell} ... \end{foldoutcell} +%% >> \begin{foldoutcell}[] ... \end{foldoutcell} +%% >> \begin{foldoutcell}[-] ... \end{foldoutcell} +%% +\newlength\photobook@foldoutcell@left +\setlength\photobook@foldoutcell@left{0pt} +\newlength\photobook@foldoutcell@width +\setlength\photobook@foldoutcell@width{0pt} + +% XXX doc [from, to] +% XXX if no args are given, should this auto-advance??? +% XXX need to clip left/right of all but first/last panels... +% XXX this can't be used outside of a foldout... +\newenvironment{foldoutcell}[1][1]{% + \begingroup% + \setsepchar{-}% + \readlist*\photobook@foldoutcell@panels{#1}% + % left offset... + \photobook@setfoldoutoffset{photobook@foldoutcell@left}{% + 1 + }{% + \photobook@foldoutcell@panels[1]}% + % panel width... + \ifnum \photobook@foldoutcell@panelslen > 1% + \photobook@setfoldoutoffset{photobook@foldoutcell@width}{% + \photobook@foldoutcell@panels[1]% + }{% + \photobook@foldoutcell@panels[2] + 1}% + \else% + \setlength\photobook@foldoutcell@width{% + \foldoutcellwidths[{\photobook@foldoutcell@panels[1]}]}\fi% + % + % XXX need to clip bleeds on left (except panel 1) and right (except panel -1)... + \begin{cell*}{% + \photobook@foldoutcell@left,% + \bleed}% + {\photobook@foldoutcell@width}% + {\pageblockheight}% +}{% + \end{cell*}% + \endgroup} + + + %% \DescribeEnv{spreadtopages} %% \DescribeEnv{spreadtopages*} %% \DescribeMacro{\usespreadpage\{..\}}