texutil.ml
来自「php 开发的内容管理系统」· ML 代码 · 共 483 行 · 第 1/3 页
ML
483 行
| "\\empty" -> LITERAL (HTMLABLE (FONT_UF, "\\emptyset ", "∅")) | "\\emptyset" -> LITERAL (HTMLABLE (FONT_UF, "\\emptyset ", "∅")) | "\\O" -> LITERAL (HTMLABLE (FONT_UF, "\\emptyset ", "∅")) | "\\S" -> LITERAL (HTMLABLEM(FONT_UFH,"\\S ", "§")) | "\\sect" -> LITERAL (HTMLABLEM(FONT_UFH,"\\S ", "§")) | "\\nabla" -> LITERAL (HTMLABLE (FONT_UF, "\\nabla ", "∇")) | "\\geq" -> LITERAL (HTMLABLE (FONT_UFH,"\\geq ", "≥")) | "\\ge" -> LITERAL (HTMLABLE (FONT_UFH,"\\geq ", "≥")) | "\\leq" -> LITERAL (HTMLABLE (FONT_UFH,"\\leq ", "≤")) | "\\le" -> LITERAL (HTMLABLE (FONT_UFH,"\\leq ", "≤")) | "\\cong" -> LITERAL (HTMLABLE (FONT_UF, "\\cong ", "≅")) | "\\ang" -> LITERAL (HTMLABLE (FONT_UF, "\\angle ", "∠")) | "\\part" -> LITERAL (HTMLABLEM(FONT_UF, "\\partial ", "∂")) | "\\partial" -> LITERAL (HTMLABLEM(FONT_UF, "\\partial ", "∂")) | "\\ldots" -> LITERAL (HTMLABLEM(FONT_UFH,"\\ldots ", "...")) | "\\dots" -> LITERAL (HTMLABLEM(FONT_UFH,"\\dots ", "...")) | "\\quad" -> LITERAL (HTMLABLE (FONT_UF, "\\quad "," ")) | "\\qquad" -> LITERAL (HTMLABLE (FONT_UF, "\\qquad "," ")) | "\\mid" -> LITERAL (HTMLABLEM(FONT_UFH,"\\mid ", " | ")) | "\\neg" -> LITERAL (HTMLABLEM(FONT_UFH,"\\neg ", "¬")) | "\\langle" -> DELIMITER (HTMLABLE (FONT_UFH,"\\langle ","⟨")) | "\\rangle" -> DELIMITER (HTMLABLE (FONT_UFH,"\\rangle ","⟩")) | "\\lang" -> DELIMITER (HTMLABLE (FONT_UFH,"\\langle ","⟨")) | "\\rang" -> DELIMITER (HTMLABLE (FONT_UFH,"\\rangle ","⟩")) | "\\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 ", "⇒"))) | "\\mod" -> (tex_use_ams (); LITERAL (HTMLABLE (FONT_UFH,"\\mod ", "mod"))) | "\\Diamond" -> (tex_use_ams (); LITERAL (HTMLABLE (FONT_UF, "\\Diamond ", "◊"))) | "\\dotsb" -> (tex_use_ams (); LITERAL (HTMLABLE (FONT_UF, "\\dotsb ", "⋅⋅⋅"))) | "\\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 + -
显示快捷键?