inconsistency fix in inline cells -- now aligned to top regardless of content...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2021-09-02 16:22:53 +03:00
parent 5a74b9673a
commit 45a8f386a0

View File

@ -1035,10 +1035,15 @@
\end{CellContent*}} \end{CellContent*}}
\newenvironment{CellContent*}[4][t]{% \newenvironment{CellContent*}[4][t]{%
\begin{minipage}[#1][#4][\csname photobook@#2@valign\endcsname]{#3}% %\begin{minipage}[#1][#4][\csname photobook@#2@valign\endcsname]{#3}%
\begin{adjustbox}{
%fbox=0.1pt,
minipage=[#1][#4][\csname photobook@#2@valign\endcsname]{#3},
valign=#1}%
\ignorespaces% \ignorespaces%
}{% }{%
\end{minipage}} \end{adjustbox}}
%\end{minipage}}
@ -1211,8 +1216,6 @@
%% >> \begin{zinlinecell}{<width>}{<height>} ... \end{zinlinecell} %% >> \begin{zinlinecell}{<width>}{<height>} ... \end{zinlinecell}
%% >> \begin{zinlinecell}[<valign>]{<width>}{<height>} ... \end{zinlinecell} %% >> \begin{zinlinecell}[<valign>]{<width>}{<height>} ... \end{zinlinecell}
%% %%
% XXX for some reason either the (parent) cell is lowered a bit or it's content
% is raised -- still experimenting with this...
\NewEnviron{zinlinecell*}[1][]{% \NewEnviron{zinlinecell*}[1][]{%
\smash{\makebox[0pt][l]{% \smash{\makebox[0pt][l]{%
% XXX HACK: RAISEBOX -- feels hackish... % XXX HACK: RAISEBOX -- feels hackish...
@ -2060,9 +2063,13 @@
% align=flushright|center|flushright % align=flushright|center|flushright
% XXX this should depend on left/right... % XXX this should depend on left/right...
\def\photobook@captionblockcell@align{flushright} \def\photobook@captionblockcell@align{%
\ifKV@captionblockcell@args@left%
flushright%
\else%
flushleft\fi}
\define@key{captionblockcell@args}{align}{% \define@key{captionblockcell@args}{align}{%
\edef\photobook@captionblockcell@align{#1}} \def\photobook@captionblockcell@align{#1}}
% valign=t|c|b % valign=t|c|b
% XXX should be a boolkey -- t|c|b??? % XXX should be a boolkey -- t|c|b???
@ -2106,7 +2113,6 @@
% XXX should this be within the group??? % XXX should this be within the group???
\setkeys{captionblockcell@args}{ \setkeys{captionblockcell@args}{
left, left,
align=flushright,
valign=b, valign=b,
clearance=\clearcaption, clearance=\clearcaption,
#1}% #1}%