{"id":24,"date":"2021-04-22T14:25:28","date_gmt":"2021-04-22T06:25:28","guid":{"rendered":"http:\/\/139.224.63.49\/?p=24"},"modified":"2021-04-22T14:25:28","modified_gmt":"2021-04-22T06:25:28","slug":"win10vscode%e9%85%8d%e7%bd%aelatex%e7%8e%af%e5%a2%83","status":"publish","type":"post","link":"http:\/\/iamnear.top\/?p=24","title":{"rendered":"Win10+vscode\u914d\u7f6elatex\u73af\u5883"},"content":{"rendered":"\n<p>\u9996\u5148\u4e0b\u8f7d\u5e76\u5b89\u88c5latex\uff1a<a href=\"https:\/\/mirrors.tuna.tsinghua.edu.cn\/CTAN\/systems\/texlive\/Images\/\" data-type=\"URL\" data-id=\"https:\/\/mirrors.tuna.tsinghua.edu.cn\/CTAN\/systems\/texlive\/Images\/\">https:\/\/mirrors.tuna.tsinghua.edu.cn\/CTAN\/systems\/texlive\/Images\/<\/a><\/p>\n\n\n\n<p>\u7136\u540e\u5b89\u88c5vscode<\/p>\n\n\n\n<p>\u5728vscode\u4e2d\u5b89\u88c5latex workshop\u63d2\u4ef6<\/p>\n\n\n\n<p>\u5728vscode\u7684setting.json\u4e2d\u5199\u5165\u4ee5\u4e0b\u5185\u5bb9<\/p>\n\n\n\n<p><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n\t\"latex-workshop.latex.tools\": &#91; \/\/\u7528\u4e8e\u914d\u7f6e\u5404\u57fa\u672c\u547d\u4ee4\n    {\n        \"name\": \"latexmk\", \/\/ \u540e\u7eed\u4f7f\u7528\u7684\u540d\u79f0\n        \"command\": \"latexmk\", \/\/ shell \u547d\u4ee4\n        \"args\": &#91; \/\/ \u547d\u4ee4\u53c2\u6570\n        \"-synctex=1\",\n        \"-interaction=nonstopmode\",\n        \"-file-line-error\",\n        \"-pdf\",\n        \"%DOC%\"\n        ]\n    },\n    {\n        \"name\": \"xelatex\",\n        \"command\": \"xelatex\",\n        \"args\": &#91;\n        \"-synctex=1\",\n        \"-interaction=nonstopmode\",\n        \"-file-line-error\",\n        \"%DOC%\"\n        ]\n    },\n    {\n        \"name\": \"xelatex_no_out\",\n        \"command\": \"xelatex\",\n        \"args\": &#91;\n        \"-no-pdf\",\n        \"-quiet\",\n        \"-time-statistics\",\n        \"main.tex\"\n        ]\n    },\n    {\n        \"name\": \"xelatex_out\",\n        \"command\": \"xelatex\",\n        \"args\": &#91;\n        \"-quiet\",\n        \"-time-statistics\",\n        \"main.tex\"\n        ]\n    },          \n    {\n        \"name\": \"pdflatex\",\n        \"command\": \"pdflatex\",\n        \"args\": &#91;\n        \"-synctex=1\",\n        \"-interaction=nonstopmode\",\n        \"-file-line-error\",\n        \"%DOC%\"\n        ]\n    },\n    {\n        \"name\": \"bibtex\",\n        \"command\": \"bibtex\",\n        \"args\": &#91;\n        \"main.aux\"\n        ]\n    },\n    {\n        \"name\": \"t1\",\n        \"command\": \"xelatex\",\n        \"args\": &#91;\n            \"-no-pdf\",\n            \"--interaction=nonstopmode\",\n            \"%DOC%\"\n        ]\n    },\n    {\n        \"name\": \"t2\",\n        \"command\": \"bibtex\",\n        \"args\": &#91;\n            \"main.aux\"\n        ]\n    },\n    {\n        \"name\": \"t3\",\n        \"command\": \"xelatex\",\n        \"args\": &#91;\n            \"--interaction=nonstopmode\",\n            \"%DOC%\"\n        ]\n    }\n    ],\n    \"latex-workshop.latex.recipes\": &#91; \/\/ \u5de5\u4f5c\u6d41\u914d\u7f6e\n        {\n            \"name\": \"xelatex\", \/\/ \u4e0d\u542b\u53c2\u8003\u6587\u732e\u7684\u5de5\u4f5c\u6d41\n            \"tools\": &#91;\n            \"xelatex\"\n            ]\n        },\n        {\n            \"name\": \"thesis\", \/\/ \u542b\u53c2\u8003\u6587\u732e\u7684\u5de5\u4f5c\u6d41\uff08\u4e3a\u6bd5\u4e1a\u8bba\u6587\u7f16\u5199\u8c03\u4f18\uff09\n            \"tools\": &#91;\n                \"t1\",\n                \"t2\",\n                \"t1\",\n                \"t3\"\n            ]\n        }\n        ],\n        \"latex-workshop.view.pdf.viewer\": \"tab\",\n}<\/code><\/pre>\n\n\n\n<p>\u7136\u540e\u5728vscode\u5de5\u4f5c\u533a\u5199\u4e2alatex\u7684hello world\u6587\u4ef6\uff1ahello.tex<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\\document{artical}\n\\begin{document}\nhello world\n\\end{document}<\/code><\/pre>\n\n\n\n<p>\u7136\u540e\u70b9\u51fb\u8fd0\u884c\uff0c\u5c31\u53ef\u4ee5\u5f97\u5230pdf\u5566<\/p>\n\n\n\n<p>\u60f3\u8981\u652f\u6301latex\u652f\u6301\u4e2d\u6587\uff0c\u53ef\u4ee5<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\\usepackage{xeCJK}<\/code><\/pre>\n\n\n\n<p>\u60f3\u8981\u63d2\u5165\u56fe\u7247\uff0c\u53ef\u4ee5<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\\usepackage{graphicx}<\/code><\/pre>\n\n\n\n<p>\u60f3\u8981\u63d2\u5165\u4ee3\u7801\uff0c\u53ef\u4ee5<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\\usepackage{listings}<\/code><\/pre>\n\n\n\n<p>\u60f3\u8981\u63d2\u5165\u7b97\u6cd5\uff0c\u53ef\u4ee5<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\\usepackage{algorithm}\n\\usepackage{algpseudocode}\n\\usepackage{algorithmicx}<\/code><\/pre>\n\n\n\n<p>\u4f7f\u7528usepackage\u547d\u4ee4\u5bfc\u5165\u5305\u4ee5\u540e\uff0c\u5728vscode\u4e2d\uff0c\u5c06\u9f20\u6807\u79fb\u5230\u5305\u540d\uff08\u5982listings\uff09\u4e0a\uff0c\u4f1a\u51fa\u73b0\u4e00\u4e2aview document\u7684\u6309\u94ae\uff0c\u70b9\u51fb\u53ef\u4ee5\u6253\u5f00\u5bf9\u5e94\u5305\u7684pdf\u6587\u6863\u3002\u901a\u8fc7\u8fd9\u4e2a\u6587\u6863\u53ef\u4ee5\u5b66\u8fd9\u4e2a\u5305\u7684\u7528\u6cd5\u3002<\/p>\n\n\n\n<p>latex\u6709\u4e2a\u4e0d\u9519\u7684\u6559\u7a0b\uff0c<a href=\"http:\/\/dralpha.altervista.org\/zh\/tech\/lnotes2.pdf\" data-type=\"URL\" data-id=\"http:\/\/dralpha.altervista.org\/zh\/tech\/lnotes2.pdf\">http:\/\/dralpha.altervista.org\/zh\/tech\/lnotes2.pdf<\/a>\uff0c\u53ef\u4ee5\u53c2\u8003\u4e0b<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9996\u5148\u4e0b\u8f7d\u5e76\u5b89\u88c5latex\uff1ahttps:\/\/mirrors.tuna.tsinghua.edu.cn\/&hellip; <a href=\"http:\/\/iamnear.top\/?p=24\" class=\"more-link read-more\" rel=\"bookmark\">\u7ee7\u7eed\u9605\u8bfb <span class=\"screen-reader-text\">Win10+vscode\u914d\u7f6elatex\u73af\u5883<\/span><i class=\"fa fa-arrow-right\"><\/i><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":{"0":"post-24","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"hentry","6":"category-uncategorized","7":"h-entry","9":"h-as-article"},"_links":{"self":[{"href":"http:\/\/iamnear.top\/index.php?rest_route=\/wp\/v2\/posts\/24","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/iamnear.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/iamnear.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/iamnear.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/iamnear.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=24"}],"version-history":[{"count":1,"href":"http:\/\/iamnear.top\/index.php?rest_route=\/wp\/v2\/posts\/24\/revisions"}],"predecessor-version":[{"id":25,"href":"http:\/\/iamnear.top\/index.php?rest_route=\/wp\/v2\/posts\/24\/revisions\/25"}],"wp:attachment":[{"href":"http:\/\/iamnear.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=24"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/iamnear.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=24"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/iamnear.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=24"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}