mirror of
https://github.com/flynx/photobook.git
synced 2025-11-02 04:10:13 +00:00
cleanup...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
8ed6c2cf24
commit
5c493fa092
@ -180,21 +180,14 @@
|
|||||||
|
|
||||||
|
|
||||||
%----------------------------------------------------------------------
|
%----------------------------------------------------------------------
|
||||||
% page / spread templates...
|
% Setup...
|
||||||
|
|
||||||
% XXX
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%----------------------------------------------------------------------
|
|
||||||
\AtEndPreamble{
|
\AtEndPreamble{
|
||||||
|
|
||||||
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
% Metadata...
|
% Metadata...
|
||||||
|
|
||||||
\hypersetup{
|
\hypersetup{
|
||||||
pdfinfo={
|
pdfinfo={
|
||||||
Title={\@title},
|
Title={\@title},
|
||||||
Subject={\@subject},
|
Subject={\@subject},
|
||||||
@ -202,15 +195,15 @@
|
|||||||
Keywords={\@keywords},
|
Keywords={\@keywords},
|
||||||
},
|
},
|
||||||
pdfpagelayout=\photobook@pdfpagelayout,
|
pdfpagelayout=\photobook@pdfpagelayout,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
% Geometry...
|
% Geometry...
|
||||||
|
|
||||||
\RecalculatePageLengths
|
\RecalculatePageLengths
|
||||||
|
|
||||||
\geometry{
|
\geometry{
|
||||||
% paper size (incl. bleeds)...
|
% paper size (incl. bleeds)...
|
||||||
paperwidth=\bleedblockwidth, paperheight=\bleedblockheight,
|
paperwidth=\bleedblockwidth, paperheight=\bleedblockheight,
|
||||||
bindingoffset=\bindingoffset,
|
bindingoffset=\bindingoffset,
|
||||||
@ -225,22 +218,22 @@
|
|||||||
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
% pdf boxes...
|
% pdf boxes...
|
||||||
|
|
||||||
% calculate pdf box dimensions in pt...
|
% calculate pdf box dimensions in pt...
|
||||||
\edef\@pdfWidthPt{\strip@pt\dimexpr
|
\edef\@pdfWidthPt{\strip@pt\dimexpr
|
||||||
0.996264009963\bleedblockwidth \relax}
|
0.996264009963\bleedblockwidth \relax}
|
||||||
\edef\@pdfHeightPt{\strip@pt\dimexpr
|
\edef\@pdfHeightPt{\strip@pt\dimexpr
|
||||||
0.996264009963\bleedblockheight \relax}
|
0.996264009963\bleedblockheight \relax}
|
||||||
\edef\@pdfBleedPt{\strip@pt\dimexpr
|
\edef\@pdfBleedPt{\strip@pt\dimexpr
|
||||||
0.996264009963\bleed \relax}
|
0.996264009963\bleed \relax}
|
||||||
\edef\@pdfTopPt{\strip@pt\dimexpr
|
\edef\@pdfTopPt{\strip@pt\dimexpr
|
||||||
0.996264009963\dimexpr
|
0.996264009963\dimexpr
|
||||||
\bleedblockheight - \bleed \relax \relax}
|
\bleedblockheight - \bleed \relax \relax}
|
||||||
\edef\@pdfRightPt{\strip@pt\dimexpr
|
\edef\@pdfRightPt{\strip@pt\dimexpr
|
||||||
0.996264009963\dimexpr
|
0.996264009963\dimexpr
|
||||||
\bleedblockwidth - \bleed \relax \relax}
|
\bleedblockwidth - \bleed \relax \relax}
|
||||||
|
|
||||||
% set the boxes...
|
% set the boxes...
|
||||||
\ifxetex
|
\ifxetex
|
||||||
% XXX not tested...
|
% XXX not tested...
|
||||||
\AtBeginShipout{\AtBeginShipoutAddToBox{
|
\AtBeginShipout{\AtBeginShipoutAddToBox{
|
||||||
\special{pdf:put @thispage <<
|
\special{pdf:put @thispage <<
|
||||||
@ -251,7 +244,7 @@
|
|||||||
/CropBox [\@pdfBleedPt\space \@pdfBleedPt\space \@pdfRightPt\space \@pdfTopPt]
|
/CropBox [\@pdfBleedPt\space \@pdfBleedPt\space \@pdfRightPt\space \@pdfTopPt]
|
||||||
>>} }}
|
>>} }}
|
||||||
|
|
||||||
\else
|
\else
|
||||||
\edef\pdfboxes{
|
\edef\pdfboxes{
|
||||||
/MediaBox [0 0 \@pdfWidthPt\space \@pdfHeightPt]
|
/MediaBox [0 0 \@pdfWidthPt\space \@pdfHeightPt]
|
||||||
/BleedBox [0 0 \@pdfWidthPt\space \@pdfHeightPt]
|
/BleedBox [0 0 \@pdfWidthPt\space \@pdfHeightPt]
|
||||||
@ -260,10 +253,21 @@
|
|||||||
/CropBox [\@pdfBleedPt\space \@pdfBleedPt\space \@pdfRightPt\space \@pdfTopPt]
|
/CropBox [\@pdfBleedPt\space \@pdfBleedPt\space \@pdfRightPt\space \@pdfTopPt]
|
||||||
}
|
}
|
||||||
\expandafter\pdfpageattr\expandafter{\pdfboxes}
|
\expandafter\pdfpageattr\expandafter{\pdfboxes}
|
||||||
\fi
|
\fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
} % \AtEndPreamble{..}
|
} % \AtEndPreamble{..}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
%----------------------------------------------------------------------
|
||||||
|
% Templates...
|
||||||
|
|
||||||
|
% XXX
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%----------------------------------------------------------------------
|
%----------------------------------------------------------------------
|
||||||
% vim:set ts=4 sw=4 :
|
% vim:set ts=4 sw=4 :
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user