Stog library reference documentation : Stog_of_latex
sig
  module SMap :
    sig
      type key = string
      type +'a t
      val empty : 'a t
      val is_empty : 'a t -> bool
      val mem : key -> 'a t -> bool
      val add : key -> '-> 'a t -> 'a t
      val singleton : key -> '-> 'a t
      val remove : key -> 'a t -> 'a t
      val merge :
        (key -> 'a option -> 'b option -> 'c option) -> 'a t -> 'b t -> 'c t
      val compare : ('-> '-> int) -> 'a t -> 'a t -> int
      val equal : ('-> '-> bool) -> 'a t -> 'a t -> bool
      val iter : (key -> '-> unit) -> 'a t -> unit
      val fold : (key -> '-> '-> 'b) -> 'a t -> '-> 'b
      val for_all : (key -> '-> bool) -> 'a t -> bool
      val exists : (key -> '-> bool) -> 'a t -> bool
      val filter : (key -> '-> bool) -> 'a t -> 'a t
      val partition : (key -> '-> bool) -> 'a t -> 'a t * 'a t
      val cardinal : 'a t -> int
      val bindings : 'a t -> (key * 'a) list
      val min_binding : 'a t -> key * 'a
      val max_binding : 'a t -> key * 'a
      val choose : 'a t -> key * 'a
      val split : key -> 'a t -> 'a t * 'a option * 'a t
      val find : key -> 'a t -> 'a
      val map : ('-> 'b) -> 'a t -> 'b t
      val mapi : (key -> '-> 'b) -> 'a t -> 'b t
    end
  type param = {
    prefix : string option;
    ext_file_prefix : string;
    envs : string list;
    sectionning : string list;
    image_sizes : string Stog_of_latex.SMap.t;
  }
  type tree = Source of string | Block of Stog_of_latex.block
  and block = {
    tag : Xtmpl.name;
    title : Stog_of_latex.tree list;
    id : string option;
    subs : Stog_of_latex.tree list;
    atts : Xtmpl.attributes;
  }
  type preambule_section = string option * string
  type preambule = Stog_of_latex.preambule_section list
  type tex_file = {
    preambule : Stog_of_latex.preambule;
    body : Stog_of_latex.tree list;
  }
  val to_xml : Stog_of_latex.tree list -> Xtmpl.tree list
  val string_of_stog_directives :
    ?tags:'a list -> ?notags:'a list -> ('a * string) list -> string
  val parse :
    Stog_of_latex.param ->
    string -> string -> Stog_of_latex.tex_file * Stog_of_latex.param
end