diff --git a/luametalatex-back-pdf.lua b/luametalatex-back-pdf.lua index c91b676..00a0c3d 100644 --- a/luametalatex-back-pdf.lua +++ b/luametalatex-back-pdf.lua @@ -759,7 +759,7 @@ token.luacmd("saveboxresource", function(imm) end local attr = token.scan_keyword'attr' and token.scan_string() or nil local resources = token.scan_keyword'resources' and token.scan_string() or nil - local margin = token.scan_keyword'margin' and token.scan_int() or nil -- Why not a dimension? + local margin = token.scan_keyword'margin' and token.scan_dimen() or nil local box = token.scan_int() local index = tex.saveboxresource(box, attr, resources, imm == 'immediate', type, margin)