mirror of
https://github.com/flynx/photobook.git
synced 2025-11-01 20:00:13 +00:00
bugfix + notes...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
131741b72c
commit
63dc93333b
@ -1316,15 +1316,9 @@
|
|||||||
%% containing cell and provides all the cell functionality.
|
%% containing cell and provides all the cell functionality.
|
||||||
%%
|
%%
|
||||||
|
|
||||||
\newlength\photobook@imagecell@imgratio
|
% NOTE: these are macros and not lengths as we need to "resolve" these
|
||||||
\newlength\photobook@imagecell@cellratio
|
% as late as possible, i.e. after all the arguments have been
|
||||||
|
% processed.
|
||||||
% XXX TODO:
|
|
||||||
% - offset fix for fill mode...
|
|
||||||
% - caption cell in fill mode...
|
|
||||||
% - do we need to reverse left/right for fill? (feels counter-intuitive)
|
|
||||||
|
|
||||||
% XXX should these be lengths or macros???
|
|
||||||
\def\photobook@imagecell@top{0pt}
|
\def\photobook@imagecell@top{0pt}
|
||||||
\def\photobook@imagecell@left{0pt}
|
\def\photobook@imagecell@left{0pt}
|
||||||
\def\photobook@imagecell@captiontop{0pt}
|
\def\photobook@imagecell@captiontop{0pt}
|
||||||
@ -1333,6 +1327,10 @@
|
|||||||
\newlength\photobook@imagecell@clearance
|
\newlength\photobook@imagecell@clearance
|
||||||
\setlength\photobook@imagecell@clearance{0pt}
|
\setlength\photobook@imagecell@clearance{0pt}
|
||||||
|
|
||||||
|
% NOTE: these feel like a hack...
|
||||||
|
\newlength\photobook@imagecell@imgratio
|
||||||
|
\newlength\photobook@imagecell@cellratio
|
||||||
|
|
||||||
% fit/fill...
|
% fit/fill...
|
||||||
\define@boolkey{imagecell@args}{fit}[true]{%
|
\define@boolkey{imagecell@args}{fit}[true]{%
|
||||||
\KV@imagecell@args@fillfalse}
|
\KV@imagecell@args@fillfalse}
|
||||||
@ -1408,6 +1406,10 @@
|
|||||||
\define@choicekey{imagecell@args}{caption-align}{t,c,b}[t]{%
|
\define@choicekey{imagecell@args}{caption-align}{t,c,b}[t]{%
|
||||||
\def\photobook@imagecell@captionalign{#1}}%
|
\def\photobook@imagecell@captionalign{#1}}%
|
||||||
|
|
||||||
|
% XXX add offset support...
|
||||||
|
% ...i.e. an argument that will shift the image v/h from base position.
|
||||||
|
% also need to shift the caption box accordingly but still keep it
|
||||||
|
% within the cell...
|
||||||
% XXX can we make this an env???
|
% XXX can we make this an env???
|
||||||
\newcommand\imagecell[3][]{%
|
\newcommand\imagecell[3][]{%
|
||||||
\begingroup%
|
\begingroup%
|
||||||
@ -1460,7 +1462,7 @@
|
|||||||
% XXX for some odd reason without this the alignment completely breaks...
|
% XXX for some odd reason without this the alignment completely breaks...
|
||||||
\vspace{0pt}%
|
\vspace{0pt}%
|
||||||
\adjustbox{%
|
\adjustbox{%
|
||||||
margin={\photobook@imagecell@left} 0pt 0pt {\photobook@imagecell@top}}{%
|
margin={\photobook@imagecell@left} 0pt 0pt {\photobook@imagecell@top}}{%
|
||||||
% image....
|
% image....
|
||||||
\usebox\photobook@imagebox%
|
\usebox\photobook@imagebox%
|
||||||
% caption cell...
|
% caption cell...
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user