Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2021-09-17 16:58:43 +03:00
parent 4b8aad4bc2
commit 73b14a0307
2 changed files with 42 additions and 27 deletions

View File

@ -2669,30 +2669,34 @@
% XXX EXPERIMENTAL % XXX EXPERIMENTAL
%% \DescribeMacro{\foldoutpage\{..\}} %% \DescribeMacro{\foldoutpages\{..\}}
%% \DescribeMacro{\foldoutpagecell\{..\}} %%% \DescribeMacro{\foldoutpagecell\{..\}}
% %
%% \EXPERIMENTAL[(in progress)] %% \EXPERIMENTAL[(in progress)]
%% %%
%% Create 2 or more pages in foldout mode.
%
%% >> \foldoutpages[<foldout-width>]{<code>}
%
%% \begin{minipage}{\textwidth} %% \begin{minipage}{\textwidth}
%% \begin{verbatim} %% \begin{verbatim}
%% %%
%% clearfoldoutfold %% clearfoldoutfold
%% v v %% v v
%% %%
%% - --+----------------++---------------++--------------+ %% - --+----------------++---------------++--------------+
%% = .. .. | %% = .. .. |
%% = .. .. | %% = .. .. |
%% = .. .. | %% = .. .. |
%% = .. .. | %% = .. .. |
%% = .. .. | %% = .. .. |
%% = .. .. | %% = .. .. |
%% = .. .. | %% = .. .. |
%% = .. .. | %% = .. .. |
%% = .. .. | %% = .. .. |
%% = (1) .. (2) .. (3) | %% = (1) .. (2) .. (3) |
%% - --+----------------++---------------++--------------+ %% - --+----------------++---------------++--------------+
%% %%
%% +--------------++---------------++----------------+-- - %% +--------------++---------------++----------------+-- -
%% | .. .. = %% | .. .. =
%% | .. .. = %% | .. .. =
@ -2712,6 +2716,16 @@
%% \end{verbatim} %% \end{verbatim}
%% \end{minipage} %% \end{minipage}
%% %%
%% A foldout always starts on the right/odd page and will always end on
%% the left/even page.
%%
%% If |\foldoutpages{..}| is called on and even page, an empty normal
%% page will be created pushing the foldout to the right page of the
%% spread. If an odd number of pages is created the set will be padded
% with an empty page before |\foldoutpages{..}| exits.
%%
% XXX new cell parameters...
% XXX modes...
%% %%
%% Fold mode |in-in| (default): %% Fold mode |in-in| (default):
%% %%
@ -2749,11 +2763,11 @@
%% \end{minipage} %% \end{minipage}
%% %%
% XXX need to: % XXX need to:
% - create two pages % - create two pages -- DONE
% - first odd, second even % - first odd, second even -- DONE
% - fold marks % - fold marks
% - cells for panels... % - cells for panels...
% - outer panel must be smaller than the inner panel by \clearfoldout % - outer panel must be smaller than the inner panel by \clearfoldout -- DONE
% XXX move to globals... % XXX move to globals...
\newlength\foldoutwidth \newlength\foldoutwidth
\setlength\foldoutwidth{\blockwidth} \setlength\foldoutwidth{\blockwidth}
@ -2767,18 +2781,18 @@
\newlength\clearfoldoutfold \newlength\clearfoldoutfold
\setlength\clearfoldoutfold{5mm} \setlength\clearfoldoutfold{5mm}
\def\foldoutcellwidths{}
\newcommand\foldoutpagecell[2][1]{% \newcommand\foldoutpagecell[2][1]{%
% XXX % XXX
} }
\def\foldoutcellwidths{}
% XXX revise starting dimensions... % XXX revise starting dimensions...
% XXX add fold type support -- in-in / in-out... % XXX add fold type support -- in-in / in-out...
% XXX add manual mode -- list of lengths... % XXX add manual mode -- list of lengths...
% XXX add fold marks in bleeds... % XXX add fold marks in bleeds...
\newcommand\foldoutpage[2][2]{% \newcommand\foldoutpages[2][2]{%
\begingroup% \begingroup%
% calculate fold geometry... % calculate fold geometry...
\setlength\foldoutwidth{0pt}% \setlength\foldoutwidth{0pt}%

View File

@ -46,13 +46,14 @@
% %
%\ImagePage{Caption text}{\TestImage} %\ImagePage{Caption text}{\TestImage}
\foldoutpage[3]{ \foldoutpages[3]{
\ImagePageFill{\PageInfo}{\TestImageV}% \ImagePageFill{\PageInfo}{\TestImageV}%
\ImagePageFill{\PageInfo}{\TestImage}} \ImagePageFill{\PageInfo}{\TestImage}}
\ImagePage{Caption text}{\TestImage} \ImagePage{Caption text}{\TestImage}
\ImagePage{Caption text}{\TestImageV}
\foldoutpage[3]{ \foldoutpages[3]{
%\ImagePageFill{\PageInfo}{\TestImageV}% %\ImagePageFill{\PageInfo}{\TestImageV}%
\ImagePageFill{\PageInfo}{\TestImage}} \ImagePageFill{\PageInfo}{\TestImage}}