Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2021-10-20 13:23:06 +03:00
parent 8a3b8f8fd6
commit 170b564a3a

View File

@ -3046,13 +3046,16 @@
% %
% NOTE: these should be used in a box. % NOTE: these should be used in a box.
% NOTE: these are centered in origin. % NOTE: these are centered in origin.
% XXX these can affect the items after -- need to encapsulate... % XXX these can affect the items after -- need to encapsulate better + test...
% XXX something's odd with these -- when \foldmarksize is <6mm the bottom falls apart... % 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 doc...
\newcommand\foldinmark[1][0pt]{ \newcommand\foldinmark[1][0pt]{
\vspace{\dimexpr 0.5\foldmarksize + #1 \relax}% \vspace{\dimexpr 0.5\foldmarksize + #1 \relax}%
\smash{\makebox[0pt][l]{% \smash{\makebox[0pt][l]{%
% a size-agnostic centering... % size-agnostic centering...
\hspace{-5mm}{\makebox[1cm][c]{% \hspace{-5mm}{\makebox[1cm][c]{%
\begin{tikzpicture}% \begin{tikzpicture}%
\draw[white, ultra thick] \draw[white, ultra thick]
@ -3073,7 +3076,7 @@
\newcommand\foldoutmark[1][0pt]{ \newcommand\foldoutmark[1][0pt]{
\vspace{\dimexpr 0.5\foldmarksize + #1 \relax}% \vspace{\dimexpr 0.5\foldmarksize + #1 \relax}%
\smash{\makebox[0pt][l]{% \smash{\makebox[0pt][l]{%
% a size-agnostic centering... % size-agnostic centering...
\hspace{-5mm}{\makebox[1cm][c]{% \hspace{-5mm}{\makebox[1cm][c]{%
\begin{tikzpicture}% \begin{tikzpicture}%
\draw[white, ultra thick] \draw[white, ultra thick]