Add \HLine command that draws a horizontal line.
[matthijs/master-project/report.git] / pret-trans.lua
index a96002f1cb894ca9db119d60a0e9dc98464511c4..1d2eb95c8da8dac2960a5a6e7a24ffa33da23857 100644 (file)
@@ -13,15 +13,15 @@ local vis = buffers.newvisualizer("trans")
 
 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.