From a48f729774104893d666777d99f723a18aab9211 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Thu, 21 Oct 2021 12:40:38 +0300 Subject: [PATCH] forgot saveboxes existed... :) Signed-off-by: Alex A. Naanou --- photobook.cls | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/photobook.cls b/photobook.cls index 7ba698f..d22adae 100644 --- a/photobook.cls +++ b/photobook.cls @@ -3046,12 +3046,38 @@ % % NOTE: these should be used in a box. % NOTE: these are centered in origin. +% % XXX these can affect the items after -- need to encapsulate better + test... % XXX something's odd with these -- when \foldmarksize is <6mm the bottom % fold mark gets messed up... % XXX do we need to make centering block size dependant on \foldmarksize % or are the two independent??? (test) % XXX doc... + +% XXX need to handle baseline arg... +%\newsavebox\photobook@foldinmark +%\sbox{\photobook@foldinmark}{% +% \vspace{\dimexpr 0.5\foldmarksize + #1 \relax}% +% \smash{\makebox[0pt][l]{% +% % size-agnostic centering... +% \hspace{-5mm}{\makebox[1cm][c]{% +% \begin{tikzpicture}% +% \draw[white, ultra thick] +% (-0.3333\foldmarksize,03333\foldmarksize) +% -- (0,0) +% -- (0.3333\foldmarksize,0.3333\foldmarksize); +% \draw[white, ultra thick] +% (0,0.6666\foldmarksize) +% -- (0,-0.3333\foldmarksize); +% \draw[black, thin] +% (-0.3333\foldmarksize,03333\foldmarksize) +% -- (0,0) +% -- (0.3333\foldmarksize,0.3333\foldmarksize); +% \draw[black, thin] +% (0,0.6666\foldmarksize) +% -- (0,-0.3333\foldmarksize); +% \end{tikzpicture}}}}}} + \newcommand\foldinmark[1][0pt]{ \vspace{\dimexpr 0.5\foldmarksize + #1 \relax}% \smash{\makebox[0pt][l]{%