some tweaking...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2021-07-31 00:59:14 +03:00
parent a18c172418
commit aa7467030e

View File

@ -370,7 +370,7 @@
+\blockwidth +\blockwidth
-(\wd#2 - #1) -(\wd#2 - #1)
+(\nudgeimageby) +(\nudgeimageby)
-(0.5\blockwidth - 0.5\textwidth) \relax} -(0.5\blockwidth - 0.5\textwidth) \relax}%
{ \captionsize #3 } { \captionsize #3 }
\end{minipage}} \end{minipage}}
@ -382,7 +382,7 @@
\null \null
\vfill \vfill
\begin{flushleft} \begin{flushleft}
\captionsidebox[#1]{#2}{ \captionsidebox[#1]{#2}{%
\begin{flushright} \begin{flushright}
#3 #3
\end{flushright}} \end{flushright}}
@ -391,7 +391,7 @@
\null \null
\vfill \vfill
\begin{flushright} \begin{flushright}
\captionsidebox[#1]{#2}{ \captionsidebox[#1]{#2}{%
\begin{flushleft} \begin{flushleft}
#3 #3
\end{flushleft}} \end{flushleft}}
@ -827,7 +827,7 @@
% XXX might be a good idea to do a version of this with min/max width of % XXX might be a good idea to do a version of this with min/max width of
% the caption block... % the caption block...
\newcommand\imagespreadleft[3][\clearimage]{ \newcommand\imagespreadleft[3][\clearimage]{
\sbox{\imagebox}{ \sbox{\photobook@imagebox}{
\includegraphics[ \includegraphics[
keepaspectratio, keepaspectratio,
height=\dimexpr \blockheight - ((#1) * 2) + \vgrowimageby \relax]{#3} } height=\dimexpr \blockheight - ((#1) * 2) + \vgrowimageby \relax]{#3} }
@ -850,10 +850,10 @@
- 0.5\vgrowimageby - 0.5\vgrowimageby
- \vnudgeimageby - \vnudgeimageby
\relax}{ \relax}{
\usebox\imagebox } } } } \usebox\photobook@imagebox } } } }
\newpage \newpage
% right page... % right page...
\captionboxright[\blockwidth]{\imagebox}{#2} \captionboxright[\blockwidth]{\photobook@imagebox}{#2}
\ShipoutPicture{ \ShipoutPicture{
\AtPageLowerLeft{ \AtPageLowerLeft{
\hspace*{\dimexpr \hspace*{\dimexpr
@ -869,7 +869,7 @@
- 0.5\vgrowimageby - 0.5\vgrowimageby
- \vnudgeimageby - \vnudgeimageby
\relax}{ \relax}{
\usebox\imagebox } } } } \usebox\photobook@imagebox } } } }
\newpage \newpage
\resetnudgeimage } \resetnudgeimage }
@ -892,26 +892,27 @@
% +---------------+---------------+ % +---------------+---------------+
% %
\newcommand\imagespreadright[3][\clearimage]{ \newcommand\imagespreadright[3][\clearimage]{
\sbox{\imagebox}{ \sbox{\photobook@imagebox}{
\includegraphics[ \includegraphics[
keepaspectratio, keepaspectratio,
height=\dimexpr \blockheight - ((#1) * 2) + \vgrowimageby \relax]{#3} } height=\dimexpr \blockheight - ((#1) * 2) + \vgrowimageby \relax]{#3} }
% left page... % left page...
%\cleartoleftpage %\cleartoleftpage
\null \null
\captionboxleft[\blockwidth]{\imagebox}{#2} \captionboxleft[\blockwidth]{\photobook@imagebox}{#2}
\ShipoutPicture{ \ShipoutPicture{
\AtPageLowerLeft{ \AtPageLowerLeft{
\hspace*{\dimexpr \hspace*{\dimexpr
-#1 -#1
+0.5\OFFSETFIX
+(\nudgeimageby) +(\nudgeimageby)
+2\blockwidth +2\blockwidth
+\bleed +\bleed
-\wd\imagebox \relax}{ -\wd\photobook@imagebox \relax}{
\raisebox{\dimexpr \raisebox{\dimexpr
#1 + \bleed #1 + \bleed
- 0.5\vgrowimageby - \vnudgeimageby \relax}{ - 0.5\vgrowimageby - \vnudgeimageby \relax}{
\usebox\imagebox } } } } \usebox\photobook@imagebox } } } }
\newpage \newpage
% right page... % right page...
\null \null
@ -919,14 +920,15 @@
\AtPageLowerLeft{ \AtPageLowerLeft{
\hspace*{\dimexpr \hspace*{\dimexpr
-#1 -#1
+0.5\OFFSETFIX
+(\nudgeimageby) +(\nudgeimageby)
+\blockwidth +\blockwidth
+\innerbleed +\innerbleed
-\wd\imagebox \relax}{ -\wd\photobook@imagebox \relax}{
\raisebox{\dimexpr \raisebox{\dimexpr
#1 + \bleed #1 + \bleed
- 0.5\vgrowimageby - \vnudgeimageby \relax}{ - 0.5\vgrowimageby - \vnudgeimageby \relax}{
\usebox\imagebox } } } } \usebox\photobook@imagebox } } } }
\newpage \newpage
\resetnudgeimage } \resetnudgeimage }
@ -950,7 +952,7 @@
% +---------------+ % +---------------+
% %
\newcommand\imageleftspreadfullbleed[3][0mm]{ \newcommand\imageleftspreadfullbleed[3][0mm]{
\sbox{\imagebox}{ \sbox{\photobook@imagebox}{
\includegraphics[ \includegraphics[
keepaspectratio, keepaspectratio,
width=\dimexpr width=\dimexpr
@ -972,9 +974,9 @@
(#1) (#1)
+\clearimage +\clearimage
-(0.5\blockheight -(0.5\blockheight
+(0.5\ht\imagebox - 0.5\blockheight)) +(0.5\ht\photobook@imagebox - 0.5\blockheight))
- 0.5\vgrowimageby - \vnudgeimageby \relax}{ - 0.5\vgrowimageby - \vnudgeimageby \relax}{
\usebox\imagebox } } } } \usebox\photobook@imagebox } } } }
\newpage \newpage
\resetnudgeimage } \resetnudgeimage }
@ -998,7 +1000,7 @@
% +---------------+ % +---------------+
% %
\newcommand\imagerightspreadfullbleed[3][0mm]{ \newcommand\imagerightspreadfullbleed[3][0mm]{
\sbox{\imagebox}{ \sbox{\photobook@imagebox}{
\includegraphics[ \includegraphics[
keepaspectratio, keepaspectratio,
width=\dimexpr width=\dimexpr
@ -1023,9 +1025,9 @@
(#1) (#1)
+\clearimage +\clearimage
-(0.5\blockheight -(0.5\blockheight
+(0.5\ht\imagebox - 0.5\blockheight)) +(0.5\ht\photobook@imagebox - 0.5\blockheight))
- 0.5\vgrowimageby - \vnudgeimageby \relax}{ - 0.5\vgrowimageby - \vnudgeimageby \relax}{
\usebox\imagebox } } } } \usebox\photobook@imagebox } } } }
\newpage \newpage
\resetnudgeimage } \resetnudgeimage }