mirror of
https://github.com/flynx/photobook.git
synced 2025-12-24 04:11:56 +00:00
tweaks and notes....
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
3bcf1e6dc9
commit
3ff7a4f595
@ -50,56 +50,66 @@
|
|||||||
%
|
%
|
||||||
% - block (default):
|
% - block (default):
|
||||||
%
|
%
|
||||||
% blockwidth
|
% blockwidth
|
||||||
% <--------------->
|
% <--------------->
|
||||||
%
|
%
|
||||||
% +---------------+
|
% +---------------+
|
||||||
% | |
|
% | |
|
||||||
% | |
|
% | |
|
||||||
% | |
|
% | |
|
||||||
% | |
|
% | |
|
||||||
% +---------------+
|
% +---------------+
|
||||||
%
|
%
|
||||||
%
|
%
|
||||||
% - endpaper:
|
% - endpaper:
|
||||||
%
|
%
|
||||||
% blockwidth 2x
|
% blockwidth 2x
|
||||||
% <------------------------------->
|
% <------------------------------->
|
||||||
%
|
|
||||||
% +---------------+---------------+
|
|
||||||
% | . |
|
|
||||||
% | . |
|
|
||||||
% | . |
|
|
||||||
% | . |
|
|
||||||
% +---------------+---------------+
|
|
||||||
%
|
%
|
||||||
|
% +---------------+---------------+
|
||||||
|
% | . |
|
||||||
|
% | . |
|
||||||
|
% | . |
|
||||||
|
% | . |
|
||||||
|
% +---------------+---------------+
|
||||||
|
%
|
||||||
%
|
%
|
||||||
% - endpaper:
|
% - endpaper:
|
||||||
%
|
%
|
||||||
% blockwidth blockwidth
|
% blockwidth blockwidth
|
||||||
% <---------------> <--------------->
|
% <---------------> <--------------->
|
||||||
%
|
%
|
||||||
% +---------------++---++---------------+
|
% +---------------++---++---------------+
|
||||||
% | .. .. |
|
% | .. .. |
|
||||||
% | .. .. |
|
% | .. .. |
|
||||||
% | .. .. |
|
% | .. .. |
|
||||||
% | .. .. |
|
% | .. .. |
|
||||||
% +---------------++---++---------------+
|
% +---------------++---++---------------+
|
||||||
% . .
|
% . .
|
||||||
% ^. .^ spine fold
|
% ^. .^ spine fold
|
||||||
% . .
|
% . .
|
||||||
% <---> spinewidth
|
% <---> spinewidth
|
||||||
%
|
%
|
||||||
%
|
%
|
||||||
% XXX how dow we separate \blockwidth and \paperwidth and still allow
|
% NOTE: in endpaper and cover modes \innerbleed value is ignored and
|
||||||
% the user to use all the macros??
|
% \bleed is used instead...
|
||||||
% ...implement separate cover templates???
|
% ...setting \innerbleed manually mid-document will lead to
|
||||||
% the obvious way is just set \blockwidth to the new size, but this
|
% inconsistent results.
|
||||||
% will not help orient the layout correctly...
|
%
|
||||||
|
% XXX EXPERIMENTAL...
|
||||||
|
% XXX need to force \innerbleed to be eqal to \bleed...
|
||||||
|
% XXX also need a way to:
|
||||||
|
% - setup front-cover
|
||||||
|
% - setup pine
|
||||||
|
% - setup back-cover
|
||||||
|
% ...envs??
|
||||||
% XXX do we need to implement cover fold over???
|
% XXX do we need to implement cover fold over???
|
||||||
|
% XXX not yet sure how to go about this -- should we update \blockwidth
|
||||||
|
% or should we define a new length and let some templates
|
||||||
|
% use one and some use the other???
|
||||||
|
% ...I'm leaning towards the later...
|
||||||
% XXX fold/cut marks???
|
% XXX fold/cut marks???
|
||||||
% XXX write all the dimensions to the comment...
|
% XXX write all the dimensions to pdf comment...
|
||||||
% XXX not implemented yet...
|
|
||||||
\DeclareStringOption[block]{layoutmode}[block]
|
\DeclareStringOption[block]{layoutmode}[block]
|
||||||
\@DeclareLiteralOptionTo{layoutmode}{block}
|
\@DeclareLiteralOptionTo{layoutmode}{block}
|
||||||
\@DeclareLiteralOptionTo{layoutmode}{endpaper}
|
\@DeclareLiteralOptionTo{layoutmode}{endpaper}
|
||||||
@ -134,11 +144,11 @@
|
|||||||
% . +---------------------------------------+ . v . . ---
|
% . +---------------------------------------+ . v . . ---
|
||||||
% . | ^ . = .
|
% . | ^ . = .
|
||||||
% . | . . . . . . | . . = . ^
|
% . | . . . . . . | . . = . ^
|
||||||
% . |<-- blockwidth ------------------------>= . |
|
% . |<-- blockwidth ----------------------->= . |
|
||||||
% . | . | . . = . |
|
% . | . | . . = . |
|
||||||
% . | | . = . textheight
|
% . | | . = . textheight
|
||||||
% . | . | . . = . |
|
% . | . | . . = . |
|
||||||
% . | blockheight . = . |
|
% . | blockheight . = . |
|
||||||
% . | . | . . = . |
|
% . | . | . . = . |
|
||||||
% . | | <---> bindingoffset |
|
% . | | <---> bindingoffset |
|
||||||
% . | . . . . . . | . . = . v
|
% . | . . . . . . | . . = . v
|
||||||
@ -157,7 +167,6 @@
|
|||||||
% and \begin{document}...
|
% and \begin{document}...
|
||||||
\DeclareStringOption[5mm]{bleed}[5mm]
|
\DeclareStringOption[5mm]{bleed}[5mm]
|
||||||
\DeclareStringOption{innerbleed}
|
\DeclareStringOption{innerbleed}
|
||||||
% XXX do we need to rename these??? (used by lualatex??)
|
|
||||||
\DeclareStringOption{blockwidth}
|
\DeclareStringOption{blockwidth}
|
||||||
\DeclareStringOption{blockheight}
|
\DeclareStringOption{blockheight}
|
||||||
\DeclareStringOption[0]{bindingoffset}[10mm]
|
\DeclareStringOption[0]{bindingoffset}[10mm]
|
||||||
@ -249,14 +258,9 @@
|
|||||||
\else
|
\else
|
||||||
\photobook@blockwidth
|
\photobook@blockwidth
|
||||||
\fi}
|
\fi}
|
||||||
|
|
||||||
% XXX EXPERIMENTAL...
|
|
||||||
% XXX not yet sure how to go about this -- should we update \blockwidth
|
|
||||||
% or should we define a new length and let some templates
|
|
||||||
% use one and some use the other???
|
|
||||||
% ...I'm leaning towards the second...
|
|
||||||
% layout: cover...
|
% layout: cover...
|
||||||
\ifdefstring{\layoutmode}{cover}{
|
\ifdefstring{\layoutmode}{cover}{
|
||||||
|
\setlength\innerbleed{\bleed}
|
||||||
\setlength\blockwidth{
|
\setlength\blockwidth{
|
||||||
\dimexpr
|
\dimexpr
|
||||||
2\blockwidth
|
2\blockwidth
|
||||||
@ -264,6 +268,7 @@
|
|||||||
+ \spinewidth \relax } }{}
|
+ \spinewidth \relax } }{}
|
||||||
% layout: endpaper...
|
% layout: endpaper...
|
||||||
\ifdefstring{\layoutmode}{endpaper}{
|
\ifdefstring{\layoutmode}{endpaper}{
|
||||||
|
\setlength\innerbleed{\bleed}
|
||||||
\setlength\blockwidth{
|
\setlength\blockwidth{
|
||||||
2\blockwidth } }{}
|
2\blockwidth } }{}
|
||||||
\fi
|
\fi
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user