{"id":722,"date":"2011-11-14T15:36:55","date_gmt":"2011-11-14T07:36:55","guid":{"rendered":"http:\/\/vanabel.sinaapp.com\/?p=722"},"modified":"2011-11-14T15:36:55","modified_gmt":"2011-11-14T07:36:55","slug":"test-of-mathjax","status":"publish","type":"post","link":"https:\/\/lttt.vanabel.cn\/?p=722","title":{"rendered":"Test of MathJaX"},"content":{"rendered":"<p>Here is the displayed-math<br \/>\n\\begin{equation}<br \/>\n\\int_0^{2\\pi} \\sin x\\rd x,<br \/>\n\\end{equation}<br \/>\nand the inline math $x>0$. Of course you can put math between the <strong>nonmath<\/strong> label to escape the process of MathJaX, for example <nonmath>$x>0$<\/nonmath>, is produced by the following code:<!--more--><\/p>\n<pre lang=\"latex\">\n<nonmath>$x>0$<\/nonmath>\n<\/pre>\n<p>Now, I will turn to test some new environment, like theorems:<\/p>\n<div id=\"Theorem1\" class=\"theorem\">\n<h2>Theorem 1<\/h2>\n<ul>\n<li>A genotype matrix G.<\/li>\n<li>The Rows of the matrix are individuals\/ taxa.<\/li>\n<li>The columns of the matrix are SNP sites\/ characters.<\/li>\n<\/ul>\n<\/div>\n<p>which is produced by<\/p>\n<pre lang=\"html\" line=\"2\" file=\"theorem_examp.txt\" colla=\"+\">\n<div id=\"Theorem1\" class=\"theorem\">\n<h2>Theorem 1<\/h2>\n   <ul>\n   <li>A genotype matrix G.<\/li>\n   <li>The Rows of the matrix are individuals\/ taxa.<\/li>\n   <li>The columns of the matrix are SNP sites\/ characters.<\/li>\n   <\/ul>\n<\/div>\n<\/pre>\n<p>similarly, I also defined an environment of example, as:<\/p>\n<div class=\"example\", id=\"example1\">\n<h2>Example<\/h2>\n<p>   This is Example 1, can you see the title, if you cannot see, what is the problem did you think there it is? <\/p>\n<ul>\n<li>A genotype matrix G.<\/li>\n<li>The Rows of the matrix are individuals\/ taxa.<\/li>\n<li>The columns of the matrix are SNP sites\/ characters.<\/li>\n<\/ul>\n<\/div>\n<p>The aboving example can be produced by the following code:<\/p>\n<pre lang=\"html\" line=\"10\" file=\"theorem_examp.txt\" colla=\"+\">\n<div class=\"example\", id=\"example1\">\n   <h2>Example<\/h2>\n   This is Example 1, can you see the title, if you cannot see, what is the problem did you think there it is?\n   <ol>\n   <li>A genotype matrix G.<\/li>\n   <li>The Rows of the matrix are individuals\/ taxa.<\/li>\n   <li>The columns of the matrix are SNP sites\/ characters.<\/li>\n   <\/ol>   \n<\/div>\n<\/pre>\n<p>The next thing I want to do is make these objects\/ environments auto-numbering and cross-ref possible. If you are also interesting in it, maybe you can help me out here.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here is the displayed-math \\begin{equati &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"more-link\" href=\"https:\/\/lttt.vanabel.cn\/?p=722\"> <span class=\"screen-reader-text\">Test of MathJaX<\/span> \u9605\u8bfb\u66f4\u591a &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[549],"class_list":["post-722","post","type-post","status-publish","format-standard","hentry","category-admin","tag-mathjax"],"_links":{"self":[{"href":"https:\/\/lttt.vanabel.cn\/index.php?rest_route=\/wp\/v2\/posts\/722","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lttt.vanabel.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lttt.vanabel.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lttt.vanabel.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lttt.vanabel.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=722"}],"version-history":[{"count":0,"href":"https:\/\/lttt.vanabel.cn\/index.php?rest_route=\/wp\/v2\/posts\/722\/revisions"}],"wp:attachment":[{"href":"https:\/\/lttt.vanabel.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=722"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lttt.vanabel.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=722"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lttt.vanabel.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=722"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}