package mlpost
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
Module Mlpost.Num
Abstract numeric values
Numerics are a symbolic representation of numeric values. In many cases, but not always, an object of type Num.t is intended to be a length in some unit. In addition, values of type Num.t may actually be unknown to Mlpost. This is why there is no function that gives back a float.
Conversion functions
val bp : float -> tThe base unit in Mlpost is bp.
val pt : float -> tpt are PostScript points. This is the same unit as the pt unit in TeX
val cm : float -> tval mm : float -> tval inch : float -> tThe following are units dependent of the font used
val em : float -> tthe width of an "m"
val ex : float -> tthe height of an "x"
Useful operations on Nums
Infix operators
module Infix : sig ... endInfix symbols for convenience
Useful constants and functions
val zero : tval one : tval two : tShortcuts for bp 0., bp 1. and bp 2..
type scale = float -> tmodule Scale : sig ... end sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page