texutil.ml

来自「php 开发的内容管理系统」· ML 代码 · 共 483 行 · 第 1/3 页

ML
483
字号
    | "\\empty"            -> LITERAL (HTMLABLE (FONT_UF, "\\emptyset ", "&empty;"))    | "\\emptyset"         -> LITERAL (HTMLABLE (FONT_UF, "\\emptyset ", "&empty;"))    | "\\O"                -> LITERAL (HTMLABLE (FONT_UF, "\\emptyset ", "&empty;"))    | "\\S"                -> LITERAL (HTMLABLEM(FONT_UFH,"\\S ", "&sect;"))    | "\\sect"             -> LITERAL (HTMLABLEM(FONT_UFH,"\\S ", "&sect;"))    | "\\nabla"            -> LITERAL (HTMLABLE (FONT_UF, "\\nabla ", "&nabla;"))    | "\\geq"              -> LITERAL (HTMLABLE (FONT_UFH,"\\geq ", "&ge;"))    | "\\ge"               -> LITERAL (HTMLABLE (FONT_UFH,"\\geq ", "&ge;"))    | "\\leq"              -> LITERAL (HTMLABLE (FONT_UFH,"\\leq ", "&le;"))    | "\\le"               -> LITERAL (HTMLABLE (FONT_UFH,"\\leq ", "&le;"))    | "\\cong"             -> LITERAL (HTMLABLE (FONT_UF, "\\cong ", "&cong;"))    | "\\ang"              -> LITERAL (HTMLABLE (FONT_UF, "\\angle ", "&ang;"))    | "\\part"             -> LITERAL (HTMLABLEM(FONT_UF, "\\partial ", "&part;"))    | "\\partial"          -> LITERAL (HTMLABLEM(FONT_UF, "\\partial ", "&part;"))    | "\\ldots"            -> LITERAL (HTMLABLEM(FONT_UFH,"\\ldots ", "..."))    | "\\dots"             -> LITERAL (HTMLABLEM(FONT_UFH,"\\dots ", "..."))    | "\\quad"             -> LITERAL (HTMLABLE (FONT_UF, "\\quad ","&nbsp;&nbsp;"))    | "\\qquad"            -> LITERAL (HTMLABLE (FONT_UF, "\\qquad ","&nbsp;&nbsp;&nbsp;&nbsp;"))    | "\\mid"              -> LITERAL (HTMLABLEM(FONT_UFH,"\\mid ", " | "))    | "\\neg"              -> LITERAL (HTMLABLEM(FONT_UFH,"\\neg ", "&not;"))    | "\\langle"           -> DELIMITER (HTMLABLE (FONT_UFH,"\\langle ","&lang;"))    | "\\rangle"           -> DELIMITER (HTMLABLE (FONT_UFH,"\\rangle ","&rang;"))    | "\\lang"             -> DELIMITER (HTMLABLE (FONT_UFH,"\\langle ","&lang;"))    | "\\rang"             -> DELIMITER (HTMLABLE (FONT_UFH,"\\rangle ","&rang;"))    | "\\lbrack"           -> DELIMITER (HTMLABLEC(FONT_UFH,"[","["))    | "\\rbrack"           -> DELIMITER (HTMLABLEC(FONT_UFH,"]","]"))    | "\\ddots"            -> LITERAL (TEX_ONLY "\\ddots ")    | "\\clubs"            -> LITERAL (TEX_ONLY "\\clubsuit ")    | "\\clubsuit"         -> LITERAL (TEX_ONLY "\\clubsuit ")    | "\\spades"           -> LITERAL (TEX_ONLY "\\spadesuit ")    | "\\spadesuit"        -> LITERAL (TEX_ONLY "\\spadesuit ")    | "\\hearts"           -> LITERAL (TEX_ONLY "\\heartsuit ")    | "\\heartsuit"        -> LITERAL (TEX_ONLY "\\heartsuit ")    | "\\diamonds"         -> LITERAL (TEX_ONLY "\\diamondsuit ")    | "\\diamondsuit"      -> LITERAL (TEX_ONLY "\\diamondsuit ")    | "\\implies"          -> (tex_use_ams (); LITERAL (HTMLABLE (FONT_UF, "\\implies ", "&rArr;")))    | "\\mod"              -> (tex_use_ams (); LITERAL (HTMLABLE (FONT_UFH,"\\mod ", "mod")))    | "\\Diamond"          -> (tex_use_ams (); LITERAL (HTMLABLE (FONT_UF, "\\Diamond ", "&loz;")))    | "\\dotsb"            -> (tex_use_ams (); LITERAL (HTMLABLE (FONT_UF, "\\dotsb ", "&sdot;&sdot;&sdot;")))    | "\\reals"            -> (tex_use_ams (); LITERAL (HTMLABLE (FONT_UFH,"\\mathbb{R}", "<b>R</b>")))    | "\\Reals"            -> (tex_use_ams (); LITERAL (HTMLABLE (FONT_UFH,"\\mathbb{R}", "<b>R</b>")))    | "\\R"                -> (tex_use_ams (); LITERAL (HTMLABLE (FONT_UFH,"\\mathbb{R}", "<b>R</b>")))    | "\\cnums"            -> (tex_use_ams (); LITERAL (HTMLABLE (FONT_UFH,"\\mathbb{C}", "<b>C</b>")))    | "\\Complex"          -> (tex_use_ams (); LITERAL (HTMLABLE (FONT_UFH,"\\mathbb{C}", "<b>C</b>")))    | "\\Z"                -> (tex_use_ams (); LITERAL (HTMLABLE (FONT_UFH,"\\mathbb{Z}", "<b>Z</b>")))    | "\\natnums"          -> (tex_use_ams (); LITERAL (HTMLABLE (FONT_UFH,"\\mathbb{N}", "<b>N</b>")))    | "\\N"                -> (tex_use_ams (); LITERAL (HTMLABLE (FONT_UFH,"\\mathbb{N}", "<b>N</b>")))    | "\\lVert"            -> (tex_use_ams (); LITERAL (HTMLABLE (FONT_UFH,"\\lVert ", "||")))    | "\\rVert"            -> (tex_use_ams (); LITERAL (HTMLABLE (FONT_UFH,"\\rVert ", "||")))    | "\\nmid"             -> (tex_use_ams (); LITERAL (TEX_ONLY "\\nmid "))    | "\\lesssim"          -> (tex_use_ams (); LITERAL (TEX_ONLY "\\lesssim "))    | "\\ngeq"             -> (tex_use_ams (); LITERAL (TEX_ONLY "\\ngeq "))    | "\\smallsmile"       -> (tex_use_ams (); LITERAL (TEX_ONLY "\\smallsmile "))    | "\\smallfrown"       -> (tex_use_ams (); LITERAL (TEX_ONLY "\\smallfrown "))    | "\\nleftarrow"       -> (tex_use_ams (); LITERAL (TEX_ONLY "\\nleftarrow "))    | "\\nrightarrow"      -> (tex_use_ams (); LITERAL (TEX_ONLY "\\nrightarrow "))    | "\\trianglelefteq"   -> (tex_use_ams (); LITERAL (TEX_ONLY "\\trianglelefteq "))    | "\\trianglerighteq"  -> (tex_use_ams (); LITERAL (TEX_ONLY "\\trianglerighteq "))    | "\\square"           -> (tex_use_ams (); LITERAL (TEX_ONLY "\\square "))    | "\\checkmark"        -> (tex_use_ams (); LITERAL (TEX_ONLY "\\checkmark "))    | "\\supsetneq"        -> (tex_use_ams (); LITERAL (TEX_ONLY "\\supsetneq "))    | "\\subsetneq"        -> (tex_use_ams (); LITERAL (TEX_ONLY "\\subsetneq "))    | "\\Box"              -> (tex_use_ams (); LITERAL (TEX_ONLY "\\Box "))    | "\\nleq"             -> (tex_use_ams (); LITERAL (TEX_ONLY "\\nleq "))    | "\\upharpoonright"   -> (tex_use_ams (); LITERAL (TEX_ONLY "\\upharpoonright "))    | "\\upharpoonleft"    -> (tex_use_ams (); LITERAL (TEX_ONLY "\\upharpoonleft "))    | "\\downharpoonright" -> (tex_use_ams (); LITERAL (TEX_ONLY "\\downharpoonright "))    | "\\downharpoonleft"  -> (tex_use_ams (); LITERAL (TEX_ONLY "\\downharpoonleft "))    | "\\rightharpoonup"   -> (tex_use_ams (); LITERAL (TEX_ONLY "\\rightharpoonup "))    | "\\rightharpoondown" -> (tex_use_ams (); LITERAL (TEX_ONLY "\\rightharpoondown "))    | "\\leftharpoonup"    -> (tex_use_ams (); LITERAL (TEX_ONLY "\\leftharpoonup "))    | "\\leftharpoondown"  -> (tex_use_ams (); LITERAL (TEX_ONLY "\\leftharpoondown "))    | "\\nless"            -> (tex_use_ams (); LITERAL (TEX_ONLY "\\nless "))    | "\\Vdash"            -> (tex_use_ams (); LITERAL (TEX_ONLY "\\Vdash "))    | "\\vDash"            -> (tex_use_ams (); LITERAL (TEX_ONLY "\\vDash "))    | "\\varkappa"         -> (tex_use_ams (); LITERAL (TEX_ONLY "\\varkappa "))    | "\\digamma"          -> (tex_use_ams (); LITERAL (TEX_ONLY "\\digamma "))    | "\\beth"             -> (tex_use_ams (); LITERAL (TEX_ONLY "\\beth "))    | "\\daleth"           -> (tex_use_ams (); LITERAL (TEX_ONLY "\\daleth "))    | "\\gimel"            -> (tex_use_ams (); LITERAL (TEX_ONLY "\\gimel "))    | "\\complement"       -> (tex_use_ams (); LITERAL (TEX_ONLY "\\complement "))    | "\\eth"              -> (tex_use_ams (); LITERAL (TEX_ONLY "\\eth "))    | "\\hslash"           -> (tex_use_ams (); LITERAL (TEX_ONLY "\\hslash "))    | "\\mho"              -> (tex_use_ams (); LITERAL (TEX_ONLY "\\mho "))    | "\\Finv"             -> (tex_use_ams (); LITERAL (TEX_ONLY "\\Finv "))    | "\\Game"             -> (tex_use_ams (); LITERAL (TEX_ONLY "\\Game "))    | "\\varlimsup"        -> (tex_use_ams (); LITERAL (TEX_ONLY "\\varlimsup "))    | "\\varliminf"        -> (tex_use_ams (); LITERAL (TEX_ONLY "\\varliminf "))    | "\\varinjlim"        -> (tex_use_ams (); LITERAL (TEX_ONLY "\\varinjlim "))    | "\\varprojlim"       -> (tex_use_ams (); LITERAL (TEX_ONLY "\\varprojlim "))    | "\\injlim"           -> (tex_use_ams (); LITERAL (TEX_ONLY "\\injlim "))    | "\\projlim"          -> (tex_use_ams (); LITERAL (TEX_ONLY "\\projlim "))    | "\\iint"             -> (tex_use_ams (); LITERAL (TEX_ONLY "\\iint "))    | "\\iiint"            -> (tex_use_ams (); LITERAL (TEX_ONLY "\\iiint "))    | "\\iiiint"           -> (tex_use_ams (); LITERAL (TEX_ONLY "\\iiiint "))    | "\\varnothing"       -> (tex_use_ams (); LITERAL (TEX_ONLY "\\varnothing "))    | "\\left"             -> LEFT    | "\\right"            -> RIGHT    | "\\hat"              -> FUN_AR1 "\\hat "    | "\\widehat"          -> FUN_AR1 "\\widehat "    | "\\overline"         -> FUN_AR1 "\\overline "    | "\\overbrace"        -> FUN_AR1 "\\overbrace "    | "\\underline"        -> FUN_AR1 "\\underline "    | "\\underbrace"       -> FUN_AR1 "\\underbrace "    | "\\overleftarrow"    -> FUN_AR1 "\\overleftarrow "    | "\\overrightarrow"   -> FUN_AR1 "\\overrightarrow "    | "\\overleftrightarrow"->FUN_AR1 "\\overleftrightarrow "    | "\\check"            -> FUN_AR1 "\\check "    | "\\acute"            -> FUN_AR1 "\\acute "    | "\\grave"            -> FUN_AR1 "\\grave "    | "\\bar"              -> FUN_AR1 "\\bar "    | "\\vec"              -> FUN_AR1 "\\vec "    | "\\dot"              -> FUN_AR1 "\\dot "    | "\\ddot"             -> FUN_AR1 "\\ddot "    | "\\breve"            -> FUN_AR1 "\\breve "    | "\\tilde"            -> FUN_AR1 "\\tilde "    | "\\not"              -> LITERAL (TEX_ONLY "\\not ")    | "\\choose"           -> FUN_INFIX "\\choose "    | "\\atop"             -> FUN_INFIX "\\atop "    | "\\binom"            -> FUN_AR2 "\\binom "    | "\\frac"             -> FUN_AR2h ("\\frac ", fun num den -> Html.html_render [num], "<hr style=\"{background: black}\"/>", Html.html_render [den])    | "\\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 "    | "\\pmod"             -> FUN_AR1hl ("\\pmod ", ("(mod ", ")"))    | "\\bmod"             -> FUN_AR1hl ("\\bmod ", ("mod ", ""))    | "\\emph"             -> FUN_AR1 "\\emph "    | "\\texttt"           -> FUN_AR1 "\\texttt "    | "\\textbf"           -> FUN_AR1 "\\textbf "    | "\\textit"           -> FUN_AR1hf ("\\textit ", FONTFORCE_IT)    | "\\textrm"           -> FUN_AR1hf ("\\textrm ", FONTFORCE_RM)    | "\\rm"               -> DECLh ("\\rm ", FONTFORCE_RM)    | "\\it"               -> DECLh ("\\it ", FONTFORCE_IT)    | "\\cal"              -> DECL "\\cal "    | "\\displaystyle"     -> LITERAL (TEX_ONLY  "\\displaystyle ")    | "\\scriptstyle"      -> LITERAL (TEX_ONLY "\\scriptstyle ")    | "\\textstyle"        -> LITERAL (TEX_ONLY "\\textstyle ")    | "\\scriptscriptstyle"-> LITERAL (TEX_ONLY "\\scriptscriptstyle ")    | "\\bf"               -> DECL "\\bf "    | "\\big"              -> BIG "\\big "    | "\\Big"              -> BIG "\\Big "    | "\\bigg"             -> BIG "\\bigg "    | "\\Bigg"             -> BIG "\\Bigg "    | "\\mathit"           -> (tex_use_ams (); FUN_AR1hf ("\\mathit ", FONTFORCE_IT))    | "\\mathrm"           -> (tex_use_ams (); FUN_AR1hf ("\\mathrm ", FONTFORCE_RM))    | "\\mathop"           -> (tex_use_ams (); FUN_AR1 "\\mathop ")    | "\\boldsymbol"       -> (tex_use_ams (); FUN_AR1 "\\boldsymbol ")    | "\\bold"             -> (tex_use_ams (); FUN_AR1 "\\mathbf ")    | "\\Bbb"              -> (tex_use_ams (); FUN_AR1 "\\mathbb ")    | "\\mathbf"           -> (tex_use_ams (); FUN_AR1 "\\mathbf ")    | "\\mathsf"           -> (tex_use_ams (); FUN_AR1 "\\mathsf ")    | "\\mathcal"          -> (tex_use_ams (); FUN_AR1 "\\mathcal ")    | "\\mathbb"           -> (tex_use_ams (); FUN_AR1 "\\mathbb ")    | "\\mathfrak"         -> (tex_use_ams (); FUN_AR1 "\\mathfrak ")    | "\\operatorname"     -> (tex_use_ams (); FUN_AR1 "\\operatorname ")    | "\\mbox"             -> raise (Failure "malformatted \\mbox")    | "\\vbox"             -> raise (Failure "malformatted \\vbox")    | "\\hbox"             -> raise (Failure "malformatted \\hbox")    | "\\color"            -> (tex_use_color (); LITERAL (TEX_ONLY "\\color"))    | s                    -> raise (Illegal_tex_function s)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?