% 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]
local commands = {}
-- A command to create a horizontal rule.
-commands.rule = "\\blackrule[height=0.5pt,depth=0pt,width=.45\\textwidth]"
+commands.rule = "\\blackrule[height=0.5pt,depth=0pt,width=.40\\textwidth]"
-- Pretty printer to use for the stuff before and after the line
commands.before_pret = "lam"
commands.after_pret = "lam"
-- Frame commands to use for the left (before + line + after) and right
-- (conditions) parts. Should include an opening {, which will be closed
-- automatically.
-commands.leftframe = "\\framed[offset=0mm,location=middle,strut=no,align=right,frame=off,width=.5\\textwidth]{\\sans"
-commands.rightframe = "\\framed[offset=0mm,location=middle,strut=no,align=right,frame=off,width=.5\\textwidth]{"
+commands.leftframe = "\\framed[offset=0mm,location=middle,strut=no,align=right,frame=off,width=.48\\textwidth]{\\sans"
+commands.rightframe = "\\framed[offset=0mm,location=middle,strut=no,align=right,frame=off,width=.48\\textwidth]{"
-- A table to keep the lines in this buffer, so we can process them all at
-- once at the end.