mirror of
https://github.com/flynx/photobook.git
synced 2025-10-29 10:20:08 +00:00
lots of tweaks...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
91819739e0
commit
aee3ffe30d
@ -1327,10 +1327,6 @@
|
|||||||
\end{minipagecell*}}
|
\end{minipagecell*}}
|
||||||
|
|
||||||
|
|
||||||
% XXX add a direct \adjboxcell{..} -- directly passing args to \adjustbox{..}...
|
|
||||||
% XXX
|
|
||||||
|
|
||||||
|
|
||||||
% XXX EXPERIMENTAL
|
% XXX EXPERIMENTAL
|
||||||
%% \DescribeEnv{zinlinecell}
|
%% \DescribeEnv{zinlinecell}
|
||||||
%% \DescribeEnv{zinlinecell*}
|
%% \DescribeEnv{zinlinecell*}
|
||||||
@ -1398,6 +1394,31 @@
|
|||||||
\ignorespaces}
|
\ignorespaces}
|
||||||
|
|
||||||
|
|
||||||
|
% XXX EXPERIMENTAL
|
||||||
|
%% \DescribeEnv{adjustcell}
|
||||||
|
%% \DescribeEnv{adjustcell*}
|
||||||
|
%
|
||||||
|
%% \EXPERIMENTAL
|
||||||
|
%%
|
||||||
|
\newenvironment{adjustcell*}[4][t]{%
|
||||||
|
\begin{adjustbox}{#2}%
|
||||||
|
\vspace{0pt}%
|
||||||
|
\begin{minipagecell*}[#1]{#3}{#4}%
|
||||||
|
}{%
|
||||||
|
\end{minipagecell*}%
|
||||||
|
\end{adjustbox}}
|
||||||
|
|
||||||
|
\newenvironment{adjustcell}[4][t]{%
|
||||||
|
\begin{adjustbox}{#2}%
|
||||||
|
\vspace{0pt}%
|
||||||
|
\begin{minipagecell}[#1]{#3}{#4}%
|
||||||
|
}{%
|
||||||
|
\end{minipagecell}%
|
||||||
|
\end{adjustbox}}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
%%%%% Save cells
|
%%%%% Save cells
|
||||||
|
|
||||||
@ -3143,19 +3164,23 @@
|
|||||||
\ignoreemptyitems%
|
\ignoreemptyitems%
|
||||||
\readlist*\photobook@ImagePageFit@args{moo, #1}%
|
\readlist*\photobook@ImagePageFit@args{moo, #1}%
|
||||||
\foreachitem\photobook@ImagePageFit@opt\in\photobook@ImagePageFit@args{%
|
\foreachitem\photobook@ImagePageFit@opt\in\photobook@ImagePageFit@args{%
|
||||||
|
\ifthenelse{\equal{\photobook@ImagePageFit@opt}{inner}}{%
|
||||||
|
\photobook@ImagePageFit@centeredtrue}{}%
|
||||||
|
\ifthenelse{\equal{\photobook@ImagePageFit@opt}{outer}}{%
|
||||||
|
\photobook@ImagePageFit@centeredtrue}{}%
|
||||||
\ifthenelse{\equal{\photobook@ImagePageFit@opt}{top}}{%
|
\ifthenelse{\equal{\photobook@ImagePageFit@opt}{top}}{%
|
||||||
\photobook@ImagePageFit@centeredtrue}{}
|
\photobook@ImagePageFit@centeredtrue}{}%
|
||||||
\ifthenelse{\equal{\photobook@ImagePageFit@opt}{left}}{%
|
\ifthenelse{\equal{\photobook@ImagePageFit@opt}{left}}{%
|
||||||
\photobook@ImagePageFit@centeredtrue}{}
|
\photobook@ImagePageFit@centeredtrue}{}%
|
||||||
\ifthenelse{\equal{\photobook@ImagePageFit@opt}{bottom}}{%
|
\ifthenelse{\equal{\photobook@ImagePageFit@opt}{bottom}}{%
|
||||||
\photobook@ImagePageFit@centeredtrue}{}
|
\photobook@ImagePageFit@centeredtrue}{}%
|
||||||
\ifthenelse{\equal{\photobook@ImagePageFit@opt}{right}}{%
|
\ifthenelse{\equal{\photobook@ImagePageFit@opt}{right}}{%
|
||||||
\photobook@ImagePageFit@centeredtrue}{}}
|
\photobook@ImagePageFit@centeredtrue}{}}%
|
||||||
% align center -> check if image fits vertically...
|
% align center -> check if image fits vertically...
|
||||||
\ifphotobook@ImagePageFit@centered\else%
|
\ifphotobook@ImagePageFit@centered\else%
|
||||||
\sbox{\photobook@imagebox}{\includegraphics{#3}}%
|
\sbox{\photobook@imagebox}{\includegraphics{#3}}%
|
||||||
\setlength\photobook@ImagePageFit@imgratio{1pt
|
\setlength\photobook@ImagePageFit@imgratio{%
|
||||||
* \ratio{\wd\photobook@imagebox}{\ht\photobook@imagebox}}%
|
1pt * \ratio{\wd\photobook@imagebox}{\ht\photobook@imagebox}}%
|
||||||
% NOTE: subtracting \bindingoffset from \cellwidth here makes sure that
|
% NOTE: subtracting \bindingoffset from \cellwidth here makes sure that
|
||||||
% we avoid offsetting images close enough in ratio to the page and
|
% we avoid offsetting images close enough in ratio to the page and
|
||||||
% messing up bleeds...
|
% messing up bleeds...
|
||||||
@ -3769,20 +3794,20 @@
|
|||||||
|
|
||||||
%% \DescribeMacro{\pdfmargincomment\{..\}}
|
%% \DescribeMacro{\pdfmargincomment\{..\}}
|
||||||
%
|
%
|
||||||
%% Add pdf comment as overlay.
|
%% Add pdf comment as margin overlay.
|
||||||
%%
|
%%
|
||||||
%% >> \pdfmargincomment{<comment>}
|
%% >> \pdfmargincomment{<comment>}
|
||||||
%%
|
%%
|
||||||
\newcommand{\pdfmargincomment}[1]{%
|
\newcommand\pdfcommentcell[1]{%
|
||||||
\begin{cell*}{
|
\begin{cell*}{
|
||||||
\ifnumodd{\thepage}{%
|
\ifnumodd{\thepage}{%
|
||||||
\cellwidth - \marginparwidth - 2\bleed - 1cm
|
\cellwidth - \marginparwidth - 2\bleed - 1cm
|
||||||
}{%
|
}{%
|
||||||
\bleed + 1cm},
|
\bleed + 1cm},
|
||||||
\bleed + 1cm
|
\bleed + 1cm
|
||||||
}{\marginparwidth}{1pt}%
|
}{\marginparwidth}{1pt}%
|
||||||
\pdfcomment{#1}%
|
\pdfcomment{#1}%
|
||||||
\end{cell*}}
|
\end{cell*}}
|
||||||
|
|
||||||
|
|
||||||
%% \DescribeMacro{\pdfpagecount\{..\}}
|
%% \DescribeMacro{\pdfpagecount\{..\}}
|
||||||
|
|||||||
@ -242,7 +242,8 @@ anotatePath(){
|
|||||||
# NOTE: did not figure out how to make a verbatim comment in latex
|
# NOTE: did not figure out how to make a verbatim comment in latex
|
||||||
# so here we are, doing it in shell...
|
# so here we are, doing it in shell...
|
||||||
path=${path//_/\\_}
|
path=${path//_/\\_}
|
||||||
echo "\\pdfmargincomment{Image: $path}%"
|
#echo "\\pdfmargincomment{Image: $path}%"
|
||||||
|
echo "\\pdfcommentcell{Image: $path}%"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user