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
This module permits to create diagrams in a very simple and yet quite flexible fashion. It permits to specify content, form and color of nodes as well as color, form and labels of arrows between nodes. Nodes have to be placed by hand, though
Creation
The type for node styles; It corresponds to the type of the box creation functions in the Box
module
val node :
?style:node_style ->
?fill:Color.t ->
?boxed:bool ->
float ->
float ->
Box.t ->
node
Construct a node at a given position with a given content in Latex format and a box style
val arrow :
t ->
?lab:string ->
?line_width:Num.t ->
?boxed:bool ->
?line_color:Color.t ->
?fill_color:Color.t ->
?pos:Command.position ->
?head:bool ->
?dashed:Dash.t ->
?outd:dir ->
?ind:dir ->
node ->
node ->
unit
arrow d n1 n2
adds an arrow between n1 and n2 in the diagram d, by side effect.