mirror of
https://github.com/flynx/photobook.git
synced 2025-10-29 10:20:08 +00:00
Added better page style defaults for some layouts + added module list to docs.
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
7ff8c2280b
commit
004ee36a1c
@ -58,8 +58,8 @@
|
|||||||
|
|
||||||
%%% NOTE: \def\<module-name>@[A-Z]+ macros will be visible to both the
|
%%% NOTE: \def\<module-name>@[A-Z]+ macros will be visible to both the
|
||||||
%%% code and the generated docs...
|
%%% code and the generated docs...
|
||||||
\edef\photobook@FILEVERSION{v0.1.4}
|
\edef\photobook@FILEVERSION{v0.1.5}
|
||||||
\edef\photobook@FILEDATE{2022-11-13}
|
\edef\photobook@FILEDATE{2022-11-14}
|
||||||
|
|
||||||
|
|
||||||
%% \documentclass{ltxdoc}
|
%% \documentclass{ltxdoc}
|
||||||
@ -404,6 +404,10 @@
|
|||||||
%% \end{verbatim}
|
%% \end{verbatim}
|
||||||
%% \end{minipage}
|
%% \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...
|
% XXX in cover layout setup pdf boxes in a way to use \bleed as foldover...
|
||||||
% ...see hyperref docs to set pdf view/print area (???)
|
% ...see hyperref docs to set pdf view/print area (???)
|
||||||
@ -550,46 +554,82 @@
|
|||||||
|
|
||||||
|
|
||||||
%----------------------------------------------------------------------
|
%----------------------------------------------------------------------
|
||||||
% Packages...
|
%%%% Packages
|
||||||
%
|
%
|
||||||
% NOTE: imports are after \LoadClass{ .. } to avoid figting over macro
|
%% |photobook| adds and uses internally the following packages:
|
||||||
|
%
|
||||||
|
% NOTE: imports are after \LoadClass{ .. } to avoid fighting over macro
|
||||||
% names...
|
% names...
|
||||||
|
|
||||||
|
%% \href{https://ctan.org/pkg/geometry}{geometry},
|
||||||
|
%% \href{https://ctan.org/pkg/kvoptions}{kvoptions},
|
||||||
|
|
||||||
|
%% \href{https://ctan.org/pkg/calc}{calc},
|
||||||
\RequirePackage{calc}
|
\RequirePackage{calc}
|
||||||
|
%% \href{https://ctan.org/pkg/xargs}{xargs},
|
||||||
\RequirePackage{xargs}
|
\RequirePackage{xargs}
|
||||||
|
%% \href{https://ctan.org/pkg/ifthen}{ifthen},
|
||||||
\RequirePackage{ifthen}
|
\RequirePackage{ifthen}
|
||||||
|
%% \href{https://ctan.org/pkg/iftex}{iftex},
|
||||||
\RequirePackage{iftex}
|
\RequirePackage{iftex}
|
||||||
|
%% \href{https://ctan.org/pkg/pgffor}{pgffor},
|
||||||
\RequirePackage{pgffor}
|
\RequirePackage{pgffor}
|
||||||
|
%% \href{https://ctan.org/pkg/xint}{xint},
|
||||||
\RequirePackage{xint}
|
\RequirePackage{xint}
|
||||||
|
%% \href{https://ctan.org/pkg/xinttools}{xinttools},
|
||||||
\RequirePackage{xinttools}
|
\RequirePackage{xinttools}
|
||||||
|
%% \href{https://ctan.org/pkg/listofitems}{listofitems},
|
||||||
\RequirePackage{listofitems}
|
\RequirePackage{listofitems}
|
||||||
|
%% \href{https://ctan.org/pkg/xkeyval}{xkeyval},
|
||||||
\RequirePackage{xkeyval}
|
\RequirePackage{xkeyval}
|
||||||
|
%% \href{https://ctan.org/pkg/etoolbox}{etoolbox},
|
||||||
\RequirePackage{etoolbox}
|
\RequirePackage{etoolbox}
|
||||||
|
%% \href{https://ctan.org/pkg/atbegshi}{atbegshi},
|
||||||
\RequirePackage{atbegshi}
|
\RequirePackage{atbegshi}
|
||||||
%\RequirePackage{afterpage}
|
%\RequirePackage{afterpage}
|
||||||
%\RequirePackage{changepage}
|
%\RequirePackage{changepage}
|
||||||
|
%% \href{https://ctan.org/pkg/hyperref}{hyperref},
|
||||||
\RequirePackage[unicode]{hyperref}
|
\RequirePackage[unicode]{hyperref}
|
||||||
%\RequirePackage{pdfcomment}
|
%\RequirePackage{pdfcomment}
|
||||||
|
%% \href{https://ctan.org/pkg/eso-pic}{eso-pic},
|
||||||
\RequirePackage{eso-pic}
|
\RequirePackage{eso-pic}
|
||||||
|
%% \href{https://ctan.org/pkg/environ}{environ},
|
||||||
\RequirePackage{environ}
|
\RequirePackage{environ}
|
||||||
|
%% \href{https://ctan.org/pkg/numprint}{numprint},
|
||||||
\RequirePackage{numprint}
|
\RequirePackage{numprint}
|
||||||
|
%% \href{https://ctan.org/pkg/trimclip}{trimclip},
|
||||||
\RequirePackage{trimclip}
|
\RequirePackage{trimclip}
|
||||||
|
%% \href{https://ctan.org/pkg/xcolor}{xcolor},
|
||||||
\RequirePackage{xcolor}
|
\RequirePackage{xcolor}
|
||||||
|
%% \href{https://ctan.org/pkg/colorspace}{colorspace},
|
||||||
\RequirePackage{colorspace}
|
\RequirePackage{colorspace}
|
||||||
|
%% \href{https://ctan.org/pkg/graphicx}{graphicx},
|
||||||
\RequirePackage{graphicx}
|
\RequirePackage{graphicx}
|
||||||
|
%% \href{https://ctan.org/pkg/adjustbox}{adjustbox},
|
||||||
\RequirePackage{adjustbox}
|
\RequirePackage{adjustbox}
|
||||||
|
%% \href{https://ctan.org/pkg/adjustbox}{adjustbox},
|
||||||
\RequirePackage[absolute]{textpos}
|
\RequirePackage[absolute]{textpos}
|
||||||
|
%% \href{https://ctan.org/pkg/fancyvrb}{fancyvrb},
|
||||||
\RequirePackage{fancyvrb}
|
\RequirePackage{fancyvrb}
|
||||||
|
%% \href{https://ctan.org/pkg/tikz}{tikz},
|
||||||
\RequirePackage{tikz}
|
\RequirePackage{tikz}
|
||||||
%\RequirePackage[linewidth=1pt]{mdframed}
|
%\RequirePackage[linewidth=1pt]{mdframed}
|
||||||
% XXX flow text frames...
|
% XXX flow text frames...
|
||||||
% XXX this messes with geometry....
|
% XXX this messes with geometry....
|
||||||
%\RequirePackage{flowfram}
|
%\RequirePackage{flowfram}
|
||||||
|
%% \href{https://ctan.org/pkg/rotating}{rotating},
|
||||||
\RequirePackage{rotating}
|
\RequirePackage{rotating}
|
||||||
|
%% \href{https://ctan.org/pkg/fancyhdr}{fancyhdr}, and
|
||||||
\RequirePackage{fancyhdr}
|
\RequirePackage{fancyhdr}
|
||||||
|
%% \href{https://ctan.org/pkg/pdfpages}{pdfpages}.
|
||||||
\RequirePackage{pdfpages}
|
\RequirePackage{pdfpages}
|
||||||
|
|
||||||
|
|
||||||
|
%% \newline
|
||||||
|
%% Most of these packages can be used by the book author without explicitly
|
||||||
|
%% importing them.
|
||||||
|
%%
|
||||||
|
|
||||||
|
|
||||||
%----------------------------------------------------------------------
|
%----------------------------------------------------------------------
|
||||||
%%%% Globals
|
%%%% Globals
|
||||||
@ -954,6 +994,7 @@
|
|||||||
\setlength\pageblockwidth{\blockwidth}
|
\setlength\pageblockwidth{\blockwidth}
|
||||||
% layout: cover...
|
% layout: cover...
|
||||||
\ifcoverlayout
|
\ifcoverlayout
|
||||||
|
\pagestyle{empty}%
|
||||||
\setsepchar{,}%
|
\setsepchar{,}%
|
||||||
\readlist*\pagefoldpanels{%
|
\readlist*\pagefoldpanels{%
|
||||||
\the\coverflap,
|
\the\coverflap,
|
||||||
@ -980,6 +1021,7 @@
|
|||||||
% 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
|
||||||
|
\pagestyle{empty}%
|
||||||
\setsepchar{,}%
|
\setsepchar{,}%
|
||||||
\readlist*\pagefoldpanels{%
|
\readlist*\pagefoldpanels{%
|
||||||
\the\jacketflapback,
|
\the\jacketflapback,
|
||||||
@ -1007,6 +1049,7 @@
|
|||||||
+ \jacketflapback \relax}\fi
|
+ \jacketflapback \relax}\fi
|
||||||
% layout: endpaper...
|
% layout: endpaper...
|
||||||
\ifendpaperlayout
|
\ifendpaperlayout
|
||||||
|
\pagestyle{empty}%
|
||||||
\readlist*\pagefoldpanels{%
|
\readlist*\pagefoldpanels{%
|
||||||
\the\pageblockwidth,
|
\the\pageblockwidth,
|
||||||
\the\pageblockwidth}%
|
\the\pageblockwidth}%
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user