X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fmaster-project%2Freport.git;a=blobdiff_plain;f=pret-trans.lua;fp=pret-trans.lua;h=1d2eb95c8da8dac2960a5a6e7a24ffa33da23857;hp=a96002f1cb894ca9db119d60a0e9dc98464511c4;hb=4f0ad92ab36aa4f87bc4a16cb5f7733bbef41428;hpb=24186af91e8401f45b11b2ba45bc9e9daedc2b55 diff --git a/pret-trans.lua b/pret-trans.lua index a96002f..1d2eb95 100644 --- a/pret-trans.lua +++ b/pret-trans.lua @@ -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.