mirror of
https://github.com/flynx/photobook.git
synced 2025-10-29 02:10:08 +00:00
foldout panel auto-page-advance worining......
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
594fc64a96
commit
d915912a42
@ -51,12 +51,15 @@
|
|||||||
\lipsum
|
\lipsum
|
||||||
\lipsum
|
\lipsum
|
||||||
\end{foldoutcell}
|
\end{foldoutcell}
|
||||||
|
%
|
||||||
\newpage
|
\newpage
|
||||||
|
%
|
||||||
\begin{foldoutcell*}
|
\begin{foldoutcell*}
|
||||||
\lipsum
|
\lipsum
|
||||||
\lipsum
|
\lipsum
|
||||||
\lipsum
|
\lipsum
|
||||||
\end{foldoutcell*}
|
\end{foldoutcell*}
|
||||||
|
%
|
||||||
\begin{foldoutcell*}
|
\begin{foldoutcell*}
|
||||||
\begin{cliptocell}
|
\begin{cliptocell}
|
||||||
\begin{bottomup}
|
\begin{bottomup}
|
||||||
@ -66,17 +69,19 @@
|
|||||||
\end{bottomup}
|
\end{bottomup}
|
||||||
\end{cliptocell}
|
\end{cliptocell}
|
||||||
\end{foldoutcell*}
|
\end{foldoutcell*}
|
||||||
% XXX too much goes into right bleed...
|
%
|
||||||
\begin{foldoutcell*}
|
\begin{foldoutcell*}
|
||||||
\lipsum
|
\lipsum
|
||||||
\lipsum
|
\lipsum
|
||||||
\lipsum
|
\lipsum
|
||||||
\end{foldoutcell*}
|
\end{foldoutcell*}
|
||||||
%\begin{foldoutcell}
|
%
|
||||||
% \lipsum
|
% auto-advance page...
|
||||||
% \lipsum
|
\begin{foldoutcell}
|
||||||
% \lipsum
|
\lipsum
|
||||||
%\end{foldoutcell}
|
\lipsum
|
||||||
|
\lipsum
|
||||||
|
\end{foldoutcell}
|
||||||
\end{foldout}
|
\end{foldout}
|
||||||
|
|
||||||
\begin{foldout}[in]
|
\begin{foldout}[in]
|
||||||
|
|||||||
@ -2803,7 +2803,7 @@
|
|||||||
% XXX new cell parameters...
|
% XXX new cell parameters...
|
||||||
% XXX modes...
|
% XXX modes...
|
||||||
%%
|
%%
|
||||||
%% Fold mode |in-in| (default):
|
%% Fold panel sizing for |in in| folds:
|
||||||
%%
|
%%
|
||||||
%% \begin{minipage}{\textwidth}
|
%% \begin{minipage}{\textwidth}
|
||||||
%% \begin{verbatim}
|
%% \begin{verbatim}
|
||||||
@ -2821,7 +2821,7 @@
|
|||||||
%% \end{minipage}
|
%% \end{minipage}
|
||||||
%%
|
%%
|
||||||
%%
|
%%
|
||||||
%% Fold mode |in-out|:
|
%% Fold panel sizing for |in out| folds:
|
||||||
%%
|
%%
|
||||||
%% \begin{minipage}{\textwidth}
|
%% \begin{minipage}{\textwidth}
|
||||||
%% \begin{verbatim}
|
%% \begin{verbatim}
|
||||||
@ -3114,11 +3114,13 @@
|
|||||||
%% >> \begin{foldoutcell}[<num>] ... \end{foldoutcell}
|
%% >> \begin{foldoutcell}[<num>] ... \end{foldoutcell}
|
||||||
%% >> \begin{foldoutcell}[<from>-<to>] ... \end{foldoutcell}
|
%% >> \begin{foldoutcell}[<from>-<to>] ... \end{foldoutcell}
|
||||||
%
|
%
|
||||||
%% If no arguments are given this will create a panel at |foldoutpanel| counter
|
%% If no arguments are given this will create a panel at |foldoutpanel|
|
||||||
%% and increment it by one.
|
%% counter and increment it by one.
|
||||||
%
|
%
|
||||||
%% >> \begin{foldoutcell} ... \end{foldoutcell}
|
%% >> \begin{foldoutcell} ... \end{foldoutcell}
|
||||||
%
|
%
|
||||||
|
%% This will also auto-advance the page when all panels are created.
|
||||||
|
%%
|
||||||
%% |foldoutcell*| is the same as the non-star version but creates cells
|
%% |foldoutcell*| is the same as the non-star version but creates cells
|
||||||
%% including bleeds.
|
%% including bleeds.
|
||||||
%%
|
%%
|
||||||
@ -3149,15 +3151,15 @@
|
|||||||
% XXX doc [from, to]
|
% XXX doc [from, to]
|
||||||
% XXX this can't be used outside of a foldout...
|
% XXX this can't be used outside of a foldout...
|
||||||
% XXX should these clip???
|
% XXX should these clip???
|
||||||
|
% XXX the following two envs are almost identical...
|
||||||
\newenvironment{foldoutcell}[1][0]{%
|
\newenvironment{foldoutcell}[1][0]{%
|
||||||
\begingroup%
|
\begingroup%
|
||||||
\setsepchar{-}%
|
\setsepchar{-}%
|
||||||
\readlist*\photobook@foldoutcell@panels{#1}%
|
\readlist*\photobook@foldoutcell@panels{#1}%
|
||||||
% auto advance...
|
% auto advance panel...
|
||||||
\ifnum \photobook@foldoutcell@panels[1] = 0%
|
\ifnum \photobook@foldoutcell@panels[1] = 0%
|
||||||
% XXX this does not work for some reason...
|
% auto advance page...
|
||||||
% ...breaks something later...
|
\ifnum \value{foldoutpanel} = \foldoutcellwidthslen%
|
||||||
\ifnum \value{foldoutpanel} > \foldoutcellwidthslen%
|
|
||||||
% NOTE: this will reset the counter...
|
% NOTE: this will reset the counter...
|
||||||
\newpage\fi%
|
\newpage\fi%
|
||||||
\stepcounter{foldoutpanel}%
|
\stepcounter{foldoutpanel}%
|
||||||
@ -3198,9 +3200,8 @@
|
|||||||
\readlist*\photobook@foldoutcell@panels{#1}%
|
\readlist*\photobook@foldoutcell@panels{#1}%
|
||||||
% auto advance...
|
% auto advance...
|
||||||
\ifnum \photobook@foldoutcell@panels[1] = 0%
|
\ifnum \photobook@foldoutcell@panels[1] = 0%
|
||||||
% XXX this does not work for some reason...
|
% auto advance page...
|
||||||
% ...breaks something later...
|
\ifnum \value{foldoutpanel} = \foldoutcellwidthslen%
|
||||||
\ifnum \value{foldoutpanel} > \foldoutcellwidthslen%
|
|
||||||
% NOTE: this will reset the counter...
|
% NOTE: this will reset the counter...
|
||||||
\newpage\fi%
|
\newpage\fi%
|
||||||
\stepcounter{foldoutpanel}%
|
\stepcounter{foldoutpanel}%
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user