{"id":1483,"date":"2018-11-13T17:14:27","date_gmt":"2018-11-13T09:14:27","guid":{"rendered":"http:\/\/ykyi.net\/?p=1483"},"modified":"2018-11-13T17:14:27","modified_gmt":"2018-11-13T09:14:27","slug":"%e5%ae%89%e8%a3%85mathjax-latex%e6%8f%92%e4%bb%b6%ef%bc%8c%e8%ae%a9wordpress%e6%98%be%e7%a4%ba%e6%95%b0%e5%ad%a6%e5%85%ac%e5%bc%8f","status":"publish","type":"post","link":"https:\/\/ykyi.net\/?p=1483","title":{"rendered":"\u5b89\u88c5MathJax-LaTeX\u63d2\u4ef6\uff0c\u8ba9wordpress\u663e\u793a\u6570\u5b66\u516c\u5f0f"},"content":{"rendered":"<p>\u6700\u8fd1\u770b\u7edf\u8ba1\u5b66\uff0c\u6d89\u53ca\u5f88\u591a\u6570\u5b66\u516c\u5f0f\u3002\u4e8e\u662f\uff0c\u60f3\u627e\u5230\u4e00\u6b3ewordpress\u7684\u63d2\u4ef6\u53ef\u4ee5\u663e\u793a\u6570\u5b66\u516c\u53f8\u3002<\/p>\n<p>\u5f53\u7136\uff0c\u4e8e\u662f\u5c31\u627e\u5230\u4e86 <strong>MathJax-LaTex<\/strong>\u8fd9\u4e2a\u63d2\u4ef6\u3002\u867d\u7136\u63d2\u4ef6\u540d\u5b57\u4e2d\u6709LaTex\uff0c\u4f46\u5b9e\u9645\u4e0a\u4e0d\u4ec5\u4ec5\u53ef\u4ee5\u7528LaTex\u8bed\u6cd5\u63cf\u8ff0\u6570\u5b66\u516c\u5f0f\uff0c\u4ea6\u53ef\u7528AsciiMath\uff0c\u4ee5\u53caMathML\u3002<br \/>\n\u672c\u4ee5\u4e3a\u50cf\u5176\u5b83\u6240\u6709wordpress\u63d2\u4ef6\u4e00\u6837\uff0c\u5b89\u88c5\u5f88\u7b80\u5355\uff0c\u5f88\u5bb9\u6613\u5c31\u80fd\u4e0a\u624b\u4f7f\u7528\u3002\u6ca1\u60f3\u5230\u8fd8\u662f\u82b1\u4e86\u4e00\u4e9b\u65f6\u95f4\u3002<\/p>\n<p>MathJax-LaTex\u63d2\u4ef6\u4f9d\u8d56MathJax\u8fd9\u4e2ajavascript\u5f00\u6e90\u5de5\u7a0b\u3002\u539f\u56e0\u8c8c\u4f3c\u662fMathJax\u9ed8\u8ba4\u7528\u7684CDN\u5728\u5927\u9646\u88ab\u5899\u4e86\uff0c\u8fd8\u662f\u56e0\u4e3a\u6d4f\u89c8\u5668\u7684\u540c\u6e90\u7b56\u7565\u88ab\u6d4f\u89c8\u5668\u7981\u4e86??\u6211\u61d2\u5f97\u91cd\u73b0\u6392\u67e5\u771f\u6b63\u539f\u56e0\u4e86\u3002\u603b\u4e4b\uff0c\u6211\u7528MathJax-LaTex\u9ed8\u8ba4\u914d\u7f6e\u6ca1\u6709\u6210\u529f\uff0c\u4e8e\u662f\u6211\u81ea\u5df1\u624b\u52a8\u4e0b\u8f7d\u5e76\u5b89\u88c5\u5230\u81ea\u5df1\u7684\u670d\u52a1\u5668\uff0c\u8fd0\u884cOK\u3002<\/p>\n<ol>\n<li>\u9996\u5148\u5230 <a class=\"wp-editor-md-post-content-link\" href=\"https:\/\/github.com\/mathjax\/MathJax\">https:\/\/github.com\/mathjax\/MathJax<\/a> \u4e0b\u8f7d\u6e90\u4ee3\u7801\u3002\u719f\u6089git\u7684\u540c\u5b66\u53ef\u4ee5\u7528git\u4e0b\u8f7d\uff0c\u4ea6\u53ef\u7528\u53f3\u8fb9\u7684 <em>Clone or Dowload<\/em> \u6309\u94ae\u4e0b\u8f7dzip\u5305\u3002<\/li>\n<li>\u628azip\u5305\u4e0a\u4f20\u5230\u81ea\u5df1\u7684\u670d\u52a1\u5668\uff0c\u627e\u4e00\u4e2a\u76ee\u5f55\u89e3\u538b\u7f29\u3002<\/li>\n<li>\u6253\u5f00MathJax-LaTex\u7684\u914d\u7f6eweb\u9875\u9762\uff0c\u5982\u4e0b\u56fe\u5982\u793a\uff0c\u53bb\u6389Use MathJax CDN Service \u7684\u52fe\uff0c\u4e0d\u8981\u7528MathJax\u81ea\u5df1\u7684CDN\uff1b\u7136\u540e\uff0c\u5728Custom MathJax location\u9009\u9879\u4e2d\u586b\u4e0a\u81ea\u5df1\u7684\u8def\u5f84\u3002\u5047\u5982\u521a\u624dzip\u5305MathJax\u89e3\u538b\u7f29\u5230\u7684\u76ee\u5f55\u662f\/tools\uff0c\u90a3\u4e48\u5c31\u586b\u4e0a <em>\/tools\/MathJax-2.7.5\/MathJax.js<\/em> \u3002<br \/>\n<a class=\"wp-editor-md-post-content-link\" href=\"http:\/\/ykyi.net\/zausiu\/imgs\/MathJax-LaTex.png\" title=\"MathJax-LaTex-Conf\"><img decoding=\"async\" src=\"http:\/\/ykyi.net\/zausiu\/imgs\/MathJax-LaTex.png\" alt=\"MathJax-LaTex-Conf\" title=\"MathJax-LaTex-Conf\" \/><\/a><\/li>\n<li>\u7136\u540e\u521b\u5efa\u4e00\u7bc7\u65b0\u535a\u6587\uff0c\u73b0\u5728\u53ef\u4ee5\u5f55\u5165\u6570\u5b66\u516c\u5f0f\u5566\u3002\u88c5\u903c\u5fc5\u5907\uff01\u6bd4\u5982\u4e0b\u9762\u7684\u4f2f\u52aa\u5229\u5206\u5e03\u7684\u516c\u5f0f\uff1a <\/li>\n<\/ol>\n<p><span class=\"katex math multi-line\">b(x;n,p) = {n \\choose x} p^k (1-p)^{ n-x}<\/span><\/p>\n<p>\u8981\u8f93\u5165\u4e0a\u8ff0\u65b9\u7a0b\u5f0f\uff0c\u5728\u6587\u7ae0\u5f00\u5934\u8f93\u5165<strong>[mathJax]<\/strong> ,\u8fd9\u4e2a\u6807\u5fd7\u8ba9MathJax-LaTex\u63d2\u4ef6\u52a0\u8f7d\u663e\u793a\u6570\u5b66\u516c\u5f0f\u76f8\u5173\u7684javascript\u4ee3\u7801\u3002\u7136\u540e\u6572\u4e24\u4e2a\u7f8e\u5143\u53f7 <code>$$<\/code>\uff0c\u6572\u5165\u516c\u5f0f b(x;n,p) = {n \\choose k} p^k (1-p)^{ n-k}\uff0c\u518d\u6572\u5165\u4e24\u4e2a\u7f8e\u5143\u53f7\u7ed3\u5c3e\u3002\u5373\u7528\u53cc\u7f8e\u5143\u53f7<code>$$<\/code>\u628a\u516c\u5f0f\u56f4\u8d77\u6765\u3002\u4ea6\u53ef\u7528<code>[<\/code>latex<code>][<\/code>\/latex<code>]<\/code>\u8fd9\u5bf9\u6807\u7b7e\u628a\u516c\u5f0f\u56f4\u8d77\u6765\u3002\u8fd9\u5bf9\u6807\u7b7e\u8fd9\u91cc\u7684\u516c\u5f0f\u63cf\u8ff0\u7528\u4e86 asciiMath\u8bed\u6cd5. n choose k\u5373\u4e00\u4e2a\u7ec4\u5408\u3002\u5728\u7f51\u4e0a\u641c\u7d22\u76f8\u5173\u8bed\u6cd5\u53c2\u8003\u3002<\/p>\n<p>\u5728\u8fd9\u4e2a\u9875\u9762\u53ef\u4ee5\u770b\u5230\u66f4\u591a\u7528MathJax\u663e\u793a\u7684\u6570\u5b66\u516c\u5f0f\u7684\u4f8b\u5b50\uff0c\u7528\u6d4f\u89c8\u5668\u7684\u67e5\u770b\u6e90\u4ee3\u7801\u529f\u80fd(ctrl-u)\u67e5\u770b\u4f7f\u7528\u7684\u8bed\u6cd5\uff1a<br \/>\n\u4f7f\u7528LaTex\u8bed\u6cd5\uff1a  <a class=\"wp-editor-md-post-content-link\" href=\"http:\/\/ykyi.net\/zausiu\/MathJax-2.7.5\/test\/sample.html\">http:\/\/ykyi.net\/zausiu\/MathJax-2.7.5\/test\/sample.html<\/a><br \/>\n\u4f7f\u7528AsciiMath\u8bed\u6cd5\uff1a <a class=\"wp-editor-md-post-content-link\" href=\"http:\/\/ykyi.net\/zausiu\/MathJax-2.7.5\/test\/sample-asciimath.html\">http:\/\/ykyi.net\/zausiu\/MathJax-2.7.5\/test\/sample-asciimath.html<\/a><br \/>\n\u4f7f\u7528MathML\u8bed\u6cd5\uff1a<a class=\"wp-editor-md-post-content-link\" href=\"http:\/\/ykyi.net\/zausiu\/MathJax-2.7.5\/test\/sample-mml.html\">http:\/\/ykyi.net\/zausiu\/MathJax-2.7.5\/test\/sample-mml.html<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5b89\u88c5MathJax-LaTeX\u63d2\u4ef6\uff0c\u8ba9wordpress\u663e\u793a\u6570\u5b66\u516c\u5f0f<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[56],"class_list":["post-1483","post","type-post","status-publish","format-standard","hentry","category-tech_articles","tag-math"],"_links":{"self":[{"href":"https:\/\/ykyi.net\/index.php?rest_route=\/wp\/v2\/posts\/1483","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ykyi.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ykyi.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ykyi.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ykyi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1483"}],"version-history":[{"count":0,"href":"https:\/\/ykyi.net\/index.php?rest_route=\/wp\/v2\/posts\/1483\/revisions"}],"wp:attachment":[{"href":"https:\/\/ykyi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1483"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ykyi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1483"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ykyi.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1483"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}