powered by
This is a convenient function that creates a grid unit object of the correct length to use for setting margins.
margin(t = 0, r = 0, b = 0, l = 0, unit = "pt")
Dimensions of each margin. (To remember order, think trouble).
Default units of dimensions. Defaults to "pt" so it can be most easily scaled with the text.
margin(4) margin(4, 2) margin(4, 3, 2, 1)
Run the code above in your browser using DataLab