mirror of
https://github.com/flynx/photobook.git
synced 2025-10-29 18:30:10 +00:00
tweaking...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
97b422883d
commit
f404ea3fcc
@ -1215,17 +1215,17 @@
|
|||||||
%%
|
%%
|
||||||
%% clearance > 0pt clearance = 0pt clearance < 0pt
|
%% clearance > 0pt clearance = 0pt clearance < 0pt
|
||||||
%% (default)
|
%% (default)
|
||||||
%% +-----------------+ +-----------------+ +-----------------+
|
%% +--------v--------+ +-----------------+ +--------^--------+
|
||||||
%% | | | | | |
|
%% | | | | | |
|
||||||
%% |+---------------+| +-----------------+ ..+-----------------+..
|
%% |+---------------+| +-----------------+ ..+-----------------+..
|
||||||
%% || . . || | . . | . |. .| .
|
%% || . . || | . . | . |. .| .
|
||||||
%% || . . || | . . | . | . . | .
|
%% || . . || | . . | . | . . | .
|
||||||
%% || image || | image | . | image | .
|
%% |> image <| | image | < | image | >
|
||||||
%% || . . || | . . | . | . . | .
|
%% || . . || | . . | . | . . | .
|
||||||
%% || . . || | . . | . |. .| .
|
%% || . . || | . . | . |. .| .
|
||||||
%% |+---------------+| +-----------------+ ..+-----------------+..
|
%% |+---------------+| +-----------------+ ..+-----------------+..
|
||||||
%% | | | | | |
|
%% | | | | | |
|
||||||
%% +-----------------+ +-----------------+ +-----------------+
|
%% +--------^--------+ +-----------------+ +--------v--------+
|
||||||
%%
|
%%
|
||||||
%% \end{verbatim}
|
%% \end{verbatim}
|
||||||
%% \end{minipage}
|
%% \end{minipage}
|
||||||
@ -1329,6 +1329,10 @@
|
|||||||
\define@key{imagecell@args}{clearance}{%
|
\define@key{imagecell@args}{clearance}{%
|
||||||
\def\photobook@imagecell@clearance{#1}}%
|
\def\photobook@imagecell@clearance{#1}}%
|
||||||
|
|
||||||
|
\def\photobook@imagecell@captionalign{t}
|
||||||
|
\define@choicekey{imagecell@args}{caption-align}{t,c,b}[t]{%
|
||||||
|
\def\photobook@imagecell@captionalign{#1}}%
|
||||||
|
|
||||||
% XXX can't seem to get rid of small placement errors...
|
% XXX can't seem to get rid of small placement errors...
|
||||||
% ...feels like we've still got a stray space someplace...
|
% ...feels like we've still got a stray space someplace...
|
||||||
% see: \photobook@HOFFSETFIX
|
% see: \photobook@HOFFSETFIX
|
||||||
@ -1393,13 +1397,36 @@
|
|||||||
\setlength\cellheight{%
|
\setlength\cellheight{%
|
||||||
\mindim{\ht\photobook@imagebox}{\cellheight}}%
|
\mindim{\ht\photobook@imagebox}{\cellheight}}%
|
||||||
\setlength\fboxsep{0pt}%
|
\setlength\fboxsep{0pt}%
|
||||||
\begin{minipage}[b][\cellheight][t]{\cellwidth}%
|
\begin{minipage}[b][\cellheight][\photobook@imagecell@captionalign]{\cellwidth}%
|
||||||
#2%
|
#2%
|
||||||
\end{minipage}}%
|
\end{minipage}}%
|
||||||
\endgroup\fi}%
|
\endgroup\fi}%
|
||||||
\endgroup}
|
\endgroup}
|
||||||
|
|
||||||
|
|
||||||
|
%% \DescribeMacro{\captioncell\{..\}}
|
||||||
|
%
|
||||||
|
%% \fbox{XXX EXPERIMENTAL}
|
||||||
|
%%
|
||||||
|
%% \begin{minipage}{\textwidth}
|
||||||
|
%% \begin{verbatim}
|
||||||
|
%%
|
||||||
|
%% [ above ]
|
||||||
|
%% +-----------------+
|
||||||
|
%% |[ top ]|
|
||||||
|
%% | |
|
||||||
|
%% | |
|
||||||
|
%% | |
|
||||||
|
%% | |
|
||||||
|
%% | |
|
||||||
|
%% | |
|
||||||
|
%% |[ bottom ]|
|
||||||
|
%% +-----------------+
|
||||||
|
%% [ below ]
|
||||||
|
%%
|
||||||
|
%% \end{verbatim}
|
||||||
|
%% \end{minipage}
|
||||||
|
%%
|
||||||
% XXX add support for boolkeys:
|
% XXX add support for boolkeys:
|
||||||
% - left/right/top/bottom
|
% - left/right/top/bottom
|
||||||
% - inside/outside
|
% - inside/outside
|
||||||
@ -1407,7 +1434,7 @@
|
|||||||
% or
|
% or
|
||||||
% - over/under/before/after
|
% - over/under/before/after
|
||||||
% - top/bottom/left/right
|
% - top/bottom/left/right
|
||||||
% - align=left/right/up/down
|
% - align=left/right
|
||||||
% XXX revise keywords...
|
% XXX revise keywords...
|
||||||
\define@boolkey{captioncell@args}{left}[true]{}
|
\define@boolkey{captioncell@args}{left}[true]{}
|
||||||
\define@boolkey{captioncell@args}{right}[true]{}
|
\define@boolkey{captioncell@args}{right}[true]{}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user