Make the box randomization scale with the box size.
[matthijs/master-project/report.git] / Utils / Lambda.tex
index ad11419aace035e6e68c635d6f9593fef3de96ca..2426178877fa3e10a67ed4f143381aa8ac2b9bcb 100644 (file)
@@ -8,7 +8,7 @@ path a, b;
 % Create a rectangle of the full size
 a := unitsquare xyscaled(\overlaywidth,\overlayheight);
 % Randomize it a bit
-b := a randomized 10pt ;
+b := a randomized (\overlaywidth / 25) ;
 % And draw it
 drawoptions (withpen pencircle scaled .75mm withcolor black) ;
 draw b; 
@@ -21,7 +21,7 @@ draw b;
 % A boxed variant with the width forced to page width. This is used in
 % \startrans, since the content somehow doesn't scale the box around it
 % properly.
-\defineframedtext[wideboxed][background=box,frame=off,width=\textwidth]
+\defineframedtext[wideboxed][background=box,frame=off,width=\textwidth,offset=.02\textwidth]
 
 % Install the lambda calculus pretty-printer, as defined in pret-lam.lua.
 \installprettytype [LAM] [LAM]