added information page templates, need better docs...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2023-03-01 04:40:46 +03:00
parent 9ee2283ec9
commit 4cb658e567

View File

@ -54,6 +54,17 @@
% - pre-print
% - customizing
% - extending
% XXX add basic page templates:
% - acknowledgements
% Fields
% - \Title
% - \Authors
% - \Thanks
% - \ISBN
% - \Edition / \Issue
% - \CopyrightNotice
% - ...
% - info
%
%
%----------------------------------------------------------------------
@ -3907,6 +3918,95 @@
%% a page is required add |\clearpage| manually before the template.
%%
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
%%%%% Basic information
% XXX Document metadata...
% XXX Use LaTeX generic metadata...
\def\BookTitle{}
\def\BookVersion{}
\def\BookAuthors{}
\def\BookYear{%
\the\year}
\def\ByNotice{}
\def\ThanksTo{}
\def\ISBN{}
\def\BookEdition{500}
\def\License{%
All Rights Reserved}
\def\CopyrightNotice{%
Copyright \textcopyright \ \BookYear \ \BookAuthors; \License.
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.}
\def\OtherSoftware{}
\def\BookFonts{}
\def\SoftwareNotice{%
This book was designed and laid out using open source
\ifx \BookFonts \empty\else
fonts and\fi
software including:
\ifx \BookFonts \empty\else%
\BookFonts, \fi
\ifx \OtherSoftware \empty\else%
\OtherSoftware, \fi
\href{https://ctan.org/pkg/photobook}{photobook} and
\href{https://www.latex-project.org/}{\LATEX.}}
%% \DescribeMacro{\BookInfoPage}
%
%% Generate book information page.
%%
% XXX add option to combine this with software info...
\newcommand\BookInfoPage{%
\begin{page}%
\vfill
\begin{flushleft}%
\ifx \CopyrightNotice \empty\else%
{\setlength{\parskip}{0.5em}%
\CopyrightNotice} \\
\vspace{1em}
\fi
\ifx \ByNotice \empty\else%
\ByNotice
\fi
\ifx \ThanksTo \empty\else%
Special thanks to: \ThanksTo \\ \fi
\vspace{1em}
\ifx \ISBN \empty\else%
ISBN: \ISBN \\
\vspace{1em}\fi
\ifx \Edition \empty\else%
Edition: \Edition
\fi
\ifx \BookVersion \empty\else%
Version: \BookVersion
\fi
\end{flushleft}%
\end{page}}
%% \DescribeMacro{\BookSoftwareInfoPage}
%
%% Generate software info page.
%%
\newcommand\BookSoftwareInfoPage{%
\begin{page}%
\vfill
\begin{flushleft}%
\ifx \SoftwareNotice \empty\else%
\SoftwareNotice\fi
\end{flushleft}%
\end{page}}
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
%%%%% Tweaking
%
@ -4890,6 +4990,7 @@
%----------------------------------------------------------------------
%%%% Miscellaneous
%% \DescribeMacro{\PageInfo}
%
%% Display basic paper / page / cell geometry.
@ -5089,6 +5190,12 @@
+ ((#2 mm) * 2)
\relax}}
% XXX DOC...
\def\TEX{%
{\fontfamily{lmr}\selectfont \TeX}}
\def\LATEX{%
{\fontfamily{lmr}\selectfont \LaTeX}}
%----------------------------------------------------------------------