(* only the open bracket is added; the closed bracket must be in b *)
Mtable(attr@standard_tbl_attr,
[Mtr([],[Mtd([],Mrow([],[Mtext([],"(");a]))]);
- Mtr([],[Mtd([],Mrow([],[indentation;op;smallskip;b]))])]);;
+ Mtr([],[Mtd([],Mrow([],[indentation;op;b]))])]);;
let two_rows_table_without_brackets attr a b op =
Mtable(attr@standard_tbl_attr,
[Mtr([],[Mtd([],a)]);
- Mtr([],[Mtd([],Mrow([],[indentation;op;smallskip;b]))])]);;
+ Mtr([],[Mtd([],Mrow([],[indentation;op;b]))])]);;
let row_with_brackets attr a b op =
(* by analogy with two_rows_table_with_brackets we only add the
open brackets *)
- Mrow(attr,[Mtext([],"(");a;smallskip;op;smallskip;b])
+ Mrow(attr,[Mtext([],"(");a;op;b])
let row_without_brackets attr a b op =
- Mrow(attr,[a;smallskip;op;smallskip;b])
+ Mrow(attr,[a;op;b])
(* MathML prefix *)
let prefix = "m";;
and print_mtd =
let module X = Xml in
function
- Mtd (attr,m) -> X.xml_nempty ~prefix "mtd" attr (print_mpres m)
+ Mtd (attr,m) -> X.xml_nempty ~prefix "mtd" attr [< (print_mpres m) ; X.xml_nempty ~prefix "mphantom" [] (X.xml_nempty ~prefix "mtext" [] (X.xml_cdata "(")) >]
;;
let print_mpres pres =
[Some "xmlns","m","http://www.w3.org/1998/Math/MathML" ;
Some "xmlns","helm","http://www.cs.unibo.it/helm" ;
Some "xmlns","xlink","http://www.w3.org/1999/xlink"
- ] (print_mpres pres)
+ ] (Xml.xml_nempty ~prefix "mstyle" [None, "mathvariant", "normal"; None, "rowspacing", "0.6ex"] (print_mpres pres))
>]