%---------------------------------------------------------------------- % % % This does the following: % - sets up the document/pdf for viewing as a book % - adds support for page bleeds % - adds basic templates for image pages (XXX) % % % XXX BUG: fix \OFFSETFIX % XXX BUG: fix \CAPTIONWIDTHFIX % XXX BUG: there seems to be a slight offset bias... % % XXX might be a good idea to add a spine calculator... % %---------------------------------------------------------------------- % %% \documentclass{ltxdoc} %% %% \usepackage[a4paper,margin=25mm,left=50mm,nohead]{geometry} %% \usepackage[numbered]{hypdoc} %%% \usepackage{verbatimbox} %% %% %% \begin{document} %% %% \GetFileInfo{\jobname.cls} %% %% \title{\textsf{photobook} --- A new LaTeX class\thanks{This file %% describes version \fileversion, last revised \filedate.}} %% %% \author{Alex A. Naanou\thanks{E-mail: alex.nanou@gmail.com}} %% %% \date{Released \filedate} %% %% \maketitle %% %%%% Usage %% %% >> \documentclass[]{photobook} %% % %---------------------------------------------------------------------- \NeedsTeXFormat{LaTeX2e} % XXX set release date... \ProvidesClass{photobook}[2021/07/28 v0.1 Photo book document class] % - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - %%%% Options %% \RequirePackage{kvoptions} % - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - % Helpers... \newcommand\@DeclareLiteralOptionTo[2]{% \DeclareVoidOption{#2}{% \expandafter\edef\csname photobook@#1\endcsname{#2}}} % - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - %%%%% layout % %% \DescribeMacro{layoutmode=} %% \DescribeMacro{block} %% \DescribeMacro{endpaper} %% \DescribeMacro{cover} %% \DescribeMacro{jacket} %% %% >> layoutmode=