mirror of
https://github.com/flynx/photobook.git
synced 2025-11-01 03:40:10 +00:00
fixed caption cell alignment issues...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
ac785f146c
commit
353500d64d
@ -1388,9 +1388,7 @@
|
|||||||
% XXX the \ifx here does not work...
|
% XXX the \ifx here does not work...
|
||||||
\ifx #2 \empty \else%
|
\ifx #2 \empty \else%
|
||||||
\begingroup%
|
\begingroup%
|
||||||
% XXX broken for fill...
|
|
||||||
% XXX test for portrait images...
|
% XXX test for portrait images...
|
||||||
\vspace{-1em}%
|
|
||||||
\hspace{-\mindim{%
|
\hspace{-\mindim{%
|
||||||
\wd\photobook@imagebox
|
\wd\photobook@imagebox
|
||||||
}{%
|
}{%
|
||||||
@ -1405,12 +1403,17 @@
|
|||||||
\setlength\cellheight{%
|
\setlength\cellheight{%
|
||||||
\mindim{\ht\photobook@imagebox}{\cellheight}}%
|
\mindim{\ht\photobook@imagebox}{\cellheight}}%
|
||||||
\setlength\fboxsep{0pt}%
|
\setlength\fboxsep{0pt}%
|
||||||
\fbox{%
|
%
|
||||||
\begin{minipage}[b][\cellheight][\photobook@imagecell@captionalign]{\cellwidth}%
|
% adjust top if image is taller than cell...
|
||||||
%\fbox{clearance: \the\photobook@imagecell@clearance \space offset top: \the\photobook@imagecell@top}\newline\newline%
|
\raisebox{-\mindim{%
|
||||||
#2%
|
0pt
|
||||||
\end{minipage}}%
|
}{%
|
||||||
}%\fbox
|
0.5\dimexpr
|
||||||
|
\cellheight
|
||||||
|
-\ht\photobook@imagebox \relax}}{%
|
||||||
|
\begin{minipage}[b][\cellheight][\photobook@imagecell@captionalign]{\cellwidth}%
|
||||||
|
#2%
|
||||||
|
\end{minipage}}}
|
||||||
\endgroup\fi}%
|
\endgroup\fi}%
|
||||||
\endgroup}
|
\endgroup}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user