mirror of
https://github.com/flynx/photobook.git
synced 2025-10-29 10:20:08 +00:00
revised doc structure...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
3b98c6c20e
commit
32e3f0c561
3
Makefile
3
Makefile
@ -3,7 +3,10 @@
|
|||||||
|
|
||||||
ARGS :=
|
ARGS :=
|
||||||
|
|
||||||
|
# NOTE: need to run latex two times to build index, the simpler way to
|
||||||
|
# go is to use latexmk...
|
||||||
#TEX := lualatex $(ARGS)
|
#TEX := lualatex $(ARGS)
|
||||||
|
|
||||||
TEX := latexmk -lualatex $(ARGS)
|
TEX := latexmk -lualatex $(ARGS)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
140
photobook.cls
140
photobook.cls
@ -32,12 +32,16 @@
|
|||||||
%% \usepackage{doctools}
|
%% \usepackage{doctools}
|
||||||
%% \usepackage{environ}
|
%% \usepackage{environ}
|
||||||
%%
|
%%
|
||||||
%%% \usepackage{imakeidx}
|
%% \usepackage[toc]{multitoc}
|
||||||
%%% \makeindex[
|
%% \renewcommand*{\multicolumntoc}{2}
|
||||||
%%% columns=3,
|
%% \setlength{\columnseprule}{0.5pt}
|
||||||
%%% title=Alphabetical Index,
|
%%
|
||||||
%%% intoc,
|
%% \usepackage{imakeidx}
|
||||||
%%% options= -s photobook.cls]
|
%% \makeindex[
|
||||||
|
%% columns=3,
|
||||||
|
%% title=Alphabetical Index,
|
||||||
|
%% intoc,
|
||||||
|
%% options= -s photobook.ist]
|
||||||
%%
|
%%
|
||||||
%%% \newcommand\DescribeGlobal[1]{%
|
%%% \newcommand\DescribeGlobal[1]{%
|
||||||
%%% \DescribeMacro{#1}}
|
%%% \DescribeMacro{#1}}
|
||||||
@ -67,11 +71,19 @@
|
|||||||
%%
|
%%
|
||||||
%% \maketitle
|
%% \maketitle
|
||||||
%%
|
%%
|
||||||
%% \fbox{\bf%
|
%% \begin{abstract}
|
||||||
%% Note: all legacy templates/commnads/macros will get reworked soon! }
|
%% The |photobook| \LaTeX\space document class extends the |book| class
|
||||||
|
%% defining a set of parameters, meta-macros, macros and environments
|
||||||
|
%% with reasonable defaults to help typeset, build and print books mainly
|
||||||
|
%% based on visual/image content.
|
||||||
|
%% \end{abstract}
|
||||||
%%
|
%%
|
||||||
%% \tableofcontents
|
%% \tableofcontents
|
||||||
%%
|
%%
|
||||||
|
%%%% Introduction
|
||||||
|
%
|
||||||
|
%% XXX parameters, page spreads, templates, cell concept, ...
|
||||||
|
%
|
||||||
%%%% Usage
|
%%%% Usage
|
||||||
%
|
%
|
||||||
%% >> \documentclass[<options>]{photobook}
|
%% >> \documentclass[<options>]{photobook}
|
||||||
@ -2718,7 +2730,7 @@
|
|||||||
\newlength\imageoffsetleft
|
\newlength\imageoffsetleft
|
||||||
|
|
||||||
%% \DescribeMacro{\tweakimagescale\{..\}}
|
%% \DescribeMacro{\tweakimagescale\{..\}}
|
||||||
%% \DescribeMacro{\tweakimageoffsetleft\{..\}}
|
%% \DescribeMacro{\tweakimageoffsettop\{..\}}
|
||||||
%% \DescribeMacro{\tweakimageoffsetleft\{..\}}
|
%% \DescribeMacro{\tweakimageoffsetleft\{..\}}
|
||||||
%
|
%
|
||||||
%% Convenience commands
|
%% Convenience commands
|
||||||
@ -2731,11 +2743,14 @@
|
|||||||
%%
|
%%
|
||||||
\newcommand\tweakimagescale[1]{%
|
\newcommand\tweakimagescale[1]{%
|
||||||
\edef\imagescale{#1}}
|
\edef\imagescale{#1}}
|
||||||
|
|
||||||
\newcommand\tweakimageoffsettop[1]{%
|
\newcommand\tweakimageoffsettop[1]{%
|
||||||
\setlength\imageoffsettop{#1}}
|
\setlength\imageoffsettop{#1}}
|
||||||
|
|
||||||
\newcommand\tweakimageoffsetleft[1]{%
|
\newcommand\tweakimageoffsetleft[1]{%
|
||||||
\setlength\imageoffsetleft{#1}}
|
\setlength\imageoffsetleft{#1}}
|
||||||
|
|
||||||
|
|
||||||
%% \DescribeMacro{\resetimagetweaks\{..\}}
|
%% \DescribeMacro{\resetimagetweaks\{..\}}
|
||||||
%
|
%
|
||||||
%% Reset tweaked values.
|
%% Reset tweaked values.
|
||||||
@ -2790,7 +2805,7 @@
|
|||||||
|
|
||||||
|
|
||||||
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
%%%%% Templates
|
%%%%% General interface
|
||||||
%
|
%
|
||||||
%% A templates provide a uniform interface consisting of several commands:
|
%% A templates provide a uniform interface consisting of several commands:
|
||||||
%%
|
%%
|
||||||
@ -2822,6 +2837,9 @@
|
|||||||
%% to configure the template defaults separately.
|
%% to configure the template defaults separately.
|
||||||
%%
|
%%
|
||||||
|
|
||||||
|
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
|
%%%%% No bleed
|
||||||
|
|
||||||
%% \DescribeMacro{\ImagePage\{..\}}
|
%% \DescribeMacro{\ImagePage\{..\}}
|
||||||
%% \DescribeMacro{\ImagePageCaption\{..\}}
|
%% \DescribeMacro{\ImagePageCaption\{..\}}
|
||||||
%% \DescribeMacro{\resetImagePageCaption}
|
%% \DescribeMacro{\resetImagePageCaption}
|
||||||
@ -2879,6 +2897,9 @@
|
|||||||
\end{page}}
|
\end{page}}
|
||||||
|
|
||||||
|
|
||||||
|
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
|
%%%%% Partial bleed
|
||||||
|
|
||||||
%% \DescribeMacro{\ImagePageFit\{..\}}
|
%% \DescribeMacro{\ImagePageFit\{..\}}
|
||||||
%% \DescribeMacro{\ImagePageFitCaption\{..\}}
|
%% \DescribeMacro{\ImagePageFitCaption\{..\}}
|
||||||
%% \DescribeMacro{\resetImagePageFitCaption}
|
%% \DescribeMacro{\resetImagePageFitCaption}
|
||||||
@ -2929,46 +2950,6 @@
|
|||||||
\end{page}}
|
\end{page}}
|
||||||
|
|
||||||
|
|
||||||
%% \DescribeMacro{\ImagePageFill\{..\}}
|
|
||||||
%% \DescribeMacro{\ImagePageFillCaption\{..\}}
|
|
||||||
%% \DescribeMacro{\resetImagePageFillCaption}
|
|
||||||
%% \DescribeMacro{\ImagePageFill*\{..\}}
|
|
||||||
%
|
|
||||||
%% Like |\ImagePage| but will fill page with image.
|
|
||||||
%
|
|
||||||
%% >> \ImagePageFill[<options>]{<caption>}{<image>}
|
|
||||||
%%
|
|
||||||
%% \begin{minipage}{\textwidth}
|
|
||||||
%% \begin{verbatim}
|
|
||||||
%%
|
|
||||||
%% . . . . . . . . . . . . . . . . . . .
|
|
||||||
%% . . +-----------------+ . .
|
|
||||||
%% . . | c | . .
|
|
||||||
%% . .| |. .
|
|
||||||
%% . | . . | .
|
|
||||||
%% . | . . | .
|
|
||||||
%% . | image | .
|
|
||||||
%% . | . . | .
|
|
||||||
%% . | . . | .
|
|
||||||
%% . .| |. .
|
|
||||||
%% . . | | . .
|
|
||||||
%% . . +-----------------+ . .
|
|
||||||
%% . . . . . . . . . . . . . . . . . . .
|
|
||||||
%%
|
|
||||||
%% \end{verbatim}
|
|
||||||
%% \end{minipage}
|
|
||||||
%%
|
|
||||||
%% Default image clearence (|clearimage| option value in |\imagecell{..}|)
|
|
||||||
%% is set by |\clearimage| global length.
|
|
||||||
%%
|
|
||||||
\ResettableMacro{ImagePageFillCaption}[1]{%
|
|
||||||
\captioncell[top, align=flushright]{%
|
|
||||||
\captionformat{#1}}}
|
|
||||||
|
|
||||||
\ImagePageTemplate{ImagePageFill}{%
|
|
||||||
\ImagePageFit*[fill, #1]{#2}{#3}}
|
|
||||||
|
|
||||||
|
|
||||||
% XXX
|
% XXX
|
||||||
% XXX \OFFSETFIX
|
% XXX \OFFSETFIX
|
||||||
%% \DescribeMacro{\portraitimagepageleft\{..\}}
|
%% \DescribeMacro{\portraitimagepageleft\{..\}}
|
||||||
@ -3022,7 +3003,7 @@
|
|||||||
%% \begin{minipage}{\textwidth}
|
%% \begin{minipage}{\textwidth}
|
||||||
%% \begin{verbatim}
|
%% \begin{verbatim}
|
||||||
%%
|
%%
|
||||||
%% . . . . . . . .
|
%% . . . . . . . .
|
||||||
%% +-----------------+ .
|
%% +-----------------+ .
|
||||||
%% | |. .| .
|
%% | |. .| .
|
||||||
%% | | . . | .
|
%% | | . . | .
|
||||||
@ -3034,7 +3015,7 @@
|
|||||||
%% | | . . | .
|
%% | | . . | .
|
||||||
%% | c |. .| .
|
%% | c |. .| .
|
||||||
%% +-----------------+ .
|
%% +-----------------+ .
|
||||||
%% . . . . . . . .
|
%% . . . . . . . .
|
||||||
%%
|
%%
|
||||||
%% \end{verbatim}
|
%% \end{verbatim}
|
||||||
%% \end{minipage}
|
%% \end{minipage}
|
||||||
@ -3057,6 +3038,49 @@
|
|||||||
\newpage }
|
\newpage }
|
||||||
|
|
||||||
|
|
||||||
|
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
|
%%%%% Full bleed
|
||||||
|
|
||||||
|
%% \DescribeMacro{\ImagePageFill\{..\}}
|
||||||
|
%% \DescribeMacro{\ImagePageFillCaption\{..\}}
|
||||||
|
%% \DescribeMacro{\resetImagePageFillCaption}
|
||||||
|
%% \DescribeMacro{\ImagePageFill*\{..\}}
|
||||||
|
%
|
||||||
|
%% Like |\ImagePage| but will fill page with image.
|
||||||
|
%
|
||||||
|
%% >> \ImagePageFill[<options>]{<caption>}{<image>}
|
||||||
|
%%
|
||||||
|
%% \begin{minipage}{\textwidth}
|
||||||
|
%% \begin{verbatim}
|
||||||
|
%%
|
||||||
|
%% . . . . . . . . . . . . . . . . . . .
|
||||||
|
%% . . +-----------------+ . .
|
||||||
|
%% . . | c | . .
|
||||||
|
%% . .| |. .
|
||||||
|
%% . | . . | .
|
||||||
|
%% . | . . | .
|
||||||
|
%% . | image | .
|
||||||
|
%% . | . . | .
|
||||||
|
%% . | . . | .
|
||||||
|
%% . .| |. .
|
||||||
|
%% . . | | . .
|
||||||
|
%% . . +-----------------+ . .
|
||||||
|
%% . . . . . . . . . . . . . . . . . . .
|
||||||
|
%%
|
||||||
|
%% \end{verbatim}
|
||||||
|
%% \end{minipage}
|
||||||
|
%%
|
||||||
|
%% Default image clearence (|clearimage| option value in |\imagecell{..}|)
|
||||||
|
%% is set by |\clearimage| global length.
|
||||||
|
%%
|
||||||
|
\ResettableMacro{ImagePageFillCaption}[1]{%
|
||||||
|
\captioncell[top, align=flushright]{%
|
||||||
|
\captionformat{#1}}}
|
||||||
|
|
||||||
|
\ImagePageTemplate{ImagePageFill}{%
|
||||||
|
\ImagePageFit*[fill, #1]{#2}{#3}}
|
||||||
|
|
||||||
|
|
||||||
%% \DescribeMacro{\ImageHalfPageL\{..\}}
|
%% \DescribeMacro{\ImageHalfPageL\{..\}}
|
||||||
%% \DescribeMacro{\ImageHalfPageLCaption\{..\}}
|
%% \DescribeMacro{\ImageHalfPageLCaption\{..\}}
|
||||||
%% \DescribeMacro{\resetImageHalfPageLCaption}
|
%% \DescribeMacro{\resetImageHalfPageLCaption}
|
||||||
@ -3160,6 +3184,10 @@
|
|||||||
%----------------------------------------------------------------------
|
%----------------------------------------------------------------------
|
||||||
%%%% Spread Templates
|
%%%% Spread Templates
|
||||||
|
|
||||||
|
|
||||||
|
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
|
%%%%% Partial bleed
|
||||||
|
|
||||||
% XXX
|
% XXX
|
||||||
%% \DescribeMacro{\portraitspreadbleedleft\{..\}}
|
%% \DescribeMacro{\portraitspreadbleedleft\{..\}}
|
||||||
%
|
%
|
||||||
@ -3337,6 +3365,9 @@
|
|||||||
\end{spreadtopages}}
|
\end{spreadtopages}}
|
||||||
|
|
||||||
|
|
||||||
|
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
|
%%%%% Full bleed
|
||||||
|
|
||||||
%% \DescribeMacro{\ImageSpreadFill\{..\}}
|
%% \DescribeMacro{\ImageSpreadFill\{..\}}
|
||||||
%% \DescribeMacro{\ImageSpreadFillCaption\{..\}}
|
%% \DescribeMacro{\ImageSpreadFillCaption\{..\}}
|
||||||
%% \DescribeMacro{\resetImageSpreadFillCaption}
|
%% \DescribeMacro{\resetImageSpreadFillCaption}
|
||||||
@ -3386,7 +3417,7 @@
|
|||||||
|
|
||||||
|
|
||||||
%----------------------------------------------------------------------
|
%----------------------------------------------------------------------
|
||||||
%%%% Meta macros and environments
|
%%%% Meta Macros / Environments
|
||||||
%
|
%
|
||||||
%% These macros and environments are used internally to help define cells
|
%% These macros and environments are used internally to help define cells
|
||||||
%% and templates and thus can be useful when extending the functionality
|
%% and templates and thus can be useful when extending the functionality
|
||||||
@ -3500,8 +3531,9 @@
|
|||||||
|
|
||||||
|
|
||||||
%----------------------------------------------------------------------
|
%----------------------------------------------------------------------
|
||||||
% Tail stuff...
|
% Index...
|
||||||
%
|
%
|
||||||
|
% XXX this prints trash at this point...
|
||||||
%%% \printindex
|
%%% \printindex
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user