transformation for terms.
end else
t
-let render ids_to_uris =
+let render ids_to_uris ?(prec=(-1)) =
let module A = Ast in
let module P = Mpresentation in
(* let use_unicode = true in *)
in
List.map boxify_pres (find_clusters terms)
in
- aux [] false (ref []) `Inner ~-1
+ aux [] false (ref []) `Inner prec
let rec print_box (t: boxml_markup) =
Box.box2xml print_mpres t
(** {2 Rendering} *)
(** level 1 -> level 0
- * @param ids_to_uris mapping id -> uri for hyperlinking *)
-val render: (Cic.id, UriManager.uri) Hashtbl.t -> CicNotationPt.term -> markup
+ * @param ids_to_uris mapping id -> uri for hyperlinking
+ * @param prec precedence level *)
+val render:
+ (Cic.id, UriManager.uri) Hashtbl.t -> ?prec:int -> CicNotationPt.term -> markup
(** level 0 -> xml stream *)
val print_xml: markup -> Xml.token Stream.t