mirror of
https://github.com/flynx/photobook.git
synced 2025-10-29 02:10:08 +00:00
tweaks...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
f404ea3fcc
commit
7ef6dee7a6
@ -1427,32 +1427,22 @@
|
|||||||
%% \end{verbatim}
|
%% \end{verbatim}
|
||||||
%% \end{minipage}
|
%% \end{minipage}
|
||||||
%%
|
%%
|
||||||
% XXX add support for boolkeys:
|
|
||||||
% - left/right/top/bottom
|
|
||||||
% - inside/outside
|
|
||||||
% - up/down (vertical text)
|
|
||||||
% or
|
|
||||||
% - over/under/before/after
|
|
||||||
% - top/bottom/left/right
|
|
||||||
% - align=left/right
|
|
||||||
% XXX revise keywords...
|
% XXX revise keywords...
|
||||||
\define@boolkey{captioncell@args}{left}[true]{}
|
\define@boolkey{captioncell@args}{above}[true]{}
|
||||||
\define@boolkey{captioncell@args}{right}[true]{}
|
|
||||||
\define@boolkey{captioncell@args}{top}[true]{}
|
\define@boolkey{captioncell@args}{top}[true]{}
|
||||||
\define@boolkey{captioncell@args}{bottom}[true]{}
|
\define@boolkey{captioncell@args}{bottom}[true]{}
|
||||||
|
\define@boolkey{captioncell@args}{below}[true]{}
|
||||||
|
|
||||||
\define@boolkey{captioncell@args}{inside}[true]{%
|
% XXX add fields: before/left/right/after... (vertical???)
|
||||||
\KV@captioncell@args@outsidefalse}
|
% XXX add vertical fields direction: up/down
|
||||||
\define@boolkey{captioncell@args}{outside}[true]{%
|
|
||||||
\KV@captioncell@args@insidefalse}
|
% XXX expand choices...
|
||||||
|
\define@choicekey{captioncell@args}{align}{flushleft,center,flushright}{}
|
||||||
|
|
||||||
\define@boolkey{captioncell@args}{up}[true]{%
|
|
||||||
\KV@captioncell@args@downfalse}
|
|
||||||
\define@boolkey{captioncell@args}{down}[true]{%
|
|
||||||
\KV@captioncell@args@upfalse}
|
|
||||||
|
|
||||||
\newcommand\captioncell[2][]{%
|
\newcommand\captioncell[2][]{%
|
||||||
\setkeys{captioncell@args}{top,left,inside,#1}%
|
\setkeys{captioncell@args}{top, align=flushleft,#1}%
|
||||||
% XXX
|
% XXX
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -14,12 +14,20 @@
|
|||||||
]{photobook}
|
]{photobook}
|
||||||
|
|
||||||
|
|
||||||
|
\newlength\spacewidth
|
||||||
|
\newsavebox\spacebox
|
||||||
|
\newcommand\calcspacewidth{%
|
||||||
|
\sbox{\spacebox}{ }%
|
||||||
|
\setlength\spacewidth{\wd\spacebox}}
|
||||||
|
|
||||||
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
|
|
||||||
\begin{document}
|
\begin{document}
|
||||||
|
|
||||||
%\TPoptions{showboxes=true}
|
%\TPoptions{showboxes=true}
|
||||||
|
|
||||||
|
\calcspacewidth
|
||||||
|
Space width: \the\spacewidth
|
||||||
|
|
||||||
\null
|
\null
|
||||||
\newpage
|
\newpage
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user