Mlpost.Picture
Functions to manipulate commands as if they were pictures
Pictures are a powerful way to reuse and modify parts of a figure
type t = Command.t
The abstract type of pictures
val tex : string -> t
Take a string in Latex format and transform it into a picture
val transform : Transform.t -> t -> t
Apply a transformation to a picture
Get the bounding box of a picture, according to its corners and supplied padding dx
and dy
.
val corner : Command.position -> t -> Point.t
clip pic path
limits pic
to the cyclic path path
; all elements outside of path
are cut off.
Predefined Transformations
val escape_latex : escaped list -> string -> string