mirror of
https://github.com/flynx/photobook.git
synced 2025-10-29 10:20:08 +00:00
more refactoring...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
83bef8037f
commit
6092c77c97
174
photobook.cls
174
photobook.cls
@ -3586,106 +3586,118 @@
|
|||||||
%%%%% Partial bleed
|
%%%%% Partial bleed
|
||||||
|
|
||||||
|
|
||||||
% XXX make these T/B/L/R and combine docs...
|
%% \DescribeMacro{\ImageSpreadFit\{..\}}
|
||||||
|
%% \DescribeMacro{\ImageSpreadFitCaption\{..\}}
|
||||||
|
%% \DescribeMacro{\resetImageSpreadFitCaption}
|
||||||
|
%% \DescribeMacro{\ImageSpreadFit*\{..\}}
|
||||||
|
%
|
||||||
|
%% \begin{minipage}{\textwidth}
|
||||||
|
%% \begin{verbatim}
|
||||||
|
%%
|
||||||
|
%% . . . . . . . . . . .
|
||||||
|
%% +---------------+---------------+ +---------------+---------------+
|
||||||
|
%% | . | | |. . .|. |
|
||||||
|
%% . |-------------------------------| . | | . . . | |
|
||||||
|
%% . | . . . | . | | . . . | |
|
||||||
|
%% . | . . . | . | | . . . | |
|
||||||
|
%% . | image | . | | image | |
|
||||||
|
%% . | . . . | . | | . . . | |
|
||||||
|
%% . | . . . | . | | . . . | |
|
||||||
|
%% . |-------------------------------| . | | . . . | |
|
||||||
|
%% | . c | | |. . .| c |
|
||||||
|
%% +---------------+---------------+ +---------------+---------------+
|
||||||
|
%% . . . . . . . . . . .
|
||||||
|
%%
|
||||||
|
%% \end{verbatim}
|
||||||
|
%% \end{minipage}
|
||||||
|
%%
|
||||||
|
% XXX TEST...
|
||||||
|
% XXX make caption adaptive...
|
||||||
|
\ResettableMacro{ImageSpreadFitCaption}[1]{%
|
||||||
|
\captioncell[under]{%
|
||||||
|
\captionformat{#1}}}
|
||||||
|
\ImagePageTemplate{ImageSpreadFit}{%
|
||||||
|
\cleartoleftpage%
|
||||||
|
\begin{spreadtopages}[2]%
|
||||||
|
\imagecell[%
|
||||||
|
fit,
|
||||||
|
clearance=-\bleed,
|
||||||
|
scale=\imagescale,
|
||||||
|
offsettop=\imageoffsettop,
|
||||||
|
offsetleft=\imageoffsetleft,
|
||||||
|
#1]{#2}{#3}%
|
||||||
|
\end{spreadtopages}}
|
||||||
|
|
||||||
|
|
||||||
%% \DescribeMacro{\ImageSpreadLeft\{..\}}
|
%% \DescribeMacro{\ImageSpread<D>\{..\}}
|
||||||
%% \DescribeMacro{\ImageSpreadLeftCaption\{..\}}
|
%% \DescribeMacro{\ImageSpread<D>Caption\{..\}}
|
||||||
%% \DescribeMacro{\resetImageSpreadLeftCaption}
|
%% \DescribeMacro{\resetImageSpread<D>Caption}
|
||||||
%% \DescribeMacro{\ImageSpreadLeft*\{..\}}
|
%% \DescribeMacro{\ImageSpread<D>*\{..\}}
|
||||||
%
|
%
|
||||||
%% Image spread aligned left (with bleed).
|
%% Image spread aligned left (with bleed).
|
||||||
%
|
%
|
||||||
%% >> \ImageSpreadLeft[<options>]{<caption>}{<image>}
|
%% >> \ImageSpread<D>[<options>]{<caption>}{<image>}
|
||||||
%
|
%
|
||||||
%% \begin{minipage}{\textwidth}
|
%% \begin{minipage}{\textwidth}
|
||||||
%% \begin{verbatim}
|
%% \begin{verbatim}
|
||||||
|
%%
|
||||||
|
%% . . . . . . . . . . . . . . . . . . .
|
||||||
|
%% . +---------------+---------------+ . +---------------+---------------+
|
||||||
|
%% . | . . . | . | c . |
|
||||||
|
%% . | . . . | . . |-------------------------------| .
|
||||||
|
%% . | . . . | . . | . . . | .
|
||||||
|
%% . | image | . . | . . . | .
|
||||||
|
%% . | . (T) . | . . | . . . | .
|
||||||
|
%% . | . . . | . . | image | .
|
||||||
|
%% . | . . . | . . | . (B) . | .
|
||||||
|
%% . |-------------------------------| . . | . . . | .
|
||||||
|
%% | . c | . | . . . | .
|
||||||
|
%% +---------------+---------------+ . +---------------+---------------+ .
|
||||||
|
%% . . . . . . . . . . . . . . . . . . .
|
||||||
%%
|
%%
|
||||||
%% . . . . . . . . . . . . . . . .
|
%% . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
|
||||||
%% . +---------------+---------------+
|
%% . +---------------+---------------+ +---------------+---------------+ .
|
||||||
%% . | . . . | |
|
%% . | . . . | | | | . . . | .
|
||||||
%% . | . . . | |
|
%% . | . . . | | | | . . . | .
|
||||||
%% . | . . . | |
|
%% . | . . . | | | | . . . | .
|
||||||
%% . | . .. | |
|
%% . | . .. | | | | .. . | .
|
||||||
%% . | image | |
|
%% . | image | | | | image | .
|
||||||
%% . | . .. | |
|
%% . | . (L).. | | | | .(R) . | .
|
||||||
%% . | . . . | |
|
%% . | . . . | | | | . . . | .
|
||||||
%% . | . . . | |
|
%% . | . . . | | | | . . . | .
|
||||||
%% . | . . . | c |
|
%% . | . . . | c | | c | . . . | .
|
||||||
%% . +---------------+---------------+
|
%% . +---------------+---------------+ +---------------+---------------+ .
|
||||||
%% . . . . . . . . . . . . . . . .
|
%% . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
|
||||||
%%
|
%%
|
||||||
%% \end{verbatim}
|
%% \end{verbatim}
|
||||||
%% \end{minipage}
|
%% \end{minipage}
|
||||||
%%
|
%%
|
||||||
|
% XXX TEST...
|
||||||
% XXX do a better default...
|
% XXX do a better default...
|
||||||
% XXX need a caption box...
|
% XXX need a caption box...
|
||||||
\ResettableMacro{ImageSpreadLeftCaption}[1]{%
|
\ResettableMacro{ImageSpreadFitTCaption}[1]{%
|
||||||
\vcaptioncell[after, align=flushleft]{%
|
\captioncell[under]{%
|
||||||
\captionformat{#1}}}
|
\captionformat{#1}}}
|
||||||
|
\ImagePageTemplate{ImageSpreadFitT}{%
|
||||||
|
\ImageSpreadFit*[top, #1]{#2}{#3}}
|
||||||
|
|
||||||
\ImagePageTemplate{ImageSpreadLeft}{%
|
\ResettableMacro{ImageSpreadFitBCaption}[1]{%
|
||||||
\cleartoleftpage%
|
\captioncell[above]{%
|
||||||
\begin{spreadtopages}[2]%
|
|
||||||
\imagecell[%
|
|
||||||
fit,
|
|
||||||
left,
|
|
||||||
clearance=-\bleed,
|
|
||||||
scale=\imagescale,
|
|
||||||
offsettop=\imageoffsettop,
|
|
||||||
offsetleft=\imageoffsetleft,
|
|
||||||
#1]{#2}{#3}%
|
|
||||||
\end{spreadtopages}}
|
|
||||||
|
|
||||||
|
|
||||||
% XXX
|
|
||||||
%% \DescribeMacro{\ImageSpreadRight\{..\}}
|
|
||||||
%% \DescribeMacro{\ImageSpreadRightCaption\{..\}}
|
|
||||||
%% \DescribeMacro{\resetImageSpreadRightCaption}
|
|
||||||
%% \DescribeMacro{\ImageSpreadRight*\{..\}}
|
|
||||||
%
|
|
||||||
%% Image spread aligned right (with bleed).
|
|
||||||
%
|
|
||||||
%% >> \ImageSpreadRight[<options>]{<caption>}{<image>}
|
|
||||||
%
|
|
||||||
%% \begin{minipage}{\textwidth}
|
|
||||||
%% \begin{verbatim}
|
|
||||||
%%
|
|
||||||
%% . . . . . . . . . . . . . . . .
|
|
||||||
%% +---------------+---------------+ .
|
|
||||||
%% | | . . . | .
|
|
||||||
%% | | . . . | .
|
|
||||||
%% | | . . . | .
|
|
||||||
%% | | .. . | .
|
|
||||||
%% | | image | .
|
|
||||||
%% | | .. . | .
|
|
||||||
%% | | . . . | .
|
|
||||||
%% | | . . . | .
|
|
||||||
%% | c | . . . | .
|
|
||||||
%% +---------------+---------------+ .
|
|
||||||
%% . . . . . . . . . . . . . . . .
|
|
||||||
%%
|
|
||||||
%% \end{verbatim}
|
|
||||||
%% \end{minipage}
|
|
||||||
%%
|
|
||||||
% XXX need a caption box...
|
|
||||||
% XXX do a better default...
|
|
||||||
\ResettableMacro{ImageSpreadRightCaption}[1]{%
|
|
||||||
\vcaptioncell[before, align=flushleft]{%
|
|
||||||
\captionformat{#1}}}
|
\captionformat{#1}}}
|
||||||
|
\ImagePageTemplate{ImageSpreadFitB}{%
|
||||||
|
\ImageSpreadFit*[bottom, #1]{#2}{#3}}
|
||||||
|
|
||||||
\ImagePageTemplate{ImageSpreadRight}{%
|
\ResettableMacro{ImageSpreadFitLCaption}[1]{%
|
||||||
\cleartoleftpage%
|
\captionblockcell[right]{%
|
||||||
\begin{spreadtopages}[2]%
|
\captionformat{#1}}}
|
||||||
\imagecell[%
|
\ImagePageTemplate{ImageSpreadFitL}{%
|
||||||
fit,
|
\ImageSpreadFit*[left, #1]{#2}{#3}}
|
||||||
right,
|
|
||||||
clearance=-\bleed,
|
\ResettableMacro{ImageSpreadFitRCaption}[1]{%
|
||||||
scale=\imagescale,
|
\captionblockcell[left]{%
|
||||||
offsettop=\imageoffsettop,
|
\captionformat{#1}}}
|
||||||
offsetleft=\imageoffsetleft,
|
\ImagePageTemplate{ImageSpreadFitR}{%
|
||||||
#1]{#2}{#3}%
|
\ImageSpreadFit*[right, #1]{#2}{#3}}
|
||||||
\end{spreadtopages}}
|
|
||||||
|
|
||||||
|
|
||||||
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user