如何配置VSCode使它使用xetex编译tex文档以支持中文
答案:1 悬赏:0 手机版
解决时间 2021-11-24 00:44
- 提问者网友:放下
- 2021-11-23 06:14
如何配置VSCode使它使用xetex编译tex文档以支持中文
最佳答案
- 五星知识达人网友:从此江山别
- 2021-11-23 06:20
LaTeX Workshop - Visual Studio Marketplace 我用的这个插件。
安装后需要到菜单栏里的File>Preferences>Settings>latex-workshop.latex.toolchain.里修改 LaTeX toolchain 的配置,插件的说明文档里有用pdflatex>bibtex>pdflatex>pdflatex 编译的示例:
"latex-workshop.latex.toolchain": [
{
"command": "pdflatex",
"args": [
"-synctex=1",
"-interaction=nonstopmode",
"-file-line-error",
"%DOC%"
]
}, {
"command": "bibtex",
"args": [
"%DOCFILE%"
]
}, {
"command": "pdflatex",
"args": [
"-synctex=1",
"-interaction=nonstopmode",
"-file-line-error",
"%DOC%"
]
}, {
"command": "pdflatex",
"args": [
"-synctex=1",
"-interaction=nonstopmode",
"-file-line-error",
"%DOC%"
]
}
]
我自己用目前一般用不到bibtex,只是用xelatex编译两次就够了,所以我就这样配置的
"latex-workshop.latex.toolchain": [
{
"command": "xelatex",
"args": [
"-synctex=1",
"-interaction=nonstopmode",
"-file-line-error",
"%DOC%"
]
},
{
"command": "xelatex",
"args": [
"-synctex=1",
"-interaction=nonstopmode",
"-file-line-error",
"%DOC%"
]
}
]
(我不是程序员,所以vscode几乎全部都是用来写写数学笔记啥的,所以方便起见,我对编辑器的默认设置还做了两个修改,如图:1.开启自动换行 2.取消May 2017 (version 1.13)这个版本新加入的minimap的功能)
中文文档用xelatex,如果显示字体不好看,不知道是不是TeX Live默认中文字体比较吃藕的原因,我一般中文字体
安装后需要到菜单栏里的File>Preferences>Settings>latex-workshop.latex.toolchain.里修改 LaTeX toolchain 的配置,插件的说明文档里有用pdflatex>bibtex>pdflatex>pdflatex 编译的示例:
"latex-workshop.latex.toolchain": [
{
"command": "pdflatex",
"args": [
"-synctex=1",
"-interaction=nonstopmode",
"-file-line-error",
"%DOC%"
]
}, {
"command": "bibtex",
"args": [
"%DOCFILE%"
]
}, {
"command": "pdflatex",
"args": [
"-synctex=1",
"-interaction=nonstopmode",
"-file-line-error",
"%DOC%"
]
}, {
"command": "pdflatex",
"args": [
"-synctex=1",
"-interaction=nonstopmode",
"-file-line-error",
"%DOC%"
]
}
]
我自己用目前一般用不到bibtex,只是用xelatex编译两次就够了,所以我就这样配置的
"latex-workshop.latex.toolchain": [
{
"command": "xelatex",
"args": [
"-synctex=1",
"-interaction=nonstopmode",
"-file-line-error",
"%DOC%"
]
},
{
"command": "xelatex",
"args": [
"-synctex=1",
"-interaction=nonstopmode",
"-file-line-error",
"%DOC%"
]
}
]
(我不是程序员,所以vscode几乎全部都是用来写写数学笔记啥的,所以方便起见,我对编辑器的默认设置还做了两个修改,如图:1.开启自动换行 2.取消May 2017 (version 1.13)这个版本新加入的minimap的功能)
中文文档用xelatex,如果显示字体不好看,不知道是不是TeX Live默认中文字体比较吃藕的原因,我一般中文字体
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯