From 29ec8837e4f72a8d4052816218c460a8355a8240 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Wed, 1 Mar 2023 04:53:34 +0300 Subject: [PATCH] added info page example + tweaking... Signed-off-by: Alex A. Naanou --- examples/info.tex | 46 ++++++++++++++++++++++++++++++++++++++++++++++ photobook.cls | 20 +++++++++++++------- 2 files changed, 59 insertions(+), 7 deletions(-) create mode 100644 examples/info.tex diff --git a/examples/info.tex b/examples/info.tex new file mode 100644 index 0000000..0cb8972 --- /dev/null +++ b/examples/info.tex @@ -0,0 +1,46 @@ + +%---------------------------------------------------------------------- + +\documentclass[ + layoutmode=block, + spinewidth=20mm, + spinefold=7mm, + coverboardgrow=3mm, + coverflap=17mm, + % page size... + blockwidth=240mm, blockheight=220mm, + bleed=4mm, + bindingoffset=5mm, + % image block configuration... + imageblockwidth=0.98, imageblockheight=0.98, + imageblockoffsettop=-0.1, + % misc... + 9pt,final,openany +]{photobook} + + +\def\BookTitle{Info page demo} +\def\BookVersion{1.0} +\def\BookAuthors{John J. Smith} +\def\ByNotice{% + Graphics: none + + Text: almost none} +\def\ThanksTo{% + Everyone} +\def\ISBN{000-0-0000000-0-0} +\def\Edition{I 500} + +% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + +\begin{document} + +\BookInfoPage + +\BookSoftwareInfoPage + +\end{document} + + +%---------------------------------------------------------------------- +% vim:set ts=4 sw=4 : diff --git a/photobook.cls b/photobook.cls index bb814d9..ba900b7 100644 --- a/photobook.cls +++ b/photobook.cls @@ -3932,13 +3932,15 @@ \def\ThanksTo{} \def\ISBN{} \def\BookEdition{500} -\def\License{% - All Rights Reserved} +\def\License{} \def\CopyrightNotice{% - Copyright \textcopyright \ \BookYear \ \BookAuthors; \License. + Copyright \textcopyright \ \BookYear \ \BookAuthors; All Rights Reserved. - No part of this book may be reproduced in any form without written permission - of the author except for use for brief quotation in a book review.} + \ifx \License \empty% + No part of this book may be reproduced in any form without written permission + of the author except for use for brief quotation in a book review. + \else% + \License\fi} \def\OtherSoftware{} \def\BookFonts{} @@ -3961,10 +3963,12 @@ %% % XXX add option to combine this with software info... -\newcommand\BookInfoPage{% +\newcommand\BookInfoPage[1][]{% \begin{page}% \vfill \begin{flushleft}% + #1 + \ifx \CopyrightNotice \empty\else% {\setlength{\parskip}{0.5em}% \CopyrightNotice} \\ @@ -3996,10 +4000,12 @@ % %% Generate software info page. %% -\newcommand\BookSoftwareInfoPage{% +\newcommand\BookSoftwareInfoPage[1][]{% \begin{page}% \vfill \begin{flushleft}% + #1 + \ifx \SoftwareNotice \empty\else% \SoftwareNotice\fi \end{flushleft}%