MikTex安装
官网下载MikTex: https://miktex.org/ 的安装包,然后点击安装。安装完成有运行"Miktex console"进行配置(选择"以管理员身份运行")。
点击"Packages"标签,然后依次安装ctex和CJK包等(或者待编译时再按需安装也可), 以便支持中文。
VS code+LaTeX Workshop
官网下载VSCode安装包然后安装。https://code.visualstudio.com/
然后运行"vscode", 安装其扩展Latex Workshop.
对于Miktex, 需要对Latex Workshop配置recipe和tool。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
| "latex-workshop.latex.tools": [ { // 编译工具和命令 "name": "xelatex", "command": "xelatex", "args": [ "-synctex=1", "-interaction=nonstopmode", "-file-line-error", "-pdf", "%DOCFILE%" ] }, { "name": "pdflatex", "command": "pdflatex", "args": [ "-synctex=1", "-interaction=nonstopmode", "-file-line-error", "%DOCFILE%" ] }, { "name": "bibtex", "command": "bibtex", "args": [ "%DOCFILE%" ] } ],
|
recipe
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
| "latex-workshop.latex.recipes": [ { "name": "pdflatex", "tools": [ "pdflatex" ] }, { "name": "pdflatex -> bibtex -> pdflatex*2", "tools": [ "pdflatex", "bibtex", "pdflatex", "pdflatex" ] }, { "name": "xelatex", "tools": [ "xelatex" ] }, ],
|