mirror of
https://github.com/flynx/photobook.git
synced 2025-10-31 19:30:08 +00:00
started refacoring to unify folds and fold marking for foldouts and cover-like layouts...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
6676a9f597
commit
b6616854e5
@ -642,6 +642,20 @@
|
|||||||
\newlength\flatfold
|
\newlength\flatfold
|
||||||
\setlength\flatfold{\photobook@flatfold}
|
\setlength\flatfold{\photobook@flatfold}
|
||||||
|
|
||||||
|
%% \DescribeMacro{\pagefoldpanels=<list>}
|
||||||
|
%
|
||||||
|
%% \EXPERIMENTAL
|
||||||
|
%%
|
||||||
|
%% lists page fold offsets.
|
||||||
|
%%
|
||||||
|
%% This is set automatically for layouts other than |block| and for
|
||||||
|
%% foldout pages, changing this can mess up fold markers and page cell
|
||||||
|
%% placement.
|
||||||
|
%%
|
||||||
|
% XXX use this instead of foldoutcellwidths...
|
||||||
|
\setsepchar{,}
|
||||||
|
\readlist*\pagefoldpanels{}
|
||||||
|
|
||||||
%% \DescribeMacro{\clearimage=<len>}
|
%% \DescribeMacro{\clearimage=<len>}
|
||||||
%
|
%
|
||||||
%% Image clearance
|
%% Image clearance
|
||||||
@ -830,6 +844,19 @@
|
|||||||
\setlength\pageblockwidth{\blockwidth}
|
\setlength\pageblockwidth{\blockwidth}
|
||||||
% layout: cover...
|
% layout: cover...
|
||||||
\ifcoverlayout
|
\ifcoverlayout
|
||||||
|
% XXX use this instead of foldoutcellwidths...
|
||||||
|
% XXX use this for the general cell placement...
|
||||||
|
\setsepchar{,}%
|
||||||
|
\readlist*\pagefoldpanels{%
|
||||||
|
\the\coverflap,
|
||||||
|
\the\coverboardgrow,
|
||||||
|
\the\blockwidth,
|
||||||
|
\the\spinefold,
|
||||||
|
\the\spinewidth,
|
||||||
|
\the\spinefold,
|
||||||
|
\the\blockwidth,
|
||||||
|
\the\coverboardgrow,
|
||||||
|
\the\coverflap}%
|
||||||
\setlength\blockwidth{
|
\setlength\blockwidth{
|
||||||
\dimexpr
|
\dimexpr
|
||||||
2\blockwidth
|
2\blockwidth
|
||||||
@ -840,6 +867,21 @@
|
|||||||
% layout: jacket...
|
% layout: jacket...
|
||||||
% XXX this seems to be about 6mm off -- what are we missing here???
|
% XXX this seems to be about 6mm off -- what are we missing here???
|
||||||
\ifjacketlayout
|
\ifjacketlayout
|
||||||
|
% XXX use this instead of foldoutcellwidths...
|
||||||
|
% XXX use this for the general cell placement...
|
||||||
|
\setsepchar{,}%
|
||||||
|
\readlist*\pagefoldpanels{%
|
||||||
|
\the\jacketflapback,
|
||||||
|
\the\jacketwrap,
|
||||||
|
% XXX does this account for \coverboardgrow???
|
||||||
|
\the\blockwidth,
|
||||||
|
\the\spinefold,
|
||||||
|
\the\spinewidth,
|
||||||
|
\the\spinefold,
|
||||||
|
% XXX does this account for \coverboardgrow???
|
||||||
|
\the\blockwidth,
|
||||||
|
\the\jacketwrap,
|
||||||
|
\the\jacketflapfront}%
|
||||||
\setlength\blockwidth{
|
\setlength\blockwidth{
|
||||||
\dimexpr
|
\dimexpr
|
||||||
2\blockwidth
|
2\blockwidth
|
||||||
@ -850,6 +892,11 @@
|
|||||||
+ \jacketflapback \relax}\fi
|
+ \jacketflapback \relax}\fi
|
||||||
% layout: endpaper...
|
% layout: endpaper...
|
||||||
\ifendpaperlayout
|
\ifendpaperlayout
|
||||||
|
% XXX use this instead of foldoutcellwidths...
|
||||||
|
% XXX use this for the general cell placement...
|
||||||
|
\readlist*\pagefoldpanels{%
|
||||||
|
\the\blockwidth,
|
||||||
|
\the\blockwidth}%
|
||||||
\setlength\blockwidth{ 2\blockwidth }\fi\fi
|
\setlength\blockwidth{ 2\blockwidth }\fi\fi
|
||||||
\ifdim\blockheight=0pt
|
\ifdim\blockheight=0pt
|
||||||
% layout: block / endpaper...
|
% layout: block / endpaper...
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user