tweaking...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2021-07-30 00:08:28 +03:00
parent e03cdae7d5
commit ce45a4829d

View File

@ -17,6 +17,7 @@
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - % - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
\RequirePackage{calc} \RequirePackage{calc}
\RequirePackage{xargs}
\RequirePackage{iftex} \RequirePackage{iftex}
\RequirePackage{kvoptions} \RequirePackage{kvoptions}
\RequirePackage{etoolbox} \RequirePackage{etoolbox}
@ -24,6 +25,7 @@
\RequirePackage[unicode]{hyperref} \RequirePackage[unicode]{hyperref}
\RequirePackage{graphicx} \RequirePackage{graphicx}
\RequirePackage{geometry} \RequirePackage{geometry}
\RequirePackage{eso-pic}
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - % - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@ -56,17 +58,17 @@
% + - - - - - - - - - - - - - - - - - - - - - + - + ^ % + - - - - - - - - - - - - - - - - - - - - - + - + ^
% . . . | bleed % . . . | bleed
% . +---------------------------------------+ . v . . --- % . +---------------------------------------+ . v . . ---
% . | ^ . | . % . | ^ . = .
% . | . . . . . . | . . | . ^ % . | . . . . . . | . . = . ^
% . |<-- pagewidth ------------------------>| . | % . |<-- pagewidth ------------------------>= . |
% . | . | . . | . | % . | . | . . = . |
% . | | . | . textheight % . | | . = . textheight
% . | . | . . | . | % . | . | . . = . |
% . | pageheight . | . | % . | pageheight . = . |
% . | . | . . | . | % . | . | . . = . |
% . | | <---> bindingoffset | % . | | <---> bindingoffset |
% . | . . . . . . | . . | . v % . | . . . . . . | . . = . v
% . | v . | . % . | v . = .
% . +---------------------------------------+ . ^ . . --- % . +---------------------------------------+ . ^ . . ---
% . . . . | bleed % . . . . | bleed
% + - - - - - - - - - - - - - - - - - - - - - + - + v % + - - - - - - - - - - - - - - - - - - - - - + - + v
@ -74,19 +76,24 @@
% | <-- textwidth --------------> . | % | <-- textwidth --------------> . |
% ^ binding line % ^ binding line
% %
% NOTE: innerbleed defaults to bleed...
% NOTE: if pagewidth/pageheight are set they will force recalculations % NOTE: if pagewidth/pageheight are set they will force recalculations
% and overriding of the paperwidth/paperheight if they were changed % and overriding of the paperwidth/paperheight if they were changed
% by the user code anywhere between \documentclass[..]{photobook} % by the user code anywhere between \documentclass[..]{photobook}
% 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{pagewidth} \DeclareStringOption{pagewidth}
\DeclareStringOption{pageheight} \DeclareStringOption{pageheight}
\DeclareStringOption[0]{bindingoffset}[10mm] \DeclareStringOption[0]{bindingoffset}[10mm]
% XXX handle options: % Image block size relative to text block...
% - image block (w, h) %
% ...should this be a global setting or a template thing??? % XXX better name...
\DeclareStringOption[0.85]{imageblockwidth}[1]
\DeclareStringOption[0.85]{imageblockheight}[1]
\DeclareStringOption[-0.05]{imageblockoffsettop}[0]
\DeclareDefaultOption{\PassOptionsToClass{\CurrentOption}{book}} \DeclareDefaultOption{\PassOptionsToClass{\CurrentOption}{book}}
\ProcessKeyvalOptions* \ProcessKeyvalOptions*
@ -178,6 +185,7 @@
%---------------------------------------------------------------------- %----------------------------------------------------------------------
\AtEndPreamble{ \AtEndPreamble{