{"id":2047,"date":"2012-06-02T20:19:27","date_gmt":"2012-06-02T12:19:27","guid":{"rendered":"http:\/\/vanabel.sinaapp.com\/?p=2047"},"modified":"2012-06-02T20:19:27","modified_gmt":"2012-06-02T12:19:27","slug":"latex%e4%b9%a6%e5%86%99%e7%9a%844%e4%b8%aa%e9%a1%b6%e7%ba%a7%e9%94%99%e8%af%af","status":"publish","type":"post","link":"https:\/\/lttt.vanabel.cn\/?p=2047","title":{"rendered":"LaTeX\u4e66\u5199\u76844\u4e2a\u9876\u7ea7\u9519\u8bef"},"content":{"rendered":"<p>\u5076\u7136\u770b\u5230\u4e86\u8fd9\u91cc\u5199\u7684&lt;<a href=\"http:\/\/www.johndcook.com\/blog\/2010\/02\/15\/top-latex-mistakes\/\" target=\"_blank\">Top four LaTeX mistakes<\/a>&gt;, \u89c9\u5f97\u6709\u5fc5\u8981\u7ffb\u8bd1\u5230\u8fd9\u91cc, \u5176\u5b9e\u5f88\u591a\u4eba\u90fd\u72af\u8fd9\u6837\u7684\u9519\u8bef.<\/p>\n<ol>\n<li>\n<h3>\u5f15\u53f7<\/h3>\n<p>\u4e5f\u8bb8\u5927\u5bb6\u4e0d\u8ba4\u4e3a\u8fd9\u662f\u4e00\u4e2a\u95ee\u9898, \u4f46\u662f\u5b9e\u9645\u4e0a\u662f\u4f60\u5728latex\u4e2d\u4e0d\u8981\u76f4\u63a5\u7528\u4e24\u4e2a&#8221; \u6765\u8f93\u5165\u5f15\u53f7, \u00a0\u800c\u662f\u5e94\u8be5\u7528&#8220;\u4ee5\u53ca&#8221;\u6765\u4e66\u5199. \u6548\u679c\u5982\u4e0b:<br \/>\n<a href=\"http:\/\/i.imgur.com\/mS5Z1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" title=\"\u5f15\u53f7\" src=\"http:\/\/i.imgur.com\/mS5Z1.png\" alt=\"\" width=\"82\" height=\"81\" \/><\/a><!--more--><br \/>\n\u7b2c\u4e00\u4e2a\u7684\u4ee3\u7801\u662f\u6b63\u786e\u7684\u4e66\u5199:<\/p>\n<pre lang=\"latex\" colla=\"+\">``Yes.''<\/pre>\n<p>\u7b2c\u4e8c\u4e2a\u662f\u9519\u8bef\u7684\u4e66\u5199\u65b9\u5f0f:<\/p>\n<pre lang=\"latex\" colla=\"+\">\"Yes.\"<\/pre>\n<\/li>\n<li>\n<h3>\u5fae\u5206\u7b26\u53f7<\/h3>\n<p>\u4e00\u822c\u5fae\u5206\u7b26\u53f7, \u4f8b\u5982$dx$, \u548c\u524d\u9762\u7684\u88ab\u79ef\u8868\u8fbe\u5f0f\u8981\u6709\u4e2a\u5c0f\u95f4\u8ddd, \u800c\u4e14\u4e00\u822c\u8981\u6c42\u8981\u6b63\u5199\u5fae\u5206\u7b26\u53f7$d$.<br \/>\n\u9519\u8bef\u7684\u4e66\u5199\u65b9\u6cd5\u4e00, \u6ca1\u6709\u5c0f\u95f4\u8ddd<br \/>\n\\[<br \/>\n\\int_a^b f(x) dx<br \/>\n\\]<\/p>\n<pre lang=\"latex\" colla=\"+\">\\int_a^b f(x) dx<\/pre>\n<p>\u6211\u4eec\u9700\u8981\\,\u6765\u4ea7\u751f\u5c0f\u95f4\u8ddd<\/p>\n<pre lang=\"latex\" colla=\"+\">\\int_a^b f(x)\\,dx<\/pre>\n<p>\u6548\u679c\u5982\u56fe\u6240\u793a:<br \/>\n\\[<br \/>\n\\int_a^b f(x)\\,dx<br \/>\n\\]<br \/>\n\u4e8b\u5b9e\u4e0a, \u4e00\u822c\u6211\u4eec\u8981\u6b63\u5199\u5fae\u5206\u7b26\u53f7$d$:<\/p>\n<pre lang=\"latex\" colla=\"+\">\\int_a^b f(x)\\,\\mathrm{d}x<\/pre>\n<p>\u6700\u597d\u7684\u6548\u679c\u5982\u56fe\u6240\u793a:<br \/>\n\\[<br \/>\n\\int_a^b f(x)\\,\\mathrm{d}x<br \/>\n\\]<\/li>\n<li>\n<h3>\u591a\u5b57\u6bcd\u51fd\u6570\u540d<\/h3>\n<p>\u5e38\u89c1\u7684\u9519\u8bef\u5c31\u662flog, cos, sin\u8fd9\u4e9b\u51fd\u6570\u76f4\u63a5\u7528\u5b57\u6bcd\u8f93\u5165.<br \/>\n\u9519\u8bef\u7684\u5199\u6cd5\u5982:<\/p>\n<pre lang=\"latex\" colla=\"+\">log e^x = x<\/pre>\n<p>\u9519\u8bef\u4e4b\u5904\u5c31\u5728\u4e8elog\u6ca1\u6709\u6b63\u5199\u800c\u4e14\u95f4\u8ddd\u4e5f\u4e0d\u5bf9:<br \/>\n\\[<br \/>\nlog e^x = x<br \/>\n\\]<br \/>\n\u6b63\u786e\u7684\u5e94\u8be5\u7528:<\/p>\n<pre lang=\"latex\" colla=\"+\">\\log e^x = x<\/pre>\n<p>\u6548\u679c\u4e3a:<br \/>\n\\[<br \/>\n\\log e^x = x<br \/>\n\\]<br \/>\n\u5bf9cos, sin\u7b49\u51fd\u6570\u6709\u540c\u6837\u7684\u95ee\u9898. \u6b63\u786e\u5199\u6cd5\u5e94\u8be5\u662f:<\/p>\n<pre lang=\"latex\" colla=\"+\">\\sin 2u = 2 \\sin u \\cos u<\/pre>\n<p>\u6548\u679c\u5982\u4e0b\u6240\u793a:<br \/>\n\\[<br \/>\n\\sin 2u = 2 \\sin u \\cos u<br \/>\n\\]<\/li>\n<li>\n<h3>\u6ca1\u7528\u6570\u5b66\u6a21\u5f0f<\/h3>\n<p>\u884c\u6587\u4e2d\u6ca1\u6709\u7528\u6570\u5b66\u6a21\u5f0f, \u800c\u662f\u76f4\u63a5\u7528\u4e86\u82f1\u6587\u5b57\u6bcd:<\/p>\n<pre lang=\"latex\" colla=\"+\">Given a matrix A and vector b, solve Ax = b.<\/pre>\n<p>\u9519\u8bef\u7684\u6548\u679c\u4e3a<br \/>\n\\[<br \/>\n\\text{Given a matrix A and vector b, solve Ax = b.}<br \/>\n\\]<br \/>\n\u6b63\u786e\u7684\u4e66\u5199\u5e94\u8be5\u662f:<\/p>\n<pre lang=\"latex\" colla=\"+\">Given a matrix $A$ and vector $b$, solve $Ax = b$.<\/pre>\n<p>\u6548\u679c\u4e3a:<br \/>\n\\[<br \/>\n\\text{Given a matrix $A$ and vector $b$, solve $Ax = b$.}<br \/>\n\\]<\/li>\n<li>\n<h3>\u5176\u4ed6\u5e38\u89c1\u9519\u8bef<\/h3>\n<ul>\n<li>\u4f8b\u5982\u5217\u8868\u76f4\u63a5\u8f93\u51651,2,3\u7b49\u7b49, \u5e94\u8be5\u4f7f\u7528enumerate\u6216\u8005itemize\u73af\u5883. \u4e3e\u4f8b\u6765\u8bf4:\n<pre lang=\"latex\">\n\\begin{enumerate}\n\\item \u7b2c\u4e00\u6761...\n\\tiem \u7b2c\u4e8c\u6761...\n\\end{enumerate}\n<\/pre>\n<p>\u5b9e\u73b0\u6570\u5b57\u7f16\u53f7\u7684\u5217\u8868\u73af\u5883. \u800c\u5982\u679c\u8981\u4ee5\u7f57\u9a6c\u6570\u5b57\u7f16\u53f7, \u4f60\u53ef\u4ee5\u8bd5\u8bd5:<\/p>\n<pre lang=\"latex\">\n\\begin{enumerate}[\\rm i.]\n\\item \u7b2c\u4e00\u6761...\n\\tiem \u7b2c\u4e8c\u6761...\n\\end{enumerate}\n<\/pre>\n<p>\u4f60\u53ef\u80fd\u9700\u8981\u5728\u5bfc\u8a00\u533a\u52a0\u5165\u5b8f\u5305<strong>enumerate<\/strong><\/p>\n<pre lang=\"latex\">\n\\usepackage{enumerate}\n<\/pre>\n<\/li>\n<li>\u5b9a\u7406\u81ea\u5df1\u8f93\u5165\u683c\u5f0f, \u5e94\u8be5\u7528amsthm\u4e2d\u63d0\u4f9b\u7684\\newtheorem\u6765\u8bbe\u7f6e\u65b0\u5b9a\u7406\u73af\u5883, \u4e3e\u4f8b\u6765\u8bf4\uff1a<br \/>\n\u53ef\u4ee5\u5728\u5bfc\u8a00\u533a\u52a0\u5165<\/p>\n<pre lang=\"latex\">\n\\usepackage{amsthm}\n\\newtheorem{thm}{Theorem}\n<\/pre>\n<p>\u8fd9\u6837\u5c31\u5b9a\u4e49\u4e86\u4e00\u4e2a\u65b0\u7684\u5b9a\u7406\u73af\u5883\u53eb<strong>thm<\/strong>, \u4f60\u53ef\u4ee5\u5728\u6b63\u6587\u4e2d\u4f7f\u7528<\/p>\n<pre lang=\"latex\">\n\\begin{thm}[\u5b9a\u7406\u540d\u5b57]\n\u5b9a\u7406\u5185\u5bb9\n\\end{thm}\n<\/pre>\n<p>\u8fd9\u91cc<strong>[\u5b9a\u7406\u540d\u5b57]<\/strong>\u50cf\u5176\u4ed6\u53ef\u9009\u53c2\u6570([]\u91cc\u9762\u7684, \u5fc5\u987b\u53c2\u6570\u7528{})\u4e00\u6837, \u53ef\u4ee5\u7701\u7565.<\/p>\n<p>\u6b64\u5916, \u8fd9\u79cd\u65b9\u5f0f\u8fd8\u5b9a\u4e49\u4e86\u4e00\u4e2a\u8ba1\u6570\u5668(counter) <strong>thm<\/strong>, \u4f8b\u5982\u5728\u4e0a\u9762\u5b9a\u7406\u7684\u5b9a\u4e49\u540e\u9762, \u4f60\u53ef\u4ee5\u4f7f\u7528<\/p>\n<pre lang=\"latex\">\n\\newtheorem{defn}[thm]{Definition}\n<\/pre>\n<p>\u5b9a\u4e49\u4e00\u4e2a\u65b0\u7684<strong>\u5b9a\u4e49<\/strong>\u73af\u5883, \u4f7f\u5f97\u8fd9\u4e2a\u5b9a\u4e49\u73af\u5883\u548c\u524d\u9762\u5b9a\u4e49\u7684\u5b9a\u7406\u73af\u5883\u7edf\u4e00\u7f16\u53f7.<\/p>\n<p>\u5176\u4ed6\u5e38\u89c1\u7684\u53d8\u5f0f\u6709:<\/p>\n<pre lang=\"latex\">\n\\newtheorem{thm}{Theorem}[section]\n<\/pre>\n<p>\u8fd9\u6837\u5b9a\u7406\u5c06\u4ee5\u8282\u7f16\u53f7. \u7c7b\u4f3c\u5730, \u4ee5\u5c0f\u8282\u7f16\u53f7\u7684\u8bdd, \u6211\u4eec\u53ea\u9700<\/p>\n<pre lang=\"latex\">\n\\newtheorem{thm}{Theorem}[subsection]\n<\/pre>\n<p>\u800c\u4e0d\u7f16\u53f7(\u4f8b\u5982<strong>\u6ce8\u8bb0<\/strong>Remark), \u53ef\u4ee5\u8fd9\u6837\u4e66\u5199:<\/p>\n<pre lang=\"latex\">\n\\newtheorem*{rem}{Remark}\n<\/pre>\n<\/li>\n<li>\u591a\u6761\u53c2\u8003\u6587\u732e\u5e94\u8be5\u4f7f\u7528cite\u5b8f\u5305\u5e76\u4e14\u5199\u4e3a\n<pre lang=\"latex\">\n\\cite{article1, article2,article3}\n<\/pre>\n<p>\u800c\u4e0d\u662f<\/p>\n<pre lang=\"latex\">\n\\cite{article1}-\\cite{article3}\n<\/pre>\n<p>\u8fd9\u91ccarticle1\u662f\u4f60\u6587\u732e\u7684\u5f15\u7528\u540d. \u6b63\u786e\u7684\u5199\u6cd5(\u7b2c\u4e00\u79cd)\u4ea7\u751f\u7684\u6548\u679c\u4e3a[1-3], \u800c\u9519\u8bef\u7684(\u7b2c\u4e8c\u79cd)\u5199\u6cd5\u4ea7\u751f\u7684\u6548\u679c\u4e3a[1]-[3].<\/li>\n<li>\u975e\u82f1\u6587\u5b57\u6bcd\u7684\u8f93\u5165: \u5e38\u89c1\u7684\u00e8,\u00e9,\u00eb\u7b49\u6b63\u786e\u4e66\u5199\u5e94\u8be5\u7528\n<pre lang=\"latex\">\n\\`e,\\'e,\\\"e\n<\/pre>\n<p>\u800c\u4e0d\u662f<\/p>\n<pre lang=\"latex\">\n$\\grave{e}$, $\\acute{e}$,$\\ddot{e}$\n<\/pre>\n<\/li>\n<li>\u5f85\u7eed&#8230;<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>\u5076\u7136\u770b\u5230\u4e86\u8fd9\u91cc\u5199\u7684&lt;Top four LaTeX mistakes&gt; &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"more-link\" href=\"https:\/\/lttt.vanabel.cn\/?p=2047\"> <span class=\"screen-reader-text\">LaTeX\u4e66\u5199\u76844\u4e2a\u9876\u7ea7\u9519\u8bef<\/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":[7],"tags":[532,143,446],"class_list":["post-2047","post","type-post","status-publish","format-standard","hentry","category-latex","tag-latex-2","tag-143","tag-446"],"_links":{"self":[{"href":"https:\/\/lttt.vanabel.cn\/index.php?rest_route=\/wp\/v2\/posts\/2047","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=2047"}],"version-history":[{"count":0,"href":"https:\/\/lttt.vanabel.cn\/index.php?rest_route=\/wp\/v2\/posts\/2047\/revisions"}],"wp:attachment":[{"href":"https:\/\/lttt.vanabel.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2047"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lttt.vanabel.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2047"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lttt.vanabel.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2047"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}