photobook/examples/two-image-page.tex
Alex A. Naanou 9bbd752c63 added public domain images...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
2025-09-07 00:35:49 +03:00

47 lines
1.2 KiB
TeX

%----------------------------------------------------------------------
\documentclass[
layoutmode=block,
% page size...
blockwidth=240mm, blockheight=220mm,
bleed=4mm,
bindingoffset=5mm,
% image block configuration...
imageblockwidth=0.98, imageblockheight=0.98,
imageblockoffsettop=-0,
% misc...
9pt,final,openany
]{photobook}
\usepackage{lipsum}
\usepackage{ragged2e}
\setlength\parindent{0pt}
\edef\TestImage{landscape}
\edef\TestImageV{portrait}
\writeimagelistfalse
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
\begin{document} % - - - - - - - - - - - - - - - - - - - - - - - - - -
\begin{pagecell}%
% XXX not sure why bleed compensation here is needed -- investigate...
\begin{cell}{\bleed, 0mm}{0.5\cellwidth}{\cellheight}%
\imagecell[fit]{\captioncell[over]{Left caption}}{\TestImage}%
\end{cell}
\begin{cell}{0.5\cellwidth + \bleed, 0mm}{0.5\cellwidth}{\cellheight}%
\imagecell[fit]{\captioncell[under]{Right caption}}{\TestImage}%
\end{cell}
\end{pagecell}
%----------------------------------------------------------------------
\end{document} % vim:set ts=4 sw=4 :