Safe Haskell | Safe |
---|---|
Language | Haskell98 |
Paper and BBox.
Documentation
Paper size data type, the units are specified in the type. The units in postscript are points, we often work in millimeters.
paper_size_pt :: Paper -> (Int, Int) Source #
Translate Paper
from mm to points.
let a4 = Paper MM 210 297 paper_size_pt a4 == (595,841)
proportion :: Paper -> Double Source #
Proportion of Paper
.
import Graphics.PS.Paper.Names proportion broadsheet == 1.25 map (round . (* 1e3) . proportion) [a0,b0,c0] == [1414,1414,1414] map proportion [usLetter,berliner,tabloid]
inset_margin :: Paper -> Paper -> (Units, Int, Int) Source #
The margin given by placing paper size p within q.