{"id":78135,"date":"2026-02-26T08:51:17","date_gmt":"2026-02-26T00:51:17","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/78135.html"},"modified":"2026-02-26T08:51:17","modified_gmt":"2026-02-26T00:51:17","slug":"%e6%97%a0sudo%e6%9d%83%e9%99%90%e8%bf%9c%e7%a8%8b%e8%bf%9e%e6%8e%a5ubuntu%e6%9c%8d%e5%8a%a1%e5%99%a8%e5%ae%89%e8%a3%85tex-live%e5%ae%9e%e6%93%8d%e8%ae%b0%e5%bd%95%ef%bc%88%e9%80%82%e9%85%8dvs-codelat","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/78135.html","title":{"rendered":"\u65e0sudo\u6743\u9650\u8fdc\u7a0b\u8fde\u63a5Ubuntu\u670d\u52a1\u5668\u5b89\u88c5TeX Live\u5b9e\u64cd\u8bb0\u5f55\uff08\u9002\u914dVS Code+LaTeX Workshop\uff0c\u542b\u8def\u5f84\u9009\u62e9\u4e0e\u5378\u8f7d\u65b9\u6848\uff09"},"content":{"rendered":"<p>\u5728\u65e5\u5e38\u79d1\u7814\u548c\u6587\u6863\u7f16\u5199\u4e2d&#xff0c;LaTeX\u662f\u5fc5\u5907\u5de5\u5177\u4e4b\u4e00\u3002\u8fd1\u671f\u9700\u8981\u901a\u8fc7VS Code\u8fdc\u7a0b\u8fde\u63a5\u65e0\u53ef\u89c6\u5316\u754c\u9762\u7684Ubuntu\u670d\u52a1\u5668\u7f16\u8f91LaTeX\u6587\u6863&#xff0c;\u4e14\u670d\u52a1\u5668\u65e0sudo\u6743\u9650\u3001\u591a\u4eba\u5171\u7528\u4e00\u4e2aSSH\u8d26\u53f7&#xff0c;\u8e29\u4e86\u4e0d\u5c11\u8def\u5f84\u914d\u7f6e\u548c\u73af\u5883\u51b2\u7a81\u7684\u5751\u3002\u7279\u6b64\u8bb0\u5f55\u5b8c\u6574\u5b9e\u64cd\u6d41\u7a0b&#xff0c;\u7cbe\u51c6\u8fd8\u539f\u6bcf\u4e00\u6b65\u7ec8\u7aef\u4ea4\u4e92\u7ec6\u8282&#xff0c;\u5e76\u8865\u5145\u5b8c\u6574\u5378\u8f7d\u65b9\u6848&#xff0c;\u4f9b\u6709\u7c7b\u4f3c\u9700\u6c42\u7684\u670b\u53cb\u53c2\u8003\u3002<\/p>\n<h3>\u4e00\u3001\u6838\u5fc3\u80cc\u666f\u4e0e\u9700\u6c42<\/h3>\n<ul>\n<li>\n<p>\u670d\u52a1\u5668\u73af\u5883&#xff1a;Ubuntu\u7cfb\u7edf\u3001\u65e0sudo\u6743\u9650\u3001\u65e0\u53ef\u89c6\u5316\u754c\u9762&#xff0c;\u591a\u4eba\u5171\u7528\u4e00\u4e2aSSH\u8d26\u53f7&#xff08;\u6211\u7684\u4e2a\u4eba\u4e13\u5c5e\u6587\u4ef6\u5939\u4e3a ~\/tp&#xff0c;\u4f4d\u4e8e\u7528\u6237\u4e3b\u76ee\u5f55\u4e0b&#xff09;\u3002<\/p>\n<\/li>\n<li>\n<p>\u672c\u5730\u5de5\u5177&#xff1a;VS Code&#xff08;Visual Studio Code&#xff09;&#xff0c;\u5df2\u63d0\u524d\u5b89\u88c5Remote &#8211; SSH\u3001LaTeX Workshop\u4e24\u6b3e\u6838\u5fc3\u63d2\u4ef6\u3002<\/p>\n<\/li>\n<li>\n<p>\u6838\u5fc3\u9700\u6c42&#xff1a;\u5728\u670d\u52a1\u5668\u4e0a\u5b89\u88c5\u4ec5\u81ea\u5df1\u53ef\u7528\u7684LaTeX\u7f16\u8bd1\u73af\u5883&#xff0c;\u652f\u6301VS Code\u901a\u8fc7LaTeX Workshop\u70b9\u51fb\u6309\u94ae\u7f16\u8bd1&#xff0c;\u907f\u514d\u4e0e\u5176\u4ed6\u7528\u6237\u7684\u6587\u4ef6\u3001\u73af\u5883\u53d8\u91cf\u4ea7\u751f\u51b2\u7a81\u3002<\/p>\n<\/li>\n<\/ul>\n<h3>\u4e8c\u3001\u5173\u952e\u524d\u63d0&#xff1a;\u5b89\u88c5\u8def\u5f84\u9009\u62e9&#xff08;\u4e2a\u4eba\u6587\u4ef6\u5939tp vs \u4e3b\u76ee\u5f55~&#xff09;<\/h3>\n<p>\u8fd9\u662f\u591a\u4eba\u5171\u7528\u8d26\u53f7\u573a\u666f\u4e0b\u7684\u6838\u5fc3\u95ee\u9898&#xff0c;\u76f4\u63a5\u51b3\u5b9a\u662f\u5426\u4f1a\u4e0e\u5176\u4ed6\u7528\u6237\u4ea7\u751f\u51b2\u7a81&#xff0c;\u5148\u660e\u786e\u6838\u5fc3\u7ed3\u8bba&#xff1a;\u4f18\u5148\u5b89\u88c5\u5230\u81ea\u5df1\u7684\u4e2a\u4eba\u4e13\u5c5e\u6587\u4ef6\u5939&#xff08;\u5982<sub>\/tp&#xff09;&#xff0c;\u800c\u975e\u7528\u6237\u4e3b\u76ee\u5f55&#xff08;<\/sub>&#xff09;&#xff0c;\u539f\u56e0\u5982\u4e0b&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u4e3b\u76ee\u5f55&#xff08;~&#xff09;\u662f\u5f53\u524dSSH\u8d26\u53f7\u7684\u5168\u5c40\u5171\u4eab\u76ee\u5f55&#xff0c;\u6240\u6709\u5171\u7528\u8be5\u8d26\u53f7\u7684\u7528\u6237\u90fd\u80fd\u8bbf\u95ee\u3001\u4fee\u6539\u5176\u4e2d\u7684\u6587\u4ef6\u3002\u82e5\u5c06TeX Live\u5b89\u88c5\u5230~&#xff0c;\u53ef\u80fd\u51fa\u73b0\u4ed6\u4eba\u8bef\u5220\u5b89\u88c5\u6587\u4ef6\u3001\u73af\u5883\u53d8\u91cf\u88ab\u8986\u76d6\u3001\u7f16\u8bd1\u547d\u4ee4\u51b2\u7a81\u7b49\u95ee\u9898\u3002<\/p>\n<\/li>\n<li>\n<p>\u4e2a\u4eba\u6587\u4ef6\u5939&#xff08;\u5982~\/tp&#xff09;\u662f\u4e13\u5c5e\u79c1\u6709\u7a7a\u95f4&#xff0c;\u4ec5\u81ea\u5df1\u53ef\u64cd\u4f5c&#xff0c;\u5c06TeX Live\u5b89\u88c5\u5728\u6b64\u5904&#xff0c;\u80fd\u5b8c\u5168\u9694\u79bb\u5176\u4ed6\u7528\u6237\u7684\u73af\u5883&#xff0c;\u907f\u514d\u51b2\u7a81&#xff0c;\u4e14\u540e\u7eed\u5378\u8f7d\u3001\u8fc1\u79fb\u4e5f\u66f4\u4fbf\u6377&#xff0c;\u4e0d\u4f1a\u5f71\u54cd\u4ed6\u4eba\u4f7f\u7528\u3002<\/p>\n<\/li>\n<li>\n<p>\u8865\u5145\u8bf4\u660e&#xff1a;\u65e0\u8bba\u5b89\u88c5\u5230tp\u6587\u4ef6\u5939\u8fd8\u662f\u4e3b\u76ee\u5f55&#xff0c;\u6838\u5fc3\u64cd\u4f5c\u903b\u8f91\u5b8c\u5168\u4e00\u81f4&#xff0c;\u4ec5\u9700\u5168\u7a0b\u7edf\u4e00\u8def\u5f84\u5373\u53ef&#xff08;\u5b89\u88c5\u8def\u5f84\u3001\u73af\u5883\u53d8\u91cf\u914d\u7f6e\u3001VS Code\u7f16\u8bd1\u8def\u5f84\u4e09\u8005\u5fc5\u987b\u4e25\u683c\u5bf9\u5e94&#xff09;\u3002\u672c\u6587\u4ee5\u5b89\u88c5\u5230~\/tp\u4e3a\u4f8b&#xff08;\u63a8\u8350\u65b9\u6848&#xff0c;\u9002\u914d\u591a\u4eba\u5171\u7528\u8d26\u53f7\u573a\u666f&#xff09;&#xff1b;\u82e5\u4ec5\u4f60\u4e00\u4eba\u4f7f\u7528\u8be5SSH\u8d26\u53f7\u548cVS Code&#xff0c;\u65e0\u9700\u9694\u79bb\u73af\u5883&#xff0c;\u76f4\u63a5\u5b89\u88c5\u5230\u4e3b\u76ee\u5f55&#xff08;~&#xff09;\u5373\u53ef&#xff0c;\u540e\u7eed\u4f1a\u6807\u6ce8\u4e3b\u76ee\u5f55\u5b89\u88c5\u7684\u8def\u5f84\u4fee\u6539\u70b9\u3002<\/p>\n<\/li>\n<\/ul>\n<h3>\u4e09\u3001\u5b8c\u6574\u5b89\u88c5\u6d41\u7a0b&#xff08;\u5b89\u88c5\u5230~\/tp\u4e2a\u4eba\u6587\u4ef6\u5939&#xff0c;\u5b8c\u5168\u8d34\u5408\u5b9e\u64cd&#xff09;<\/h3>\n<p>\u5168\u7a0b\u64cd\u4f5c\u5747\u5728\u8fdc\u7a0bUbuntu\u670d\u52a1\u5668\u7ec8\u7aef\u6267\u884c&#xff08;\u901a\u8fc7VS Code\u7684Remote &#8211; SSH\u63d2\u4ef6\u8fde\u63a5\u6210\u529f\u540e&#xff0c;\u6253\u5f00\u7ec8\u7aef\u5373\u53ef\u64cd\u4f5c&#xff09;&#xff0c;\u6838\u5fc3\u601d\u8def&#xff1a;\u521b\u5efa\u76ee\u5f55\u2192\u4e0b\u8f7d\u5b89\u88c5\u5305\u2192\u79c1\u6709\u76ee\u5f55\u914d\u7f6e\u5b89\u88c5\u2192\u73af\u5883\u53d8\u91cf\u914d\u7f6e\u2192VS Code\u7f16\u8bd1\u8def\u5f84\u9002\u914d\u2192\u6d4b\u8bd5\u9a8c\u8bc1\u3002<\/p>\n<h4>\u6b65\u9aa41&#xff1a;\u521b\u5efa\u4e13\u5c5e\u76ee\u5f55\u5e76\u4e0b\u8f7dTeX Live\u5b89\u88c5\u5305<\/h4>\n<p>\u5148\u8fdb\u5165\u4e2a\u4ebatp\u6587\u4ef6\u5939&#xff0c;\u521b\u5efa\u4e34\u65f6\u5b89\u88c5\u76ee\u5f55&#xff0c;\u907f\u514d\u6587\u4ef6\u6df7\u4e71&#xff0c;\u540c\u65f6\u786e\u4fdd\u6240\u6709\u64cd\u4f5c\u90fd\u5728\u4e2a\u4eba\u79c1\u6709\u7a7a\u95f4\u5185\u8fdb\u884c&#xff1a;<\/p>\n<p><span class=\"token comment\"># 1. \u8fdb\u5165\u7528\u6237\u4e3b\u76ee\u5f55&#xff0c;\u521b\u5efa\u5e76\u8fdb\u5165\u4e2a\u4ebatp\u6587\u4ef6\u5939&#xff08;\u82e5tp\u6587\u4ef6\u5939\u5df2\u5b58\u5728&#xff0c;\u76f4\u63a5\u8fdb\u5165&#xff09;<\/span><br \/>\n<span class=\"token builtin class-name\">cd<\/span> ~<br \/>\n<span class=\"token function\">mkdir<\/span> -p tp <span class=\"token operator\">&amp;&amp;<\/span> <span class=\"token builtin class-name\">cd<\/span> tp<\/p>\n<p><span class=\"token comment\"># 2. \u521b\u5efa\u4e34\u65f6\u5b89\u88c5\u76ee\u5f55texlive_install&#xff08;\u7528\u4e8e\u5b58\u653e\u5b89\u88c5\u5305\u548c\u89e3\u538b\u6587\u4ef6&#xff09;\u5e76\u8fdb\u5165<\/span><br \/>\n<span class=\"token function\">mkdir<\/span> -p texlive_install <span class=\"token operator\">&amp;&amp;<\/span> <span class=\"token builtin class-name\">cd<\/span> texlive_install<\/p>\n<p><span class=\"token comment\"># 3. \u4e0b\u8f7dTeX Live\u5b89\u88c5\u5305&#xff08;\u56fd\u5185\u670d\u52a1\u5668\u4f18\u5148\u9009\u62e9\u6e05\u534e\u6e90&#xff0c;\u4e0b\u8f7d\u901f\u5ea6\u66f4\u5feb&#xff09;<\/span><br \/>\n<span class=\"token function\">wget<\/span> https:\/\/mirrors.tuna.tsinghua.edu.cn\/CTAN\/systems\/texlive\/tlnet\/install-tl-unx.tar.gz<br \/>\n<span class=\"token comment\"># \u56fd\u5916\u670d\u52a1\u5668\u53ef\u4f7f\u7528\u5b98\u65b9\u6e90&#xff08;\u901f\u5ea6\u8f83\u6162&#xff0c;\u6309\u9700\u9009\u62e9&#xff09;&#xff1a;<\/span><br \/>\n<span class=\"token comment\"># wget https:\/\/mirror.ctan.org\/systems\/texlive\/tlnet\/install-tl-unx.tar.gz<\/span><\/p>\n<p><span class=\"token comment\"># 4. \u89e3\u538b\u5b89\u88c5\u5305&#xff08;\u89e3\u538b\u540e\u4f1a\u751f\u6210\u4ee5install-tl-\u5f00\u5934\u7684\u76ee\u5f55&#xff0c;\u76ee\u5f55\u540d\u542b\u7248\u672c\u4fe1\u606f&#xff09;<\/span><br \/>\n<span class=\"token function\">tar<\/span> -xzf install-tl-unx.tar.gz<\/p>\n<p><span class=\"token comment\"># 5. \u8fdb\u5165\u89e3\u538b\u540e\u7684\u5b89\u88c5\u76ee\u5f55&#xff08;\u7528\u901a\u914d\u7b26\u5339\u914d&#xff0c;\u65e0\u9700\u624b\u52a8\u8f93\u5165\u5b8c\u6574\u76ee\u5f55\u540d&#xff09;<\/span><br \/>\n<span class=\"token builtin class-name\">cd<\/span> install-tl-*<\/p>\n<h4>\u6b65\u9aa42&#xff1a;\u4ea4\u4e92\u5f0f\u914d\u7f6e\u5e76\u5b89\u88c5TeX Live&#xff08;\u6838\u5fc3\u6b65\u9aa4&#xff0c;\u7cbe\u51c6\u8fd8\u539f\u7ec8\u7aef\u4ea4\u4e92&#xff09;<\/h4>\n<p>\u6267\u884c\u5b89\u88c5\u811a\u672c\u8fdb\u5165\u4ea4\u4e92\u5f0f\u914d\u7f6e\u754c\u9762&#xff0c;\u6838\u5fc3\u662f\u4fee\u6539\u6838\u5fc3\u5b89\u88c5\u76ee\u5f55&#xff08;TEXDIR&#xff09;\u4e3a~\/tp\/texlive&#xff08;\u9ed8\u8ba4\u7cfb\u7edf\u76ee\u5f55\u65e0\u5199\u5165\u6743\u9650&#xff0c;\u4e14\u4f1a\u5f71\u54cd\u5176\u4ed6\u7528\u6237&#xff0c;\u5fc5\u987b\u4fee\u6539&#xff09;&#xff0c;\u5168\u7a0b\u6309\u4ee5\u4e0b\u6b65\u9aa4\u9010\u884c\u64cd\u4f5c&#xff1a;<\/p>\n<p><span class=\"token comment\"># \u6267\u884c\u5b89\u88c5\u811a\u672c&#xff0c;\u8fdb\u5165TeX Live\u4e3b\u914d\u7f6e\u83dc\u5355&#xff08;\u7ec8\u7aef\u4f1a\u663e\u793a\u5b8c\u6574\u7684\u914d\u7f6e\u754c\u9762&#xff09;<\/span><br \/>\n.\/install-tl<\/p>\n<p>\u8fdb\u5165\u4e3b\u914d\u7f6e\u83dc\u5355\u540e&#xff0c;\u6309\u4ee5\u4e0b\u987a\u5e8f\u64cd\u4f5c&#xff08;\u8f93\u5165\u6570\u5b57\/\u5927\u5199\u5b57\u6bcd&#xff0c;\u6bcf\u6b65\u64cd\u4f5c\u540e\u6309\u56de\u8f66\u786e\u8ba4&#xff0c;\u5b8c\u5168\u5bf9\u5e94\u7ec8\u7aef\u754c\u9762&#xff09;&#xff1a;<\/p>\n<li>\n<p>\u8f93\u5165D&#xff1a;\u8fdb\u5165\u300c\u76ee\u5f55\u914d\u7f6e\u5b50\u754c\u9762\u300d&#xff08;\u5bf9\u5e94\u4e3b\u83dc\u5355\u4e2d\u7684&lt;D&gt; set directories\u9009\u9879&#xff09;&#xff0c;\u8fd9\u662f\u4fee\u6539\u6838\u5fc3\u5b89\u88c5\u8def\u5f84\u7684\u552f\u4e00\u6b63\u786e\u5165\u53e3\u3002<\/p>\n<\/li>\n<li>\n<p>\u8fdb\u5165\u76ee\u5f55\u914d\u7f6e\u5b50\u754c\u9762\u540e&#xff0c;\u7ec8\u7aef\u4f1a\u663e\u793a\u5404\u76ee\u5f55\u914d\u7f6e\u9879&#xff08;\u6838\u5fc3\u5173\u6ce8&lt;1&gt; TEXDIR&#xff09;&#xff0c;\u6b64\u65f6\u8f93\u51651&#xff1a;\u9009\u4e2d&lt;1&gt; TEXDIR&#xff08;\u6838\u5fc3\u5b89\u88c5\u76ee\u5f55&#xff0c;\u9ed8\u8ba4\u8def\u5f84\u4e3a\/usr\/local\/texlive\/2025&#xff0c;\u8be5\u8def\u5f84\u65e0\u5199\u5165\u6743\u9650&#xff0c;\u4e14\u4e3a\u7cfb\u7edf\u516c\u5171\u76ee\u5f55&#xff0c;\u5fc5\u987b\u4fee\u6539&#xff09;\u3002<\/p>\n<\/li>\n<li>\n<p>\u8f93\u51651\u540e&#xff0c;\u7ec8\u7aef\u4f1a\u7acb\u5373\u63d0\u793a&#xff1a;New value for TEXDIR [\/usr\/local\/texlive\/2025]:&#xff08;\u62ec\u53f7\u5185\u4e3a\u9ed8\u8ba4\u8def\u5f84&#xff0c;\u65e0\u9700\u5220\u9664\u6216\u4fee\u6539\u9ed8\u8ba4\u8def\u5f84\u6587\u672c&#xff09;&#xff0c;\u76f4\u63a5\u8f93\u5165\u4e2a\u4eba\u79c1\u6709\u5b89\u88c5\u8def\u5f84~\/tp\/texlive&#xff0c;\u6309\u56de\u8f66\u786e\u8ba4\u3002<\/p>\n<\/li>\n<li>\n<p>\u8def\u5f84\u786e\u8ba4\u540e&#xff0c;\u7ec8\u7aef\u4f1a\u81ea\u52a8\u5237\u65b0\u76ee\u5f55\u914d\u7f6e\u754c\u9762&#xff0c;\u6b64\u65f6&lt;1&gt; TEXDIR\u5bf9\u5e94\u7684\u8def\u5f84\u4f1a\u66f4\u65b0\u4e3a\/home\/ubuntu\/tp\/texlive&#xff08;\u7cfb\u7edf\u5df2\u81ea\u52a8\u5c06~\/tp\/texlive\u89e3\u6790\u4e3a\u5b8c\u6574\u7edd\u5bf9\u8def\u5f84&#xff09;&#xff0c;\u540c\u65f6&lt;2&gt;-&lt;4&gt;&#xff08;TEXMFLOCAL\u3001TEXMFSYSVAR\u3001TEXMFSYSCONFIG&#xff09;\u4f1a\u540c\u6b65\u9002\u914d\u4e3aTEXDIR\u4e0b\u7684\u5b50\u76ee\u5f55&#xff0c;\u5b8c\u6574\u754c\u9762\u5982\u4e0b&#xff08;\u4e0e\u5b9e\u9645\u7ec8\u7aef\u5b8c\u5168\u4e00\u81f4&#xff09;&#xff1a;<\/p>\n<\/li>\n<p>&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;<br \/>\nDirectories customization:<\/p>\n<p> &lt;1&gt; TEXDIR:         \/home\/ubuntu\/tp\/texlive<br \/>\n     main tree:      \/home\/ubuntu\/tp\/texlive\/texmf-dist<\/p>\n<p> &lt;2&gt; TEXMFLOCAL:     \/home\/ubuntu\/tp\/texlive\/texmf-local<br \/>\n &lt;3&gt; TEXMFSYSVAR:    \/home\/ubuntu\/tp\/texlive\/texmf-var<br \/>\n &lt;4&gt; TEXMFSYSCONFIG: \/home\/ubuntu\/tp\/texlive\/texmf-config<\/p>\n<p> &lt;5&gt; TEXMFVAR:       ~\/.texlive2025\/texmf-var<br \/>\n &lt;6&gt; TEXMFCONFIG:    ~\/.texlive2025\/texmf-config<br \/>\n &lt;7&gt; TEXMFHOME:      ~\/texmf<\/p>\n<p> Note: ~ will expand to $HOME (or to %USERPROFILE% on Windows)<\/p>\n<p>Actions:<br \/>\n &lt;R&gt; return to main menu<br \/>\n &lt;Q&gt; quit<\/p>\n<p>Enter command:<br \/>\n&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;<\/p>\n<p>\u786e\u8ba4\u8def\u5f84\u65e0\u8bef\u5373\u53ef&#xff08;\u65e0\u9700\u5173\u6ce8&lt;2&gt;-&lt;7&gt;\u5176\u4ed6\u76ee\u5f55&#xff0c;\u7cfb\u7edf\u5df2\u81ea\u52a8\u5b8c\u6210\u9002\u914d&#xff09;\u3002<\/p>\n<li>\u8def\u5f84\u786e\u8ba4\u65e0\u8bef\u540e&#xff0c;\u7ec8\u7aef\u5e95\u90e8\u4f1a\u663e\u793aEnter command: \u63d0\u793a&#xff0c;\u6b64\u65f6\u8f93\u5165R\u5e76\u56de\u8f66&#xff0c;\u4ece\u76ee\u5f55\u914d\u7f6e\u5b50\u754c\u9762\u8fd4\u56de\u300c\u4e3b\u914d\u7f6e\u83dc\u5355\u300d\u3002\u8fd4\u56de\u540e\u4e3b\u83dc\u5355\u4f1a\u5b8c\u6574\u663e\u793a\u6240\u6709\u914d\u7f6e\u9879&#xff08;\u542b\u5df2\u9002\u914d\u7684\u79c1\u6709\u8def\u5f84&#xff09;&#xff0c;\u754c\u9762\u5982\u4e0b&#xff08;\u4e0e\u5b9e\u9645\u7ec8\u7aef\u5b8c\u5168\u4e00\u81f4&#xff09;&#xff1a;<\/li>\n<p>&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&gt; TeX Live installation procedure &lt;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;<\/p>\n<p>&#061;&#061;&#061;&#061;&#061;&#061;&gt;   Letters\/digits in &lt;angle brackets&gt; indicate   &lt;&#061;&#061;&#061;&#061;&#061;&#061;&#061;<br \/>\n&#061;&#061;&#061;&#061;&#061;&#061;&gt;   menu items for actions or customizations      &lt;&#061;&#061;&#061;&#061;&#061;&#061;&#061;<br \/>\n&#061; help&gt;   https:\/\/tug.org\/texlive\/doc\/install-tl.html   &lt;&#061;&#061;&#061;&#061;&#061;&#061;&#061;<\/p>\n<p> Detected platform: GNU\/Linux on x86_64<\/p>\n<p> &lt;B&gt; set binary platforms: 1 out of 15<\/p>\n<p> &lt;S&gt; set installation scheme: scheme-full<\/p>\n<p> &lt;C&gt; set installation collections:<br \/>\n     40 collections out of 41, disk space required: 9354 MB (free: 3926383 MB)<\/p>\n<p> &lt;D&gt; set directories:<br \/>\n   TEXDIR (the main TeX directory):<br \/>\n     \/home\/ubuntu\/tp\/texlive<br \/>\n   TEXMFLOCAL (directory for site-wide local files):<br \/>\n     \/home\/ubuntu\/tp\/texlive\/texmf-local<br \/>\n   TEXMFSYSVAR (directory for variable and automatically generated data):<br \/>\n     \/home\/ubuntu\/tp\/texlive\/texmf-var<br \/>\n   TEXMFSYSCONFIG (directory for local config):<br \/>\n     \/home\/ubuntu\/tp\/texlive\/texmf-config<br \/>\n   TEXMFVAR (personal directory for variable and automatically generated data):<br \/>\n     ~\/.texlive2025\/texmf-var<br \/>\n   TEXMFCONFIG (personal directory for local config):<br \/>\n     ~\/.texlive2025\/texmf-config<br \/>\n   TEXMFHOME (directory for user-specific files):<br \/>\n     ~\/texmf<\/p>\n<p> &lt;O&gt; options:<br \/>\n   [ ] use letter size instead of A4 by default<br \/>\n   [X] allow execution of restricted list of programs via \\\\write18<br \/>\n   [X] create all format files<br \/>\n   [X] install macro\/font doc tree<br \/>\n   [X] install macro\/font source tree<br \/>\n   [ ] create symlinks to standard directories<\/p>\n<p> &lt;V&gt; set up for portable installation<\/p>\n<p>Actions:<br \/>\n &lt;I&gt; start installation to hard disk<br \/>\n &lt;P&gt; save installation profile to &#039;texlive.profile&#039; and exit<br \/>\n &lt;Q&gt; quit<\/p>\n<p>Enter command:<br \/>\n&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;<\/p>\n<p>\u6b64\u65f6\u53ef\u89c1 directories\u4e0b\u7684\u8def\u5f84\u5df2\u5168\u90e8\u9002\u914d\u79c1\u6709\u76ee\u5f55&#xff0c;\u65e0\u9700\u4efb\u4f55\u624b\u52a8\u4fee\u6539&#xff0c;\u76f4\u63a5\u8fdb\u884c\u540e\u7eed\u64cd\u4f5c\u5373\u53ef\u3002<\/p>\n<li>\u4e3b\u83dc\u5355\u5e95\u90e8\u663e\u793aEnter command: \u63d0\u793a&#xff0c;\u6b64\u65f6\u8f93\u5165S\u5e76\u56de\u8f66&#xff0c;\u8fdb\u5165\u300c\u5b89\u88c5\u65b9\u6848\u9009\u62e9\u754c\u9762\u300d&#xff08;\u5bf9\u5e94\u4e3b\u83dc\u5355\u4e2d\u7684&lt;S&gt; set installation scheme\u9009\u9879&#xff09;&#xff0c;\u754c\u9762\u5982\u4e0b&#xff08;\u4e0e\u5b9e\u9645\u7ec8\u7aef\u5b8c\u5168\u4e00\u81f4&#xff09;&#xff1a;<\/li>\n<p>&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;<br \/>\nSelect scheme:<\/p>\n<p> a [X] full scheme (everything)<br \/>\n b [ ] medium scheme (small &#043; more packages and languages)<br \/>\n c [ ] small scheme (basic &#043; xetex, metapost, a few languages)<br \/>\n d [ ] basic scheme (plain and latex)<br \/>\n e [ ] minimal scheme (plain only)<br \/>\n f [ ] infrastructure-only scheme (no TeX at all)<br \/>\n g [ ] book publishing scheme (core LaTeX and add-ons)<br \/>\n h [ ] ConTeXt scheme<br \/>\n i [ ] GUST TeX Live scheme<br \/>\n j [ ] teTeX scheme (more than medium, but nowhere near full)<br \/>\n k [ ] custom selection of collections<\/p>\n<p>Actions: (disk space required: 9354 MB)<br \/>\n &lt;R&gt; return to main menu<br \/>\n &lt;Q&gt; quit<\/p>\n<p>Enter letter to select scheme:<br \/>\n&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;&#061;<\/p>\n<p>\u754c\u9762\u4e2d\u9ed8\u8ba4\u9009\u4e2da [X] full scheme&#xff08;\u5b8c\u6574\u7248&#xff0c;\u7ea69G&#xff09;&#xff0c;\u53ef\u6839\u636e\u9700\u6c42\u9009\u62e9\u5bf9\u5e94\u65b9\u6848&#xff1a;\u8f93\u5165\u65b9\u6848\u524d\u7684\u5b57\u6bcd&#xff08;\u5982a\/b\/c\/d\u7b49&#xff09;\u5e76\u56de\u8f66&#xff0c;\u9009\u4e2d\u540e\u8f93\u5165R\u5e76\u56de\u8f66&#xff0c;\u8fd4\u56de\u4e3b\u914d\u7f6e\u83dc\u5355\u3002<\/p>\n<li>\u8fd4\u56de\u4e3b\u83dc\u5355\u540e&#xff0c;\u7ec8\u7aef\u5e95\u90e8\u4ecd\u663e\u793aEnter command: \u63d0\u793a&#xff0c;\u6b64\u65f6\u8f93\u5165I\u5e76\u56de\u8f66&#xff0c;\u5f00\u59cb\u5b89\u88c5&#xff08;\u5bf9\u5e94\u4e3b\u83dc\u5355\u4e2d\u7684&lt;I&gt; start installation to hard disk\u9009\u9879&#xff09;&#xff0c;\u8010\u5fc3\u7b49\u5f85\u5b89\u88c5\u5b8c\u6210\u3002<\/li>\n<p>\u5b89\u88c5\u8fdb\u5ea6\u8bf4\u660e&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u57fa\u7840\u7248&#xff08;scheme-basic&#xff09;&#xff1a;\u7ea610-30\u5206\u949f&#xff0c;\u7ec8\u7aef\u4f1a\u5b9e\u65f6\u6253\u5370\u5b89\u88c5\u8fdb\u5ea6&#xff08;\u5982\u4e0b\u8f7d\u8fdb\u5ea6\u3001\u89e3\u538b\u8fdb\u5ea6&#xff09;&#xff0c;\u65e0\u9700\u989d\u5916\u64cd\u4f5c\u3002<\/p>\n<\/li>\n<li>\n<p>\u5b8c\u6574\u7248&#xff08;scheme-full&#xff09;&#xff1a;\u7ea61-2\u5c0f\u65f6&#xff0c;\u671f\u95f4\u7ec8\u7aef\u4f1a\u6301\u7eed\u8f93\u51fa\u5b89\u88c5\u65e5\u5fd7&#xff0c;\u4fdd\u6301\u7ec8\u7aef\u8fde\u63a5\u6b63\u5e38\u5373\u53ef&#xff0c;\u65e0\u9700\u5e72\u9884\u3002<\/p>\n<\/li>\n<li>\n<p>\u5b89\u88c5\u6210\u529f\u6807\u8bc6&#xff1a;\u7ec8\u7aef\u6700\u7ec8\u63d0\u793aTeX Live installation complete&#xff0c;\u8bf4\u660e\u5b89\u88c5\u5df2\u5168\u90e8\u5b8c\u6210\u3002<\/p>\n<\/li>\n<\/ul>\n<h4>\u6b65\u9aa43&#xff1a;\u914d\u7f6e\u73af\u5883\u53d8\u91cf&#xff08;\u8ba9\u7cfb\u7edf\u8bc6\u522bLaTeX\u547d\u4ee4&#xff09;<\/h4>\n<p>\u5b89\u88c5\u5b8c\u6210\u540e&#xff0c;\u9700\u8981\u914d\u7f6e\u73af\u5883\u53d8\u91cf&#xff0c;\u8ba9\u5f53\u524d\u7528\u6237\u80fd\u76f4\u63a5\u5728\u7ec8\u7aef\u8c03\u7528pdflatex\u3001xelatex\u7b49LaTeX\u7f16\u8bd1\u547d\u4ee4&#xff08;\u8def\u5f84\u5fc5\u987b\u4e0e\u6b65\u9aa42\u4e2d\u8bbe\u7f6e\u7684\u5b89\u88c5\u8def\u5f84\u4e25\u683c\u4e00\u81f4&#xff09;&#xff1a;<\/p>\n<p><span class=\"token comment\"># \u7f16\u8f91\u73af\u5883\u53d8\u91cf\u914d\u7f6e\u6587\u4ef6&#xff08;bash\u7ec8\u7aef\u9ed8\u8ba4\u4f7f\u7528~\/.bashrc&#xff0c;zsh\u7ec8\u7aef\u4f7f\u7528~\/.zshrc&#xff0c;\u6839\u636e\u81ea\u5df1\u7684\u7ec8\u7aef\u7c7b\u578b\u9009\u62e9&#xff09;<\/span><br \/>\n<span class=\"token function\">nano<\/span> ~\/.bashrc<\/p>\n<p>\u6253\u5f00\u914d\u7f6e\u6587\u4ef6\u540e&#xff0c;\u5c06\u5149\u6807\u79fb\u52a8\u5230\u6587\u4ef6\u672b\u5c3e&#xff08;\u6309\u952e\u76d8\u5411\u4e0b\u7bad\u5934\u5373\u53ef&#xff09;&#xff0c;\u7c98\u8d34\u4ee5\u4e0b\u5185\u5bb9&#xff08;\u8def\u5f84\u52a1\u5fc5\u5bf9\u5e94~\/tp\/texlive&#xff0c;\u4e0d\u53ef\u5199\u9519&#xff09;&#xff1a;<\/p>\n<p><span class=\"token comment\"># TeX Live \u73af\u5883\u53d8\u91cf&#xff08;\u5b89\u88c5\u5728~\/tp\u4e2a\u4eba\u6587\u4ef6\u5939\u5185&#xff0c;\u9002\u914dUbuntu\u670d\u52a1\u5668&#xff09;<\/span><br \/>\n<span class=\"token builtin class-name\">export<\/span> <span class=\"token assign-left variable\"><span class=\"token environment constant\">PATH<\/span><\/span><span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;<span class=\"token environment constant\">$HOME<\/span>\/tp\/texlive\/bin\/x86_64-linux:<span class=\"token environment constant\">$PATH<\/span>&#034;<\/span><br \/>\n<span class=\"token builtin class-name\">export<\/span> <span class=\"token assign-left variable\">MANPATH<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;<span class=\"token environment constant\">$HOME<\/span>\/tp\/texlive\/texmf-dist\/doc\/man:<span class=\"token variable\">$MANPATH<\/span>&#034;<\/span><br \/>\n<span class=\"token builtin class-name\">export<\/span> <span class=\"token assign-left variable\">INFOPATH<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;<span class=\"token environment constant\">$HOME<\/span>\/tp\/texlive\/texmf-dist\/doc\/info:<span class=\"token variable\">$INFOPATH<\/span>&#034;<\/span><\/p>\n<p>\u4fdd\u5b58\u5e76\u9000\u51fa\u7f16\u8f91&#xff08;nano\u7f16\u8f91\u5668\u64cd\u4f5c&#xff09;&#xff1a;<\/p>\n<ul>\n<li>\u6309Ctrl&#043;O&#xff08;\u89e6\u53d1\u4fdd\u5b58\u64cd\u4f5c&#xff09;\u2192 \u6309\u56de\u8f66&#xff08;\u786e\u8ba4\u4fdd\u5b58&#xff0c;\u65e0\u9700\u4fee\u6539\u6587\u4ef6\u540d&#xff09;\u2192 \u6309Ctrl&#043;X&#xff08;\u9000\u51fa\u7f16\u8f91\u5668&#xff09;\u3002<\/li>\n<\/ul>\n<p>\u8ba9\u73af\u5883\u53d8\u91cf\u7acb\u5373\u751f\u6548&#xff08;\u65e0\u9700\u91cd\u542f\u7ec8\u7aef&#xff0c;\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u5373\u53ef&#xff09;&#xff1a;<\/p>\n<p><span class=\"token builtin class-name\">source<\/span> ~\/.bashrc<\/p>\n<p>\u9a8c\u8bc1\u73af\u5883\u53d8\u91cf\u914d\u7f6e\u662f\u5426\u6210\u529f&#xff08;\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4&#xff0c;\u82e5\u8f93\u51fa\u7248\u672c\u4fe1\u606f&#xff0c;\u8bf4\u660e\u914d\u7f6e\u6210\u529f&#xff09;&#xff1a;<\/p>\n<p>pdflatex &#8211;version<br \/>\nxelatex &#8211;version<\/p>\n<p>\u5f02\u5e38\u5904\u7406&#xff1a;\u82e5\u6267\u884c\u547d\u4ee4\u540e\u63d0\u793a\u201ccommand not found\u201d&#xff0c;\u5927\u6982\u7387\u662f\u8def\u5f84\u9519\u8bef\u3002\u89e3\u51b3\u65b9\u6848&#xff1a;\u8fdb\u5165~\/tp\/texlive\/bin\u76ee\u5f55&#xff08;\u6267\u884ccd ~\/tp\/texlive\/bin&#xff09;&#xff0c;\u67e5\u770b\u8be5\u76ee\u5f55\u4e0b\u7684\u67b6\u6784\u76ee\u5f55\u540d\u79f0&#xff08;\u5982arm64\u67b6\u6784\u670d\u52a1\u5668\u53ef\u80fd\u662faarch64-linux&#xff09;&#xff0c;\u5c06\u73af\u5883\u53d8\u91cf\u914d\u7f6e\u4e2d\u7684\u201cx86_64-linux\u201d\u66ff\u6362\u4e3a\u5b9e\u9645\u7684\u67b6\u6784\u76ee\u5f55\u540d\u79f0&#xff0c;\u91cd\u65b0\u6267\u884csource ~\/.bashrc\u5373\u53ef\u3002<\/p>\n<h4>\u6b65\u9aa44&#xff1a;\u9002\u914dVS Code&#043;LaTeX Workshop&#xff08;\u652f\u6301\u70b9\u51fb\u6309\u94ae\u7f16\u8bd1&#xff09;<\/h4>\n<p>\u6838\u5fc3\u662f\u5728VS Code\u4e2d\u914d\u7f6eLaTeX Workshop\u63d2\u4ef6&#xff0c;\u660e\u786e\u6307\u5b9aTeX Live\u7f16\u8bd1\u547d\u4ee4\u7684\u5b8c\u6574\u8def\u5f84&#xff08;\u907f\u514d\u4f9d\u8d56\u7cfb\u7edf\u73af\u5883\u53d8\u91cf&#xff0c;\u9632\u6b62\u4e0e\u5176\u4ed6\u7528\u6237\u73af\u5883\u51b2\u7a81&#xff09;&#xff0c;\u914d\u7f6e\u6b65\u9aa4\u5982\u4e0b&#xff1a;<\/p>\n<li>\n<p>\u5728VS Code\u8fdc\u7a0b\u7a97\u53e3\u4e2d&#xff0c;\u6309Ctrl&#043;,&#xff08;\u5feb\u6377\u952e&#xff09;\u6253\u5f00\u8bbe\u7f6e\u754c\u9762\u3002<\/p>\n<\/li>\n<li>\n<p>\u5728\u8bbe\u7f6e\u641c\u7d22\u6846\u4e2d\u8f93\u5165\u201cLaTeX Workshop: Latex Tools\u201d&#xff0c;\u627e\u5230\u8be5\u9009\u9879\u540e&#xff0c;\u70b9\u51fb\u53f3\u4fa7\u7684\u300c\u7f16\u8f91 in settings.json\u300d&#xff08;\u8fdb\u5165JSON\u914d\u7f6e\u6587\u4ef6\u7f16\u8f91\u754c\u9762&#xff09;\u3002<\/p>\n<\/li>\n<li>\n<p>\u5728settings.json\u6587\u4ef6\u4e2d&#xff0c;\u627e\u5230&#034;latex-workshop.latex.tools&#034;\u914d\u7f6e\u9879&#xff0c;\u4fee\u6539\u5176\u4e2d\u7684command\u5b57\u6bb5&#xff0c;\u586b\u5199~\/tp\/texlive\u8def\u5f84\u4e0b\u7684\u5b8c\u6574\u7f16\u8bd1\u547d\u4ee4&#xff08;\u6838\u5fc3\u914d\u7f6e\u7247\u6bb5\u5982\u4e0b&#xff0c;\u5176\u4ed6\u914d\u7f6e\u9879\u53ef\u4fdd\u7559\u9ed8\u8ba4\u6216\u6309\u9700\u8c03\u6574&#xff09;&#xff1a;<\/p>\n<\/li>\n<p><span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token string-property property\">&#034;latex-workshop.latex.tools&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">[<\/span><br \/>\n        <span class=\"token punctuation\">{<\/span><br \/>\n            <span class=\"token string-property property\">&#034;name&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;xelatex&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n            <span class=\"token string-property property\">&#034;command&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;$HOME\/tp\/texlive\/bin\/x86_64-linux\/xelatex&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token comment\">\/\/ \u6838\u5fc3\u8def\u5f84&#xff0c;\u4e0e\u5b89\u88c5\u8def\u5f84\u4e00\u81f4<\/span><br \/>\n            <span class=\"token string-property property\">&#034;args&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">[<\/span><br \/>\n                <span class=\"token string\">&#034;-synctex&#061;1&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n                <span class=\"token string\">&#034;-interaction&#061;nonstopmode&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n                <span class=\"token string\">&#034;-file-line-error&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n                <span class=\"token string\">&#034;%DOC%&#034;<\/span><br \/>\n            <span class=\"token punctuation\">]<\/span><br \/>\n        <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">,<\/span><br \/>\n        <span class=\"token punctuation\">{<\/span><br \/>\n            <span class=\"token string-property property\">&#034;name&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;pdflatex&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n            <span class=\"token string-property property\">&#034;command&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;$HOME\/tp\/texlive\/bin\/x86_64-linux\/pdflatex&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token comment\">\/\/ \u6838\u5fc3\u8def\u5f84&#xff0c;\u4e0e\u5b89\u88c5\u8def\u5f84\u4e00\u81f4<\/span><br \/>\n            <span class=\"token string-property property\">&#034;args&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">[<\/span><br \/>\n                <span class=\"token string\">&#034;-synctex&#061;1&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n                <span class=\"token string\">&#034;-interaction&#061;nonstopmode&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n                <span class=\"token string\">&#034;-file-line-error&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n                <span class=\"token string\">&#034;%DOC%&#034;<\/span><br \/>\n            <span class=\"token punctuation\">]<\/span><br \/>\n        <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">,<\/span><br \/>\n        <span class=\"token punctuation\">{<\/span><br \/>\n            <span class=\"token string-property property\">&#034;name&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;bibtex&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n            <span class=\"token string-property property\">&#034;command&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;$HOME\/tp\/texlive\/bin\/x86_64-linux\/bibtex&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token comment\">\/\/ \u6838\u5fc3\u8def\u5f84&#xff0c;\u4e0e\u5b89\u88c5\u8def\u5f84\u4e00\u81f4<\/span><br \/>\n            <span class=\"token string-property property\">&#034;args&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">[<\/span><br \/>\n                <span class=\"token string\">&#034;%DOCFILE%&#034;<\/span><br \/>\n            <span class=\"token punctuation\">]<\/span><br \/>\n        <span class=\"token punctuation\">}<\/span><br \/>\n    <span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token comment\">\/\/ \u53ef\u9009\u914d\u7f6e&#xff1a;\u5f00\u542f\u4fdd\u5b58\u81ea\u52a8\u7f16\u8bd1&#xff08;\u65e0\u9700\u624b\u52a8\u70b9\u51fb\u7f16\u8bd1\u6309\u94ae&#xff09;<\/span><br \/>\n    <span class=\"token string-property property\">&#034;latex-workshop.latex.autoBuild.run&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;onSave&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token comment\">\/\/ \u53ef\u9009\u914d\u7f6e&#xff1a;\u914d\u7f6e\u672c\u5730\u9884\u89c8PDF&#xff08;\u9002\u914dUbuntu\u670d\u52a1\u5668\u65e0\u53ef\u89c6\u5316\u754c\u9762\u7684\u573a\u666f&#xff09;<\/span><br \/>\n    <span class=\"token string-property property\">&#034;latex-workshop.view.pdf.external.enable&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token boolean\">true<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string-property property\">&#034;latex-workshop.view.pdf.external.command&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n        <span class=\"token string-property property\">&#034;command&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;open&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token comment\">\/\/ Windows\u7cfb\u7edf\u66ff\u6362\u4e3a&#034;cmd.exe&#034;&#xff0c;Linux\u672c\u5730\u66ff\u6362\u4e3a&#034;xdg-open&#034;<\/span><br \/>\n        <span class=\"token string-property property\">&#034;args&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">[<\/span><span class=\"token string\">&#034;%PDF%&#034;<\/span><span class=\"token punctuation\">]<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>\u914d\u7f6e\u4fdd\u5b58&#xff1a;\u6309Ctrl&#043;S\u4fdd\u5b58settings.json\u6587\u4ef6&#xff0c;\u914d\u7f6e\u7acb\u5373\u751f\u6548&#xff0c;\u65e0\u9700\u91cd\u542fVS Code\u3002<\/p>\n<h4>\u6b65\u9aa45&#xff1a;\u6d4b\u8bd5\u9a8c\u8bc1&#xff08;\u70b9\u51fb\u6309\u94ae\u7f16\u8bd1&#xff0c;\u786e\u8ba4\u529f\u80fd\u6b63\u5e38&#xff09;<\/h4>\n<p>\u5728VS Code\u8fdc\u7a0b\u7a97\u53e3\u4e2d&#xff0c;\u901a\u8fc7\u4ee5\u4e0b\u6b65\u9aa4\u9a8c\u8bc1\u7f16\u8bd1\u529f\u80fd\u662f\u5426\u6b63\u5e38&#xff1a;<\/p>\n<li>\n<p>\u5728\u5de6\u4fa7\u6587\u4ef6\u7ba1\u7406\u5668\u4e2d&#xff0c;\u6253\u5f00~\/tp\u6587\u4ef6\u5939&#xff08;\u4e2a\u4eba\u79c1\u6709\u76ee\u5f55&#xff09;\u3002<\/p>\n<\/li>\n<li>\n<p>\u53f3\u952e\u70b9\u51fb\u7a7a\u767d\u5904&#xff0c;\u9009\u62e9\u300c\u65b0\u5efa\u6587\u4ef6\u300d&#xff0c;\u547d\u540d\u4e3atest.tex&#xff08;LaTeX\u6d4b\u8bd5\u6587\u4ef6&#xff09;\u3002<\/p>\n<\/li>\n<li>\n<p>\u6253\u5f00test.tex\u6587\u4ef6&#xff0c;\u7c98\u8d34\u4ee5\u4e0b\u6d4b\u8bd5\u4ee3\u7801&#xff08;\u542b\u4e2d\u6587\u652f\u6301&#xff0c;\u9002\u914d\u65e5\u5e38\u4f7f\u7528\u573a\u666f&#xff09;&#xff1a;<\/p>\n<\/li>\n<p>\\\\documentclass{article}<br \/>\n\\\\usepackage{ctex} % \u4e2d\u6587\u652f\u6301\u5305&#xff08;\u57fa\u7840\u7248\u5df2\u9ed8\u8ba4\u5b89\u88c5&#xff09;<br \/>\n\\\\title{TeX Live\u5b89\u88c5\u6d4b\u8bd5&#xff08;\u4e2a\u4eba\u6587\u4ef6\u5939tp&#xff09;}<br \/>\n\\\\author{\u8fdc\u7a0bUbuntu\u670d\u52a1\u5668\u7f16\u8bd1\u6d4b\u8bd5}<br \/>\n\\\\date{\\\\today}<br \/>\n\\\\begin{document}<br \/>\n\\\\maketitle<br \/>\n\u8fd9\u662f\u65e0sudo\u6743\u9650\u4e0b&#xff0c;\u8fdc\u7a0b\u8fde\u63a5Ubuntu\u670d\u52a1\u5668\u5b89\u88c5\u5230~\/tp\u4e2a\u4eba\u6587\u4ef6\u5939\u7684TeX Live\u6d4b\u8bd5\u6587\u6863\u3002<br \/>\n\u652f\u6301VS Code\u901a\u8fc7LaTeX Workshop\u70b9\u51fb\u6309\u94ae\u7f16\u8bd1&#xff0c;\u672c\u5730\u9884\u89c8PDF\u6587\u4ef6&#xff0c;\u4e2d\u6587\u663e\u793a\u6b63\u5e38\u3002<br \/>\n\\\\end{document}<\/p>\n<p>\u7f16\u8bd1\u6d4b\u8bd5&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u70b9\u51fbVS Code\u7f16\u8f91\u5668\u53f3\u4e0a\u89d2\u7684\u300c\u25b6\ufe0f\u300d&#xff08;\u8fd0\u884c\u6309\u94ae&#xff09;&#xff0c;\u5728\u5f39\u51fa\u7684\u83dc\u5355\u4e2d\u9009\u62e9\u300cXeLaTeX\u300d&#xff08;\u9002\u914d\u4e2d\u6587\u7f16\u8bd1&#xff09;\u3002<\/p>\n<\/li>\n<li>\n<p>\u7f16\u8bd1\u6210\u529f\u6807\u8bc6&#xff1a;\u5e95\u90e8\u72b6\u6001\u680f\u663e\u793a\u201cBuild successful\u201d&#xff0c;\u540c\u65f6\u5728~\/tp\u6587\u4ef6\u5939\u4e0b\u751f\u6210test.pdf\u6587\u4ef6\u3002<\/p>\n<\/li>\n<li>\n<p>\u672c\u5730\u9884\u89c8&#xff1a;\u70b9\u51fb\u5de6\u4fa7LaTeX Workshop\u9762\u677f&#xff08;\u56fe\u6807\u4e3a&#x1f4c4;&#xff09;\u4e2d\u7684\u300cView PDF\u300d&#xff0c;\u5373\u53ef\u8c03\u7528\u672c\u5730PDF\u9605\u8bfb\u5668\u6253\u5f00\u9884\u89c8&#xff0c;\u652f\u6301\u4ee3\u7801\u4e0ePDF\u5185\u5bb9\u8df3\u8f6c\u3002<\/p>\n<\/li>\n<\/ul>\n<h4>\u8865\u5145&#xff1a;\u5355\u4eba\u4f7f\u7528\u573a\u666f&#xff08;\u5b89\u88c5\u5230\u4e3b\u76ee\u5f55~&#xff09;\u7684\u8def\u5f84\u4fee\u6539\u70b9<\/h4>\n<p>\u82e5\u4ec5\u4f60\u4e00\u4eba\u4f7f\u7528\u8be5SSH\u8d26\u53f7\u548cVS Code&#xff0c;\u65e0\u9700\u8003\u8651\u73af\u5883\u51b2\u7a81&#xff0c;\u53ef\u76f4\u63a5\u5b89\u88c5\u5230\u4e3b\u76ee\u5f55&#xff08;~&#xff09;&#xff0c;\u64cd\u4f5c\u66f4\u7b80\u6d01&#xff0c;\u4ec5\u9700\u4fee\u6539\u4ee5\u4e0b3\u5904\u8def\u5f84&#xff08;\u5176\u4ed6\u64cd\u4f5c\u6b65\u9aa4\u4e0e\u4e0a\u8ff0\u5b8c\u5168\u4e00\u81f4&#xff09;&#xff1a;<\/p>\n<li>\n<p>\u6b65\u9aa41\u4e2d\u4e34\u65f6\u76ee\u5f55\u8def\u5f84&#xff1a;\u65e0\u9700\u8fdb\u5165tp\u6587\u4ef6\u5939&#xff0c;\u76f4\u63a5\u5728\u4e3b\u76ee\u5f55\u521b\u5efa\u4e34\u65f6\u76ee\u5f55&#xff0c;\u547d\u4ee4\u4fee\u6539\u4e3a&#xff1a;mkdir -p texlive_install &amp;&amp; cd texlive_install\u3002<\/p>\n<\/li>\n<li>\n<p>\u6b65\u9aa42\u4e2dTEXDIR\u8def\u5f84&#xff1a;\u8f93\u5165~\/texlive&#xff08;\u66ff\u6362\u539f\u6709\u7684~\/tp\/texlive&#xff09;\u3002<\/p>\n<\/li>\n<li>\n<p>\u6b65\u9aa43\u548c\u6b65\u9aa44\u4e2d\u7684\u8def\u5f84&#xff1a;\u73af\u5883\u53d8\u91cf\u914d\u7f6e\u3001VS Code\u914d\u7f6e\u4e2d\u7684\u8def\u5f84\u5747\u66ff\u6362\u4e3a$HOME\/texlive\/bin\/x86_64-linux\/xxx&#xff08;xxx\u4ee3\u8868\u5177\u4f53\u7f16\u8bd1\u547d\u4ee4&#xff0c;\u5982xelatex\u3001pdflatex&#xff09;\u3002<\/p>\n<\/li>\n<h3>\u56db\u3001\u5b8c\u6574\u5378\u8f7d\u65b9\u6848&#xff08;\u9002\u914d\u4e2a\u4eba\u6587\u4ef6\u5939\u5b89\u88c5&#xff0c;\u65e0\u6b8b\u7559\u4e0d\u5f71\u54cd\u4ed6\u4eba&#xff09;<\/h3>\n<p>\u82e5\u540e\u7eed\u9700\u8981\u5378\u8f7dTeX Live&#xff08;\u5982\u8fc1\u79fb\u5b89\u88c5\u8def\u5f84\u3001\u91cd\u88c5\u7248\u672c\u3001\u4e0d\u518d\u4f7f\u7528&#xff09;&#xff0c;\u4ec5\u97003\u6b65\u64cd\u4f5c&#xff0c;\u5168\u7a0b\u65e0\u6b8b\u7559&#xff0c;\u4e14\u4e0d\u4f1a\u5f71\u54cd\u5176\u4ed6\u7528\u6237\u548c\u670d\u52a1\u5668\u5168\u5c40\u914d\u7f6e&#xff1a;<\/p>\n<h4>\u6b65\u9aa41&#xff1a;\u5220\u9664TeX Live\u6838\u5fc3\u5b89\u88c5\u76ee\u5f55<\/h4>\n<p>\u5220\u9664\u6838\u5fc3\u5b89\u88c5\u76ee\u5f55&#xff08;\u6267\u884crm -rf ~\/tp\/texlive&#xff09;\u662f\u91cd\u65b0\u5b89\u88c5\u7684\u5fc5\u8981\u6b65\u9aa4&#xff0c;\u4e3a\u786e\u4fdd\u91cd\u88c5\u65e0\u6b8b\u7559\u3001\u4e0d\u51fa\u73b0\u5f02\u5e38&#xff0c;\u9700\u6309\u4ee5\u4e0b\u6b65\u9aa4\u5b8c\u6210\u524d\u7f6e\u6e05\u7406\u64cd\u4f5c&#xff1a;<\/p>\n<p><span class=\"token comment\"># \u6b65\u9aa41&#xff1a;\u5220\u9664\u6838\u5fc3\u5b89\u88c5\u76ee\u5f55&#xff08;\u5df2\u6267\u884c&#xff0c;\u5fc5\u505a&#xff09;<\/span><br \/>\n<span class=\"token function\">rm<\/span> -rf ~\/tp\/texlive<\/p>\n<h4>\u6b65\u9aa42&#xff1a;\u5220\u9664\u4e34\u65f6\u5b89\u88c5\u76ee\u5f55&#xff08;\u53ef\u9009&#xff0c;\u6e05\u7406\u78c1\u76d8\u7a7a\u95f4&#xff09;<\/h4>\n<p>\u82e5\u5b89\u88c5\u5b8c\u6210\u540e\u672a\u6e05\u7406\u4e34\u65f6\u76ee\u5f55&#xff08;texlive_install&#xff09;&#xff0c;\u53ef\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u5220\u9664&#xff08;\u8282\u7701\u78c1\u76d8\u7a7a\u95f4&#xff09;&#xff1a;<\/p>\n<p><span class=\"token function\">rm<\/span> -rf ~\/tp\/texlive_install<\/p>\n<h4>\u6b65\u9aa43&#xff1a;\u5220\u9664\u73af\u5883\u53d8\u91cf\u914d\u7f6e&#xff08;\u907f\u514d\u6b8b\u7559\u5f71\u54cd&#xff09;<\/h4>\n<li>\u7f16\u8f91\u73af\u5883\u53d8\u91cf\u914d\u7f6e\u6587\u4ef6&#xff0c;\u547d\u4ee4\u5982\u4e0b&#xff1a;<\/li>\n<p><span class=\"token function\">nano<\/span> ~\/.bashrc<\/p>\n<li>\u5728\u6587\u4ef6\u4e2d\u627e\u5230\u4e4b\u524d\u6dfb\u52a0\u7684TeX Live\u73af\u5883\u53d8\u91cf\u5185\u5bb9&#xff08;\u5982\u4e0b\u6240\u793a&#xff09;&#xff0c;\u5c06\u5176\u5220\u9664&#xff08;\u6216\u5728\u6bcf\u884c\u524d\u52a0#\u6ce8\u91ca\u6389&#xff09;&#xff1a;<\/li>\n<p><span class=\"token comment\"># TeX Live \u73af\u5883\u53d8\u91cf&#xff08;\u5b89\u88c5\u5728~\/tp\u4e2a\u4eba\u6587\u4ef6\u5939\u5185&#xff0c;\u9002\u914dUbuntu\u670d\u52a1\u5668&#xff09;<\/span><br \/>\n<span class=\"token builtin class-name\">export<\/span> <span class=\"token assign-left variable\"><span class=\"token environment constant\">PATH<\/span><\/span><span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;<span class=\"token environment constant\">$HOME<\/span>\/tp\/texlive\/bin\/x86_64-linux:<span class=\"token environment constant\">$PATH<\/span>&#034;<\/span><br \/>\n<span class=\"token builtin class-name\">export<\/span> <span class=\"token assign-left variable\">MANPATH<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;<span class=\"token environment constant\">$HOME<\/span>\/tp\/texlive\/texmf-dist\/doc\/man:<span class=\"token variable\">$MANPATH<\/span>&#034;<\/span><br \/>\n<span class=\"token builtin class-name\">export<\/span> <span class=\"token assign-left variable\">INFOPATH<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;<span class=\"token environment constant\">$HOME<\/span>\/tp\/texlive\/texmf-dist\/doc\/info:<span class=\"token variable\">$INFOPATH<\/span>&#034;<\/span><\/p>\n<li>\n<p>\u4fdd\u5b58\u5e76\u9000\u51fa\u7f16\u8f91\u5668&#xff08;\u6309Ctrl&#043;O\u2192\u56de\u8f66\u2192Ctrl&#043;X&#xff09;\u3002<\/p>\n<\/li>\n<li>\n<p>\u66f4\u65b0\u73af\u5883\u53d8\u91cf&#xff0c;\u8ba9\u4fee\u6539\u751f\u6548&#xff1a;<\/p>\n<\/li>\n<p><span class=\"token builtin class-name\">source<\/span> ~\/.bashrc<\/p>\n<p>\u9a8c\u8bc1\u5378\u8f7d\u662f\u5426\u6210\u529f&#xff1a;\u6267\u884cpdflatex &#8211;version&#xff0c;\u82e5\u7ec8\u7aef\u63d0\u793a\u201ccommand not found\u201d&#xff0c;\u8bf4\u660e\u5378\u8f7d\u5df2\u5b8c\u5168\u6210\u529f\u3002<\/p>\n<h3>\u4e94\u3001\u5e38\u89c1\u95ee\u9898\u4e0e\u6ce8\u610f\u4e8b\u9879<\/h3>\n<h4>1. \u7f16\u8bd1\u62a5\u9519\u201ccommand not found\u201d<\/h4>\n<p>\u6838\u5fc3\u539f\u56e0&#xff1a;\u5b89\u88c5\u8def\u5f84\u3001\u73af\u5883\u53d8\u91cf\u914d\u7f6e\u3001VS Code\u7f16\u8bd1\u8def\u5f84\u4e09\u8005\u4e0d\u4e00\u81f4&#xff08;\u6700\u5e38\u89c1\u95ee\u9898&#xff09;&#xff0c;\u6216\u67b6\u6784\u76ee\u5f55\u540d\u79f0\u586b\u5199\u9519\u8bef\u3002<\/p>\n<p>\u89e3\u51b3\u65b9\u6848&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u6267\u884cwhich pdflatex&#xff08;\u6216\u5bf9\u5e94\u62a5\u9519\u547d\u4ee4&#xff09;&#xff0c;\u67e5\u770b\u7cfb\u7edf\u5f53\u524d\u8bc6\u522b\u7684\u7f16\u8bd1\u547d\u4ee4\u8def\u5f84&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u786e\u4fdd\u8be5\u8def\u5f84\u4e0eVS Code\u914d\u7f6e\u4e2dcommand\u5b57\u6bb5\u7684\u8def\u5f84\u5b8c\u5168\u4e00\u81f4&#xff0c;\u4e0d\u4e00\u81f4\u5219\u4fee\u6539settings.json&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u82e5\u6267\u884c\u547d\u4ee4\u65e0\u8f93\u51fa&#xff0c;\u8bf4\u660e\u73af\u5883\u53d8\u91cf\u914d\u7f6e\u9519\u8bef&#xff0c;\u91cd\u65b0\u68c0\u67e5~\/.bashrc\u4e2d\u7684\u8def\u5f84&#xff0c;\u786e\u4fdd\u4e0e\u5b89\u88c5\u8def\u5f84\u4e00\u81f4\u3002<\/p>\n<\/li>\n<\/ul>\n<h4>2. \u591a\u4eba\u5171\u7528\u8d26\u53f7\u7684\u73af\u5883\u51b2\u7a81<\/h4>\n<p>\u9884\u9632\u65b9\u6848&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u4e25\u683c\u5c06TeX Live\u5b89\u88c5\u5230\u4e2a\u4eba\u4e13\u5c5e\u6587\u4ef6\u5939&#xff08;\u5982~\/tp&#xff09;&#xff0c;\u4e0d\u4fee\u6539\u4e3b\u76ee\u5f55\u548c\u5176\u4ed6\u7528\u6237\u7684\u6587\u4ef6&#xff1b;<\/p>\n<\/li>\n<li>\n<p>VS Code\u914d\u7f6e\u4e2d\u52a1\u5fc5\u6307\u5b9a\u5b8c\u6574\u7684\u7f16\u8bd1\u547d\u4ee4\u8def\u5f84&#xff08;\u5982$HOME\/tp\/texlive\/\u2026&#xff09;&#xff0c;\u4e0d\u4f9d\u8d56\u7cfb\u7edf\u73af\u5883\u53d8\u91cf&#xff0c;\u907f\u514d\u88ab\u5176\u4ed6\u7528\u6237\u7684\u73af\u5883\u8986\u76d6\u3002<\/p>\n<\/li>\n<\/ul>\n<h4>3. \u4e2d\u6587\u7f16\u8bd1\u4e71\u7801<\/h4>\n<p>\u89e3\u51b3\u65b9\u6848&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u7f16\u8bd1\u65b9\u5f0f\u9009\u62e9XeLaTeX&#xff08;\u4e0d\u8981\u9009\u62e9PDFLaTeX&#xff0c;PDFLaTeX\u5bf9\u4e2d\u6587\u652f\u6301\u8f83\u5dee&#xff09;&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u5728LaTeX\u6587\u4ef6\u4e2d\u5f15\u5165\u4e2d\u6587\u652f\u6301\u5305&#xff1a;\\\\usepackage{ctex}&#xff1b;<\/p>\n<\/li>\n<li>\n<p>\u82e5\u4ecd\u4e71\u7801&#xff0c;\u6267\u884ctlmgr install ctex&#xff08;\u65e0\u9700sudo&#xff09;&#xff0c;\u5b89\u88c5\u5b8c\u6574\u4e2d\u6587\u652f\u6301\u5305&#xff0c;\u91cd\u65b0\u7f16\u8bd1\u5373\u53ef\u3002<\/p>\n<\/li>\n<\/ul>\n<h4>4. VS Code\u4e0eCursor\u7684\u517c\u5bb9\u6027\u8bf4\u660e<\/h4>\n<p>\u8865\u5145\u8bf4\u660e&#xff1a;Cursor\u662f\u57fa\u4e8eVS Code\u5185\u6838\u5f00\u53d1\u7684AI\u539f\u751f\u7f16\u8f91\u5668&#xff0c;\u4e8c\u8005\u5728\u6838\u5fc3\u529f\u80fd&#xff08;\u5c24\u5176\u662f\u6269\u5c55\u517c\u5bb9\u6027\u3001\u8fdc\u7a0b\u8fde\u63a5\u3001LaTeX Workshop\u9002\u914d&#xff09;\u4e0a\u5b8c\u5168\u4e00\u81f4\u3002\u672c\u6587\u6240\u6709\u64cd\u4f5c\u6d41\u7a0b&#xff08;\u5b89\u88c5\u3001\u914d\u7f6e\u3001\u7f16\u8bd1\u3001\u5378\u8f7d&#xff09;\u540c\u6837\u9002\u7528\u4e8eCursor&#xff0c;\u4ec5\u9700\u6ce8\u610f&#xff1a;\u4e8c\u8005\u5747\u9700\u5b89\u88c5Remote &#8211; SSH\u3001LaTeX Workshop\u63d2\u4ef6&#xff0c;\u914d\u7f6e\u903b\u8f91\u5b8c\u5168\u76f8\u540c&#xff0c;\u53ef\u6839\u636e\u4e2a\u4eba\u662f\u5426\u9700\u8981AI\u8f85\u52a9\u529f\u80fd\u9009\u62e9\u4f7f\u7528\u3002<\/p>\n<h4>5. \u5b89\u88c5\u8fc7\u7a0b\u4e2d\u7ec8\u7aef\u65ad\u5f00\u8fde\u63a5<\/h4>\n<p>\u89e3\u51b3\u65b9\u6848&#xff1a;\u91cd\u65b0\u901a\u8fc7VS Code\u8fde\u63a5\u670d\u52a1\u5668&#xff0c;\u8fdb\u5165\u4e4b\u524d\u7684\u4e34\u65f6\u5b89\u88c5\u76ee\u5f55&#xff08;cd ~\/tp\/texlive_install\/install-tl-*&#xff09;&#xff0c;\u91cd\u65b0\u6267\u884c.\/install-tl&#xff0c;\u6309\u7167\u6b65\u9aa42\u91cd\u65b0\u914d\u7f6e\u8def\u5f84\u5e76\u5b89\u88c5\u5373\u53ef&#xff08;\u5df2\u5b89\u88c5\u7684\u6587\u4ef6\u4e0d\u4f1a\u91cd\u590d\u4e0b\u8f7d&#xff0c;\u4f1a\u7ee7\u7eed\u540e\u7eed\u5b89\u88c5\u6d41\u7a0b&#xff09;\u3002<\/p>\n<h3>\u516d\u3001\u603b\u7ed3<\/h3>\n<p>\u6309\u7167\u4e0a\u8ff0\u6b65\u9aa4\u64cd\u4f5c&#xff0c;\u5373\u53ef\u5b9e\u73b0VS Code&#xff08;\u6216Cursor&#xff09;\u8fdc\u7a0b\u8fde\u63a5Ubuntu\u670d\u52a1\u5668\u70b9\u51fb\u7f16\u8bd1LaTeX\u6587\u6863&#xff0c;\u4f53\u9a8c\u4e0e\u672c\u5730\u5b89\u88c5\u5b8c\u5168\u4e00\u81f4&#xff0c;\u5b8c\u7f8e\u9002\u914d\u65e0sudo\u3001\u591a\u4eba\u5171\u7528\u8d26\u53f7\u7684Ubuntu\u8fdc\u7a0b\u4f7f\u7528\u573a\u666f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u65e5\u5e38\u79d1\u7814\u548c\u6587\u6863\u7f16\u5199\u4e2d&#xff0c;LaTeX\u662f\u5fc5\u5907\u5de5\u5177\u4e4b\u4e00\u3002\u8fd1\u671f\u9700\u8981\u901a\u8fc7VS Code\u8fdc\u7a0b\u8fde\u63a5\u65e0\u53ef\u89c6\u5316\u754c\u9762\u7684Ubuntu\u670d\u52a1\u5668\u7f16\u8f91LaTeX\u6587\u6863&#xff0c;\u4e14\u670d\u52a1\u5668\u65e0sudo\u6743\u9650\u3001\u591a\u4eba\u5171\u7528\u4e00\u4e2aSSH\u8d26\u53f7&#xff0c;\u8e29\u4e86\u4e0d\u5c11\u8def\u5f84\u914d\u7f6e\u548c\u73af\u5883\u51b2\u7a81\u7684\u5751\u3002\u7279\u6b64\u8bb0\u5f55\u5b8c\u6574\u5b9e\u64cd\u6d41\u7a0b&#xff0c;\u7cbe\u51c6\u8fd8\u539f\u6bcf\u4e00\u6b65\u7ec8\u7aef\u4ea4\u4e92\u7ec6\u8282&#xff0c;\u5e76\u8865\u5145\u5b8c\u6574\u5378\u8f7d\u65b9\u6848&#xff0c;\u4f9b\u6709\u7c7b\u4f3c\u9700\u6c42\u7684\u670b\u53cb\u53c2\u8003\u3002<br \/>\n\u4e00\u3001\u6838\u5fc3\u80cc\u666f\u4e0e\u9700\u6c42\u670d\u52a1\u5668\u73af\u5883&#xff1a;Ubuntu\u7cfb\u7edf\u3001\u65e0sudo\u6743\u9650\u3001\u65e0\u53ef\u89c6<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[7520,99,103,43],"topic":[],"class_list":["post-78135","post","type-post","status-publish","format-standard","hentry","category-server","tag-latex","tag-java","tag-ubuntu","tag-43"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u65e0sudo\u6743\u9650\u8fdc\u7a0b\u8fde\u63a5Ubuntu\u670d\u52a1\u5668\u5b89\u88c5TeX Live\u5b9e\u64cd\u8bb0\u5f55\uff08\u9002\u914dVS Code+LaTeX Workshop\uff0c\u542b\u8def\u5f84\u9009\u62e9\u4e0e\u5378\u8f7d\u65b9\u6848\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/78135.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u65e0sudo\u6743\u9650\u8fdc\u7a0b\u8fde\u63a5Ubuntu\u670d\u52a1\u5668\u5b89\u88c5TeX Live\u5b9e\u64cd\u8bb0\u5f55\uff08\u9002\u914dVS Code+LaTeX Workshop\uff0c\u542b\u8def\u5f84\u9009\u62e9\u4e0e\u5378\u8f7d\u65b9\u6848\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u5728\u65e5\u5e38\u79d1\u7814\u548c\u6587\u6863\u7f16\u5199\u4e2d&#xff0c;LaTeX\u662f\u5fc5\u5907\u5de5\u5177\u4e4b\u4e00\u3002\u8fd1\u671f\u9700\u8981\u901a\u8fc7VS Code\u8fdc\u7a0b\u8fde\u63a5\u65e0\u53ef\u89c6\u5316\u754c\u9762\u7684Ubuntu\u670d\u52a1\u5668\u7f16\u8f91LaTeX\u6587\u6863&#xff0c;\u4e14\u670d\u52a1\u5668\u65e0sudo\u6743\u9650\u3001\u591a\u4eba\u5171\u7528\u4e00\u4e2aSSH\u8d26\u53f7&#xff0c;\u8e29\u4e86\u4e0d\u5c11\u8def\u5f84\u914d\u7f6e\u548c\u73af\u5883\u51b2\u7a81\u7684\u5751\u3002\u7279\u6b64\u8bb0\u5f55\u5b8c\u6574\u5b9e\u64cd\u6d41\u7a0b&#xff0c;\u7cbe\u51c6\u8fd8\u539f\u6bcf\u4e00\u6b65\u7ec8\u7aef\u4ea4\u4e92\u7ec6\u8282&#xff0c;\u5e76\u8865\u5145\u5b8c\u6574\u5378\u8f7d\u65b9\u6848&#xff0c;\u4f9b\u6709\u7c7b\u4f3c\u9700\u6c42\u7684\u670b\u53cb\u53c2\u8003\u3002 \u4e00\u3001\u6838\u5fc3\u80cc\u666f\u4e0e\u9700\u6c42\u670d\u52a1\u5668\u73af\u5883&#xff1a;Ubuntu\u7cfb\u7edf\u3001\u65e0sudo\u6743\u9650\u3001\u65e0\u53ef\u89c6\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/78135.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-02-26T00:51:17+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/78135.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/78135.html\",\"name\":\"\u65e0sudo\u6743\u9650\u8fdc\u7a0b\u8fde\u63a5Ubuntu\u670d\u52a1\u5668\u5b89\u88c5TeX Live\u5b9e\u64cd\u8bb0\u5f55\uff08\u9002\u914dVS Code+LaTeX Workshop\uff0c\u542b\u8def\u5f84\u9009\u62e9\u4e0e\u5378\u8f7d\u65b9\u6848\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-02-26T00:51:17+00:00\",\"dateModified\":\"2026-02-26T00:51:17+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/78135.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/78135.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/78135.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u65e0sudo\u6743\u9650\u8fdc\u7a0b\u8fde\u63a5Ubuntu\u670d\u52a1\u5668\u5b89\u88c5TeX Live\u5b9e\u64cd\u8bb0\u5f55\uff08\u9002\u914dVS Code+LaTeX Workshop\uff0c\u542b\u8def\u5f84\u9009\u62e9\u4e0e\u5378\u8f7d\u65b9\u6848\uff09\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u65e0sudo\u6743\u9650\u8fdc\u7a0b\u8fde\u63a5Ubuntu\u670d\u52a1\u5668\u5b89\u88c5TeX Live\u5b9e\u64cd\u8bb0\u5f55\uff08\u9002\u914dVS Code+LaTeX Workshop\uff0c\u542b\u8def\u5f84\u9009\u62e9\u4e0e\u5378\u8f7d\u65b9\u6848\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/78135.html","og_locale":"zh_CN","og_type":"article","og_title":"\u65e0sudo\u6743\u9650\u8fdc\u7a0b\u8fde\u63a5Ubuntu\u670d\u52a1\u5668\u5b89\u88c5TeX Live\u5b9e\u64cd\u8bb0\u5f55\uff08\u9002\u914dVS Code+LaTeX Workshop\uff0c\u542b\u8def\u5f84\u9009\u62e9\u4e0e\u5378\u8f7d\u65b9\u6848\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u5728\u65e5\u5e38\u79d1\u7814\u548c\u6587\u6863\u7f16\u5199\u4e2d&#xff0c;LaTeX\u662f\u5fc5\u5907\u5de5\u5177\u4e4b\u4e00\u3002\u8fd1\u671f\u9700\u8981\u901a\u8fc7VS Code\u8fdc\u7a0b\u8fde\u63a5\u65e0\u53ef\u89c6\u5316\u754c\u9762\u7684Ubuntu\u670d\u52a1\u5668\u7f16\u8f91LaTeX\u6587\u6863&#xff0c;\u4e14\u670d\u52a1\u5668\u65e0sudo\u6743\u9650\u3001\u591a\u4eba\u5171\u7528\u4e00\u4e2aSSH\u8d26\u53f7&#xff0c;\u8e29\u4e86\u4e0d\u5c11\u8def\u5f84\u914d\u7f6e\u548c\u73af\u5883\u51b2\u7a81\u7684\u5751\u3002\u7279\u6b64\u8bb0\u5f55\u5b8c\u6574\u5b9e\u64cd\u6d41\u7a0b&#xff0c;\u7cbe\u51c6\u8fd8\u539f\u6bcf\u4e00\u6b65\u7ec8\u7aef\u4ea4\u4e92\u7ec6\u8282&#xff0c;\u5e76\u8865\u5145\u5b8c\u6574\u5378\u8f7d\u65b9\u6848&#xff0c;\u4f9b\u6709\u7c7b\u4f3c\u9700\u6c42\u7684\u670b\u53cb\u53c2\u8003\u3002 \u4e00\u3001\u6838\u5fc3\u80cc\u666f\u4e0e\u9700\u6c42\u670d\u52a1\u5668\u73af\u5883&#xff1a;Ubuntu\u7cfb\u7edf\u3001\u65e0sudo\u6743\u9650\u3001\u65e0\u53ef\u89c6","og_url":"https:\/\/www.wsisp.com\/helps\/78135.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-02-26T00:51:17+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"8 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/78135.html","url":"https:\/\/www.wsisp.com\/helps\/78135.html","name":"\u65e0sudo\u6743\u9650\u8fdc\u7a0b\u8fde\u63a5Ubuntu\u670d\u52a1\u5668\u5b89\u88c5TeX Live\u5b9e\u64cd\u8bb0\u5f55\uff08\u9002\u914dVS Code+LaTeX Workshop\uff0c\u542b\u8def\u5f84\u9009\u62e9\u4e0e\u5378\u8f7d\u65b9\u6848\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-02-26T00:51:17+00:00","dateModified":"2026-02-26T00:51:17+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/78135.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/78135.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/78135.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u65e0sudo\u6743\u9650\u8fdc\u7a0b\u8fde\u63a5Ubuntu\u670d\u52a1\u5668\u5b89\u88c5TeX Live\u5b9e\u64cd\u8bb0\u5f55\uff08\u9002\u914dVS Code+LaTeX Workshop\uff0c\u542b\u8def\u5f84\u9009\u62e9\u4e0e\u5378\u8f7d\u65b9\u6848\uff09"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/78135","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=78135"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/78135\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=78135"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=78135"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=78135"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=78135"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}