summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/photobook/photobook.cls
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/photobook/photobook.cls')
-rw-r--r--macros/latex/contrib/photobook/photobook.cls77
1 files changed, 54 insertions, 23 deletions
diff --git a/macros/latex/contrib/photobook/photobook.cls b/macros/latex/contrib/photobook/photobook.cls
index 408acee173..f2d75270ad 100644
--- a/macros/latex/contrib/photobook/photobook.cls
+++ b/macros/latex/contrib/photobook/photobook.cls
@@ -58,8 +58,8 @@
%%% NOTE: \def\<module-name>@[A-Z]+ macros will be visible to both the
%%% code and the generated docs...
-\edef\photobook@FILEVERSION{v0.1.3}
-\edef\photobook@FILEDATE{2021-07-28}
+\edef\photobook@FILEVERSION{v0.1.5}
+\edef\photobook@FILEDATE{2022-11-14}
%% \documentclass{ltxdoc}
@@ -404,6 +404,10 @@
%% \end{verbatim}
%% \end{minipage}
%%
+%% Note that for |cover|, |endpaper|, and |jacket|,
+%% \href{https://ctan.org/pkg/fancyhdr}{fancyhdr}'s |\pagestyle{..}| is
+%% set to |empty| by default.
+%%
%
% XXX in cover layout setup pdf boxes in a way to use \bleed as foldover...
% ...see hyperref docs to set pdf view/print area (???)
@@ -550,46 +554,82 @@
%----------------------------------------------------------------------
-% Packages...
+%%%% Packages
+%
+%% |photobook| adds and uses internally the following packages:
%
-% NOTE: imports are after \LoadClass{ .. } to avoid figting over macro
+% NOTE: imports are after \LoadClass{ .. } to avoid fighting over macro
% names...
+%% \href{https://ctan.org/pkg/geometry}{geometry},
+%% \href{https://ctan.org/pkg/kvoptions}{kvoptions},
+
+%% \href{https://ctan.org/pkg/calc}{calc},
\RequirePackage{calc}
+%% \href{https://ctan.org/pkg/xargs}{xargs},
\RequirePackage{xargs}
+%% \href{https://ctan.org/pkg/ifthen}{ifthen},
\RequirePackage{ifthen}
+%% \href{https://ctan.org/pkg/iftex}{iftex},
\RequirePackage{iftex}
+%% \href{https://ctan.org/pkg/pgffor}{pgffor},
\RequirePackage{pgffor}
+%% \href{https://ctan.org/pkg/xint}{xint},
\RequirePackage{xint}
+%% \href{https://ctan.org/pkg/xinttools}{xinttools},
\RequirePackage{xinttools}
+%% \href{https://ctan.org/pkg/listofitems}{listofitems},
\RequirePackage{listofitems}
+%% \href{https://ctan.org/pkg/xkeyval}{xkeyval},
\RequirePackage{xkeyval}
+%% \href{https://ctan.org/pkg/etoolbox}{etoolbox},
\RequirePackage{etoolbox}
+%% \href{https://ctan.org/pkg/atbegshi}{atbegshi},
\RequirePackage{atbegshi}
%\RequirePackage{afterpage}
%\RequirePackage{changepage}
+%% \href{https://ctan.org/pkg/hyperref}{hyperref},
\RequirePackage[unicode]{hyperref}
%\RequirePackage{pdfcomment}
+%% \href{https://ctan.org/pkg/eso-pic}{eso-pic},
\RequirePackage{eso-pic}
+%% \href{https://ctan.org/pkg/environ}{environ},
\RequirePackage{environ}
+%% \href{https://ctan.org/pkg/numprint}{numprint},
\RequirePackage{numprint}
+%% \href{https://ctan.org/pkg/trimclip}{trimclip},
\RequirePackage{trimclip}
+%% \href{https://ctan.org/pkg/xcolor}{xcolor},
\RequirePackage{xcolor}
+%% \href{https://ctan.org/pkg/colorspace}{colorspace},
\RequirePackage{colorspace}
+%% \href{https://ctan.org/pkg/graphicx}{graphicx},
\RequirePackage{graphicx}
+%% \href{https://ctan.org/pkg/adjustbox}{adjustbox},
\RequirePackage{adjustbox}
+%% \href{https://ctan.org/pkg/adjustbox}{adjustbox},
\RequirePackage[absolute]{textpos}
+%% \href{https://ctan.org/pkg/fancyvrb}{fancyvrb},
\RequirePackage{fancyvrb}
+%% \href{https://ctan.org/pkg/tikz}{tikz},
\RequirePackage{tikz}
%\RequirePackage[linewidth=1pt]{mdframed}
% XXX flow text frames...
% XXX this messes with geometry....
%\RequirePackage{flowfram}
+%% \href{https://ctan.org/pkg/rotating}{rotating},
\RequirePackage{rotating}
+%% \href{https://ctan.org/pkg/fancyhdr}{fancyhdr}, and
\RequirePackage{fancyhdr}
+%% \href{https://ctan.org/pkg/pdfpages}{pdfpages}.
\RequirePackage{pdfpages}
+%% \newline
+%% Most of these packages can be used by the book author without explicitly
+%% importing them.
+%%
+
%----------------------------------------------------------------------
%%%% Globals
@@ -646,6 +686,7 @@
%% Cover flap
%%
\newlength\coverflap
+\setlength\coverflap{\photobook@coverflap}
%% \DescribeMacro{\jacketwrap=<len>}
%% \DescribeMacro{\jacketflap=<len>}
@@ -655,9 +696,13 @@
%% Jacker configuration
%%
\newlength\jacketwrap
+\setlength\jacketwrap{\photobook@jacketwrap}
\newlength\jacketflap
+\setlength\jacketflap{\photobook@jacketflap}
\newlength\jacketflapfront
+\setlength\jacketflapfront{\photobook@jacketflapfront}
\newlength\jacketflapback
+\setlength\jacketflapback{\photobook@jacketflapback}
%% \DescribeMacro{\blockwidth=<len>}
%% \DescribeMacro{\blockheight=<len>}
@@ -926,26 +971,9 @@
\else
\def\pdfpagelayout{\photobook@pdfpagelayout}\fi
% items to ignore in different layouts...
- \ifcoverlayout
- \setlength\coverflap{
- \ifx\coverflap\empty
- \photobook@coverflap
- \else
- \coverflap \fi}
- \else
+ \ifcoverlayout\else
\setlength\coverflap{0pt}\fi
- \ifjacketlayout
- \setlength\jacketwrap{
- \ifx\jacketwrap\empty
- \photobook@jacketwrap
- \else
- \jacketwrap \fi}
- \setlength\jacketflap{
- \ifx\jacketflap\empty
- \photobook@jacketflap
- \else
- \jacketflap \fi}
- \else
+ \ifjacketlayout\else
\setlength\jacketwrap{0pt}
\setlength\jacketflap{0pt}\fi
% flaps...
@@ -966,6 +994,7 @@
\setlength\pageblockwidth{\blockwidth}
% layout: cover...
\ifcoverlayout
+ \pagestyle{empty}%
\setsepchar{,}%
\readlist*\pagefoldpanels{%
\the\coverflap,
@@ -992,6 +1021,7 @@
% layout: jacket...
% XXX this seems to be about 6mm off -- what are we missing here???
\ifjacketlayout
+ \pagestyle{empty}%
\setsepchar{,}%
\readlist*\pagefoldpanels{%
\the\jacketflapback,
@@ -1019,6 +1049,7 @@
+ \jacketflapback \relax}\fi
% layout: endpaper...
\ifendpaperlayout
+ \pagestyle{empty}%
\readlist*\pagefoldpanels{%
\the\pageblockwidth,
\the\pageblockwidth}%