{"id":19539,"date":"2024-11-19T15:38:19","date_gmt":"2024-11-19T07:38:19","guid":{"rendered":"https:\/\/fwq.ai\/blog\/19539\/"},"modified":"2024-11-19T15:38:19","modified_gmt":"2024-11-19T07:38:19","slug":"%e6%89%8b%e6%8a%8a%e6%89%8b%e5%b8%a6%e4%bd%a0%e5%9c%a8vscode%e4%b8%ad%e9%85%8d%e7%bd%aelatex","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/19539\/","title":{"rendered":"\u624b\u628a\u624b\u5e26\u4f60\u5728vscode\u4e2d\u914d\u7f6elatex"},"content":{"rendered":"<p>\u4e2d\u5982\u4f55\u914d\u7f6elatex\uff1f\u4e0b\u9762\u672c\u7bc7\u6587\u7ae0\u5c31\u6765\u5e26\u5927\u5bb6\u4e00\u6b65\u6b65\u5728vscode\u4e2d\u914d\u7f6elatex\uff0c\u5e0c\u671b\u5bf9\u5927\u5bb6\u6709\u6240\u5e2e\u52a9\uff01<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/024\/642ea50ba7843237.jpg\" class=\"aligncenter\" title=\"\u624b\u628a\u624b\u5e26\u4f60\u5728vscode\u4e2d\u914d\u7f6elatex\u63d2\u56fe\" alt=\"\u624b\u628a\u624b\u5e26\u4f60\u5728vscode\u4e2d\u914d\u7f6elatex\u63d2\u56fe\" \/><\/p>\n<p>\u4e4b\u524d\u4e00\u76f4\u7528\u7684\u662ftexstudio\u5199\u8bba\u6587\uff0c\u4f46\u6211\u89c9\u5f97texstudio\u7684ui\u4e0d\u597d\u770b\uff0c\u52a0\u4e0a\u5b9e\u9645\u4f7f\u7528\u8fc7\u7a0b\u4e2d\uff0ctexstudio\u7684\u5de5\u5177\u680f\u91cc\u9762\u90a3\u4e9b\u529f\u80fd\u6211\u4e00\u76f4\u6ca1\u6709\u7528\u8fc7\uff0c\u53ea\u9700\u8981\u7b80\u5355\u5730\u7f16\u5199tex\u6587\u6863\u5c31\u8db3\u591f\u4e86\uff0c\u6240\u4ee5\u8003\u8651\u4f7f\u7528\u4e00\u6b3e\u989c\u503c\u9ad8\u5e76\u4e14\u6bd4\u8f83\u8f7b\u91cf\u5316\u7684\u6587\u6863\u7f16\u8f91\u5668\uff0c\u56e0\u6b64vscode\u5c31\u8fdb\u5165\u4e86\u6211\u7684\u89c6\u7ebf\u4e4b\u4e2d\u3002<\/p>\n<p>\u7ecf\u8fc7\u4e00\u756a\u914d\u7f6e\uff0c\u6211\u6210\u529f\u5730\u5728vscode\u91cc\u9762\u8c03\u597d\u4e86tex\u7684\u7f16\u5199\u73af\u5883\uff0c\u4e2a\u4eba\u4f53\u611f\u548ctexstudio\u4f7f\u7528\u611f\u89c9\u5dee\u4e0d\u591a\uff0c\u4f46\u989c\u503c\u66f4\u597d\uff0c\u4f7f\u7528\u8d77\u6765\u6bd4\u8f83\u5f00\u5fc3\uff01\u5199\u8fd9\u7bc7\u6587\u6863\u662f\u4e3a\u4e86\u8bb0\u5f55\u4e00\u4e0b\u914d\u7f6e\u5fc3\u5f97\uff0c\u9632\u6b62\u81ea\u5df1\u5fd8\u8bb0\uff0c\u540c\u65f6\u505a\u4e00\u4e2a\u8f93\u51fa\uff0c\u8ba9\u81ea\u5df1\u6d88\u5316\u4e00\u4e0b\u77e5\u8bc6\u3002<\/p>\n<p>\u9700\u8981\u5148\u8bf4\u660e\uff0c\u8fd9\u7bc7\u6587\u6863\u91cc\u9762\u5df2\u7ecf\u9ed8\u8ba4\u8bfb\u8005\u5b89\u88c5\u597dtexlive\u548cvscode\u3002<\/p>\n<h2> <strong>1\u3001latex\u5728vscode\u4e2d\u7684\u914d\u7f6e<\/strong> <\/h2>\n<p>vscode\u91cc\u9762\u914d\u7f6etex\u6bd4\u8f83\u7b80\u5355\uff0c\u5206\u4e3a\u4e24\u6b65\uff1a<strong>\uff081\uff09\u5b89\u88c5\u6269\u5c55<\/strong>\uff0c<strong>\uff082\uff09\u6dfb\u52a0\u8bbe\u7f6e<\/strong>\u3002\u3010\u63a8\u8350\u5b66\u4e60\uff1a\u3001\u3011<\/p>\n<p><strong><span style=\"font-size: 18px\">1.1\u3001 \u5b89\u88c5\u6269\u5c55<\/span><\/strong><\/p>\n<p>\u6253\u5f00vscode\uff0c\u5de6\u8fb9\u5de5\u5177\u680f\u91cc\u6709\u4e2a<strong>\u6269\u5c55<\/strong>\u680f\uff0c\u9009\u4e2d\u5b83\uff01\u518d\u5728\u641c\u7d22\u6846\u91cc\u9762\u641c\u7d22<strong>latex<\/strong>\uff0c\u5982\u4e0b\u56fe\u6240\u793a\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/024\/981709efc1c534d143c2228a5a8e041f-0.png\" class=\"aligncenter\" title=\"\u624b\u628a\u624b\u5e26\u4f60\u5728vscode\u4e2d\u914d\u7f6elatex\u63d2\u56fe1\" alt=\"\u624b\u628a\u624b\u5e26\u4f60\u5728vscode\u4e2d\u914d\u7f6elatex\u63d2\u56fe1\" \/><\/p>\n<p>\u5728<strong>\u6269\u5c55<\/strong>\u7684\u4e0b\u56fe\u4e2d\u6807\u53f7\u4e3a1\u7684<strong>\u5df2\u5b89\u88c5<\/strong>\u4e2d\u770b\u4e00\u4e0b\u51fa\u73b0<strong>LaTex Workshop<\/strong>\u6ca1\u6709\uff0c\u8981\u662f\u6709\uff0c\u8bf4\u660e\u5b89\u88c5\u6210\u529f\uff1b\u6216\u8005\u770b\u770b\u4e0b\u56fe\u4e2d\u6807\u53f7\u4e3a2\u7684\u7ea2\u6846\u662f\u5426\u663e\u793a\u6210\u56fe\u4e2d\u90a3\u6837\uff0c\u5982\u679c\u662f\uff0c\u5219\u8868\u660e\u5b89\u88c5\u6210\u529f\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/024\/9282d6c730164eec4418f6a4c5e750f1-1.png\" class=\"aligncenter\" title=\"\u624b\u628a\u624b\u5e26\u4f60\u5728vscode\u4e2d\u914d\u7f6elatex\u63d2\u56fe2\" alt=\"\u624b\u628a\u624b\u5e26\u4f60\u5728vscode\u4e2d\u914d\u7f6elatex\u63d2\u56fe2\" \/><\/p>\n<p><strong><span style=\"font-size: 18px\">1.2\u3001\u6dfb\u52a0\u8bbe\u7f6e<\/span><\/strong><\/p>\n<p>\u5728vscode\u9875\u9762\uff0c\u6309\u4e0b<strong>f1<\/strong>\uff0c\u8f93\u5165<strong>json<\/strong>\uff0c\u9009\u62e9<strong>\u9996\u9009\u9879\uff1a\u6253\u5f00\u8bbe\u7f6e<\/strong>\u8fd9\u4e00\u9879\uff0c\u5982\u4e0b\u56fe\u6240\u793a\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/024\/9282d6c730164eec4418f6a4c5e750f1-2.png\" class=\"aligncenter\" title=\"\u624b\u628a\u624b\u5e26\u4f60\u5728vscode\u4e2d\u914d\u7f6elatex\u63d2\u56fe3\" alt=\"\u624b\u628a\u624b\u5e26\u4f60\u5728vscode\u4e2d\u914d\u7f6elatex\u63d2\u56fe3\" \/><br \/> \u51fa\u73b0\u5982\u4e0b\u56fe\u6240\u793a\u7684\u9875\u9762\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/024\/8663d03d6adc6a59ddd97555bae3dbd2-3.png\" class=\"aligncenter\" title=\"\u624b\u628a\u624b\u5e26\u4f60\u5728vscode\u4e2d\u914d\u7f6elatex\u63d2\u56fe4\" alt=\"\u624b\u628a\u624b\u5e26\u4f60\u5728vscode\u4e2d\u914d\u7f6elatex\u63d2\u56fe4\" \/><\/p>\n<p>\u5728\u8fd9\u4e2a\u82b1\u62ec\u53f7\u4e2d\u5c31\u53ef\u4ee5\u8f93\u5165\u8bbe\u7f6e\u4ee3\u7801\u4e86\uff0c\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<pre>\"latex-workshop.latex.tools\": [\t\n    {\n        \"name\": \"pdflatex\",\n        \"command\": \"pdflatex\",\n        \"args\": [\n            \"-synctex=1\",\n            \"-interaction=nonstopmode\",\n            \"-file-line-error\",\n            \"%DOCFILE%\"\n        ]\n    },\n    {\n        \"name\": \"xelatex\",\n        \"command\": \"xelatex\",\n        \"args\": [\n            \"-synctex=1\",\n            \"-interaction=nonstopmode\",\n            \"-file-line-error\",\n            \"%DOCFILE%\"\n        ]\n    },\n    {\n        \"name\": \"bibtex\",\n        \"command\": \"bibtex\",\n        \"args\": [\n            \"%DOCFILE%\"\n        ]\n    }],\"latex-workshop.latex.recipes\": [\n    {\n        \"name\": \"xelatex\",\n        \"tools\": [\n            \"xelatex\"\n        ],\n    },\n    {\n        \"name\": \"pdflatex\",\n        \"tools\": [\n            \"pdflatex\"\n        ]\n    },\n    {\n        \"name\": \"xe-&gt;bib-&gt;xe-&gt;xe\",\n        \"tools\": [\n            \"xelatex\",\n            \"bibtex\",\n            \"xelatex\",\n            \"xelatex\"\n        ]\n    },\n    {\n        \"name\": \"pdf-&gt;bib-&gt;pdf-&gt;pdf\",\n        \"tools\": [\n            \"pdflatex\",\n            \"bibtex\",\n            \"pdflatex\",\n            \"pdflatex\"\n        ]\n    }],\"latex-workshop.latex.clean.fileTypes\": [\n    \"*.aux\",\n    \"*.bbl\",\n    \"*.blg\",\n    \"*.idx\",\n    \"*.ind\",\n    \"*.lof\",\n    \"*.lot\",\n    \"*.out\",\n    \"*.toc\",\n    \"*.acn\",\n    \"*.acr\",\n    \"*.alg\",\n    \"*.glg\",\n    \"*.glo\",\n    \"*.gls\",\n    \"*.ist\",\n    \"*.fls\",\n    \"*.log\",\n    \"*.fdb_latexmk\"],\/\/tex\u6587\u4ef6\u6d4f\u89c8\u5668\uff0c\u53ef\u9009\u9879\u4e3a\"none\" \"browser\" \"tab\" \"external\"\"latex-workshop.view.pdf.viewer\": \"tab\",\/\/\u81ea\u52a8\u7f16\u8bd1tex\u6587\u4ef6\"latex-workshop.latex.autoBuild.run\": \"onFileChange\",\/\/\u663e\u793a\u5185\u5bb9\u83dc\u5355\uff1a\uff081\uff09\u7f16\u8bd1\u6587\u4ef6\uff1b\uff082\uff09\u5b9a\u4f4d\u6e38\u6807\"latex-workshop.showContextMenu\": true,\/\/\u663e\u793a\u9519\u8bef\"latex-workshop.message.error.show\": false,\/\/\u663e\u793a\u8b66\u544a\"latex-workshop.message.warning.show\": false,\/\/\u4ece\u4f7f\u7528\u7684\u5305\u4e2d\u81ea\u52a8\u8865\u5168\u547d\u4ee4\u548c\u73af\u5883\"latex-workshop.intellisense.package.enabled\": true,\/\/\u8bbe\u7f6e\u4e3anever\uff0c\u4e3a\u4e0d\u6e05\u9664\u8f85\u52a9\u6587\u4ef6\"latex-workshop.latex.autoClean.run\": \"never\",\/\/\u8bbe\u7f6evscode\u7f16\u8bd1tex\u6587\u6863\u65f6\u7684\u9ed8\u8ba4\u7f16\u8bd1\u94fe\"latex-workshop.latex.recipe.default\": \"lastUsed\",\/\/ \u7528\u4e8e\u53cd\u5411\u540c\u6b65\u7684\u5185\u90e8\u67e5\u770b\u5668\u7684\u952e\u7ed1\u5b9a\u3002ctrl\/cmd +\u70b9\u51fb(\u9ed8\u8ba4)\u6216\u53cc\u51fb\"latex-workshop.view.pdf.internal.synctex.keybinding\": \"double-click\",<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u6ce8\u610f\uff0c\u4e00\u5b9a\u8981\u5728\u82b1\u62ec\u53f7\u91cc\u9762\u8f93\u5165\u554a\uff01<\/p>\n<p>\u5982\u679c\u82b1\u62ec\u53f7\u91cc\u9762\u6709\u5176\u4ed6\u5199\u597d\u7684\u8bbe\u7f6e\uff0c\u8bb0\u5f97\u5728\u6700\u540e\u4e00\u884c\u4ee3\u7801\u4e0a\u52a0\u4e2a\u82f1\u6587\u9017\u53f7\uff0c\u518d\u53e6\u8d77\u4e00\u884c\uff0c\u5199\u597dlatex\u7684\u8bbe\u7f6e\u3002<\/p>\n<h2> <strong>2 \u6d4b\u8bd5<\/strong> <\/h2>\n<p>\u4e0b\u9762\u6d4b\u8bd5\u4e00\u4e0b\u5df2\u7ecf\u914d\u7f6e\u597d\u7684vscode\u8bbe\u7f6e\u662f\u5426\u53ef\u4ee5\u7f16\u5199tex\u3002<\/p>\n<p>\u6211\u4eceIEEE\u91cc\u9762\u4e0b\u8f7d\u4e86\u4e00\u4e2a\uff0c\u5728vscode\u91cc\u9762\u770b\u770b\u80fd\u4e0d\u80fd\u7f16\u8bd1\u3002<\/p>\n<p>\u4e0b\u8f7d\u597dlatex\u6a21\u677f\u540e\uff0c<\/p>\n<p>\u2460 \u628a.tex\u6587\u4ef6\u62d6\u5165vscode\u4e2d<\/p>\n<p>\u2461 \u70b9\u51fb\u5de6\u8fb9\u5de5\u5177\u680f\u7684<strong>TEX<\/strong>\u6309\u94ae<\/p>\n<p>\u2462 \u627e\u5230<strong>Build LaTex project<\/strong>\uff0c\u70b9\u5b83\uff01\u5982\u679c\u4e0d\u62a5\u9519\u7684\u8bdd\uff0c\u5219\u8fd0\u884c\u6210\u529f\u3002\u6211\u4e00\u822c\u4f1a\u9009<strong>Recipe:pdflatex<\/strong>\u4f5c\u4e3a\u7f16\u8bd1\u624b\u6bb5<\/p>\n<p>\u2463 \u627e\u5230<strong>View LaTex PDF<\/strong>\uff0c\u9009\u62e9<strong>View in VSCode tab<\/strong>\uff0c\u8fd9\u4e2a\u65f6\u5019\u5c31\u4f1a\u5728vscode\u7684\u9875\u9762\u4e2d\u51fa\u73b0\u751f\u6210\u7684pdf\u4e86\uff0c\u5982\u4e0b\u56fe\u53f3\u8fb9\u767d\u8272\u533a\u57df\u6240\u793a\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/024\/8663d03d6adc6a59ddd97555bae3dbd2-4.png\" class=\"aligncenter\" title=\"\u624b\u628a\u624b\u5e26\u4f60\u5728vscode\u4e2d\u914d\u7f6elatex\u63d2\u56fe5\" alt=\"\u624b\u628a\u624b\u5e26\u4f60\u5728vscode\u4e2d\u914d\u7f6elatex\u63d2\u56fe5\" \/><\/p>\n<p>\u8981\u662f\u4e00\u5207\u6b63\u5e38\uff0c\u5230\u8fd9\u91cc\u5c31\u7ed3\u675f\u4e86\u3002<\/p>\n<h2> <strong>3 Latex\u914d\u7f6e\u4ee3\u7801\u8bf4\u660e<\/strong> <\/h2>\n<p>\u8fd9\u91cc\u4e3b\u8981\u662f\u5199\u4e00\u4e9b\u5728\u7b2c1.2\u8282\u91cc\u9762\u914d\u7f6e\u4ee3\u7801\u7684\u8bf4\u660e\uff0c\u9632\u6b62\u81ea\u5df1\u5fd8\u8bb0\u3002<\/p>\n<p><strong><span style=\"font-size: 18px\">3.1 \u7f16\u8bd1\u547d\u4ee4<\/span><\/strong><\/p>\n<pre>\"latex-workshop.latex.tools\": [\t\n    {\n        \"name\": \"pdflatex\",\n        \"command\": \"pdflatex\",\n        \"args\": [\n            \"-synctex=1\",\n            \"-interaction=nonstopmode\",\n            \"-file-line-error\",\n            \"%DOCFILE%\"\n        ]\n    },\n    {\n        \"name\": \"xelatex\",\n        \"command\": \"xelatex\",\n        \"args\": [\n            \"-synctex=1\",\n            \"-interaction=nonstopmode\",\n            \"-file-line-error\",\n            \"%DOCFILE%\"\n        ]\n    },\n    {\n        \"name\": \"bibtex\",\n        \"command\": \"bibtex\",\n        \"args\": [\n            \"%DOCFILE%\"\n        ]\n    }],<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u6b64\u5904\u4ee3\u7801\u662f\u4e3a\u4e0b\u9762recipe\u7684\u7f16\u8bd1\u94fe\u63d0\u4f9b\u7f16\u8bd1\u547d\u4ee4\uff0cname\u662f\u6807\u7b7e\uff0c\u53ef\u88abrecipe\u5f15\u7528\uff0ccommand\u662f\u7f16\u8bd1\u547d\u4ee4\u3002%DOCFILE%\u8868\u793a\u6587\u4ef6\u8def\u5f84\u53ef\u4ee5\u4e3a\u4e2d\u6587\u3002<\/p>\n<p><strong><span style=\"font-size: 18px\">3.2 \u7f16\u8bd1\u94fe<\/span><\/strong><\/p>\n<pre>\"latex-workshop.latex.recipes\": [\n    {\n        \"name\": \"xelatex\",\n        \"tools\": [\n            \"xelatex\"\n        ],\n    },\n    {\n        \"name\": \"pdflatex\",\n        \"tools\": [\n            \"pdflatex\"\n        ]\n    },\n    {\n        \"name\": \"xe-&gt;bib-&gt;xe-&gt;xe\",\n        \"tools\": [\n            \"xelatex\",\n            \"bibtex\",\n            \"xelatex\",\n            \"xelatex\"\n        ]\n    },\n    {\n        \"name\": \"pdf-&gt;bib-&gt;pdf-&gt;pdf\",\n        \"tools\": [\n            \"pdflatex\",\n            \"bibtex\",\n            \"pdflatex\",\n            \"pdflatex\"\n        ]\n    }],<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u6b64\u5904\u4ee3\u7801\u5b9a\u4e49\u4e86\u7f16\u8bd1\u94fe\uff0c\u5373\u5e94\u6309\u7167\u4ec0\u4e48\u987a\u5e8f\u9009\u62e9\u7f16\u8bd1\u5668\u7f16\u8bd1tex\u6587\u4ef6\uff0cname\u662f\u6807\u7b7e\uff0c\u5373\u51fa\u73b0\u5728\u5de5\u5177\u680f\u91cc\u9762\u7684\u540d\u79f0\uff0ctool\u5b9a\u4e49\u4e86\u6309\u7167\u4f55\u79cd\u987a\u5e8f\u4f7f\u7528\u7f16\u8bd1\u5668\u3002<\/p>\n<p><strong><span style=\"font-size: 18px\">3.3 \u6e05\u9664\u8f85\u52a9\u6587\u4ef6<\/span><\/strong><\/p>\n<pre>\"latex-workshop.latex.clean.fileTypes\": [\n    \"*.aux\",\n    \"*.bbl\",\n    \"*.blg\",\n    \"*.idx\",\n    \"*.ind\",\n    \"*.lof\",\n    \"*.lot\",\n    \"*.out\",\n    \"*.toc\",\n    \"*.acn\",\n    \"*.acr\",\n    \"*.alg\",\n    \"*.glg\",\n    \"*.glo\",\n    \"*.gls\",\n    \"*.ist\",\n    \"*.fls\",\n    \"*.log\",\n    \"*.fdb_latexmk\"],<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u4e0a\u9762\u7684\u4ee3\u7801\u5b9a\u4e49\u4e86\u8981\u6e05\u9664\u7684\u8f85\u52a9\u6587\u4ef6\u7684\u683c\u5f0f\u3002<\/p>\n<pre>\/\/\u8bbe\u7f6e\u4e3anever\u4e0d\u6e05\u9664\u8f85\u52a9\u6587\u4ef6\"latex-workshop.latex.autoClean.run\": \"never\",<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u8fd9\u91cc\u6709\u4e09\u4e2a\u9009\u9879\uff0c\u5206\u522b\u662f\uff1a<\/p>\n<p>\u2460 onBuilt\uff1a\u6bcf\u6b21\u7f16\u8bd1\u540e\u90fd\u6e05\u9664\u8f85\u52a9\u6587\u4ef6\uff1b<\/p>\n<p>\u2461 onFailed\uff1a \u7f16\u8bd1\u5931\u8d25\u65f6\u6e05\u9664\u8f85\u52a9\u6587\u4ef6\uff1b<\/p>\n<p>\u2462 never\uff1a\u4ece\u4e0d\u6e05\u9664\u8f85\u52a9\u6587\u4ef6\u3002<\/p>\n<p>\u6211\u8fd9\u91cc\u9009\u4e86never\uff0c\u4e00\u5f00\u59cb\u7528\u7684\u662fonFailed\uff0c\u4f46\u6211\u53d1\u73b0\u4e00\u65e6\u7f16\u8bd1\u9519\u8bef\u4e4b\u540e\uff0cvscode\u4f1a\u628a\u6240\u6709\u8f85\u52a9\u6587\u4ef6\u5168\u90e8\u6e05\u9664\uff0c\u5bfc\u81f4\u4fee\u6539\u4ee3\u7801\u53bb\u6389bug\u4e4b\u540e\uff0c\u4e5f\u65e0\u6cd5\u6b63\u5e38\u7f16\u8bd1\u4e86\uff0c\u6240\u4ee5\u9009\u62e9\u4e86nerver\u3002<\/p>\n<p><strong><span style=\"font-size: 18px\">3.4 pdf\u6d4f\u89c8\u5668\u9009\u62e9<\/span><\/strong><\/p>\n<pre>\/\/tex\u6587\u4ef6\u6d4f\u89c8\u5668\uff0c\u53ef\u9009\u9879\u4e3a\"none\" \"browser\" \"tab\" \"external\"\"latex-workshop.view.pdf.viewer\": \"tab\",<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u4e0a\u9762\u4ee3\u7801\u5b9a\u4e49\u4e86\u7f16\u8bd1\u540e\u67e5\u770bpdf\u7684\u6d4f\u89c8\u5668\uff0c\u67094\u4e2a\u9009\u9879\uff0c\u5206\u522b\u662f\uff1a<\/p>\n<p>\u2460 none: \u4e0d\u7528\u6d4f\u89c8\u5668\uff1b<\/p>\n<p>\u2461 brower\uff1a\u4f7f\u7528\u7f51\u9875\u6d4f\u89c8\u5668\uff1b<\/p>\n<p>\u2462 tab\uff1a\u4f7f\u7528vscode\u5185\u7f6e\u6d4f\u89c8\u5668\uff1b<\/p>\n<p>\u2463 external\uff1a\u4f7f\u7528\u5916\u7f6epdf\u6d4f\u89c8\u5668\u3002<\/p>\n<p>\u6211\u7528\u7684\u662fvscode\u5185\u7f6e\u6d4f\u89c8\u5668\uff0c\u5176\u5b9e\u7f51\u9875\u6d4f\u89c8\u5668\u4e5f\u633a\u597d\u7528\u7684\uff0c\u663e\u5b57\u5927\u3002<\/p>\n<p><strong><span style=\"font-size: 18px\">3.5 \u81ea\u52a8\u7f16\u8bd1\u9009\u9879<\/span><\/strong><\/p>\n<pre>\/\/\u81ea\u52a8\u7f16\u8bd1tex\u6587\u4ef6\"latex-workshop.latex.autoBuild.run\": \"onFileChange\",<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u4e0a\u9762\u4ee3\u7801\u5b9a\u4e49\u4e86\u81ea\u52a8\u7f16\u8bd1\u4ee3\u7801\u7684\u529f\u80fd\uff0c\u4f7f\u7528\u9ed8\u8ba4\u7f16\u8bd1\u94fe\u81ea\u52a8\u6784\u5efatex\u7684project\uff0c\u67093\u4e2a\u9009\u9879\uff0c\u5206\u522b\u662f\uff1a<\/p>\n<p>\u2460 onFileChange\uff1a\u68c0\u6d4b\u5230\u6587\u4ef6\u66f4\u6539\u7684\u65f6\u5019\u81ea\u52a8\u7f16\u8bd1tex\uff1b<\/p>\n<p>\u2461 onSave\uff1a\u4fdd\u5b58\u7684\u65f6\u5019\u81ea\u52a8\u7f16\u8bd1tex\uff1b<\/p>\n<p>\u2462 never\uff1a\u4e0d\u81ea\u52a8\u7f16\u8bd1tex\u3002<\/p>\n<p>\u6211\u9009\u62e9\u7684\u662fonFileChange\uff0c\u65f6\u65f6\u7f16\u8bd1\uff0c\u4fdd\u8bc1\u81ea\u5df1\u7684\u6587\u6863\u4e0d\u4e22\u5931\u3002<\/p>\n<p><strong><span style=\"font-size: 18px\">3.6 \u663e\u793a\u83dc\u5355\u5185\u5bb9<\/span><\/strong><\/p>\n<pre>\/\/\u663e\u793a\u5185\u5bb9\u83dc\u5355\uff1a\uff081\uff09\u7f16\u8bd1\u6587\u4ef6\uff1b\uff082\uff09\u5b9a\u4f4d\u6e38\u6807\"latex-workshop.showContextMenu\": true,<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u4e0a\u9762\u4ee3\u7801\u5b9a\u4e49\u4e86\u5728tex\u6587\u4ef6\u4e2d\uff0c\u5355\u51fb\u9f20\u6807\u53f3\u952e\u51fa\u73b0\u7684\u83dc\u5355\u9009\u9879\u3002<\/p>\n<p>\u8fd9\u662f\u5c5e\u6027\u4e3atrue\u65f6\u53f3\u952e\u83dc\u5355\u7684\u6837\u5b50\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/024\/47fe81c945cfdf8a6cb41cb9e57473aa-5.png\" class=\"aligncenter\" title=\"\u624b\u628a\u624b\u5e26\u4f60\u5728vscode\u4e2d\u914d\u7f6elatex\u63d2\u56fe6\" alt=\"\u624b\u628a\u624b\u5e26\u4f60\u5728vscode\u4e2d\u914d\u7f6elatex\u63d2\u56fe6\" \/><\/p>\n<p>\u8fd9\u662f\u5c5e\u6027\u4e3afalse\u65f6\u53f3\u952e\u83dc\u5355\u7684\u6837\u5b50\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/024\/47fe81c945cfdf8a6cb41cb9e57473aa-6.png\" class=\"aligncenter\" title=\"\u624b\u628a\u624b\u5e26\u4f60\u5728vscode\u4e2d\u914d\u7f6elatex\u63d2\u56fe7\" alt=\"\u624b\u628a\u624b\u5e26\u4f60\u5728vscode\u4e2d\u914d\u7f6elatex\u63d2\u56fe7\" \/><\/p>\n<p><strong>Build LaTex projrct<\/strong>\u4e3a\u7f16\u8bd1latex\u9879\u76ee\uff0c<strong>SyncTex from cursor<\/strong>\u4e3a\u5b9a\u4f4dtex\u4ee3\u7801\u5728pdf\u6587\u4ef6\u4e2d\u7684\u4f4d\u7f6e\uff0c\u5373\u6b63\u5411\u5b9a\u4f4d\u3002<\/p>\n<p>\u8fd9\u91cc\u4e3a\u4e86\u65b9\u4fbf\u7f16\u8bd1\u548c\u5b9a\u4f4d\u6b63\u6587\u5185\u5bb9\uff0c\u6211\u9009\u4e86true\u9009\u9879\u3002<\/p>\n<p><strong><span style=\"font-size: 18px\">3.6 \u9519\u8bef\u548c\u8b66\u544a\u4fe1\u606f\u63d0\u793a<\/span><\/strong><\/p>\n<pre>\/\/\u663e\u793a\u9519\u8bef\"latex-workshop.message.error.show\": false,\/\/\u663e\u793a\u8b66\u544a\"latex-workshop.message.warning.show\": false,<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u4e0a\u9762\u4ee3\u7801\u5b9a\u4e49\u4e86\u51fa\u73b0\u9519\u8bef\u6216\u8005\u8b66\u544a\u7684\u65f6\u5019\u662f\u5426\u4f1a\u51fa\u73b0\u5f39\u7a97\uff0c\u6211\u89c9\u5f97\u5f39\u7a97\u5f88\u70e6\u4eba\uff0c\u800c\u4e14\u5728\u7ec8\u7aef\u4e2d\u4e5f\u53ef\u770b\u5230\uff0c\u6240\u4ee5\u9009\u62e9\u4e86false\u5c5e\u6027\u3002<\/p>\n<p><strong><span style=\"font-size: 18px\">3.7 \u81ea\u52a8\u8865\u5168\u529f\u80fd<\/span><\/strong><\/p>\n<pre>\/\/\u4ece\u4f7f\u7528\u7684\u5305\u4e2d\u81ea\u52a8\u8865\u5168\u547d\u4ee4\u548c\u73af\u5883\"latex-workshop.intellisense.package.enabled\": true,<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u4e0a\u9762\u4ee3\u7801\u5b9a\u4e49\u4e86\u662f\u5426\u81ea\u52a8\u8865\u5168\u547d\u4ee4\u548c\u73af\u5883\u7684\u529f\u80fd\uff0c\u6211\u89c9\u5f97\u633a\u5b9e\u7528\u7684\uff0c\u5c11\u6253\u5f88\u591a\u5b57\uff0c\u7279\u522b\u65b9\u4fbf\uff0c\u8fd8\u6709\u63d0\u793a\uff0c\u6240\u4ee5\u9009\u62e9\u4e86true\u5c5e\u6027\u3002<\/p>\n<p><strong><span style=\"font-size: 18px\">3.8 \u9ed8\u8ba4\u7f16\u8bd1\u94fe\u9009\u62e9<\/span><\/strong><\/p>\n<pre>\/\/\u8bbe\u7f6evscode\u7f16\u8bd1tex\u6587\u6863\u65f6\u7684\u9ed8\u8ba4\u7f16\u8bd1\u94fe\"latex-workshop.latex.recipe.default\": \"lastUsed\",<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u4e0a\u9762\u4ee3\u7801\u8bbe\u7f6e\u4e86vscode\u7f16\u8bd1tex\u6587\u6863\u4e2d\u7684\u9ed8\u8ba4\u7f16\u8bd1\u94fe\uff0c\u67092\u4e2a\u9009\u9879\uff0c\u5206\u522b\u662f<\/p>\n<p>\u2460 first\uff1a\u9009\u62e9latex-workshop.latex.recipes\u7684\u7b2c1\u6761\u4f5c\u4e3a\u9ed8\u8ba4\u7f16\u8bd1\u94fe\uff1b<\/p>\n<p>\u2461 lastUsed\uff1a\u9009\u62e9\u4e0a\u4e00\u6b21\u4f7f\u7528\u7684\u7f16\u8bd1\u94fe\u4f5c\u4e3a\u9ed8\u8ba4\u7f16\u8bd1\u94fe\u3002<\/p>\n<p>\u6211\u5728\u8fd9\u91cc\u9009\u62e9\u4e86lastUsed\uff0c\u56e0\u4e3a\u6211\u53d1\u73b0\u6211\u7528\u7684\u6700\u591a\u7684\u7f16\u8bd1\u94fe\u662fpdflatex\u3002<\/p>\n<p><strong><span style=\"font-size: 18px\">3.9 \u53cd\u5411\u5b9a\u4f4d<\/span><\/strong><\/p>\n<pre>\/\/ \u7528\u4e8e\u53cd\u5411\u540c\u6b65\u7684\u5185\u90e8\u67e5\u770b\u5668\u7684\u952e\u7ed1\u5b9a\u3002ctrl\/cmd +\u70b9\u51fb(\u9ed8\u8ba4)\u6216\u53cc\u51fb\n\"latex-workshop.view.pdf.internal.synctex.keybinding\": \"double-click\",<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u4e0a\u9762\u4ee3\u7801\u5b9a\u4e49\u4e86\u4ecepdf\u6d4f\u89c8\u5668\u4e2d\u5b9a\u4f4dvscode\u7684tex\u4ee3\u7801\u4f4d\u7f6e\u7684\u529f\u80fd\uff0c\u6211\u89c9\u5f97\u8fd9\u6761\u529f\u80fd\u5341\u5206\u5341\u5206\u597d\u7528\uff0c\u5f3a\u70c8\u63a8\u8350\uff01<\/p>\n<p>\u8fd9\u91cc\u4e5f\u67092\u4e2a\u9009\u9879\uff0c\u5206\u522b\u662f\uff1a<\/p>\n<p>\u2460 ctrl-click\uff1actrl+\u9f20\u6807\u5de6\u952e\u5355\u51fb\uff1b<\/p>\n<p>\u2461 double-click\uff1a\u9f20\u6807\u5de6\u952e\u53cc\u51fb\u3002<\/p>\n<p>\u6211\u6bd4\u8f83\u559c\u6b22\u9f20\u6807\u5de6\u952e\u53cc\u51fb\uff0c\u6240\u4ee5\u9009\u62e9\u7684\u7b2c\u4e8c\u4e2a\u9009\u9879\u3002<\/p>\n<p>\u66f4\u591a\u5173\u4e8eVSCode\u7684\u76f8\u5173\u77e5\u8bc6\uff0c\u8bf7\u8bbf\u95ee\uff1a\uff01<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u624b\u628a\u624b\u5e26\u4f60\u5728\u4e2d\u914d\u7f6elatex\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e2d\u5982\u4f55\u914d\u7f6elatex\uff1f\u4e0b\u9762\u672c\u7bc7\u6587\u7ae0\u5c31\u6765\u5e26\u5927\u5bb6\u4e00\u6b65\u6b65\u5728vscode\u4e2d\u914d\u7f6elatex\uff0c\u5e0c\u671b\u5bf9\u5927\u5bb6\u6709\u6240\u5e2e\u52a9\uff01 \u4e4b\u524d\u4e00\u76f4\u7528\u7684\u662ftexstudio\u5199\u8bba\u6587\uff0c\u4f46\u6211\u89c9\u5f97texstudio\u7684ui\u4e0d\u597d\u770b\uff0c\u52a0\u4e0a\u5b9e\u9645\u4f7f\u7528\u8fc7\u7a0b\u4e2d\uff0ctexstudio\u7684\u5de5\u5177\u680f\u91cc\u9762\u90a3\u4e9b\u529f\u80fd\u6211\u4e00\u76f4\u6ca1\u6709\u7528\u8fc7\uff0c\u53ea\u9700\u8981\u7b80\u5355\u5730\u7f16\u5199tex\u6587\u6863\u5c31\u8db3\u591f\u4e86\uff0c\u6240\u4ee5\u8003\u8651\u4f7f\u7528\u4e00\u6b3e\u989c\u503c\u9ad8\u5e76\u4e14\u6bd4\u8f83\u8f7b\u91cf\u5316\u7684\u6587\u6863\u7f16\u8f91\u5668\uff0c\u56e0\u6b64vscode\u5c31\u8fdb\u5165\u4e86\u6211\u7684\u89c6\u7ebf\u4e4b\u4e2d\u3002 \u7ecf\u8fc7\u4e00\u756a\u914d\u7f6e\uff0c\u6211\u6210\u529f\u5730\u5728vscode\u91cc\u9762\u8c03\u597d\u4e86tex\u7684\u7f16\u5199\u73af\u5883\uff0c\u4e2a\u4eba\u4f53\u611f\u548ctexstudio\u4f7f\u7528\u611f\u89c9\u5dee\u4e0d\u591a\uff0c\u4f46\u989c\u503c\u66f4\u597d\uff0c\u4f7f\u7528\u8d77\u6765\u6bd4\u8f83\u5f00\u5fc3\uff01\u5199\u8fd9\u7bc7\u6587\u6863\u662f\u4e3a\u4e86\u8bb0\u5f55\u4e00\u4e0b\u914d\u7f6e\u5fc3\u5f97\uff0c\u9632\u6b62\u81ea\u5df1\u5fd8\u8bb0\uff0c\u540c\u65f6\u505a\u4e00\u4e2a\u8f93\u51fa\uff0c\u8ba9\u81ea\u5df1\u6d88\u5316\u4e00\u4e0b\u77e5\u8bc6\u3002 \u9700\u8981\u5148\u8bf4\u660e\uff0c\u8fd9\u7bc7\u6587\u6863\u91cc\u9762\u5df2\u7ecf\u9ed8\u8ba4\u8bfb\u8005\u5b89\u88c5\u597dtexlive\u548cvscode\u3002 1\u3001latex\u5728vscode\u4e2d\u7684\u914d\u7f6e vscode\u91cc\u9762\u914d\u7f6etex\u6bd4\u8f83\u7b80\u5355\uff0c\u5206\u4e3a\u4e24\u6b65\uff1a\uff081\uff09\u5b89\u88c5\u6269\u5c55\uff0c\uff082\uff09\u6dfb\u52a0\u8bbe\u7f6e\u3002\u3010\u63a8\u8350\u5b66\u4e60\uff1a\u3001\u3011 1.1\u3001 \u5b89\u88c5\u6269\u5c55 \u6253\u5f00vscode\uff0c\u5de6\u8fb9\u5de5\u5177\u680f\u91cc\u6709\u4e2a\u6269\u5c55\u680f\uff0c\u9009\u4e2d\u5b83\uff01\u518d\u5728\u641c\u7d22\u6846\u91cc\u9762\u641c\u7d22latex\uff0c\u5982\u4e0b\u56fe\u6240\u793a\u3002 \u5728\u6269\u5c55\u7684\u4e0b\u56fe\u4e2d\u6807\u53f7\u4e3a1\u7684\u5df2\u5b89\u88c5\u4e2d\u770b\u4e00\u4e0b\u51fa\u73b0LaTex Workshop\u6ca1\u6709\uff0c\u8981\u662f\u6709\uff0c\u8bf4\u660e\u5b89\u88c5\u6210\u529f\uff1b\u6216\u8005\u770b\u770b\u4e0b\u56fe\u4e2d\u6807\u53f7\u4e3a2\u7684\u7ea2\u6846\u662f\u5426\u663e\u793a\u6210\u56fe\u4e2d\u90a3\u6837\uff0c\u5982\u679c\u662f\uff0c\u5219\u8868\u660e\u5b89\u88c5\u6210\u529f\u3002 1.2\u3001\u6dfb\u52a0\u8bbe\u7f6e \u5728vscode\u9875\u9762\uff0c\u6309\u4e0bf1\uff0c\u8f93\u5165json\uff0c\u9009\u62e9\u9996\u9009\u9879\uff1a\u6253\u5f00\u8bbe\u7f6e\u8fd9\u4e00\u9879\uff0c\u5982\u4e0b\u56fe\u6240\u793a\u3002 \u51fa\u73b0\u5982\u4e0b\u56fe\u6240\u793a\u7684\u9875\u9762\u3002 \u5728\u8fd9\u4e2a\u82b1\u62ec\u53f7\u4e2d\u5c31\u53ef\u4ee5\u8f93\u5165\u8bbe\u7f6e\u4ee3\u7801\u4e86\uff0c\u4ee3\u7801\u5982\u4e0b\uff1a &#8220;latex-workshop.latex.tools&#8221;: [ { &#8220;name&#8221;: &#8220;pdflatex&#8221;, &#8220;command&#8221;: &#8220;pdflatex&#8221;, &#8220;args&#8221;: [ &#8220;-synctex=1&#8221;, &#8220;-interaction=nonstopmode&#8221;, &#8220;-file-line-error&#8221;, &#8220;%DOCFILE%&#8221; ] }, { &#8220;name&#8221;: &#8220;xelatex&#8221;, &#8220;command&#8221;: &#8220;xelatex&#8221;, &#8220;args&#8221;: [ &#8220;-synctex=1&#8221;, &#8220;-interaction=nonstopmode&#8221;, &#8220;-file-line-error&#8221;, &#8220;%DOCFILE%&#8221; ] }, { &#8220;name&#8221;: &#8220;bibtex&#8221;, &#8220;command&#8221;: &#8220;bibtex&#8221;, &#8220;args&#8221;: [ &#8220;%DOCFILE%&#8221; ] }],&#8221;latex-workshop.latex.recipes&#8221;: [ { [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-19539","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/19539","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=19539"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/19539\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=19539"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=19539"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=19539"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}