]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/components/content_pres/content2pres.ml
parameter sintax added to axiom statement
[helm.git] / helm / software / components / content_pres / content2pres.ml
index c88f87535f71fe71aa6aac2e539060ad8cea7ae6..72f51c5f8acf261a9b453bf9f0aebeb7adf88cb3 100644 (file)
@@ -958,11 +958,14 @@ let definition2pres ?recno term2pres d =
       params
   in
   B.b_hv [] 
-   [B.b_hv [] 
-    ([ B.b_space; B.b_text [] name; B.b_space ] @ params @
-    (if rno <> -1 then [B.b_kw "on" ; B.b_space; term2pres rec_param ] else [])
-    @[ B.b_space;
-       B.b_text [] ":"; B.b_space; term2pres ty]); 
+   [B.b_hov (RenderingAttrs.indent_attributes `BoxML)
+    ( [B.b_hov (RenderingAttrs.indent_attributes `BoxML) ([ B.b_space; B.b_text [] name ] @ 
+        [B.indent(B.b_hov (RenderingAttrs.indent_attributes `BoxML) (params))])] 
+      @ [B.b_h [] 
+         ((if rno <> -1 then 
+           [B.b_kw "on";B.b_space;term2pres rec_param] else [])
+         @ [ B.b_space; B.b_text [] ":";]) ]
+      @[ B.indent(term2pres ty)]); 
    B.b_text [] ":=";
    B.b_h [] [B.b_space;term2pres body] ]
 ;;
@@ -1010,7 +1013,8 @@ let njoint_def2pres term2pres joint_kind defs =
 ;;
 
 let content2pres0
-  ?skip_initial_lambdas ?(skip_thm_and_qed=false) term2pres 
+  ?skip_initial_lambdas ?(skip_thm_and_qed=false)
+  (term2pres : ?prec:int -> 'a)
   (id,params,metasenv,obj) 
 =
   match obj with
@@ -1057,6 +1061,7 @@ let content2pres
   ?skip_initial_lambdas ?skip_thm_and_qed ~ids_to_inner_sorts 
 =
   content2pres0 ?skip_initial_lambdas ?skip_thm_and_qed
+(* FG: prec not optional in my patch *)
     (fun ?(prec=90) annterm ->
       let ast, ids_to_uris =
        TermAcicContent.ast_of_acic ~output_type:`Term ids_to_inner_sorts annterm
@@ -1067,7 +1072,8 @@ let content2pres
           (TermContentPres.pp_ast ast)))
 
 let ncontent2pres0
-  ?skip_initial_lambdas ?(skip_thm_and_qed=false) term2pres 
+  ?skip_initial_lambdas ?(skip_thm_and_qed=false)
+  (term2pres : ?prec:int -> 'a)
   (id,params,metasenv,obj : CicNotationPt.term Content.cobj) 
 =
   match obj with