mlpost
OCaml library on top of Metapost
1024" x-on:close-sidebar="sidebar=window.innerWidth > 1024 && true">
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Conversion functions
val bp : float -> t
The base unit in Mlpost is bp.
val pt : float -> t
pt are PostScript points. This is the same unit as the pt unit in TeX
val cm : float -> t
val mm : float -> t
val inch : float -> t
The following are units dependent of the font used
val em : float -> t
the width of an "m"
val ex : float -> t
the height of an "x"
Useful operations on Nums
Infix operators
module Infix : sig ... end
Infix symbols for convenience
Useful constants and functions
val zero : t
val one : t
val two : t
Shortcuts for bp 0.
, bp 1.
and bp 2.
.
type scale = float -> t
module Scale : sig ... end