diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2009-02-22 13:37:51 +0100 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2009-02-22 13:37:51 +0100 |
commit | b9b85843572bf283f48285001e276ba7e61b63f6 (patch) | |
tree | 4c6f4571552ada9ccfb4030481dcf77308f8b254 /math | |
parent | d9a20acc4e789cca747ad360d87ee3f3e7aa58c1 (diff) |
updated to MediaWiki 1.14.0
Diffstat (limited to 'math')
-rw-r--r-- | math/texutil.ml | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/math/texutil.ml b/math/texutil.ml index 5ea16eef..7355bd64 100644 --- a/math/texutil.ml +++ b/math/texutil.ml @@ -57,7 +57,7 @@ let get_preface () = "\\nonstopmode\n\\documentclass[12pt]{article}\n" ^ (if !modules_nonascii then get_encoding !modules_encoding else "") ^ (if !modules_ams then "\\usepackage{amsmath}\n\\usepackage{amsfonts}\n\\usepackage{amssymb}\n" else "") ^ (if !modules_color then "\\usepackage[dvips,usenames]{color}\n" else "") ^ - "\\pagestyle{empty}\n\\begin{document}\n$$\n" + "\\usepackage{cancel}\n\\pagestyle{empty}\n\\begin{document}\n$$\n" let get_footer () = "\n$$\n\\end{document}\n" let set_encoding = function @@ -108,6 +108,10 @@ let find = function | "\\nu" -> LITERAL (HTMLABLEC (FONT_UF, "\\nu ", "ν")) | "\\Nu" -> (tex_use_ams (); LITERAL (HTMLABLEC (FONT_UF, "\\mathrm{N}", "Ν"))) + | "\\omicron" -> (tex_use_ams (); LITERAL (HTMLABLEC (FONT_UF, + "\\mathrm{o}", "ο"))) + | "\\Omicron" -> (tex_use_ams (); LITERAL (HTMLABLEC (FONT_UF, + "\\mathrm{O}", "Ο"))) | "\\pi" -> LITERAL (HTMLABLEC (FONT_UF, "\\pi ", "π")) | "\\Pi" -> LITERAL (HTMLABLEC (FONT_UF, "\\Pi ", "Π")) | "\\varpi" -> LITERAL (TEX_ONLY "\\varpi ") @@ -503,6 +507,8 @@ let find = function | "\\cfrac" -> (tex_use_ams (); FUN_AR2h ("\\cfrac ", fun num den -> Html.html_render [num], "<hr style=\"{background: black}\">", Html.html_render [den])) | "\\over" -> FUN_INFIXh ("\\over ", fun num den -> Html.html_render num, "<hr style=\"{background: black}\"/>", Html.html_render den) | "\\sqrt" -> FUN_AR1 "\\sqrt " + | "\\cancel" -> FUN_AR1 "\\cancel " + | "\\cancelto" -> FUN_AR2 "\\cancelto " | "\\pmod" -> FUN_AR1hl ("\\pmod ", ("(mod ", ")")) | "\\bmod" -> FUN_AR1hl ("\\bmod ", ("mod ", "")) | "\\emph" -> FUN_AR1 "\\emph " |