{"id":846,"date":"2023-03-04T22:20:07","date_gmt":"2023-03-04T14:20:07","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=846"},"modified":"2023-03-04T22:20:27","modified_gmt":"2023-03-04T14:20:27","slug":"mathjax-basic-array-table","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/03\/04\/mathjax-basic-array-table\/","title":{"rendered":"MathJax\u57fa\u7840\u4e4bArray\u6216Table"},"content":{"rendered":"<p>\u7528 MathJax \u6765\u8868\u793a array \u6216 table \u6bd4\u7528 \u201c\u6587\u672c+\u7a7a\u683c\u201d\u7684\u65b9\u5f0f\u65b9\u4fbf\u5f97\u591a\u3002<\/p>\n<p>\u5728 <code>\\begin{array}<\/code> \u4e4b\u540e\uff0c\u8981\u518d\u7528\u4e00\u4e2a <code>{}<\/code>\u683c\u5f0f\u5199\u51fa\u6bcf\u4e00\u5217\u5e94\u8be5\u5982\u4f55\u5bf9\u9f50\uff0c\u5728\u82b1\u62ec\u53f7\u91cc\u9762\uff0c\u7528 <code>c<\/code> \u8868\u793a\u5217\u4e2d\u5fc3\u5bf9\u9f50\uff0c\u7528 <code>r<\/code> \u8868\u793a\u53f3\u5bf9\u9f50\uff0c<code>l<\/code> \u8868\u793a\u5de6\u5bf9\u9f50\uff0c<code>|<\/code> \u8868\u793a\u5782\u76f4\u7ebf\u3002<\/p>\n<p><!-- more --><\/p>\n<p>\u548c\u77e9\u9635\u4e00\u6837\uff0c\u7528 <code>&amp;<\/code> \u6765\u5206\u5272\u5355\u5143\uff0c\u7528 <code>\\\\<\/code> \u6765\u6362\u884c\u3002<\/p>\n<p>\u5982\u679c\u8981\u4f5c\u6c34\u5e73\u7ebf\uff0c\u5728\u5f53\u524d\u884c\u7684\u524d\u9762\u52a0\u4e0a <code>\\hline<\/code> \u5373\u53ef\u3002<\/p>\n<p>\u4e0b\u9762\u662f\u4e00\u4e2a\u4f8b\u5b50\uff1a<\/p>\n<pre><code>\\begin{array} {c|lcr}\nn &amp; \\text{Left} &amp; \\text{Center} &amp; \\text{Right} \\\\\n\\hline\n1 &amp; 0.24 &amp; 1 &amp; 125 \\\\\n2 &amp; -1 &amp; 189 &amp; -8 \\\\\n3 &amp; -20 &amp; 2000 &amp; 1+10i\n\\end{array}<\/code><\/pre>\n<p>\u663e\u793a\u51fa\u6765\u662f\u8fd9\u6837\u7684\uff1a<\/p>\n<pre><code class=\"language-mathjax\">\\begin{array} {c|lcr}\nn &amp; \\text{Left} &amp; \\text{Center} &amp; \\text{Right} \\\\\n\\hline\n1 &amp; 0.24 &amp; 1 &amp; 125 \\\\\n2 &amp; -1 &amp; 189 &amp; -8 \\\\\n3 &amp; -20 &amp; 2000 &amp; 1+10i\n\\end{array}<\/code><\/pre>\n<p>Array\u53ef\u5d4c\u5957\uff0c\u5f62\u6210\u4e00\u4e2a \u201carray of tables\u201d\uff0c\u4f8b\u5b50\u5982\u4e0b\uff1a<\/p>\n<pre><code>% outer vertical array of arrays\n\\begin{array} {c}\n% inner horizontal array of arrays\n\\begin{array} {cc}\n% inner array of minimum values\n\\begin{array} {c|cccc}\n\\text{min} &amp; 0 &amp; 1 &amp; 2 &amp; 3 \\\\\n\\hline\n0 &amp; 0 &amp; 0 &amp; 0 &amp; 0 \\\\\n1 &amp; 0 &amp; 1 &amp; 1 &amp; 1 \\\\\n2 &amp; 0 &amp; 1 &amp; 2 &amp; 2 \\\\\n3 &amp; 0 &amp; 1 &amp; 2 &amp; 3\n\\end{array}\n&amp;\n% inner array of maximum values\n\\begin{array} {c|cccc}\n\\text{max} &amp; 0 &amp; 1 &amp; 2 &amp; 3 \\\\\n\\hline\n0 &amp; 0 &amp; 1 &amp; 2 &amp; 3 \\\\\n1 &amp; 1 &amp; 1 &amp; 2 &amp; 3 \\\\\n2 &amp; 2 &amp; 2 &amp; 2 &amp; 3 \\\\\n3 &amp; 3 &amp; 3 &amp; 3 &amp; 3\n\\end{array}\n\\end{array}\n\\\\\n% inner array of delta values\n\\begin{array} {c|cccc}\n\\Delta &amp; 0 &amp; 1 &amp; 2 &amp; 3 \\\\\n\\hline\n0 &amp; 0 &amp; 1 &amp; 2 &amp; 3 \\\\\n1 &amp; 1 &amp; 0 &amp; 1 &amp; 2 \\\\\n2 &amp; 2 &amp; 1 &amp; 0 &amp; 1 \\\\\n3 &amp; 3 &amp; 2 &amp; 1 &amp; 0\n\\end{array}\n\\end{array}<\/code><\/pre>\n<pre><code class=\"language-mathjax\">\\begin{array} {c}\n\\begin{array} {cc}\n\\begin{array} {c|cccc}\n\\text{min} &amp; 0 &amp; 1 &amp; 2 &amp; 3 \\\\\n\\hline\n0 &amp; 0 &amp; 0 &amp; 0 &amp; 0 \\\\\n1 &amp; 0 &amp; 1 &amp; 1 &amp; 1 \\\\\n2 &amp; 0 &amp; 1 &amp; 2 &amp; 2 \\\\\n3 &amp; 0 &amp; 1 &amp; 2 &amp; 3\n\\end{array}\n&amp;\n\\begin{array} {c|cccc}\n\\text{max} &amp; 0 &amp; 1 &amp; 2 &amp; 3 \\\\\n\\hline\n0 &amp; 0 &amp; 1 &amp; 2 &amp; 3 \\\\\n1 &amp; 1 &amp; 1 &amp; 2 &amp; 3 \\\\\n2 &amp; 2 &amp; 2 &amp; 2 &amp; 3 \\\\\n3 &amp; 3 &amp; 3 &amp; 3 &amp; 3\n\\end{array}\n\\end{array}\n\\\\\n\\begin{array} {c|cccc}\n\\Delta &amp; 0 &amp; 1 &amp; 2 &amp; 3 \\\\\n\\hline\n0 &amp; 0 &amp; 1 &amp; 2 &amp; 3 \\\\\n1 &amp; 1 &amp; 0 &amp; 1 &amp; 2 \\\\\n2 &amp; 2 &amp; 1 &amp; 0 &amp; 1 \\\\\n3 &amp; 3 &amp; 2 &amp; 1 &amp; 0\n\\end{array}\n\\end{array}<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u7528 MathJax \u6765\u8868\u793a array \u6216 table \u6bd4\u7528 \u201c\u6587\u672c+\u7a7a\u683c\u201d\u7684\u65b9\u5f0f\u65b9\u4fbf\u5f97\u591a\u3002 \u5728 \\begin [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[97],"tags":[241,240],"class_list":["post-846","post","type-post","status-publish","format-standard","hentry","category-tools-skills","tag-latex","tag-mathjax"],"_links":{"self":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/846","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/comments?post=846"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/846\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=846"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=846"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=846"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}